/* PocketShell 官网样式 —— 中英两版共用，改一处两版同时生效。
   放在站点根而不是 /assets/ 是刻意的：_headers 给 /assets/* 挂了 immutable
   长缓存，样式表落进去就再也推不动了。 */
:root {
  --bg: #faf9f6;
  --paper: #fff;
  --ink: #1a1b19;
  --ink2: #4c4e4a;
  --dim: #83857f;
  --line: #e6e4dd;
  --line2: #d8d6cd;
  --accent: #e04000;
  --accent-soft: #fdeee6;
  --ok: #1d9e50;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26,27,25,.05), 0 8px 30px rgba(26,27,25,.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* 顶栏 */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 62px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.nav-links { margin-left: auto; display: flex; gap: 26px; font-size: 14px; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.btn-gh, .btn-lang {
  font-size: 13.5px; font-weight: 600; border: 1px solid var(--line2); border-radius: 99px;
  padding: 7px 16px; background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.btn-gh:hover, .btn-lang:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.btn-lang { white-space: nowrap; }
/* 窄屏收起导航锚点，但语言切换与 GitHub 常驻 —— 切换按钮跟着藏起来就等于没有 */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .btn-lang { margin-left: auto; }
  .nav { gap: 10px; }
}

/* Hero */
.hero { padding: 96px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 38% at 50% 0%, var(--accent-soft), transparent 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  font-size: 13px; color: var(--ink2); background: var(--paper);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; box-shadow: var(--shadow);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  position: relative; margin-top: 28px;
  font-size: clamp(38px, 6.2vw, 68px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub {
  position: relative; margin: 24px auto 0; max-width: 36em;
  font-size: 17.5px; color: var(--ink2);
}
.hero .sub b { color: var(--ink); white-space: nowrap; }
.cta { position: relative; display: flex; justify-content: center; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650;
  border-radius: 99px; padding: 14px 28px; transition: transform .12s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(26,27,25,.22); }
.btn-dark:hover { box-shadow: 0 14px 34px rgba(26,27,25,.3); }
.btn-light { background: var(--paper); border: 1px solid var(--line2); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); }
/* 演示站按钮下的一行小注：说明「点进去不用装东西」，降低点击门槛 */
.cta-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--ink2); }

/* 手机样机 */
.phones { position: relative; display: flex; justify-content: center; gap: 28px; margin-top: 72px; }
.phone {
  width: 240px; border-radius: 34px; background: var(--ink); padding: 9px;
  box-shadow: 0 30px 70px rgba(26,27,25,.22), 0 4px 12px rgba(26,27,25,.1);
}
.phone:nth-child(2) { transform: translateY(28px); }
.phone:nth-child(3) { transform: translateY(56px); }
/* height:auto 是必需的：HTML 上有 width/height 属性（给浏览器算 CLS 用），
   不显式置 auto 的话 height 会取属性值 2712px，aspect-ratio 直接失效，图被拉成细条 */
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; aspect-ratio: 9/19.2; object-fit: cover; object-position: top; }
@media (max-width: 860px) {
  .phones { gap: 16px; }
  .phone { width: 31%; }
  .phone:nth-child(3) { display: none; }
  .phone:nth-child(2) { transform: translateY(20px); }
}

/* 数字条 */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -1px; font-family: var(--mono); }
.stat .n i { font-style: normal; color: var(--accent); }
.stat .l { font-size: 13px; color: var(--dim); margin-top: 4px; }
@media (max-width: 720px) { .stats-in { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } .stat:nth-child(-n+2) { border-top: 0; } }

section { padding: 96px 0; scroll-margin-top: 62px; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -1px; line-height: 1.16; margin-top: 12px; font-weight: 800; }
.sec-head p { color: var(--ink2); margin-top: 14px; font-size: 16px; }

