/* =========================================================
   谷多 GooDuo · 洗衣机官网 设计系统 / Design Tokens
   对齐《项目级开发规范》：容器 1200(hero 除外)、模块 padding 80/44、
   统一排版、纯白底 + 湖蓝主色点缀 + 极简
   ========================================================= */
:root {
  /* 颜色 —— D·冰川洁净（极浅冰蓝 + 纯白 + 高亮银，极致洁净/静音意象） */
  --bg: #FFFFFF;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #EDF4FA;        /* 浅冰蓝：缩略图/小元素底 */
  --bg-alt: #F4F9FE;           /* 交替区块底：极浅冰蓝 */
  --text: #2E3B47;             /* 深灰蓝：正文 */
  --text-dim: #6B7F92;         /* 冷灰蓝：次级文字（亮底达 AA） */
  --heading: #1B3A52;          /* 深冰蓝：板块大标题（h1/h2）——冰川洁净的深邃 */

  --accent: #4A90C4;           /* 冰川蓝主色：仅作点缀 */
  --accent-strong: #5BA3D8;    /* 亮冰川蓝：hover/强调 */
  --accent-soft: rgba(74, 144, 196, 0.10);
  --silver: #C4D6E4;           /* 高亮银：辅助装饰线条/描边 */
  --border: rgba(27, 58, 82, 0.08);
  --border-strong: rgba(27, 58, 82, 0.16);

  /* 布局 */
  --container: 1200px;
  --section-py: 48px;      /* 统一内容区块上下 padding：桌面 48 / ≤767 36 / ≤480 28（与子页 about.css 标尺一致，消除跨页阶梯错位） */
  --radius: 14px;
  --radius-sm: 9px;

  /* 统一排版 Type Scale（规范第8条：全站通用元素统一） */
  --fs-h1: clamp(1.875rem, 1.3rem + 2.4vw, 2.5rem);
  --fs-h2: clamp(1.375rem, 1.05rem + 1.2vw, 1.625rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-tight: 1.2;
  --lh-body: 1.65;

  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 18px 40px rgba(27, 58, 82, 0.08);
  --transition: 0.25s ease;
}

/* 手机端模块上下 padding（规范）：统一标尺 48 / 36 / 28 */
@media (max-width: 767px) {
  :root { --section-py: 36px; }
}
@media (max-width: 480px) {
  :root { --section-py: 28px; }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
/* 防横向滚动条：fixed 元素 left:0/right:0 的包含块是含垂直滚动条的 innerWidth，
   在窄屏/桌面滚动条环境下会比布局视口(clientWidth)宽出滚动条宽度 → 页面出现横向滚动条。
   用 overflow-x: clip 裁剪（clip 不创建滚动容器，不影响 position: sticky 吸顶栏） */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* 移动端隐藏根垂直滚动条：经典滚动条占位会把布局视口挤窄
   （375px 设备上 html 只剩 360px，页面右侧露出滚动条轨道）。
   隐藏后页面按设备宽度满宽渲染；滚动行为（触摸/滚轮/键盘）不受影响。
   仅 ≤900px（移动端/窄窗/DevTools 模拟）生效，桌面保留正常滚动条 */
@media (max-width: 900px) {
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(27, 58, 82, 0.014) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ===== 布局容器（规范：>1200 无留白 / <1200 留白20 / 手机16） ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}
@media (max-width: 1199px) { .container { padding-inline: 20px; } }
@media (max-width: 767px) { .container { padding-inline: 16px; } }

.section { padding-block: var(--section-py); position: relative; }
.section-alt { background: var(--bg-alt); }

/* ===== 统一标题 / 段落（规范第8条） ===== */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
}
h1, h2 { font-family: var(--font-sans); color: var(--heading); }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; color: #333; }
h4 { font-size: var(--fs-h4); font-weight: 500; color: #444; }
p { margin: 0 0 1em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

/* ===== 可访问性 ===== */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
