/* =========================================
   基础设计系统 (Design System)
   ========================================= */
:root {
    /* 品牌色：深绿到青柠渐变体系 */
    --color-primary-base: #075e54;
    --color-primary-dark: #034038;
    --color-primary-light: #25d366;
    --color-accent-lime: #dcf8c6;
    
    /* 中性色 */
    --color-text-main: #1f2937;
    --color-text-secondary: #4b5563;
    --color-bg-body: #f9fafb;
    --color-bg-white: #ffffff;
    --color-border-subtle: #e5e7eb;
    
    /* 字体系统 */
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    
    /* 间距与圆角 */
    --radius-md: 8px;
    --radius-lg: 16px;
    --space-section: clamp(3rem, 5vw, 6rem);
}

/* =========================================
   全局重置与排版 (Reset & Typography)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 标题排版 */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    text-wrap: balance;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

section {
    padding: var(--space-section) 0;
}

/* =========================================
   组件样式 (Components)
   ========================================= */

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-base), var(--color-primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary-base);
    color: var(--color-primary-base);
}

.btn-outline:hover {
    background: var(--color-primary-base);
    color: #fff;
}

/* 网格布局 */
.grid-auto {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* 卡片 */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--color-primary-light);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--color-primary-base);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* 表格 */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-bg-white);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-subtle);
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: var(--color-primary-dark);
}

tr:last-child td {
    border-bottom: none;
}

/* 导航栏 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--color-primary-base);
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* FAQ 折叠面板 */
.faq-item {
    border-bottom: 1px solid var(--color-border-subtle);
}

details {
    padding: 1.5rem 0;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-main);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary-light);
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin-top: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* 页脚 */
.site-footer {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-lime);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #cbd5e1;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 新闻动态卡片 */
.news-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-primary-base);
    margin-bottom: 0.5rem;
    display: block;
}

.news-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.news-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-btn {
    font-size: 0.9rem;
    color: var(--color-primary-base);
    font-weight: 600;
    display: inline-block;
}

/* 安装步骤 */
.step-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-lime);
    background: var(--color-primary-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   SVG 动画系统 (SVG Animations)
   ========================================= */

/* 描边绘制效果 (Draw) */
.flow-path {
    fill: none;
    stroke: var(--color-primary-light);
    stroke-width: 2;
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: draw-flow 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes draw-flow {
    0% { stroke-dashoffset: 1; }
    100% { stroke-dashoffset: 0; }
}

/* 数据流动点 (Flow Dots) */
.dot-flow {
    fill: var(--color-primary-light);
    animation: dot-move 3s linear infinite;
}

@keyframes dot-move {
    0% { transform: translateX(0); opacity: 0.2; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(20px); opacity: 0; }
}

/* 脉冲发光 (Pulse) */
.pulse-element {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { opacity: 0.4; transform: scale(0.95); }
    to { opacity: 0.8; transform: scale(1.05); }
}

/* 减少动态效果偏好 (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .flow-path, .dot-flow, .pulse-element {
        animation: none;
        opacity: 1;
    }
}
