/* ============================================
   Viggle AI - 样式表
   主题色：亮黄绿色系（logo配色）
   ============================================ */

/* CSS 变量 - 主题色（可根据 logo 调整） */
:root {
    --primary: #CDFF00;          /* 主色：亮黄绿 */
    --primary-dark: #A8D000;     /* 主色深 */
    --primary-light: #E8FF66;    /* 主色浅 */
    --primary-bg: rgba(205, 255, 0, 0.1); /* 主色背景 */
    
    --dark: #0d0d0d;             /* 深黑 */
    --dark-2: #1a1a1a;           /* 深灰黑 */
    --dark-3: #262626;           /* 中深灰 */
    --gray: #666666;             /* 灰色文字 */
    --gray-light: #999999;       /* 浅灰文字 */
    --light: #f5f5f5;            /* 浅背景 */
    --white: #ffffff;
    
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* 渐进增强动画：
   - 默认（无 JS）：元素可见
   - 启用 JS 后：先隐藏，滚动进入视口再淡入 */
body.js-enabled .js-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-enabled .js-animate.js-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   顶部导航
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--primary);
}

.logo-img-lg {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--primary);
    margin: 0 auto 24px;
}

.logo-img-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--primary);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
}

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

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-2);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-dark);
}

.nav-download-btn {
    background: var(--dark) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 100px;
    transition: var(--transition) !important;
}

.nav-download-btn:hover {
    background: var(--primary) !important;
    color: var(--dark) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   首屏 Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--white);
}

.hero-bg {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-bg) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.meta-divider {
    width: 1px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(205, 255, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat span {
    font-size: 14px;
    color: var(--gray-light);
}

/* 截图区域 - 堆叠 + hover 效果 */
.hero-screenshots {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-stack {
    position: relative;
    width: 420px;
    height: 520px;
}

.screenshot-card {
    position: absolute;
    width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.screenshot-frame {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--light) 100%);
}

.screenshot-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 12px;
    padding: 6px 12px;
    background: var(--primary-bg);
    border-radius: 100px;
}

/* 三张图初始堆叠位置 */
.screenshot-1 {
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-6deg) scale(0.85);
    opacity: 0.5;
}

.screenshot-2 {
    top: 20px;
    left: 70px;
    z-index: 2;
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.screenshot-3 {
    top: 0;
    left: 140px;
    z-index: 1;
    transform: rotate(6deg) scale(0.85);
    opacity: 0.5;
}

/* hover 效果：鼠标在哪张图上，那张图放大高亮，其余图缩小降低透明度 */
.screenshot-stack:hover .screenshot-card {
    opacity: 0.4;
    transform: scale(0.8) rotate(var(--rot, 0deg));
    filter: blur(2px);
}

.screenshot-1 { --rot: -8deg; }
.screenshot-2 { --rot: 0deg; }
.screenshot-3 { --rot: 8deg; }

.screenshot-stack .screenshot-card:hover {
    opacity: 1 !important;
    transform: scale(1.08) translateY(-15px) rotate(0deg) !important;
    z-index: 10 !important;
    filter: none !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   通用 Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 17px;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   功能优点
   ============================================ */
.features {
    padding: 120px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    padding: 36px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* 技术优势 */
.tech-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--dark);
    padding: 48px;
    border-radius: 20px;
}

.tech-card {
    padding: 24px;
}

.tech-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    font-family: "Helvetica Neue", sans-serif;
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ============================================
   用户评价
   ============================================ */
.reviews {
    padding: 120px 0;
    background: var(--light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.review-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 15px;
    color: var(--dark-2);
    line-height: 1.75;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.avatar-zhang { background: #FFE4B5; }
.avatar-li { background: var(--primary); }
.avatar-wang { background: #FFB6C1; }
.avatar-chen { background: #87CEEB; }
.avatar-zhao { background: #DDA0DD; }
.avatar-liu { background: #98FB98; }

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: var(--gray-light);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 120px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--light);
}

.faq-item:first-child {
    border-top: 1px solid var(--light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-question {
    color: var(--primary-dark);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   下载区域
   ============================================ */
.download {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    overflow: hidden;
}

.download-bg {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(205, 255, 0, 0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.download .container {
    position: relative;
    z-index: 1;
}

.download-content {
    text-align: center;
}

.download-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.download-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
}

.badge-icon {
    font-size: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 22px 48px;
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 60px rgba(205, 255, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 80px rgba(205, 255, 0, 0.5);
    background: var(--primary-light);
}

.download-hint {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    padding: 40px 0;
    background: var(--dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 44px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-screenshots {
        order: -1;
    }

    .screenshot-stack {
        width: 360px;
        height: 460px;
    }

    .screenshot-card {
        width: 240px;
    }

    .screenshot-frame {
        height: 360px;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-section {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .section-title {
        font-size: 36px;
    }

    .download-title {
        font-size: 38px;
    }
}

/* ============================================
   响应式 - 手机
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-meta {
        gap: 16px;
        padding: 16px 20px;
    }

    .meta-value {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .screenshot-stack {
        width: 300px;
        height: 380px;
    }

    .screenshot-card {
        width: 200px;
    }

    .screenshot-frame {
        height: 300px;
    }

    .screenshot-1 {
        transform: rotate(-6deg) scale(0.8);
    }

    .screenshot-2 {
        left: 50px;
    }

    .screenshot-3 {
        left: 100px;
        transform: rotate(6deg) scale(0.8);
    }

    .features,
    .reviews,
    .faq,
    .download {
        padding: 80px 0;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 30px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .tech-section {
        padding: 28px;
        border-radius: var(--radius);
    }

    .download-title {
        font-size: 30px;
    }

    .download-desc {
        font-size: 16px;
    }

    .btn-download {
        padding: 18px 36px;
        font-size: 16px;
    }

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

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
}

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

    .screenshot-stack {
        width: 260px;
        height: 340px;
    }

    .screenshot-card {
        width: 170px;
    }

    .screenshot-frame {
        height: 255px;
    }

    .screenshot-1 {
        top: 0;
        left: 0;
    }

    .screenshot-2 {
        top: 15px;
        left: 45px;
    }

    .screenshot-3 {
        top: 0;
        left: 90px;
    }
}
