/* ==========================================================================
   Shadowrocket 官方下载站 · 基础层
   设计令牌 / reset / 排版 / 按钮 / 页头 / 页脚 / 通用面板 / 首屏装置
   ========================================================================== */

:root{
  /* ---- 深蓝海港调色板 ---- */
  --bg:#22619a;
  --bg-panel:#2f74ad;
  --bg-panel-bright:#3a7fb6;
  --bg-panel2:#17456f;
  --border:#4d89ba;
  --accent:#3aa9e4;
  --accent-hover:#2f9bda;
  --accent-soft:#7cc8ee;
  --accent-dark:#1778c4;
  --text:#f3f8fc;
  --text-muted:#c6dcee;
  --success:#4cc38a;
  --warn:#f0c04a;
  --error:#f2707f;

  /* ---- 装饰性强调色(仅几何装饰) ---- */
  --accent-warm:#f0c04a;
  --accent-coral:#f2707f;

  /* ---- 白底分区令牌 ---- */
  --bg-light:#ffffff;
  --bg-light-panel:#f4f8fc;
  --text-on-light:#0f3552;
  --text-on-light-muted:#4f7391;
  --text-on-light-body:#2b5474;
  --border-light:#dbe6ef;
  --chev:#a9c0d3;

  /* ---- 半透明工艺值 ---- */
  --hairline:rgba(77,137,186,.34);
  --hairline-soft:rgba(77,137,186,.20);
  --grid-line:rgba(77,137,186,.08);
  --surface-hi:rgba(255,255,255,.10);
  --header-bg:rgba(23,69,111,.46);
  --menu-bg:rgba(17,54,88,.97);
  --panel-solid:#113655;
  --veil:rgba(23,69,111,.42);
  --hover-veil:rgba(255,255,255,.07);
  --active-veil:rgba(58,169,228,.16);
  --active-ring:rgba(58,169,228,.34);
  --dot-halo-accent:rgba(58,169,228,.18);
  --dot-halo-success:rgba(76,195,138,.16);
  --dot-halo-warn:rgba(240,192,74,.18);
  --dot-halo-error:rgba(242,112,127,.18);
  --veil-scrim:rgba(6,32,54,.52);
  --glow-stage:radial-gradient(closest-side,rgba(58,169,228,.24),rgba(58,169,228,0));
  --ipad-face:linear-gradient(158deg,var(--bg-panel),var(--bg-panel2));
  --ipad-hi:radial-gradient(78% 88% at 24% 18%,rgba(243,248,252,.14),rgba(243,248,252,0) 66%);
  --surface-a-face:radial-gradient(122% 132% at 26% 12%,var(--bg-panel),var(--bg) 72%);
  --surface-b-face:radial-gradient(112% 122% at 70% 8%,var(--bg-panel-bright),var(--bg-panel) 72%);

  /* ---- 投影 ---- */
  --shadow-float:0 26px 64px rgba(6,32,54,.38);
  --shadow-near:0 6px 18px rgba(6,32,54,.20);
  --shadow-surface:0 30px 70px rgba(6,32,54,.24);
  --shadow-btn:0 14px 30px rgba(6,32,54,.34);
  --shadow-mark:0 8px 18px rgba(6,32,54,.28);
  --shadow-soft:0 12px 34px rgba(15,53,82,.10);

  /* ---- 圆角 ---- */
  --radius-card:28px;
  --radius-surface:96px;
  --radius-surface-2:84px;
  --radius-surface-3:72px;
  --radius-section:48px;
  --radius-panel:24px;
  --radius-btn:14px;
  --radius-chip:10px;
  --radius-pill:999px;
  --radius-shot:10px;

  /* ---- 字体栈 ---- */
  --font-display:Georgia,'Iowan Old Style','Songti SC','Noto Serif CJK SC','Source Han Serif SC','Hiragino Mincho ProN','Yu Mincho','Batang',serif;
  --font-body:Inter,'Noto Sans SC','Noto Sans JP','Noto Sans KR',-apple-system,'PingFang SC','Hiragino Sans','Microsoft YaHei',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;

  /* ---- 版心与节奏 ---- */
  --wrap:1240px;
  --header-h:74px;
  --gutter:32px;
  --header-max:min(100%,calc(1280px + var(--gutter) * 2));
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box;}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body{
  margin:0;
  overflow-x:clip;
  background-color:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,svg,video{display:block;max-width:100%;}
img{height:auto;}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:0;}
ul,ol{margin:0;padding:0;}
figure{margin:0;}
table{border-collapse:collapse;}
hr{border:0;border-top:1px solid var(--hairline);margin-block:32px;}

