/* === 设计变量 === */
:root {
    /* 品牌色系：大地色与自然绿 */
    --brand-primary: #2E4A2F;     /* 森林绿 - 主色 */
    --brand-secondary: #B4975D;   /* 陶土黄/金 - 强调色 */
    --brand-bg: #F7F5EE;          /* 米白 - 背景色 */
    --brand-text: #3A3C36;        /* 深灰褐 - 文本色 */
    --brand-border: #DCD8CB;      /* 边框色 */
    
    /* 布局参数 */
    --container-width: 1150px;
    --header-height: 70px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-subtle: 0 4px 20px rgba(46, 74, 47, 0.08);
    --shadow-hover: 0 12px 30px rgba(46, 74, 47, 0.12);
    
    /* 动效时长 */
    --anim-duration: 2s;
}

/* === 基础排版 === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--brand-text);
    background-color: var(--brand-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

/* 容器 */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* 排版层级 */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--brand-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: #4A4D45; }

/* === Header === */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(247, 245, 238, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--brand-border);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 32px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--brand-primary); }
.nav-menu { display: flex; gap: 32px; }
.nav-link { 
    font-weight: 500; 
    color: var(--brand-text); 
    position: relative;
    padding: 4px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--brand-primary);
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--brand-secondary); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* === Footer === */
.site-footer {
    background-color: #EBE9DF;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--brand-primary); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.95rem; color: #666; }
.footer-links a:hover { color: var(--brand-primary); }
.copyright { text-align: center; color: #888; font-size: 0.85rem; border-top: 1px solid #dcd8cb; padding-top: 30px; }

/* === Hero Section === */
.hero-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-subtitle {
    display: inline-block;
    background: #E8EEDF;
    color: var(--brand-primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.hero-svg-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--brand-primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: #253b26;
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-border);
    color: var(--brand-primary);
}
.btn-outline:hover {
    border-color: var(--brand-primary);
}
.btn-group { display: flex; gap: 16px; margin-top: 32px; }

/* === Feature Grid === */
.section-padding { padding: 80px 0; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-border);
    transition: all 0.3s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--brand-secondary);
}
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    stroke: var(--brand-primary);
    stroke-width: 1.5;
    fill: none;
}
.feature-title { font-size: 1.25rem; margin-bottom: 12px; color: var(--brand-primary); }
.feature-desc { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* === Interface / Visual Area === */
.interface-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.svg-interface { width: 100%; max-width: 900px; margin: 0 auto; }

/* === Scenarios & Steps === */
.scenario-list { display: flex; flex-direction: column; gap: 40px; }
.scenario-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 30px;
    align-items: start;
}
.scenario-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-secondary);
    opacity: 0.6;
    line-height: 1;
}
.steps-list { margin-top: 40px; }
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--brand-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.step-content h4 { font-size: 1.1rem; margin-bottom: 4px; }
.step-content p { font-size: 0.95rem; margin: 0; }

/* === Table === */
.version-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.version-table th, .version-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--brand-border);
}
.version-table th {
    background: #F2F0E6;
    font-weight: 700;
    color: var(--brand-primary);
}
.version-table tr:last-child td { border-bottom: none; }
.version-table tr:hover { background-color: #FAFAF5; }

/* === Blog Cards === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
}
.blog-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.blog-title { font-size: 1.1rem; margin-bottom: 12px; font-weight: 600; color: var(--brand-primary); }
.blog-summary { font-size: 0.9rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.blog-btn { font-size: 0.9rem; font-weight: 600; color: var(--brand-secondary); display: flex; align-items: center; gap: 6px; }

/* === Download Zone === */
#download {
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}
#download h2 { color: #fff; }
#download p { color: rgba(255, 255, 255, 0.85); }
.download-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: var(--brand-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: transform 0.3s ease;
}
.download-btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* === FAQ === */
.faq-container { max-width: 800px; margin: 0 auto; }
details {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    padding: 0;
    transition: all 0.3s ease;
}
details[open] { border-color: var(--brand-secondary); box-shadow: var(--shadow-subtle); }
summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    font-weight: 400;
    color: var(--brand-secondary);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; color: #555; font-size: 0.95rem; line-height: 1.7; }

/* === Related Links === */
.related-links ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.related-links li { border-left: 3px solid var(--brand-secondary); padding-left: 12px; }
.related-links a { font-size: 0.95rem; color: #444; font-weight: 500; }
.related-links a:hover { color: var(--brand-primary); }
.related-links p { font-size: 0.85rem; color: #777; margin-top: 4px; }

/* === SVG Animation Styles === */
.draw-path {
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: drawStroke var(--anim-duration) ease-in-out infinite alternate;
}
@keyframes drawStroke {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
.breathe {
    animation: breathe 4s ease-in-out infinite alternate;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes breathe {
    from { opacity: 0.7; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1.02); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* === Responsive === */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; }
    .btn-group { justify-content: center; }
    .feature-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .scenario-item { grid-template-columns: 1fr; }
    .scenario-num { font-size: 2rem; }
}
@media (max-width: 600px) {
    .feature-grid, .blog-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; } /* Simplified for mobile demo */
}
