/* Relink 官网子页面 · 月面样式（2026-10-04）
   与首页 /homepage/moon.css 同一套配色与字重；所有子页面共用这一份，
   页面自己的组件样式放在各自目录的 CSS 里。 */
:root{
  --deep:#1f1e1c; --shadow:#2a2927; --dust:#b3afa7; --light:#e6e3dc; --signal:#c2f478;
  --ink:#1b2713;
  --glass:rgba(31,30,28,.5); --glass-line:rgba(230,227,220,.14); --hair:rgba(230,227,220,.16);
  --danger:#f0a8a0;
  --mono:"SF Mono","JetBrains Mono","Cascadia Code",Menlo,Consolas,monospace;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--deep);scroll-behavior:smooth;scroll-padding-top:96px;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:var(--deep);color:var(--light);
  font-weight:300;font-size:16px;line-height:1.9;letter-spacing:.01em;
  font-family:"PingFang SC","Hiragino Sans GB","Noto Sans SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;overflow-wrap:anywhere}

/* 月面：与首页同一个 SVG 滤镜，静态铺在页面后面，再压一层暗幕保证正文可读 */
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:
  linear-gradient(180deg,rgba(31,30,28,.5),rgba(31,30,28,.84) 42%,rgba(31,30,28,.95)),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1100'%3E%3Cfilter id='r' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011' numOctaves='6' seed='11'/%3E%3CfeDiffuseLighting surfaceScale='2.6' diffuseConstant='1' lighting-color='%23cfcbc2'%3E%3CfeDistantLight azimuth='215' elevation='32'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E") center top/cover no-repeat var(--deep)}
body::after{content:"";position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.16;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E")}

a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--signal);outline-offset:4px;border-radius:6px}
[hidden]{display:none!important}
.wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 clamp(20px,5vw,48px)}

/* ── 顶栏 / 页脚（所有子页面一致） ── */
.site-header{position:sticky;top:0;z-index:20;background:rgba(31,30,28,.72);-webkit-backdrop-filter:blur(16px) saturate(120%);backdrop-filter:blur(16px) saturate(120%);border-bottom:1px solid var(--glass-line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px 32px;min-height:72px;flex-wrap:wrap;padding-block:14px}
.logo{display:inline-flex;align-items:center;gap:12px;font-weight:400;font-size:18px;letter-spacing:.06em}
.logo svg{width:28px;height:28px;display:block;flex:none}
.logo small{font-size:13px;letter-spacing:.02em;color:var(--dust);padding-left:12px;border-left:1px solid var(--hair)}
.site-header nav{display:flex;flex-wrap:wrap;gap:6px 26px;font-size:14px;color:var(--dust)}
.site-header nav a{padding:4px 0;white-space:nowrap;transition:color .3s}
.site-header nav a:hover,.site-header nav a[aria-current="page"]{color:var(--light)}
.site-header nav a[aria-current="page"]{box-shadow:0 1px 0 var(--signal)}

.site-footer{margin-top:auto;border-top:1px solid var(--glass-line);font-size:13px;color:var(--dust)}
.site-footer .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;padding-block:26px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.site-footer a{transition:color .3s}
.site-footer a:hover{color:var(--light)}

/* ── 正文 ── */
main{width:100%;max-width:1120px;margin:0 auto;padding:clamp(40px,7vw,84px) clamp(20px,5vw,48px) clamp(64px,9vw,110px)}
main.narrow{max-width:880px}
.eyebrow{margin:0 0 14px;font-size:12px;letter-spacing:.22em;color:var(--dust);text-transform:uppercase}
h1,h2,h3{margin:0;text-wrap:balance}
h1{font-weight:200;font-size:clamp(36px,5.6vw,68px);line-height:1.14;letter-spacing:-.02em;margin-bottom:22px}
h2{font-weight:300;font-size:clamp(22px,2.6vw,28px);line-height:1.35;margin-bottom:14px}
h3{font-weight:400;font-size:18px;line-height:1.5;margin:28px 0 8px}
p{margin:0 0 16px}
p,li,dd,td{color:rgba(230,227,220,.8)}
p:last-child{margin-bottom:0}
strong,b{font-weight:500;color:var(--light)}
ul,ol{margin:0 0 16px;padding-left:1.4em}
li{margin:6px 0}
.lead{max-width:42em;font-size:clamp(16px,1.5vw,18px);color:var(--dust);margin-bottom:34px}
.meta,.subtle,.fine,.quiet{font-size:13px;color:var(--dust)}
main a:not(.button):not(.primary):not(.secondary):not(.btn),.inline{color:var(--light);text-decoration:underline;text-decoration-color:rgba(179,175,167,.45);text-underline-offset:5px;transition:color .3s,text-decoration-color .3s}
main a:not(.button):not(.primary):not(.secondary):not(.btn):hover,.inline:hover{color:var(--signal);text-decoration-color:var(--signal)}
code{font-family:var(--mono);font-size:.88em;padding:2px 6px;border-radius:6px;background:rgba(230,227,220,.08);color:var(--light)}
pre{margin:0 0 16px;padding:22px 24px;border-radius:18px;background:rgba(0,0,0,.32);border:1px solid var(--glass-line);overflow-x:auto;font:13.5px/1.9 var(--mono);color:var(--light)}
pre code{padding:0;background:none;font-size:inherit}

/* 按钮：与首页一致的玻璃胶囊，主按钮带信号点 */
.actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 16px}
.button,.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:12px 28px;border-radius:999px;border:1px solid var(--glass-line);background:rgba(230,227,220,.07);color:var(--light);font:inherit;font-size:15px;line-height:1.3;cursor:pointer;-webkit-backdrop-filter:blur(14px) saturate(120%);backdrop-filter:blur(14px) saturate(120%);transition:background .3s,border-color .3s}
.button:hover,.primary:hover,.secondary:hover{background:rgba(230,227,220,.15)}
.button:not(.secondary)::before,.primary::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--signal);box-shadow:0 0 12px var(--signal)}
.button.secondary,.secondary{background:transparent;color:var(--dust)}
.button.secondary:hover,.secondary:hover{color:var(--light);border-color:rgba(230,227,220,.3)}
.button:disabled{opacity:.5;cursor:default}
.button small,.primary small{display:block;font-size:11.5px;color:var(--dust);margin-top:2px}