:focus-visible{outline:2px solid var(--accent-soft);outline-offset:2px;border-radius:4px;}

.visually-hidden{
  position:absolute;width:1px;height:1px;
  margin:-1px;padding:0;border:0;
  clip:rect(0 0 0 0);clip-path:inset(50%);
  overflow:hidden;white-space:nowrap;
}

/* ==========================================================================
   版心与分区
   ========================================================================== */

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.section{
  position:relative;
  overflow-x:clip;
  padding-top:80px;
  padding-bottom:80px;
}

.section--tight{padding-top:56px;padding-bottom:56px;}
.section--deep{background-color:var(--bg);color:var(--text);}
.section--deep2{background-color:var(--bg-panel2);color:var(--text);}
.section--light{
  background-color:var(--bg-light);
  color:var(--text-on-light);
  border-radius:var(--radius-section) var(--radius-section) 0 0;
}
.section--light + .section--light{border-radius:0;}

.section-head{max-width:760px;margin-inline:auto;text-align:center;}
.eyebrow{
  margin:0;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.section--light .eyebrow{color:var(--text-on-light-muted);}

.section-title{
  margin:14px 0 0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.5rem,2.6vw,2.15rem);
  line-height:1.18;
  letter-spacing:-.004em;
  text-wrap:balance;
}
.section-lede{
  margin:16px 0 0;
  font-size:15.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.section--light .section-lede{color:var(--text-on-light-muted);            }

/* ==========================================================================
   排版
   ========================================================================== */

h1,h2,h3,h4{
  margin:0;
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.004em;
}
h1{font-size:clamp(2.125rem,3.4vw,3rem);line-height:1.1;}
h2{font-size:clamp(1.5rem,2.6vw,2.15rem);line-height:1.18;}
h3{font-size:clamp(1.125rem,1.6vw,1.375rem);line-height:1.3;}
h4{font-size:1.0625rem;line-height:1.35;}

p{margin:0 0 1em;}
p:last-child{margin-bottom:0;}

strong{font-weight:600;color:var(--text);}
.section--light strong{color:var(--text-on-light);}

.mono{font-family:var(--font-mono);}
.muted{color:var(--text-muted);}
.section--light .muted{color:var(--text-on-light-muted);}
.nowrap{white-space:nowrap;}

code{
  font-family:var(--font-mono);
  font-size:.92em;
  overflow-wrap:anywhere;
  word-break:break-word;
}

pre{
  margin:0;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-block:16px;
  padding-inline:18px;
  border-radius:16px;
  background-color:var(--bg-panel2);
  color:var(--text);
  border:1px solid var(--hairline);
  font-family:var(--font-mono);
  font-size:13px;
  line-height:1.75;
}
pre code{background:none;padding:0;color:inherit;font-size:1em;}
.section--light pre{background-color:var(--text-on-light);color:#eaf3fb;border-color:var(--text-on-light);}

.link-inline{
  color:var(--accent-soft);
  text-decoration:underline;
  text-decoration-color:var(--active-ring);
  text-underline-offset:3px;
}
.link-inline:hover{text-decoration-color:var(--accent-soft);}
.section--light .link-inline{color:var(--accent-dark);text-decoration-color:rgba(23,120,196,.4);}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:52px;
  height:52px;
  padding-inline:24px;
  border-radius:var(--radius-btn);
  font-family:var(--font-body);
  font-size:15px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .18s ease,transform .18s ease,border-color .18s ease;
}

.btn-primary{
  background-color:var(--accent-dark);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:var(--shadow-btn),inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover,.btn-primary.is-demo-hover{background-color:var(--accent-hover);transform:translateY(-1px);}

.btn-ghost{
  background-color:var(--veil);
  color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover,.btn-ghost.is-demo-hover{background-color:var(--bg-panel2);transform:translateY(-1px);}

.btn-quiet{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  font-size:14.5px;
  font-weight:600;
  color:var(--accent-soft);
  text-decoration:none;
}
.btn-quiet:hover{color:var(--text);}
.section--light .btn-quiet{color:var(--accent-dark);}
.section--light .btn-quiet:hover{color:var(--text-on-light);}

.btn[disabled],.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed;}

.apple-mark{width:16px;height:16px;fill:currentColor;flex-shrink:0;}
.arrow-icon{
  width:15px;height:15px;flex-shrink:0;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}

/* ==========================================================================
   页头
   ========================================================================== */

.site-header{
  position:relative;
  z-index:30;
  height:var(--header-h);
  background-color:var(--header-bg);
  border-bottom:1px solid var(--hairline-soft);
}

.header-inner{
  width:100%;
  max-width:var(--header-max);
  margin-inline:auto;
  height:100%;
  padding-inline:var(--gutter);
  display:flex;
  align-items:center;
  gap:22px;
}

.brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;}
.brand-mark{
  flex-shrink:0;
  width:38px;height:38px;
  border-radius:12px;
  box-shadow:var(--shadow-mark);
}
.brand-text{display:flex;flex-direction:column;gap:1px;min-width:0;}
.brand-name{font-size:15px;font-weight:600;line-height:1.2;letter-spacing:.01em;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.brand-sub{
  font-family:var(--font-mono);
  font-size:10.5px;line-height:1.2;letter-spacing:.04em;
  color:var(--text-muted);
}

.main-nav{margin-left:auto;}
.nav-list{
  display:flex;
  align-items:center;
  list-style:none;
  margin:0;
  padding:0;
  gap:2px;
}
.nav-list > li{display:flex;align-items:center;}

.nav-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding-block:9px;
  padding-inline:13px;
  border-radius:var(--radius-chip);
  background-color:transparent;
  border:0;
  font-family:inherit;
  font-size:14px;
  line-height:1;
  color:var(--text-muted);
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:color .18s ease,background-color .18s ease;
}
.nav-link:hover{color:var(--text);background-color:var(--hover-veil);}
.nav-link.is-active{
  color:var(--text);
  background-color:var(--active-veil);
  box-shadow:inset 0 0 0 1px var(--active-ring);
}
.chev-icon{
  width:13px;height:13px;flex-shrink:0;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}

.nav-more{position:relative;}
.nav-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:180px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:2px;
  border-radius:16px;
  background-color:var(--menu-bg);
  color:var(--text);
  border:1px solid var(--hairline);
  box-shadow:var(--shadow-float),var(--shadow-near);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.nav-more.is-open .nav-menu,
.nav-more:focus-within .nav-menu{opacity:1;visibility:visible;transform:translateY(0);}
.nav-menu a{
  display:block;
  padding-block:10px;
  padding-inline:12px;
  border-radius:10px;
  font-size:13.5px;
  color:var(--text-muted);
  text-decoration:none;
}
.nav-menu a:hover{background-color:var(--hover-veil);color:var(--text);}
.nav-menu a[aria-current="page"]{color:var(--text);background-color:var(--active-veil);}

.header-tools{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.lang-wrap{position:relative;}

.lang{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding-block:9px;
  padding-inline:13px;
  border-radius:var(--radius-chip);
  background-color:var(--veil);
  color:var(--text);
  border:1px solid var(--hairline);
  font-family:inherit;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  transition:border-color .18s ease;
}
.lang:hover{border-color:var(--border);}
.lang-short{display:none;}

.lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:172px;
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:2px;
  border-radius:16px;
  background-color:var(--menu-bg);
  color:var(--text);
  border:1px solid var(--hairline);
  box-shadow:var(--shadow-float),var(--shadow-near);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.lang-wrap.is-open .lang-menu{opacity:1;visibility:visible;transform:translateY(0);}
.lang-item{
  display:block;
  padding-block:10px;
  padding-inline:12px;
  border-radius:10px;
  font-size:13.5px;
  color:var(--text-muted);
  text-decoration:none;
}
.lang-item:hover{background-color:var(--hover-veil);color:var(--text);}
.lang-item.is-current{color:var(--text);background-color:var(--active-veil);}

.nav-burger{
  display:none;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  border-radius:var(--radius-chip);
  background-color:var(--veil);
  border:1px solid var(--hairline);
  cursor:pointer;
}
.burger-bars{display:block;width:18px;height:12px;position:relative;}
.burger-bars span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  border-radius:2px;
  background-color:var(--text);
  transition:transform .2s ease,opacity .2s ease,top .2s ease;
}
.burger-bars span:nth-child(1){top:0;}
.burger-bars span:nth-child(2){top:5px;}
.burger-bars span:nth-child(3){top:10px;}
.nav-burger[aria-expanded="true"] .burger-bars span:nth-child(1){top:5px;transform:rotate(45deg);}
.nav-burger[aria-expanded="true"] .burger-bars span:nth-child(2){opacity:0;}
.nav-burger[aria-expanded="true"] .burger-bars span:nth-child(3){top:5px;transform:rotate(-45deg);}

.nav-drawer{display:none;}
.nav-veil{display:none;}

html.nav-open{overflow:hidden;}

.drawer-title{
  margin:18px 0 6px;
  padding-inline:12px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.drawer-list,.drawer-langs{list-style:none;margin:0;padding:0;}
.drawer-list a,.drawer-langs a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:48px;
  padding-block:10px;
  padding-inline:12px;
  border-radius:12px;
  font-size:15px;
  color:var(--text-muted);
  text-decoration:none;
}
.drawer-list a:hover,.drawer-langs a:hover{background-color:var(--hover-veil);color:var(--text);}
.drawer-list a[aria-current="page"]{color:var(--text);background-color:var(--active-veil);}
.drawer-langs a.is-current{color:var(--text);background-color:var(--active-veil);}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer{
  background-color:var(--bg-panel2);
  color:var(--text-muted);
  border-top:1px solid var(--hairline);
  padding-top:64px;
  padding-bottom:28px;
}
.footer-inner{
  width:100%;
  max-width:var(--header-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);
  gap:40px;
}
.footer-brand{min-width:0;}
.footer-logo{width:44px;height:44px;border-radius:14px;box-shadow:var(--shadow-mark);}
.footer-name{margin:14px 0 0;font-size:15.5px;font-weight:600;color:var(--text);}
.footer-note{margin:8px 0 0;font-size:13.5px;line-height:1.75;max-width:340px;color:var(--text-muted);}
.footer-head{
  margin:0 0 12px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:400;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.footer-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;}
.footer-links a{
  display:inline-block;
  padding-block:7px;
  font-size:13.5px;
  color:var(--text-muted);
  text-decoration:none;
}
.footer-links a:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px;}
.footer-langs{
  margin-top:40px;
  padding-top:22px;
  border-top:1px solid var(--hairline-soft);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 16px;
}
.footer-langs a{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.02em;
  color:var(--text-muted);
  text-decoration:none;
}
.footer-langs a:hover{color:var(--text);}
.footer-langs a.is-current{color:var(--accent-soft);}
.footer-bottom{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--hairline-soft);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 20px;
  font-size:12.5px;
}
.footer-copy{margin:0;color:var(--text-muted);}
.footer-tm{margin:0;color:var(--text-muted);}
.footer-legal{list-style:none;margin:0;padding:0;display:flex;gap:16px;margin-left:auto;}
.footer-legal a{color:var(--text-muted);text-decoration:none;}
.footer-legal a:hover{color:var(--text);}

