/* ===== 风林软件库 - 样式表 ===== */
/* 配色：森林绿主色（呼应"风林"），金色点缀下载按钮 */

:root {
    --green-900: #022c1f;
    --green-800: #064e3b;
    --green-700: #065f46;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-300: #6ee7b7;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --ink: #0a1f17;
    --ink-soft: #1f3a2e;
    --text: #e8f5ee;
    --text-mute: #9fc3b0;
    --text-dark: #0a1f17;
    --white: #ffffff;
    --card: rgba(255, 255, 255, 0.06);
    --card-border: rgba(110, 231, 183, 0.18);
    --shadow: 0 20px 60px rgba(2, 44, 31, 0.35);
    --radius: 18px;
    --max: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 44, 31, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.12);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 44, 31, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    border: 1px solid rgba(110, 231, 183, 0.4);
}

.brand-name {
    background: linear-gradient(90deg, var(--green-300), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-mute);
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(110, 231, 183, 0.1);
}

.nav-link.nav-cta {
    color: var(--green-300);
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    background: rgba(16, 185, 129, 0.15);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-download-btn {
    padding: 9px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(5, 150, 105, 0.5);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--green-600));
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.avatar-sm {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--green-300);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 首屏 ===== */
.hero {
    position: relative;
    padding: 120px 0 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.25), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.12), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(5, 150, 105, 0.18), transparent 50%),
        linear-gradient(160deg, var(--ink) 0%, var(--green-900) 50%, var(--ink) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 231, 183, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 183, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.hero-left {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.25);
    font-size: 13px;
    color: var(--green-300);
    margin-bottom: 22px;
}

.hero-badge-logo {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--green-400), var(--green-700));
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    background: linear-gradient(120deg, var(--white) 30%, var(--green-300) 70%, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(18px, 2.4vw, 24px);
    color: var(--green-300);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-mute);
    margin-bottom: 28px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.meta-label {
    font-size: 12px;
    color: var(--text-mute);
}

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

.meta-divider {
    width: 1px;
    height: 32px;
    background: rgba(110, 231, 183, 0.2);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(5, 150, 105, 0.55);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 12px;
    background: transparent;
    color: var(--green-300);
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(110, 231, 183, 0.35);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
    background: rgba(110, 231, 183, 0.08);
    border-color: var(--green-400);
}

/* ===== 截图叠加展示 ===== */
.hero-right {
    position: relative;
}

.shots {
    position: relative;
    height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shot {
    position: absolute;
    width: 220px;
    height: 440px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--green-700), var(--green-900));
    border: 2px solid rgba(110, 231, 183, 0.25);
    box-shadow: var(--shadow);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s ease, z-index 0s linear 0.5s, border-color 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.shot figcaption {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 100px;
    background: rgba(2, 44, 31, 0.85);
    color: var(--green-300);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shot-1 {
    transform: translateX(-95px) rotate(-8deg) translateY(10px);
    z-index: 1;
}

.shot-2 {
    transform: translateY(-14px);
    z-index: 2;
}

.shot-3 {
    transform: translateX(95px) rotate(8deg) translateY(10px);
    z-index: 1;
}

/* 悬停动态效果：鼠标放到哪张图就突出哪张 */
.shot:hover {
    z-index: 10;
    transform: translateY(-22px) rotate(0deg) scale(1.06);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 0 2px var(--green-400);
    transition-delay: 0s;
}

.shot:hover img {
    opacity: 1;
}

.shot:hover figcaption {
    opacity: 1;
}

/* 当任一被悬停时，其余略微压低 */
.shots.has-hover .shot:not(:hover) {
    transform: scale(0.96);
    opacity: 0.7;
}

.shots-tip {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-mute);
}

/* ===== 通用区块 ===== */
.section {
    position: relative;
    padding: 90px 24px;
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-mute);
}

/* ===== 功能优点 ===== */
.features {
    background: linear-gradient(180deg, var(--ink) 0%, var(--green-900) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 231, 183, 0.5);
    background: rgba(16, 185, 129, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-500), var(--green-800));
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.feature-card h3 {
    font-size: 19px;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-mute);
    line-height: 1.7;
}

