/* ============================================================
   唯快科技 · 设计系统  "Velocity HUD · Light"
   白底净面 + 华为红能量 + 精细网格 + 折角HUD卡片
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg2: #f6f7f9;
  --panel: #ffffff;
  --panel2: #fafbfc;
  --line: rgba(13, 16, 24, 0.09);
  --line-strong: rgba(13, 16, 24, 0.18);
  --txt: #16181d;
  --muted: #525a68;
  --dim: #878e9b;
  --red: #d92a1c;
  --red-hi: #c7000b;
  --red-deep: #a80009;
  --amber: #b5730a;
  --blue: #3b6fe0;
  --green: #0e9a54;
  --grad-red: linear-gradient(100deg, #e02b1c 10%, #ff6a3d 60%, #ff9e2c 110%);
  --fd: 'Saira', 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --fm: 'JetBrains Mono', 'Saira', Consolas, monospace;
  --fs: 'HarmonyOS Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, sans-serif;
  --r: 14px;
  --clip: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  --shadow-card: 0 10px 30px -14px rgba(20, 24, 34, 0.16);
  --shadow-red: 0 12px 34px -10px rgba(217, 42, 28, 0.32);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--fs);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* 全局精细网格 */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(13, 16, 24, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 16, 24, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
.mono { font-family: var(--fm); font-size: 0.82em; letter-spacing: 0.04em; }

section[id], [id="main"] { scroll-margin-top: 96px; }
.sec { padding: 92px 0; content-visibility: auto; contain-intrinsic-size: auto 620px; }
.sec-tight { padding-top: 8px; }

/* ---------- 无障碍 ---------- */
.skip {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   通用组件
   ============================================================ */

.kicker {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 18px;
}

h1, h2, h3, h4 { font-family: var(--fd); line-height: 1.15; letter-spacing: 0.01em; }

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h1 em, .cta-band em {
  font-style: normal;
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }

.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); max-width: 62ch; }

.sec-head { margin-bottom: 48px; max-width: 820px; }
.sec-head h2 { margin-bottom: 12px; }
.sec-note { color: var(--dim); font-size: 14px; }

/* ---------- HUD 卡片：折角 + 描边 + 悬浮 ---------- */
.hud {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4), border-color 0.3s, box-shadow 0.35s;
}
.hud::before, .hud::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--red);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.hud:hover { transform: translateY(-4px); border-color: rgba(217, 42, 28, 0.45); box-shadow: var(--shadow-red); }
.hud:hover::before, .hud:hover::after { opacity: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  clip-path: var(--clip);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateX(2px) scale(1.02); }