/* ==========================================================================
   通用面板 / 卡片
   ========================================================================== */

.panel{
  border-radius:var(--radius-panel);
  border:1px solid var(--hairline);
  background-color:var(--veil);
  color:var(--text);
  padding-block:26px;
  padding-inline:28px;
}
.panel--solid{background-color:var(--bg-panel2);border-color:var(--hairline);}
.panel--light{
  background-color:var(--bg-light-panel);
  color:var(--text-on-light);
  border-color:var(--border-light);
}

.card{
  border-radius:var(--radius-panel);
  border:1px solid var(--hairline);
  background-color:var(--veil);
  color:var(--text);
  padding-block:24px;
  padding-inline:24px;
}
.card--light{
  background-color:var(--bg-light);
  color:var(--text-on-light);
  border-color:var(--border-light);
  box-shadow:var(--shadow-soft);
}
.card-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.card-title{margin:0;font-size:1.0625rem;font-family:var(--font-display);font-weight:700;}
.card-body{margin-top:10px;font-size:14.5px;line-height:1.8;}
.card-body p{margin:0 0 .7em;}

.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.grid-2 > *,.grid-3 > *{min-width:0;}

/* ==========================================================================
   首屏
   ========================================================================== */

.hero{
  position:relative;
  overflow:hidden;
  min-height:calc(100vh - var(--header-h) - 64px);
  display:flex;
  align-items:center;
  padding-top:24px;
  padding-bottom:32px;
}
.hero::before{
  content:"";
  position:absolute;
  pointer-events:none;
  right:-6%;
  top:-18%;
  width:66%;
  height:130%;
  background:var(--glow-stage);
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 560px;
  gap:56px;
  align-items:center;
}

