/* ===== 基础重置与字体 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-blue: #0060FF;
    --brand-blue-dark: #004acc;
    --brand-green: #6ABF69;
    --bg-light: #F8F9FC;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-mid: #4A4A5E;
    --text-light: #8A8A9E;
    --shadow-sm: 0 4px 20px rgba(0, 30, 80, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 30, 80, 0.12);
    --radius-card: 20px;
    --radius-btn: 40px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max-width: 1200px;
    --pad-section: 100px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== 滚动淡入动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-d1 {
    transition-delay: 0.1s;
}
.fade-up-d2 {
    transition-delay: 0.2s;
}
.fade-up-d3 {
    transition-delay: 0.3s;
}
.fade-up-d4 {
    transition-delay: 0.4s;
}

/* ===== 容器 ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    :root {
        --pad-section: 60px 0;
    }
}

/* ===== 导航栏（与首页统一） ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: var(--text-dark);
    text-decoration: none;
}
.navbar .logo span {
    color: var(--brand-blue);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 1px;
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-blue);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 汉堡菜单（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 110;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    .navbar .logo {
        font-size: 17px;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        font-size: 18px;
    }
}

/* ===== Hero ===== */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 560px;
}

.hero-text .badge {
    display: inline-block;
    background: rgba(0, 96, 255, 0.08);
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 40px;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.hero-text h1 .highlight {
    color: var(--brand-blue);
    position: relative;
}
.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 96, 255, 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-text p.sub {
    font-size: 18px;
    color: var(--text-mid);
    max-width: 480px;
    margin-bottom: 12px;
    font-weight: 400;
}

.hero-text p.tags {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 60, 120, 0.08));
}

@media (max-width: 900px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-text p.sub {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-visual svg {
        max-width: 300px;
    }
    .hero {
        padding-top: 100px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-text p.sub {
        font-size: 16px;
    }
    .hero-visual svg {
        max-width: 240px;
    }
}

/* ===== 通用区块标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 56px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-title p {
    color: var(--text-mid);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .section-title h2 {
        font-size: 28px;
    }
    .section-title p {
        font-size: 16px;
    }
}

/* ===== 产品概述卡片 ===== */
.product-essence {
    padding: var(--pad-section);
    background: var(--bg-white);
}

.essence-card {
    background: var(--bg-light);
    border-radius: var(--radius-card);
    padding: 48px 56px;
    border-left: 4px solid var(--brand-blue);
    box-shadow: var(--shadow-sm);
    max-width: 880px;
    margin: 0 auto;
}

.essence-card p {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: -0.01em;
}
.essence-card p strong {
    color: var(--brand-blue);
    font-weight: 600;
}

@media (max-width: 600px) {
    .essence-card {
        padding: 32px 24px;
    }
    .essence-card p {
        font-size: 18px;
    }
}

/* ===== 核心功能 ===== */
.features {
    padding: var(--pad-section);
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.feature-card .icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(0, 96, 255, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s;
}

.feature-card:hover .icon-wrap {
    background: rgba(0, 96, 255, 0.12);
}

.feature-card .icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

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

@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 28px 20px 24px;
    }
}

/* ===== 场景 Mockup ===== */
.scenario {
    padding: var(--pad-section);
    background: var(--bg-white);
}

.scenario-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.scenario-mockup {
    flex: 1.2;
    min-width: 0;
}

.scenario-text {
    flex: 0.8;
}

.scenario-text h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}

.scenario-text .scene-desc {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    background: var(--bg-light);
    padding: 24px 28px;
    border-radius: 16px;
    border-left: 3px solid var(--brand-green);
}

.scenario-text .scene-desc .label {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 6px;
}

.scenario-text .scene-desc .highlight-green {
    color: var(--brand-green);
    font-weight: 600;
}