/* 核心场景：左右交替 */
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 40px 0; }
.scenario + .scenario { border-top: 1px solid var(--line); }
.scenario.rev .s-text { order: 2; }
@media (max-width: 860px) { .scenario { grid-template-columns: 1fr; gap: 32px; } .scenario.rev .s-text { order: 0; } }
.s-text h3 { font-size: 24px; letter-spacing: -.5px; margin-bottom: 12px; }
.s-text p { color: var(--ink2); font-size: 15.5px; }
.s-text ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.s-text li { list-style: none; display: flex; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.s-text li::before { content: "→"; color: var(--accent); font-weight: 700; }
.s-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; font-family: var(--mono); font-size: 13px; line-height: 1.9;
}
.s-card .row { display: flex; align-items: center; gap: 10px; }
.s-card .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.s-card .st.run { background: var(--ok); }
.s-card .st.wait { background: #d9a100; }
.s-card .st.idle { background: #b9bbb3; }
.s-card .name { font-weight: 700; color: var(--ink); }
.s-card .prev { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-card hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.notify-card { font-family: var(--sans); }
.notify-card .n-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.notify-card .n-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.notify-card .n-title { font-weight: 700; margin-top: 12px; font-size: 15px; }
.notify-card .n-body { color: var(--ink2); font-size: 13.5px; margin-top: 4px; }

/* 功能网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line2); }
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.card h3 { font-size: 16.5px; margin: 18px 0 8px; letter-spacing: -.2px; }
.card p { font-size: 14px; color: var(--ink2); }

/* 快速开始 */
.quick { background: var(--ink); color: #f2f1ed; border-radius: 24px; padding: 64px; margin-bottom: 96px; }
.quick h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.8px; }
.quick .q-sub { color: #a3a49e; margin-top: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; align-items: start; }
@media (max-width: 860px) { .quick-grid { grid-template-columns: 1fr; } .quick { padding: 40px 28px; } }
.q-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.q-step:last-child { border: 0; }
.q-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.q-step h4 { font-size: 15px; }
.q-step p { font-size: 13.5px; color: #a3a49e; margin-top: 2px; }
.term-light {
  background: #101214; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  font-family: var(--mono); font-size: 13px; overflow: hidden;
}
.term-light .t-bar { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #6d6f6a; font-size: 12px; }
.copy-btn { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.18); color: #b9bbb3; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: #fff; }
.term-light pre { padding: 16px 18px; color: #c9cdc4; line-height: 1.85; overflow-x: auto; }
.term-light .c { color: #5d615c; }
.term-light .p { color: #ff7a40; }

/* 功能轮播 */
.carousel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.car-phone {
  width: 330px; border-radius: 42px; background: var(--ink); padding: 11px;
  box-shadow: 0 24px 56px rgba(26,27,25,.2), 0 3px 10px rgba(26,27,25,.1);
  position: relative; flex: none;
}
/* 画框取截图原始比例 1220×2712，整屏完整显示、不裁任何一处 */
.car-track { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1220/2712; background: #0a0a0a; }
.car-track img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity .45s ease;
}
.car-track img.on { opacity: 1; }
.car-cap { font-size: 14px; color: var(--ink2); text-align: center; min-height: 1.6em; transition: opacity .2s; }
.car-cap b { color: var(--ink); font-weight: 650; }
.car-dots { display: flex; gap: 9px; }
.car-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line2); cursor: pointer; transition: background .2s, transform .2s;
}
.car-dots button:hover { background: var(--dim); }
.car-dots button[aria-current="true"] { background: var(--accent); transform: scale(1.35); }
.scenario.stack { gap: 44px; justify-items: center; }
.scenario.stack .s-text { max-width: 46em; text-align: center; }
.scenario.stack .s-text ul { display: inline-flex; text-align: left; margin-top: 20px; }
@media (max-width: 860px) {
  .car-phone { width: min(300px, 82vw); }
  .scenario.stack .s-text { text-align: left; }
  .scenario.stack .s-text ul { display: flex; }
}

/* vs SSH 对比表 */
.vs {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.vs-row { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; align-items: stretch; }
.vs-row + .vs-row { border-top: 1px solid var(--line); }
.vs-row > div { padding: 18px 22px; font-size: 14.5px; color: var(--ink2); }
.vs-row > div + div { border-left: 1px solid var(--line); }
.vs-row .k { font-weight: 650; color: var(--ink); font-size: 14px; }
.vs-head > div { padding: 14px 22px; font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--dim); background: #fbfaf7; }
.vs-head .mine { color: var(--accent); }
.vs-row .mine { color: var(--ink); }
.vs-row .mine::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.vs-note { margin-top: 22px; font-size: 15px; color: var(--ink2); }
.vs-note b { color: var(--ink); }
@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { padding: 12px 20px; }
  .vs-row > div + div { border-left: 0; }
  .vs-row .k { padding-bottom: 4px; padding-top: 18px; }
  /* 窄屏没有表头了，左列要自己交代这句是谁说的。文案由页面写在 data-them 上 */
  .vs-row .them::before { content: attr(data-them); color: var(--dim); font-weight: 700; }
  .vs-row .mine { padding-top: 4px; }
}

/* 安全 strip */
.sec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .sec-strip { grid-template-columns: repeat(2, 1fr); } }
.sec-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.sec-item h4 { font-size: 15.5px; }
.sec-item p { font-size: 13.5px; color: var(--ink2); margin-top: 6px; }

.final { text-align: center; padding: 110px 0; }
.final h2 { font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -1.4px; line-height: 1.1; }
.final p { color: var(--ink2); margin: 18px auto 36px; max-width: 32em; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--dim); }
.foot { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.foot .sp { margin-left: auto; }
.foot a:hover { color: var(--ink); }