.hero-copy{max-width:560px;min-width:0;}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.05em;
  color:var(--text-muted);
}
.dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;}
.dot-accent{background-color:var(--accent);box-shadow:0 0 0 4px var(--dot-halo-accent);}
.dot-success{background-color:var(--success);box-shadow:0 0 0 3px var(--dot-halo-success);}
.dot-warn{background-color:var(--warn);box-shadow:0 0 0 3px var(--dot-halo-warn);}
.dot-error{background-color:var(--error);box-shadow:0 0 0 3px var(--dot-halo-error);}

.hero-title{
  margin:20px 0 0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.125rem,3.3vw,3rem);
  line-height:1.06;
  letter-spacing:-.005em;
}
.h1-accent{color:var(--accent-soft);}

.hero-lede{
  margin:20px 0 0;
  font-size:15.5px;
  line-height:1.75;
  color:var(--text-muted);
}
.hero-lede strong{color:var(--text);font-weight:600;}

.hero-cta{margin-top:30px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;}

.fact-chips{
  margin:24px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding-block:6px;
  padding-inline:12px;
  border-radius:var(--radius-pill);
  background-color:var(--veil);
  color:var(--text-muted);
  border:1px solid var(--hairline);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.02em;
}
.chip--light{
  background-color:var(--bg-light-panel);
  color:var(--text-on-light-muted);
  border-color:var(--border-light);
}

