/* =========================================
   全站共享样式 (net.whatapps-fgd.com.cn)
   ========================================= */

/* --- 设计变量 (暖调渐变 + 柔和弥散光) --- */
:root {
    /* 主色与背景 */
    --color-primary: #ff7a45;       /* 活力珊瑚橙 */
    --color-secondary: #ffb997;     /* 柔雾蜜桃粉 */
    --color-accent: #ffecd6;        /* 浅奶油黄 */
    --color-bg-main: #faf9f7;       /* 暖调纸白 */
    --color-bg-section: #fffaf5;    /* 极淡暖橘分区 */
    --color-text-main: #1c1917;     /* 深炭灰正文 */
    --color-text-muted: #57534e;    /* 辅助文字 */
    --color-border: #e7e5e4;        /* 分割线 */

    /* 排版 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
    
    /* 间距与圆角 */
    --space-container: 1rem;
    --max-width: 1100px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* 动效 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 基础重置与排版 --- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
}

/* 流体字号 */
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem); }
p { margin-bottom: 1.5rem; max-width: 70ch; }
small { font-size: 0.875rem; color: var(--color-text-muted); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-container);
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { padding-left: 1.25rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }

/* --- 视觉组件 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    gap: 0.5rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), #ff9a6e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 69, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 122, 69, 0.5); }
.btn--primary:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

.btn--outline {
    background: transparent;
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}
.btn--outline:hover { background: var(--color-text-main); color: #fff; }

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.06); }

.section { padding: 5rem 0; position: relative; overflow: hidden; }
.section--alt { background-color: var(--color-bg-section); }
.section__header { margin-bottom: 3.5rem; }

/* --- 页头 (Header) --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.125rem; }
.brand img { height: 32px; width: auto; object-fit: contain; }
.nav ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-primary); }
.nav a[aria-current="page"] { font-weight: 700; }

/* --- 页脚 (Footer) --- */
.footer {
    padding: 4rem 0 2rem;
    background: #fff;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer h4 { margin-top: 0; margin-bottom: 1.25rem; font-size: 1rem; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 0.6rem; }
.footer a:hover { text-decoration: underline; }
.copyright { text-align: center; color: var(--color-text-muted); border-top: 1px solid var(--color-border); padding-top: 2rem; }

/* --- SVG 动效 (等高线流动) --- */
.svg-contour {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: contour-flow 12s linear infinite;
}

@keyframes contour-flow {
    0% { stroke-dashoffset: 1; }
    100% { stroke-dashoffset: 0; }
}

@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;
    }
}

/* --- 响应式适配 --- */
@media (max-width: 768px) {
    .nav { display: none; } /* 移动端简化导航，保留品牌与下载入口 */
    .btn--mobile-nav { display: inline-block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

@media (min-width: 769px) {
    .btn--mobile-nav { display: none; }
}
