/* OpenClaw Website - Modern Animated Design */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #3498db;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 日文网站标准字体栈：兼顾 macOS 和 Windows */
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, "Yu Gothic", sans-serif;
    line-height: 1.8; /* 增加行高，提升日文阅读舒适度 */
    color: var(--text-primary);
    background: var(--bg-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 导航栏 - 简约风格 */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-text .highlight {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-cta {
    background: var(--secondary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge-container {
    margin-bottom: 2rem;
}

.badge {
    background: #e8f4f8;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    border: 1px solid #d0e8f0;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.subtagline {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--primary-color);
    border: 1px solid #ddd;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 移除 Floating Shapes 动画效果 */
.floating-shapes {
    display: none;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sections */
.section-latest-posts,
.section-progress,
.section-subscribe {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0 auto;
}

/* Posts Masonry */
.posts-masonry {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.post-badge.new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.post-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Featured Post */
.post-card.featured {
    background: var(--primary-color);
    color: white;
}

.post-card.featured .post-tag,
.post-card.featured h3,
.post-card.featured .post-excerpt,
.post-card.featured .read-more {
    color: white;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Progress Section */
.section-progress {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    font-weight: bold;
    color: var(--text-primary);
}

.progress-bar-wrapper {
    background: #e0e0e0;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 8px;
    width: 0;
    animation: fillProgress 2s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fillProgress {
    to { width: calc(var(--w) * 1%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-indicator {
    font-size: 1.2rem;
}

/* Subscribe Section */
.gradient-panel {
    background: var(--primary-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.2);
}

.subscribe-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.subscribe-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.privacy-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #f0f0f0;
    color: var(--text-secondary);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.powered-by {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
}