.device-row{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--hairline-soft);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 18px;
}
.device{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.02em;
  color:var(--text-muted);
  text-decoration:none;
  transition:color .18s ease;
}
.device:hover{color:var(--text);}
.dev-icon{
  width:17px;height:17px;flex-shrink:0;
  fill:none;stroke:currentColor;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;
}
.device-pill{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding-block:7px;
  padding-inline:14px;
  border-radius:var(--radius-pill);
  background-color:var(--veil);
  color:var(--text);
  border:1px solid var(--hairline);
  font-family:var(--font-mono);
  font-size:12px;
  text-decoration:none;
  transition:border-color .18s ease;
}
.device-pill:hover{border-color:var(--border);}
.device-pill .apple-mark{width:13px;height:13px;}

/* ---- 右侧装置 ---- */

.stage-wrap{display:flex;align-items:center;justify-content:center;min-width:0;}
.stage{position:relative;flex:0 0 auto;width:560px;height:556px;}

.surface{position:absolute;display:block;}
.surface-a{
  left:-34px;right:-34px;top:26px;height:508px;
  border-radius:var(--radius-surface);
  background:var(--surface-a-face);
  border:1px solid var(--border);
  box-shadow:inset 0 1px 0 var(--surface-hi),var(--shadow-surface);
}
.surface-b{
  left:6px;right:6px;top:66px;height:396px;
  border-radius:var(--radius-surface-2);
  background:var(--surface-b-face);
  border:1px solid var(--hairline);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.surface-c{
  left:46px;right:46px;top:106px;height:296px;
  border-radius:var(--radius-surface-3);
  border:1px solid var(--hairline-soft);
  background-image:
    linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:24px 24px;
  -webkit-mask-image:radial-gradient(118% 100% at 50% 46%,#000 52%,transparent 100%);
  mask-image:radial-gradient(118% 100% at 50% 46%,#000 52%,transparent 100%);
}

.deco{position:absolute;}
.deco-dot-1,.deco-dot-2{width:8px;height:8px;border-radius:50%;background-color:var(--accent-warm);}
.deco-dot-1{right:-6px;top:116px;}
.deco-dot-2{left:-12px;bottom:150px;}
.deco-tri{
  right:26px;bottom:62px;
  width:0;height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-bottom:9px solid var(--accent-coral);
}

.ipad{
  position:absolute;
  left:70px;top:186px;
  width:420px;height:296px;
  border-radius:22px;
  border:2px solid var(--text-on-light);
  background:var(--ipad-face);
  box-shadow:var(--shadow-surface);
  overflow:hidden;
}
.ipad::before{content:"";position:absolute;inset:0;background:var(--ipad-hi);}
.ipad::after{
  content:"";
  position:absolute;
  left:-18%;top:34%;
  width:136%;height:170%;
  border-radius:50%;
  border-top:2px solid rgba(243,248,252,.16);
}

.fcard{
  position:absolute;
  border-radius:var(--radius-card);
  border:1px solid var(--border);
  background-color:var(--bg-light);
  color:var(--text-on-light);
  box-shadow:var(--shadow-float),var(--shadow-near);
  will-change:transform;
}
.fcard-head{display:flex;align-items:center;gap:8px;}
.fcard-title{
  font-family:var(--font-mono);
  font-size:10.5px;
  line-height:1.3;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--text-on-light-muted);
}

.card-settings{left:0;top:122px;width:252px;padding-block:9px;padding-inline:0;}
.card-settings .fcard-head{padding-inline:16px;padding-bottom:9px;}
.slist{margin:0;padding:0;list-style:none;}
.slist li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:38px;
  padding-inline:16px;
  border-top:1px solid var(--border-light);
  font-size:13.5px;
  font-weight:500;
  color:var(--text-on-light);
}
.slist .chev{
  width:13px;height:13px;flex-shrink:0;
  fill:none;stroke:var(--chev);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}

.card-rules{
  left:292px;top:214px;width:268px;
  padding-block:11px;padding-inline:16px;
  background-color:var(--bg-panel2);
  color:var(--text);
}
.card-rules .fcard-head{padding-bottom:9px;}
.card-rules .fcard-title{color:var(--text-muted);}
.rule-lines{
  margin:0;
  font-family:var(--font-mono);
  font-size:11px;
  line-height:1.9;
  white-space:nowrap;
}
.rule-k{color:var(--accent-soft);}
.rule-v{color:var(--text);}
.rule-a{color:var(--accent-warm);}

.card-verify{left:158px;top:412px;width:244px;padding-block:11px;padding-inline:14px;}
.card-verify .fcard-head{padding-bottom:9px;}
.verify-row{display:flex;align-items:center;gap:10px;}
.verify-logo{
  flex:0 0 auto;
  width:34px;height:34px;
  border-radius:10px;
  background-color:var(--bg-light-panel);
  border:1px solid var(--border-light);
  box-shadow:inset 0 1px 0 #fff;
}
.verify-text{display:flex;flex-direction:column;gap:3px;min-width:0;}
.verify-name{font-family:var(--font-mono);font-size:10.5px;line-height:1.35;color:var(--text-on-light);}
.verify-id{font-family:var(--font-mono);font-size:10px;line-height:1.3;color:var(--text-on-light-muted);}

@keyframes floaty{
  0%,100%{transform:translate3d(0,0,0) rotate(0deg);}
  50%{transform:translate3d(0,-6px,0) rotate(.5deg);}
}
.float-1{animation:floaty 7.2s ease-in-out infinite;}
.float-2{animation:floaty 8.4s ease-in-out infinite;animation-delay:-2.6s;}
.float-3{animation:floaty 6.4s ease-in-out infinite;animation-delay:-4.2s;}

/* ==========================================================================
   子页页头(非首页)
   ========================================================================== */

.page-hero{padding-top:64px;padding-bottom:48px;overflow-x:clip;}
.page-title{
  margin:16px 0 0;
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.75rem,3vw,2.6rem);
  line-height:1.14;
}
.page-lede{
  margin:16px 0 0;
  max-width:760px;
  font-size:15.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.page-hero .fact-chips{margin-top:22px;}

/* ==========================================================================
   滚动淡入
   ========================================================================== */

.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .6s ease,transform .6s ease;
}
.reveal.shown{opacity:1;transform:none;}

