﻿/* ═══════════════════════════════════════════════════════════
   YIKE · 亿科过程控制 — 全站共享样式
   Design System: White / Red / Industrial Precision
   ═══════════════════════════════════════════════════════════ */

/* ─── THEME: White Red (DEFAULT) ─────────────────────────── */

/* ─── 0. Reset ─────────────────────────────────────────── */
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;}
body{
  font-family:var(--f-cn);
  color:var(--ink);
  background:var(--paper);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"palt" 1;
  overflow-x:hidden;
  transition:background-color .4s var(--ease),color .4s var(--ease);
}
a{color:inherit;text-decoration:none;transition:color .25s var(--ease);}
a:hover{color:var(--red);}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;background:none;border:none;}
h1,h2,h3,h4,p,ul,figure{margin:0;padding:0;}
ul{list-style:none;}
::selection{background:var(--red);color:#fff;}

/* ─── 1. Design Tokens ──────────────────────────────────── */
:root{
  /* 品牌红 */
  --red:#4A93DC;
  --red-deep:#2E6FAB;
  --red-soft:#79BCF2;

  /* 背景层级（白色为主） */
  --paper:#FFFFFF;
  --fog:#F4F4F6;
  --mist:#E6E8EA;
  --charcoal:#1C1D20;

  /* 文字层级 */
  --ink:#15161A;
  --ink-2:#2B2D31;
  --tx-2:#5C6066;
  --tx-3:#8B8F95;
  --silver:#C9CDD1;

  /* 线条 */
  --line:rgba(21,22,26,.12);
  --line-soft:rgba(21,22,26,.07);
  --line-inv:rgba(255,255,255,.16);

  /* 阴影 */
  --shadow-card:0 24px 60px -30px rgba(21,22,26,.18);
  --shadow-card-hover:0 32px 80px -32px rgba(74,147,220,.25);
  --shadow-glow-red:0 16px 40px -20px rgba(74,147,220,.65);

  /* 字体 */
  --f-cn:"Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --f-cond:"Barlow Condensed","Noto Sans SC",sans-serif;
  --f-mono:"IBM Plex Mono","Noto Sans SC",monospace;

  /* 布局 */
  --container:1440px;
  --gutter:clamp(20px,4vw,56px);
  --ease:cubic-bezier(.16,.84,.24,1);

  /* 圆角 */
  --r-sm:4px;
  --r-md:8px;
  --r-lg:14px;
}

/* ═══════════════════════════════════════════════════════════
   THEME: Classic Dark — 原站深蓝科技风
   （通过 data-theme="classic" 激活）
   ═══════════════════════════════════════════════════════════ */
[data-theme="classic"]{
  --red:#5AAAF5;
  --red-deep:#3D88D6;
  --red-soft:#7CC6FF;

  --paper:#1E2B47;
  --fog:#263553;
  --mist:#33456A;
  --charcoal:#0F1933;

  --ink:#E9F0FA;
  --ink-2:#C8D4E6;
  --tx-2:#98A9C4;
  --tx-3:#54709A;
  --silver:#415577;

  --line:rgba(124,198,255,.18);
  --line-soft:rgba(124,198,255,.09);
  --line-inv:rgba(255,255,255,.16);

  --shadow-card:0 24px 60px -30px rgba(0,0,0,.6);
  --shadow-card-hover:0 32px 80px -32px rgba(90,170,245,.35);
  --shadow-glow-red:0 16px 40px -20px rgba(90,170,245,.6);
}
[data-theme="classic"] body{background:var(--paper);color:var(--ink);}
[data-theme="classic"] ::selection{background:var(--red);color:#fff;}

/* ─── 2. 容器 ───────────────────────────────────────────── */
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

/* ─── 3. 通用标题/标签 ─────────────────────────────────── */
.kicker{
  display:flex;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.14em;
  color:var(--ink-2);font-weight:500;
}
.kicker .en{
  font-family:var(--f-cond);font-size:12px;
  letter-spacing:.22em;color:var(--tx-3);
}
.dotgrid{
  width:14px;height:14px;flex:none;
  background-image:radial-gradient(circle,var(--red) 1.4px,transparent 1.5px);
  background-size:5px 5px;background-position:0 0;
}
.t-red{color:var(--red);}

.section{padding:96px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:48px;gap:24px;}
.section-eyebrow{
  font-family:var(--f-cond);font-size:13px;letter-spacing:.3em;
  color:var(--tx-3);font-weight:500;margin-bottom:12px;
}
.section-title{
  font-size:clamp(28px,3.2vw,40px);font-weight:700;
  line-height:1.25;color:var(--ink);
}
.section-subtitle{font-size:14px;color:var(--tx-2);margin-top:10px;max-width:520px;}
.section-link{
  font-family:var(--f-mono);font-size:12px;letter-spacing:.08em;
  color:var(--ink-2);display:inline-flex;align-items:center;gap:6px;
  padding:10px 18px;border:1px solid var(--line);border-radius:999px;
  transition:all .3s var(--ease);flex:none;
}
.section-link:hover{border-color:var(--red);color:var(--red);}

/* ─── 4. 按钮 ──────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:12px;
  border-radius:999px;font-weight:500;
  letter-spacing:.02em;
  padding:14px 18px 14px 26px;
  transition:all .35s var(--ease);
  border:1px solid transparent;
}
.btn-primary{
  background:var(--red);color:#fff;
  box-shadow:var(--shadow-glow-red);
}
.btn-primary:hover{background:var(--red-deep);transform:translateY(-2px);}
.btn-ghost{
  background:transparent;color:var(--ink);
  border-color:var(--line);
}
.btn-ghost:hover{border-color:var(--red);color:var(--red);}
.btn-sm{padding:10px 14px 10px 20px;font-size:13px;}

/* ─── 5. Reveal 动画 ───────────────────────────────────── */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s var(--ease),transform .7s var(--ease);}
.reveal.is-visible{opacity:1;transform:translateY(0);}

/* ─── 6. 主题切换按钮（浮动） ─────────────────────────── */
.theme-switch{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);
  z-index:200;display:flex;align-items:center;gap:6px;
  padding:6px 6px 6px 14px;border-radius:999px;
  background:rgba(255,255,255,.92);backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);
  box-shadow:0 12px 32px -16px rgba(21,22,26,.25),0 2px 6px -2px rgba(21,22,26,.08);
  opacity:0;visibility:hidden;
  transition:opacity .4s var(--ease),transform .4s var(--ease),box-shadow .3s;
}
.theme-switch.is-visible{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.theme-switch:hover{box-shadow:0 16px 40px -16px rgba(21,22,26,.35),0 2px 6px -2px rgba(21,22,26,.08);}
.theme-switch .ts-label{
  font-family:var(--f-mono);font-size:10px;letter-spacing:.18em;
  color:var(--tx-3);font-weight:500;
  display:flex;align-items:center;gap:6px;
}
.theme-switch .ts-label .ts-current{
  font-weight:600;color:var(--ink);font-family:var(--f-cond);
  letter-spacing:.1em;font-size:12px;
}
.theme-switch .ts-toggle{
  width:44px;height:26px;border-radius:999px;
  background:var(--fog);position:relative;cursor:pointer;
  border:1px solid var(--line);
  transition:background .3s,border-color .3s;flex:none;
}
.theme-switch .ts-dot{
  position:absolute;top:2px;left:2px;
  width:20px;height:20px;border-radius:50%;
  background:var(--red);
  transition:transform .35s var(--ease),background .3s;
  box-shadow:0 2px 6px rgba(74,147,220,.3);
}
.theme-switch .ts-toggle.is-dark{background:var(--charcoal);border-color:var(--line);}
.theme-switch .ts-toggle.is-dark .ts-dot{transform:translateX(18px);background:#7CC6FF;box-shadow:0 2px 6px rgba(124,198,255,.4);}

/* Classic 深色主题下的按钮反转 */
[data-theme="classic"] .theme-switch{
  background:rgba(15,25,51,.92);border-color:rgba(124,198,255,.2);
}
[data-theme="classic"] .theme-switch .ts-label{color:#54709A;}
[data-theme="classic"] .theme-switch .ts-label .ts-current{color:#E9F0FA;}
[data-theme="classic"] .theme-switch .ts-toggle{background:#263553;}
[data-theme="classic"] .theme-switch .ts-toggle.is-dark{background:#0F1933;}

/* 移动端适配 */
@media (max-width:640px){
  .theme-switch{padding:4px 4px 4px 10px;bottom:16px;}
  .theme-switch .ts-label{display:none;}
  .theme-switch .ts-toggle{width:38px;height:24px;}
  .theme-switch .ts-dot{width:18px;height:18px;}
  .theme-switch .ts-toggle.is-dark .ts-dot{transform:translateX(14px);}
}

/* ─── 7. 响应式基础 ────────────────────────────────────── */
@media (max-width:1080px){.section{padding:72px 0;}.section-head{flex-direction:column;align-items:flex-start;}}
@media (max-width:640px){.section{padding:56px 0;}}
