/* --- 基础重置与设计变量 --- */
:root {
    /* 品牌色 */
    --color-brand: #25D366;
    --color-brand-dark: #128C7E;
    --color-brand-light: #DCF8C6;
    
    /* 中性色（灰度系统） */
    --color-text-main: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-muted: #9ca3af;
    --color-bg-body: #ffffff;
    --color-bg-alt: #f3f4f6;
    --color-border: #e5e7eb;
    
    /* 间距与圆角 */
    --spacing-unit: 1rem;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* 字体 */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* --- 排版工具类 --- */
.container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

/* 流体标题 */
h1, h2, h3, h4 {
    line-height: 1.2;
    text-wrap: balance;
    color: var(--color-text-main);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

/* --- 头部与导航 --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--color-brand-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-brand);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: white;
}

/* --- Hero 区域 --- */
.hero-section {
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 540px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-svg-wrapper {
    width: 100%;
    height: auto;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG 动效基础 */
.wave-path {
    fill: none;
    stroke: var(--color-brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-anim {
    animation: wave-flow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.wave-anim-delay-1 {
    animation-delay: -2s;
}

.wave-anim-delay-2 {
    animation-delay: -4s;
}

@keyframes wave-flow {
    0% {
        stroke-dashoffset: 1;
        opacity: 0.6;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave-anim, .wave-anim-delay-1, .wave-anim-delay-2 {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

/* --- 区块通用 --- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* --- 核心功能卡片 --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-brand);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--color-brand);
}

.feature-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- 界面示意 (CSS Composition) --- */
.mockup-container {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--color-border);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.mockup-header {
    background: #f0f2f5;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-body {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 250px;
    border-right: 1px solid var(--color-border);
    background: #fff;
    padding: 1rem;
    display: none;
}
@media (min-width: 768px) {
    .mockup-sidebar { display: block; }
}

.chat-bubble {
    background: #e6f7ea;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    max-width: 80%;
    margin-bottom: 0.8rem;
    margin-left: auto;
    position: relative;
    font-size: 0.9rem;
}

.chat-bubble.self {
    background: #fff;
    border: 1px solid var(--color-border);
}

.chat-img-placeholder {
    width: 100%;
    height: 120px;
    background: #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* --- 使用场景 --- */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.scenario-item {
    border-left: 4px solid var(--color-brand);
    padding: 1rem;
    background: white;
}

.scenario-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-brand-dark);
}

/* --- 快速开始步骤 --- */
.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--color-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* --- 表格 --- */
.platform-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.platform-table th, .platform-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.platform-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

/* --- FAQ --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-brand);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- 新闻/文章卡片 --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.news-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-brand-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- 下载区 --- */
.download-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--color-brand-light);
}

.download-btn-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
}

/* --- 页脚 --- */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a:hover {
    color: var(--color-brand);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* --- 辅助 SVG --- */
.inline-svg {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .nav-list {
        display: none; /* 简化处理，移动端暂不写汉堡菜单JS */
    }
    .header .container {
        justify-content: center;
    }
}