.btn-red { background: var(--grad-red); color: #fff; }
.btn-red:hover { box-shadow: var(--shadow-red); }

.btn-ghost { border: 0; background: rgba(13, 16, 24, 0.05); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(13, 16, 24, 0.09); }

.btn-line {
  background: #fff;
  color: var(--red-hi);
  box-shadow: inset 0 0 0 1px rgba(217, 42, 28, 0.5);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-line:hover { background: #fff5f4; box-shadow: inset 0 0 0 1px var(--red-hi); }

.btn-danger { color: var(--red-hi); }
.btn-danger:hover { background: rgba(217, 42, 28, 0.08); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 18px 42px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- reveal 入场（仅 JS 可用时才隐藏，保证爬虫/降级场景内容可见） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- CSS 箭头（避免字体缺字形出现问号） ---------- */
.btn-arrow::after {
  content: '';
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  transition: transform 0.25s;
}
.btn-arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ============================================================
   跑马灯 ticker
   ============================================================ */
.ticker {
  background: var(--grad-red);
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 7px 0;
  animation: tick 32s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

.tk-item {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.tk-item b {
  font-family: var(--fm);
  font-size: 11px;
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
  font-weight: 700;
}
.ticker .sep { color: rgba(255, 255, 255, 0.6); margin: 0 22px; font-style: normal; font-family: var(--fm); font-size: 12px; }

/* ============================================================
   头部导航
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-head.scrolled { box-shadow: 0 8px 30px rgba(20, 24, 34, 0.1); background: rgba(255, 255, 255, 0.94); }

.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-bolt { width: 34px; height: 34px; background: var(--grad-red); clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%); padding: 6px; fill: #fff; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-family: var(--fd); font-size: 19px; font-weight: 800; letter-spacing: 0.04em; color: var(--txt); }
.brand-txt span { font-family: var(--fm); font-size: 9.5px; color: var(--dim); letter-spacing: 0.18em; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 14.5px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--txt); background: rgba(13, 16, 24, 0.05); }
.nav-link.is-hot { color: var(--txt); }
.nav-link.is-hot::after {
  content: 'HOT';
  position: absolute;
  top: -2px; right: 2px;
  font-family: var(--fm);
  font-size: 8px;
  color: var(--red);
  letter-spacing: 0.1em;
}

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger i { display: block; width: 22px; height: 2px; background: var(--txt); transition: 0.3s; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero.hw { padding: 72px 0 84px; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow.g1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(217, 42, 28, 0.12), transparent 65%); top: -180px; left: -120px; }
.glow.g2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(59, 111, 224, 0.1), transparent 65%); bottom: -220px; right: -80px; }

.streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 42, 28, 0.75), transparent);
  opacity: 0.4;
  transform: rotate(-8deg);
  animation: streak 5.5s linear infinite;
}
.streak.s1 { width: 42vw; top: 22%; left: -45vw; }
.streak.s2 { width: 30vw; top: 48%; left: -35vw; animation-delay: 1.8s; opacity: 0.25; }
.streak.s3 { width: 52vw; top: 72%; left: -55vw; animation-delay: 3.4s; opacity: 0.18; }
@keyframes streak { to { transform: rotate(-8deg) translateX(230vw); } }

.hero-in { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 56px; align-items: center; position: relative; }

.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.hero-stats .stat { padding: 18px 8px 0 0; }
.hero-stats .stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat dt { font-size: 12.5px; color: var(--dim); margin-bottom: 2px; }
.stat dd { font-family: var(--fd); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--txt); }
.stat .num { font-family: inherit; color: var(--txt); }

/* ---------- 活动雷达 ---------- */
.radar { padding: 26px 26px 20px; }
.radar-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.radar-title { font-family: var(--fd); font-weight: 700; font-size: 16px; letter-spacing: 0.05em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 42, 28, 0.45); } 55% { box-shadow: 0 0 0 8px rgba(217, 42, 28, 0); } }
.radar-live { color: var(--red-hi); font-size: 11px; letter-spacing: 0.2em; }

.radar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.radar-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-list li em { color: var(--dim); font-style: normal; font-size: 12px; flex-shrink: 0; }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--line-strong); transform: rotate(45deg); flex-shrink: 0; }
.dot.hot { background: var(--red); box-shadow: 0 0 8px rgba(217, 42, 28, 0.5); }

.radar-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
  color: var(--dim);
  font-size: 11px;
}
.sync-state { color: var(--green); }
.sync-state::before { content: '● '; animation: pulse 2s infinite; }

/* ---------- 华为云页 hero 媒体 ---------- */
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -24px rgba(168, 0, 9, 0.35);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-media::after {
  content: 'HUAWEI CLOUD · FULL STACK';
  position: absolute;
  left: 18px; bottom: 14px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 12, 18, 0.55);
  padding: 6px 12px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.crumbs { display: flex; gap: 10px; color: var(--dim); margin-bottom: 16px; font-size: 12px; }
.crumbs a:hover { color: var(--red-hi); }
.crumbs b { color: var(--muted); font-weight: 500; }

/* ---------- 轮廓字滚动 ---------- */
.ghost-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg2); }
.gm-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.gm-track span {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13, 16, 24, 0.22);
}