/* ==========================================================================
   工具类
   ========================================================================== */

.tilt-a{transform:rotate(-1.4deg);}
.tilt-b{transform:rotate(1.2deg);}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width:1279px){
  .hero-grid{grid-template-columns:minmax(0,1fr) 500px;gap:40px;}
  .stage-wrap{height:496px;}
  .stage{transform:scale(.89);transform-origin:center center;}
}

@media (max-width:1140px){
  .main-nav{display:none;}
  .nav-burger{display:inline-flex;}
  .header-tools{margin-left:auto;}
  .nav-drawer{
    position:fixed;
    top:var(--header-h);
    right:0;
    left:0;
    bottom:0;
    z-index:4;
    background-color:var(--panel-solid);
    color:var(--text);
    border-top:1px solid var(--hairline);
    padding-inline:var(--gutter);
    padding-top:12px;
    padding-bottom:28px;
    overflow-y:auto;
    overscroll-behavior:contain;
    max-height:calc(100vh - var(--header-h));
    max-height:calc(100dvh - var(--header-h));
  }
  .nav-veil{
    position:fixed;
    inset:0;
    z-index:3;
    background-color:var(--veil-scrim);
  }
  html.nav-open .nav-drawer{display:block;}
  html.nav-open .nav-veil{display:block;}
}

