/* ========================================
   KlingAI 风格完整复刻
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0f;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== 导航栏 ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2196f3;
}

.nav-cta {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* ==================== Hero 全屏 ==================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 40px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(100, 181, 246, 0.2));
    border: 1px solid rgba(100, 181, 246, 0.3);
    color: #64b5f6;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2196f3, #1976d2, #1565c0);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow:
        0 4px 20px rgba(33, 150, 243, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(33, 150, 243, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.cta-arrow {
    transition: transform 0.3s;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: float 2s ease-in-out infinite;
}

.scroll-hint span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.scroll-icon {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== 功能展示区 ==================== */

.features {
    padding: 100px 40px;
    background: transparent;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(25, 32, 50, 0.8);
    border-color: rgba(33, 150, 243, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ==================== 文章列表 ==================== */

.posts-section {
    padding: 80px 40px;
    background: transparent;
}

.section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.post-card:hover {
    background: rgba(25, 32, 50, 0.8);
    border-color: rgba(33, 150, 243, 0.15);
    transform: translateY(-4px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-meta time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.post-tag {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #2196f3;
}

.post-summary {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.post-link {
    color: #2196f3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.post-link:hover {
    color: #64b5f6;
}

/* ==================== 页脚 ==================== */

.footer {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 40px 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #2196f3;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #2196f3;
}

.footer-bottom #busuanzi_container {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom #busuanzi_value_site_uv,
.footer-bottom #busuanzi_value_site_pv {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ==================== 响应式 ==================== */

@media (max-width: 1024px) {
    .features .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 12px 20px;
    }

    .nav-menu {
        display: none;
    }

    .nav-logo {
        font-size: 1rem;
    }

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

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 100vh;
        padding: 80px 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .hero-cta {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .scroll-hint {
        bottom: 30px;
    }

    .scroll-hint span {
        font-size: 0.75rem;
    }

    .features {
        padding: 60px 20px;
    }

    .features .container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 30px 24px;
    }

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

    .feature-title {
        font-size: 1.1rem;
    }

    .posts-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .post-card {
        padding: 24px 20px;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .footer {
        padding: 40px 20px 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 0.85rem;
    }

    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding-top: 30px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .scroll-icon {
        width: 16px;
        height: 16px;
    }
}

/* ==================== 滚动条 ==================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1976d2, #0d47a1);
    border-radius: 4px;
}