/* ============================================================
   活动区
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.promo-card { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.promo-card.is-hot { border-color: rgba(217, 42, 28, 0.35); background: linear-gradient(160deg, #fff7f6, #ffffff 55%); }

.promo-top { display: flex; justify-content: space-between; align-items: center; }
.promo-tag {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-red);
  padding: 3px 12px;
  transform: skewX(-10deg);
}
.promo-remain { color: var(--amber); font-size: 11.5px; }

.promo-title { font-size: 18.5px; font-weight: 700; line-height: 1.35; }
.promo-desc { color: var(--muted); font-size: 13.8px; flex: 1; }
.promo-card .btn { align-self: flex-start; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  transition: 0.25s;
}
.chip span { color: var(--dim); font-size: 12px; font-weight: 400; }
.chip:hover { border-color: var(--red); color: var(--red-hi); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.empty { color: var(--dim); padding: 40px 0; text-align: center; }

/* ============================================================
   卡片组
   ============================================================ */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card { padding: 28px 26px; }
.card-t { font-size: 19px; margin-bottom: 10px; }
.card > p, .card .lead { color: var(--muted); font-size: 14.2px; }
.card-ico { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.6; margin-bottom: 16px; }
.card-list { margin-top: 14px; display: grid; gap: 7px; }
.card-list li { font-size: 13.4px; color: var(--muted); padding-left: 18px; position: relative; }
.card-list li::before { content: '▮'; position: absolute; left: 0; top: 0; color: var(--red); font-size: 10px; line-height: 2.1; }

.band-cta { margin-top: 34px; text-align: center; }

/* ============================================================
   产品矩阵（华为云页）
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.pcard { padding: 26px 26px 22px; }
.pcard-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pcard-ico {
  background: var(--grad-red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  transform: skewX(-10deg);
  letter-spacing: 0.08em;
}
.pcard-head h3 { font-size: 20px; }
.pcard-en { color: var(--dim); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.pcard > p { color: var(--muted); font-size: 14.2px; }
.pcard-scene { margin-top: 14px; font-size: 12.5px; color: var(--dim); border-top: 1px dashed var(--line); padding-top: 12px; }
.pcard-scene::before { content: '适用场景 · '; color: var(--red-hi); font-weight: 600; }

/* ============================================================
   流程步骤
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 22px 18px; }
.step-no { color: var(--red-hi); font-size: 22px; font-weight: 700; display: block; margin-bottom: 10px; }
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13px; }

/* ============================================================
   关于 + 统计
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy .lead { margin-bottom: 16px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stats .stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.stats .stat b { font-family: var(--fd); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); display: block; background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .stat span { color: var(--dim); font-size: 13px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 860px; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--panel); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.faq[open] { border-color: rgba(217, 42, 28, 0.4); box-shadow: var(--shadow-card); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 56px;
  font-family: var(--fd);
  letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--red-hi);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.3s;
  font-family: var(--fm);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 14.4px; }

/* ============================================================
   CTA 带
   ============================================================ */