/* 玻璃面板 */
.sections{display:grid;gap:18px;margin-top:40px}
.panel,.glass,.note{padding:clamp(22px,3vw,32px);border-radius:24px;border:1px solid var(--glass-line);background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(115%);backdrop-filter:blur(22px) saturate(115%)}
.note{padding:18px 22px;border-radius:18px;font-size:14.5px;background:rgba(230,227,220,.05)}
p.note{color:var(--dust)}

/* 折叠问答 */
details{border-top:1px solid var(--hair)}
details:first-child{border-top:0}
summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;font-size:17px;font-weight:400;line-height:1.6;color:var(--light);cursor:pointer;list-style:none;transition:color .3s}
summary::-webkit-details-marker{display:none}
summary::after{content:"";flex:none;width:12px;height:12px;background:linear-gradient(currentColor,currentColor) center/100% 1px no-repeat,linear-gradient(currentColor,currentColor) center/1px 100% no-repeat;transition:transform .3s}
details[open]>summary::after{transform:rotate(45deg)}
summary:hover{color:var(--signal)}
details>p,details>div{padding-bottom:20px;max-width:46em}
.panel>details:first-child>summary{padding-top:0}
.panel>details:last-child:not([open])>summary{padding-bottom:0}

/* 表格 */
.table,.table-wrap,.table-scroll{overflow-x:auto;margin:20px 0;border-radius:16px;border:1px solid var(--glass-line);background:rgba(0,0,0,.18)}
table{border-collapse:collapse;width:100%;min-width:520px;font-size:14px;line-height:1.7}
th,td{text-align:left;vertical-align:top;padding:13px 16px;border-bottom:1px solid var(--hair)}
tr:last-child td{border-bottom:0}
th{font-weight:400;font-size:12.5px;letter-spacing:.04em;color:var(--dust);background:rgba(230,227,220,.04)}

@media (max-width:640px){
  body{font-size:15px}
  .site-header .wrap{min-height:0}
  .site-header nav{gap:4px 18px;font-size:13px}
  .actions{flex-direction:column}
  .actions>*{width:100%}
  summary{font-size:16px;padding:16px 0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* 隐私政策等长文 */
.legal h2{margin-top:46px;padding-top:28px;border-top:1px solid var(--hair)}
.legal-end{margin-top:44px;font-size:13px;color:var(--dust)}
@media (max-width:640px){.site-header{position:static}}