/* 笔记本电脑 Mockup */
.laptop {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    background: #E8ECF2;
    border-radius: 18px 18px 12px 12px;
    padding: 18px 18px 0 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.laptop .screen {
    background: #0F172A;
    border-radius: 10px 10px 0 0;
    padding: 20px 18px 18px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #CBD5E1;
    overflow: hidden;
    position: relative;
}

.laptop .screen .top-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.laptop .screen .top-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}
.laptop .screen .top-bar .dot:nth-child(1) {
    background: #EF4444;
}
.laptop .screen .top-bar .dot:nth-child(2) {
    background: #F59E0B;
}
.laptop .screen .top-bar .dot:nth-child(3) {
    background: #10B981;
}

.laptop .screen .line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    border-radius: 4px;
    transition: background 0.2s;
}

.laptop .screen .line .indent {
    display: inline-block;
    width: 16px;
    flex-shrink: 0;
}
.laptop .screen .line .indent2 {
    display: inline-block;
    width: 32px;
    flex-shrink: 0;
}

.laptop .screen .line .icon-tree {
    color: var(--brand-green);
    font-size: 14px;
}
.laptop .screen .line .icon-bubble {
    color: #60A5FA;
    font-size: 14px;
}
.laptop .screen .line .icon-star {
    color: #FBBF24;
    font-size: 14px;
}
.laptop .screen .line .tag {
    background: rgba(96, 165, 250, 0.15);
    color: #93C5FD;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
}

.laptop .screen .line .highlight-green {
    color: #34D399;
}

.laptop .screen .line .highlight-blue {
    color: #60A5FA;
}

@media (max-width: 820px) {
    .scenario-inner {
        flex-direction: column;
        gap: 32px;
    }
    .scenario-text .scene-desc {
        font-size: 14px;
        padding: 20px;
    }
    .laptop {
        max-width: 100%;
    }
}

/* ===== 假苏寓意 ===== */
.herb-story {
    padding: var(--pad-section);
    background: var(--bg-light);
}

.herb-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-white);
    border-radius: 32px;
    padding: 48px 56px;
    box-shadow: var(--shadow-sm);
}

.herb-visual {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}

.herb-visual svg {
    width: 180px;
    height: auto;
    opacity: 0.9;
}

.herb-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}
.herb-text p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 600px;
}
.herb-text p .green {
    color: var(--brand-green);
    font-weight: 500;
}

@media (max-width: 720px) {
    .herb-inner {
        flex-direction: column;
        padding: 36px 24px;
        text-align: center;
    }
    .herb-visual {
        flex: 0 0 auto;
    }
    .herb-visual svg {
        width: 140px;
    }
    .herb-text p {
        max-width: 100%;
    }
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0 100px;
    background: var(--bg-white);
    text-align: center;
}

.cta-section h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-section p {
    color: var(--text-mid);
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(0, 96, 255, 0.25);
}
.btn-primary:hover {
    background: var(--brand-blue-dark);
    box-shadow: 0 8px 28px rgba(0, 96, 255, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #D0D5DD;
    padding: 16px 40px;
    border-radius: var(--radius-btn);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.btn-secondary:hover {
    border-color: var(--brand-blue);
    background: rgba(0, 96, 255, 0.04);
    transform: translateY(-2px);
}

.download-count {
    margin-top: 16px;
    margin-bottom: -12px;
    font-size: 14px;
    color: var(--brand-green);
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.download-count.show {
    opacity: 1;
    transform: translateY(0);
}

.download-count span {
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
}

/* 数字弹跳动画 */
.download-count span.bump {
    animation: countBump 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countBump {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.4);
        color: var(--brand-blue);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

.cta-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 底部 ===== */
.footer {
    border-top: 1px solid #EEF2F6;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-white);
    font-size: 13px;
    color: var(--text-light);
}
.footer a {
    color: var(--text-mid);
    text-decoration: none;
}
.footer a:hover {
    color: var(--brand-blue);
}
.footer .right {
    display: flex;
    gap: 24px;
}

@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .footer .right {
        gap: 16px;
    }
}

/* ===== 动画触发 ===== */
.observer-target {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.observer-target.visible {
    opacity: 1;
    transform: translateY(0);
}