.cta-band {
  position: relative;
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 110%, rgba(217, 42, 28, 0.12), transparent 70%),
    var(--bg2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.cta-in h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
.cta-in > p { color: var(--muted); margin-bottom: 34px; }
.cta-sub { margin-top: 26px; color: var(--dim); font-size: 10.5px; letter-spacing: 0.3em; }

/* ============================================================
   页脚
   ============================================================ */
.site-foot { border-top: 1px solid var(--line); background: var(--bg2); padding-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-brand p { color: var(--dim); font-size: 13.5px; margin-top: 18px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 14px; letter-spacing: 0.1em; color: var(--txt); margin-bottom: 8px; }
.foot-col a, .foot-col span { color: var(--muted); font-size: 13.5px; transition: color 0.2s; }
.foot-col a:hover { color: var(--red-hi); }
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  color: var(--dim);
  font-size: 11.5px;
}

/* ============================================================
   后台管理
   ============================================================ */
.admin-page { background: var(--bg); min-height: 100vh; }
.admin-wrap { width: min(1080px, 94vw); margin-inline: auto; padding: 48px 0 80px; }

.login-view { min-height: 82vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: min(420px, 92vw); padding: 40px 36px 28px; background: var(--panel); }
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.login-brand b { font-family: var(--fd); font-size: 22px; display: block; }
.login-brand .mono { color: var(--dim); font-size: 10.5px; letter-spacing: 0.24em; }
.login-hint { color: var(--red-hi); font-size: 12.5px; min-height: 20px; margin-top: 14px; }
.login-foot { color: var(--dim); font-size: 10px; letter-spacing: 0.2em; margin-top: 10px; text-align: center; }

.frow { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.frow > span { font-family: var(--fm); font-size: 11.5px; letter-spacing: 0.06em; }
.frow-full { grid-column: 1 / -1; }
.frow-check { flex-direction: row; align-items: center; gap: 9px; }
.frow-check input { width: 17px; height: 17px; accent-color: var(--red); }

.input {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--txt);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { resize: vertical; font-family: inherit; line-height: 1.6; }
.input.mono { font-family: var(--fm); font-size: 13px; }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 42, 28, 0.12); }
.input::placeholder { color: #b3b9c4; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 12px; }
.panel-title h1 { font-size: 22px; font-weight: 800; }

.pw-warn {
  background: #fff8eb;
  border: 1px solid rgba(181, 115, 10, 0.4);
  color: #8a5a06;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 12.5px;
  margin-bottom: 22px;
}

.panel-body { display: grid; gap: 24px; }
.psec { padding: 28px 30px; }
.psec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.psec-head h2 { font-size: 18px; margin-bottom: 4px; }
.psec-head p { color: var(--dim); font-size: 13px; }

.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }

.sub-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 14px; }
.sub-head h3 { font-size: 14.5px; }

.link-row { display: flex; gap: 10px; align-items: flex-start; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--panel2); }
.link-grid { flex: 1; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; }
.link-row .btn-danger { flex-shrink: 0; margin-top: 20px; }

.save-bar { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.save-tip { color: var(--green); font-size: 12px; }

.pitem { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; background: var(--panel2); }
.pitem-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pitem-id { color: var(--dim); font-size: 11px; }
.pitem-src { color: var(--blue); font-size: 11px; }
.pitem-ops { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

.sync-last { color: var(--dim); margin-top: 16px; font-size: 12px; }
.feed-doc { margin-top: 18px; color: var(--dim); font-size: 12.5px; line-height: 2; }
.feed-doc code { background: rgba(217, 42, 28, 0.07); padding: 2px 7px; border-radius: 5px; color: var(--red-hi); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  background: #fff;
  border: 1px solid rgba(14, 154, 84, 0.55);
  color: var(--green);
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transition: 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  z-index: 400;
  box-shadow: 0 16px 50px rgba(20, 24, 34, 0.18);
  max-width: 88vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { border-color: rgba(217, 42, 28, 0.6); color: var(--red-hi); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .radar { max-width: 560px; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    padding: 96px 30px 30px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    border-left: 1px solid var(--line);
    z-index: 200;
  }
  body.nav-open .site-nav { transform: none; }
  body.nav-open .nav-burger { position: relative; z-index: 210; }
  body.nav-open .nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger i:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav .btn { margin-top: 14px; }

  .hero { padding: 64px 0 64px; }
  .product-grid, .cards2, .promo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fgrid, .link-grid { grid-template-columns: 1fr; }
  .link-row .btn-danger { margin-top: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero-stats .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 560px) {
  .sec { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-base { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .psec { padding: 20px 18px; }
}

/* ---------- 减弱动效 ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
}