/* ===== 用户评价 ===== */
.reviews {
    background: var(--ink);
}

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

.review-card {
    padding: 28px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.4);
}

.review-stars {
    color: var(--gold-light);
    font-size: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
    flex: 1;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-name {
    font-weight: 700;
    color: var(--white);
    font-size: 15px;
}

.review-role {
    font-size: 13px;
    color: var(--text-mute);
}

/* ===== 常见问题 ===== */
.faq {
    background: linear-gradient(180deg, var(--ink) 0%, var(--green-900) 100%);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item.open {
    border-color: rgba(110, 231, 183, 0.5);
    background: rgba(16, 185, 129, 0.06);
}

.faq-q {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 16.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}

.faq-q:hover {
    color: var(--green-300);
}

.faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(110, 231, 183, 0.12);
    color: var(--green-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.4s ease, background 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--green-500);
    color: var(--white);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-a {
    max-height: 240px;
}

.faq-a p {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--text-mute);
    line-height: 1.8;
}

/* ===== 下载区域 ===== */
.download {
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18), transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.2), transparent 55%),
        linear-gradient(160deg, var(--green-900), var(--ink) 60%, var(--green-800));
    z-index: 0;
}

.download-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}

.download-container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.download-logo-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--green-400), var(--green-800));
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.download-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.download-title {
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
}

.download-desc {
    font-size: 16px;
    color: var(--text-mute);
    margin-bottom: 20px;
}

.download-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    font-size: 14px;
    color: var(--green-300);
}

.download-meta .dot {
    color: var(--text-mute);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink);
    font-weight: 800;
    font-size: 19px;
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.45),
        0 0 0 2px rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2.5s ease-in-out infinite;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.download-btn-icon {
    font-size: 24px;
    font-weight: 900;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 16px 44px rgba(245, 158, 11, 0.45), 0 0 0 2px rgba(255,255,255,0.15) inset; }
    50% { box-shadow: 0 16px 60px rgba(245, 158, 11, 0.7), 0 0 0 2px rgba(255,255,255,0.2) inset; }
}

.download-note {
    margin-top: 20px;
    font-size: 13.5px;
    color: var(--text-mute);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--ink);
    border-top: 1px solid rgba(110, 231, 183, 0.1);
    padding: 40px 24px;
}

.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}

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

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
}

.footer-text {
    font-size: 14px;
    color: var(--text-mute);
    margin-bottom: 10px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-mute);
    opacity: 0.7;
}

/* ===== 滚动渐入动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav-menu,
    .nav-download-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 18px;
        background: rgba(2, 44, 31, 0.98);
        border-bottom: 1px solid rgba(110, 231, 183, 0.15);
    }

    .nav-menu.open .nav-link {
        padding: 14px 16px;
        border-radius: 8px;
    }

    .nav-menu.open .nav-link.nav-cta {
        background: rgba(16, 185, 129, 0.15);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-badge,
    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-right {
        order: -1;
    }

    .shots {
        height: 400px;
    }

    .shot {
        width: 180px;
        height: 360px;
    }

    .shot-1 {
        transform: translateX(-75px) rotate(-8deg) translateY(10px);
    }

    .shot-3 {
        transform: translateX(75px) rotate(8deg) translateY(10px);
    }
}

@media (max-width: 560px) {
    .section {
        padding: 70px 18px;
    }

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

    .hero-container {
        padding: 0 18px;
    }

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

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

    .meta-divider {
        display: none;
    }

    .shots {
        height: 340px;
    }

    .shot {
        width: 140px;
        height: 280px;
        border-radius: 20px;
    }

    .shot-1 {
        transform: translateX(-58px) rotate(-8deg) translateY(8px);
    }

    .shot-3 {
        transform: translateX(58px) rotate(8deg) translateY(8px);
    }

    .shot:hover {
        transform: translateY(-18px) rotate(0deg) scale(1.08);
    }

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

    .download-meta {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .shots {
        height: 300px;
    }

    .shot {
        width: 120px;
        height: 240px;
    }

    .shot-1 {
        transform: translateX(-50px) rotate(-8deg) translateY(8px);
    }

    .shot-3 {
        transform: translateX(50px) rotate(8deg) translateY(8px);
    }
}