@media (max-width:1023px){
  .hero{min-height:0;padding-top:40px;padding-bottom:48px;}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:44px;}
  .hero-copy{max-width:640px;}
  .stage-wrap{height:440px;}
  .stage{transform:scale(.79);}
  .brand-sub{display:none;}
  .footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;}
  .footer-brand{grid-column:1 / -1;}
}

@media (max-width:860px){
  .grid-2,.grid-3{grid-template-columns:minmax(0,1fr);}
  .section{padding-top:60px;padding-bottom:60px;}
}

@media (max-width:720px){
  :root{--gutter:20px;--header-h:64px;}
  .wrap,.header-inner,.footer-inner{padding-inline:var(--gutter);}
  .device-pill{margin-left:0;}
  .stage-wrap{height:366px;}
  .stage{transform:scale(.65);}
  .hero-title{font-size:clamp(1.5rem,6.4vw,1.875rem);line-height:1.14;}
  .footer-grid{grid-template-columns:minmax(0,1fr);gap:28px;}
  .footer-legal{margin-left:0;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}

@media (max-width:640px){
  .tilt-a,.tilt-b{transform:none;}
  .lang-full{display:none;}
  .lang-short{display:inline;}
  .btn{width:100%;}
  .hero-cta{gap:10px;}
}

@media (max-width:380px){
  .brand-text{display:none;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .float-1,.float-2,.float-3{animation:none;}
  .reveal{opacity:1;transform:none;transition:none;}
  .btn,.nav-link,.device,.device-pill,.lang,.nav-menu,.lang-menu,.burger-bars span{transition:none;}
}