/* ============================================================
   KlpMC · Human-first polish

   只调整视觉和体验，不改变现有组件契约与业务逻辑。
   原则：中性底色、清晰字阶、克制材质、足够留白、明确动作。
   ============================================================ */

:root {
  --brand: #007a70;
  --brand-hover: #00685f;
  --brand-ink: #007a70;
  --brand-soft: rgba(0, 122, 112, .09);
  --brand-line: rgba(0, 122, 112, .22);
  --wrap: 1180px;
  --wrap-text: 760px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 13px;
  --r-sm: 9px;
  --fs-display: clamp(46px, 6vw, 78px);
  --fs-h2: clamp(31px, 4.2vw, 54px);
  --fs-body: 16px;
  --sec: clamp(88px, 10vw, 148px);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .025), 0 14px 38px rgba(0, 0, 0, .055);
}

[data-theme="light"] {
  --bg-0: #f5f5f7;
  --bg-1: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6e6e73;
  --surface: rgba(0, 0, 0, .025);
  --surface-2: rgba(0, 0, 0, .045);
  --surface-hover: rgba(0, 0, 0, .065);
  --hairline: rgba(0, 0, 0, .11);
  --hairline-2: rgba(0, 0, 0, .075);
  --hair-soft: rgba(0, 0, 0, .06);
  --glass-card-bg: #fff;
  --float-bg: rgba(250, 250, 252, .82);
  --float-border: rgba(0, 0, 0, .055);
  --float-shadow: 0 12px 34px rgba(0, 0, 0, .09);
}

[data-theme="dark"] {
  --bg-0: #090b0c;
  --bg-1: #101314;
  --ink: #f5f5f7;
  --ink-2: #b6b6bb;
  --ink-3: #929297;
  --glass-card-bg: rgba(255, 255, 255, .065);
  --float-bg: rgba(22, 24, 25, .80);
}

body {
  line-height: 1.58;
  letter-spacing: -.008em;
}

/* 玩家进站仪式：只在 entry-boot.js 明确挂上 entry-pending 时出现。 */
html.entry-pending body { overflow: hidden; }
.entry-gate {
  --entry-progress: 0%;
  --entry-x: 50%;
  --entry-y: 46%;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  grid-template-rows: 1fr auto auto auto 1fr;
  place-items: center;
  min-height: 100dvh;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #102321 0, #0a1112 32%, #050708 72%);
  color: #f5f7f7;
  isolation: isolate;
}
/* 跟随鼠标的那团光单独做一层，**只靠 transform 移动**。
   原来是把鼠标坐标写进 background 的 radial-gradient 位置 ——
   那样鼠标每动一下都要重绘整屏渐变，滚起来就是一顿一顿的。 */
.entry-gate::after {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, rgba(0, 193, 174, .13), transparent 30%);
  transform: translate(calc((var(--entry-x, 50%) - 50%) * .12), calc((var(--entry-y, 46%) - 46%) * .12));
  will-change: transform;
  pointer-events: none;
}
.entry-pending .entry-gate { display: grid; }
.entry-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 70%);
  mask-image: radial-gradient(circle at center, #000, transparent 70%);
}
.entry-noise {
  position: absolute;
  inset: -12%;
  z-index: -1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  /* 关键：一定要给 background-size。不给的话浏览器会拿 feTurbulence
     按"元素实际尺寸"去光栅化 —— 这块是 2 倍视口大，首帧直接冻住 600ms 以上。
     铺成 180px 的小瓦片之后，只光栅化一小块然后重复，观感一模一样。 */
  background-size: 180px 180px;
  background-repeat: repeat;
  transform: rotate(8deg);
  pointer-events: none;
}
.entry-skip {
  position: absolute;
  top: 25px;
  right: 28px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .58);
  font: 500 12px/1 var(--font);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.entry-skip:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.entry-orbit {
  position: relative;
  grid-row: 2;
  width: 154px;
  height: 154px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.88);
  transition: opacity .7s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.entry-orbit::before,
.entry-orbit::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(0, 193, 174, .13);
  border-radius: 50%;
}
.entry-orbit::before { inset: 17px; }
.entry-orbit::after { inset: 37px; }
.entry-core {
  font-size: 12px;
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 0 rgba(0, 193, 174, 0), 0 18px 60px rgba(0, 0, 0, .38);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -.04em;
  transform: translate(-50%, -50%);
  transition: background .5s ease, box-shadow .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}
.entry-orbit > span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 0 12px rgba(255, 255, 255, .22);
}
.entry-orbit > span:nth-child(1) { top: 11px; left: 50%; }
.entry-orbit > span:nth-child(2) { top: 50%; right: 11px; }
.entry-orbit > span:nth-child(3) { bottom: 11px; left: 50%; }
.entry-orbit > span:nth-child(4) { top: 50%; left: 11px; }
.entry-copy {
  grid-row: 3;
  max-width: 620px;
  text-align: center;
  opacity: 0;
  transform: translateY(13px);
  transition: opacity .65s .12s ease, transform .85s .12s cubic-bezier(.16, 1, .3, 1);
}
.entry-kicker {
  margin-bottom: 15px;
  color: #27c8b6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
}
.entry-copy h1 {
  margin: 0;
  color: #f7f8f8;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.entry-copy p {
  margin: 17px 0 0;
  color: rgba(238, 242, 242, .58);
  font-size: clamp(13px, 1.6vw, 16px);
}
.entry-start {
  grid-row: 4;
  min-width: 210px;
  min-height: 48px;
  margin-top: 31px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  color: #fff;
  font: 600 13px/1 var(--font);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .65s .22s ease, transform .85s .22s cubic-bezier(.16, 1, .3, 1), background .2s ease, border-color .2s ease;
}
.entry-start:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); }
.entry-start:disabled { cursor: default; }
.entry-start-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ad8c5;
  box-shadow: 0 0 0 5px rgba(58, 216, 197, .09), 0 0 20px rgba(58, 216, 197, .55);
}
.entry-progress-wrap {
  grid-row: 5;
  align-self: start;
  width: min(420px, calc(100vw - 56px));
  margin-top: 27px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .35s ease, transform .45s ease;
}
.entry-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: .035em;
}
.entry-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}
.entry-progress span {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #008f82, #55e5d3);
  box-shadow: 0 0 18px rgba(59, 220, 201, .46);
  /* 用 scaleX 而不是 width：width 每帧都要重新布局，scaleX 只走合成器。
     而且整条进度由一个 CSS 过渡跑完（不是 JS 逐帧改值）——
     首屏那 600ms 的主线程阻塞期间，合成器上的过渡照样丝滑，
     JS 逐帧就会跟着卡住，看起来就是"顿一下"。 */
  transform: scaleX(var(--entry-progress, 0));
  transform-origin: left center;
  transition: transform 1.65s cubic-bezier(.16, .84, .44, 1);
  will-change: transform;
}
.entry-foot {
  position: absolute;
  bottom: 25px;
  left: 50%;
  color: rgba(255, 255, 255, .22);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.entry-gate.is-ready .entry-orbit,
.entry-gate.is-ready .entry-copy,
.entry-gate.is-ready .entry-start { opacity: 1; transform: none; }
/* 提前告诉浏览器"这几个要动"，让它先升成独立图层，省掉首帧临时合成的抖动 */
.entry-orbit,
.entry-copy,
.entry-start,
.entry-progress-wrap { will-change: transform, opacity; }
.entry-gate.is-activated .entry-core {
  background: #008f82;
  box-shadow: 0 0 0 14px rgba(0, 164, 149, .075), 0 0 70px rgba(31, 218, 196, .34);
  transform: translate(-50%, -50%) scale(1.08);
}
.entry-gate.is-activated .entry-orbit { animation: entrySpin 8s linear infinite; }
.entry-gate.is-activated .entry-orbit > span { background: #55e5d3; box-shadow: 0 0 18px rgba(85, 229, 211, .8); }
.entry-gate.is-activated .entry-progress-wrap { opacity: 1; transform: none; }
.entry-gate.is-leaving {
  opacity: 0;
  transform: scale(1.014);
  /* 收得比原来快一点（.68/.72 → .5/.55）：揭幕要干脆，
     拖长了会让人等那半秒，看起来就像"卡一下" */
  transition: opacity .5s ease, transform .55s cubic-bezier(.4, 0, 1, 1);
  pointer-events: none;
}
@keyframes entrySpin { to { transform: rotate(360deg); } }

.ambient {
  background: linear-gradient(180deg, var(--bg-1) 0, var(--bg-0) 560px, var(--bg-0) 100%);
}
.ambient-glow:nth-child(1) { opacity: .5; }
.ambient-glow:nth-child(2) { opacity: .3; }
.ambient-glow:nth-child(3) { opacity: .22; }
.ambient-grain { opacity: calc(var(--grain) * .42); }

/* 顶栏像系统栏一样安静，不再是一颗悬浮的大胶囊。 */
.nav {
  padding: 0;
  background: var(--float-bg);
  border-bottom: 1px solid var(--float-border);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
.nav .wrap { width: min(var(--wrap), 100% - 36px); }
.nav-inner,
.nav.is-scrolled .nav-inner,
.nav:not(.is-scrolled) .nav-inner {
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-inner.glass--sheen::after { display: none; }
.logo {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 9px;
  background: var(--brand);
  box-shadow: none;
}
.brand-name { font-size: 14px; }
.brand-tag { opacity: .72; }
.nav-links a,
.nav-drop-btn { font-size: 13px; }
.nav-links a.active { background: transparent; color: var(--brand); }
.nav-links a:hover,
.nav-drop-btn:hover,
.nav-drop.open .nav-drop-btn { background: var(--surface-2); }

.btn {
  min-height: 42px;
  padding: 10px 21px;
  border-color: transparent;
  background: var(--surface-2);
  font-size: 14px;
}
.btn:hover { border-color: transparent; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 18px rgba(0, 122, 112, .18);
}
.btn-primary:hover { box-shadow: 0 9px 24px rgba(0, 122, 112, .24); }
.btn-sm { min-height: 34px; padding: 7px 14px; }
.btn-text { color: var(--brand); }

.glass { box-shadow: none; }
[data-theme="light"] .card,
[data-theme="light"] .rule-group,
[data-theme="light"] .announce,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .modpack-card,
[data-theme="light"] .stat,
[data-theme="light"] .side {
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

/* 首页首屏：一次只讲一件事——这是什么，以及如何加入。 */
.hero {
  min-height: auto;
  display: block;
  padding: clamp(82px, 9vw, 116px) 0 54px;
}
.hero::before {
  inset: -56px 0 auto;
  height: 620px;
  background: radial-gradient(52% 54% at 50% 0%, rgba(0, 122, 112, .12), transparent 100%);
}
.hero-center { max-width: 860px; }
.hero-status {
  margin-bottom: 34px;
  padding: 4px 5px 4px 12px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.hero-status .badge { border: 0; background: transparent; padding: 0; }
.hero-status .link-btn {
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.hero-tagline {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 17px;
}
.hero h1 {
  max-width: 12em;
  margin-bottom: 20px;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero .lede {
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
}
.hero-actions { margin: 34px 0 22px; }
.hero-actions .btn { min-width: 118px; }
.ip-box {
  margin: 0 0 20px;
  padding: 9px 9px 9px 20px;
  gap: 13px;
  background: var(--glass-card-bg);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}
.ip-box .label { letter-spacing: .04em; }
.ip-box .ip { font-size: clamp(17px, 1.7vw, 21px); }
.ip-box .btn { background: var(--brand-soft); color: var(--brand); }
.badges { margin-top: 1px; }
.hero .badges .badge {
  padding: 4px 9px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
}
.hero-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}
.banner-stats {
  width: min(960px, 100%);
  margin: 52px auto 0;
  padding: 23px 10px;
  background: var(--glass-card-bg);
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}
.bs-value { font-family: var(--font); font-size: 22px; font-weight: 650; }
.bs-label { color: var(--ink-3); }

.section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .eyebrow,
.eyebrow {
  margin: 0 0 13px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-head h2 { line-height: 1.1; letter-spacing: -.035em; }
.section-head p:not(.eyebrow) { max-width: 34em; }

#sec-tech .section-head { margin-bottom: 31px; }
.tags-center { gap: 10px; }
.tech-tag {
  padding: 9px 16px;
  background: var(--glass-card-bg);
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .035);
}

.band-dark {
  width: min(1280px, calc(100% - 24px));
  padding: clamp(58px, 7vw, 88px) clamp(24px, 5vw, 68px) !important;
  border-radius: 32px;
  background: #101314;
}
[data-theme="dark"] .band-dark { background: #16191a; }
.band-dark .section-head { margin-bottom: 38px; }
.band-dark .grid-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature {
  min-height: 176px;
  padding: 26px;
  border: 0;
  background: rgba(255, 255, 255, .065) !important;
}
.feature:hover { background: rgba(255, 255, 255, .095) !important; transform: translateY(-2px); }
.feature .ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
  font-size: 20px;
}
.feature h4 { font-size: 18px; }
.feature p { font-size: 14px; color: var(--ink-2); }
.band-dark .stat-strip { padding-bottom: 0; }
.ss-value { font-family: var(--font); }

.nav-acc { border: 0; box-shadow: var(--shadow-card); }
.acc-row { min-height: 60px; padding: 18px 22px; }
.acc-row:hover,
.acc-item:hover { background: var(--surface); }
.acc-name { font-weight: 600; }
.acc-item { padding-left: 28px; }

.rule-preview {
  max-width: 820px;
  padding: 8px 25px;
  border-radius: var(--r-lg);
  background: var(--glass-card-bg);
  box-shadow: var(--shadow-card);
}
.rule-preview li { padding-top: 23px; padding-bottom: 23px; }

.announce { padding: 22px 24px; }
.announce .body { font-size: 14px; }
.testimonial-card { min-height: 210px; padding: 27px; }
.testimonial-card:hover { transform: translateY(-2px); }

.community-card {
  padding: clamp(46px, 7vw, 78px);
  border: 0;
  overflow: hidden;
}
.community-card h2 { font-size: var(--fs-h2); }
.community-card .lede { max-width: 28em; }
.join-path {
  width: min(700px, 100%);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
}
.join-path div { padding: 18px 10px; display: flex; justify-content: center; gap: 9px; align-items: center; }
.join-path div + div { border-left: 1px solid var(--hairline-2); }
.join-path span { color: var(--brand); font-size: 12px; font-weight: 700; }
.join-path b { font-size: 14px; font-weight: 600; }

/* 内页：留白更稳定，内容不贴着导航。 */
.page-pad { padding-top: 92px; }
.crumb { margin-bottom: 20px; }
.rule-group { padding: 28px; }
.rule-group li { font-size: 14px; }

/* 管理后台：一个完整的“工作台”，而不是许多漂浮卡片。 */
.panel-app { --panel-wrap: 1420px; }
.panel-app > .wrap,
.panel-app .nav .wrap { width: min(var(--panel-wrap), calc(100% - 40px)); }
.panel-app .brand-context {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
}
.panel-app .shell {
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 92px);
  margin-top: 20px;
  padding: 10px;
  border: 1px solid var(--hairline-2);
  border-radius: 28px;
  background: color-mix(in srgb, var(--glass-card-bg) 72%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .07);
}
[data-theme="dark"] .panel-app .shell { box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.panel-app .side {
  position: sticky;
  top: 66px;
  align-self: start;
  max-height: calc(100vh - 88px);
  padding: 12px 14px 22px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
.panel-app .side-user {
  margin: 0 0 13px;
  padding: 9px 8px 17px;
}
.panel-app .side-user .name { font-size: 14px; }
.panel-app .side-user .role { font-size: 11px; }
.panel-app .side-section-label {
  margin: 12px 8px 7px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.panel-app .side-hub-list { display: flex; flex-direction: column; gap: 3px; }
.panel-app .side-group {
  min-height: 30px;
  margin: 13px 0 3px;
  padding: 5px 8px;
  letter-spacing: .06em;
}
.panel-app .side-link {
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 11px;
  font-size: 13px;
}
.panel-app .side-hub-link {
  min-height: 54px;
  padding: 8px 9px;
}
.panel-app .side-hub-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.panel-app .side-hub-copy b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-app .side-hub-copy small {
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.2;
}
.panel-app .side-hub-link.active .side-hub-copy small { color: color-mix(in srgb, var(--brand) 72%, var(--ink-3)); }
.panel-app .side-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}
.panel-app .side-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.panel-app .side-link.active:hover { background: var(--brand-soft); color: var(--brand); }
.panel-app .side-link.active .side-icon { background: var(--brand); color: #fff; }
.panel-app .side-link.active .count { background: var(--brand); }
.panel-app .main {
  min-height: calc(100vh - 112px);
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--hairline-2);
  border-radius: 22px;
  background: var(--glass-card-bg);
  overflow: hidden;
}
.panel-app .page-head { margin-bottom: 28px; }
.panel-app .page-head h2 { font-size: clamp(25px, 2.5vw, 34px); }
.panel-app .page-head .muted { font-size: 13px; }
.panel-app .stats { gap: 10px; }
.panel-app .stat {
  min-height: 94px;
  padding: 18px 19px;
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.panel-app .stat .v { font-family: var(--font); font-size: 27px; }
.panel-app .card {
  border-color: var(--hairline-2);
  background: var(--surface);
  box-shadow: none;
}
.panel-app .table-wrap {
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
.panel-app th { padding: 12px 15px; background: var(--surface); }
.panel-app td { padding: 14px 15px; }
.panel-app tbody tr:hover { background: var(--surface); }
.panel-app .tabs { border: 0; padding: 4px; background: var(--surface-2); }
.panel-app .tab { padding: 7px 14px; }
.panel-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.panel-app select,
.panel-app textarea {
  border-color: var(--hairline-2);
  background: var(--glass-card-bg);
}
.panel-app .modal { border: 0; }
.panel-app .reauth-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
}
.panel-app .reauth-note {
  margin-top: 4px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.6;
}

/* 后台两级入口：主页先选板块，板块页再选具体功能。 */
.panel-dashboard-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 18px;
}
.panel-dashboard-intro h3,
.panel-subhead h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 620;
  letter-spacing: -.025em;
}
.panel-dashboard-intro p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.65;
  text-align: right;
}
.panel-section-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.panel-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 38px;
}
.panel-hub-card,
.panel-feature-card {
  position: relative;
  color: var(--ink);
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.panel-hub-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
}
.panel-hub-card:hover,
.panel-feature-card:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--hairline-2));
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface));
  transform: translateY(-2px);
}
.panel-hub-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-hub-icon,
.panel-feature-icon {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink-2);
  font-weight: 650;
  line-height: 1;
}
.panel-hub-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 15px; }
.panel-hub-count,
.panel-hub-ready {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
}
.panel-hub-count { background: color-mix(in srgb, var(--danger) 11%, transparent); color: var(--danger); }
.panel-hub-ready { background: var(--surface-2); color: var(--ink-3); }
.panel-hub-title {
  margin-top: auto;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -.025em;
}
.panel-hub-desc { margin-top: 5px; padding-right: 28px; color: var(--ink-3); font-size: 11.5px; }
.panel-card-arrow {
  position: absolute;
  right: 19px;
  bottom: 18px;
  color: var(--ink-3);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.panel-security-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin: -18px 0 34px;
  padding: 15px 17px;
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.panel-security-summary:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--hairline-2));
  background: color-mix(in srgb, var(--brand-soft) 38%, var(--surface));
}
.panel-security-score {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  text-align: center;
}
.panel-security-summary.has-issues .panel-security-score {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn);
}
.panel-security-score b { font-size: 17px; line-height: 1.1; }
.panel-security-score small { margin-top: 3px; font-size: 8.5px; font-weight: 650; letter-spacing: .05em; }
.panel-security-copy { min-width: 0; display: grid; gap: 3px; }
.panel-security-copy strong { font-size: 13.5px; font-weight: 620; }
.panel-security-copy small { overflow: hidden; color: var(--ink-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.panel-security-action { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.panel-security-action i { font-size: 22px; font-style: normal; font-weight: 300; }
.panel-section-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -7px 0 17px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline-2);
  color: var(--ink-3);
  font-size: 12px;
}
.panel-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.panel-feature-card {
  min-height: 84px;
  padding: 15px 44px 15px 15px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}
.panel-feature-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 12px; }
.panel-feature-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.panel-feature-copy b { font-size: 14px; font-weight: 610; }
.panel-feature-copy small { overflow: hidden; color: var(--ink-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.panel-feature-count {
  min-width: 23px;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}
.panel-feature-card .panel-card-arrow { right: 15px; bottom: 50%; transform: translateY(50%); font-size: 21px; }
.panel-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 15px;
}
.panel-subhead span { color: var(--ink-3); font-size: 11.5px; }

.appearance-fab {
  width: 42px;
  height: 42px;
  right: 18px;
  bottom: 18px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.03em;
}
.appearance-fab:hover { transform: translateY(-2px); }

.footer {
  margin-top: 110px;
  padding-top: 36px;
  background: rgba(0, 0, 0, .018);
}
.footer-col h4 { color: var(--ink-2); }
.footer-bottom { padding-bottom: 4px; }

@media (max-width: 1080px) {
  .nav-burger { border: 0; background: var(--surface-2); }
  .panel-app .shell { grid-template-columns: 1fr; gap: 10px; }
  .panel-app .side { position: static; max-height: none; }
  .panel-app .side-hub-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --fs-display: clamp(42px, 14vw, 64px); --sec: 82px; }
  .nav .wrap { width: calc(100% - 28px); }
  .hero { min-height: auto; padding: 78px 0 46px; }
  .hero-status { margin-bottom: 28px; }
  .hero h1 { font-size: var(--fs-display); }
  .hero .lede { font-size: 18px; }
  .hero-actions { margin-top: 28px; gap: 9px; }
  .hero-actions .btn { min-width: 0; }
  .hero-actions .btn-text { width: 100%; justify-content: center; margin-top: 5px; }
  .ip-box { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; padding-left: 16px; }
  .ip-box .label { grid-column: 1 / -1; margin-bottom: -8px; }
  .banner-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; padding: 24px 8px; }
  .bs-item:nth-child(even) { border-left: 1px solid var(--hairline-2); }
  .band-dark { border-radius: 24px; }
  .feature { min-height: 0; }
  .join-path { grid-template-columns: 1fr; }
  .join-path div + div { border-left: 0; border-top: 1px solid var(--hairline-2); }
  .community-card { padding-left: 22px; padding-right: 22px; }
  .footer { margin-top: 78px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .panel-app > .wrap,
  .panel-app .nav .wrap { width: calc(100% - 20px); }
  .panel-app .brand-context { display: none; }
  .panel-app .shell { margin-top: 10px; padding: 6px; border-radius: 22px; }
  .panel-app .main { padding: 22px 16px; border-radius: 17px; }
  .panel-app .side-hub-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .panel-app .side-hub-list::-webkit-scrollbar { display: none; }
  .panel-app .side-hub-link { min-width: 148px; scroll-snap-align: start; }
  .panel-app .side-hub-copy small { display: none; }
  .panel-dashboard-intro { align-items: start; flex-direction: column; gap: 8px; }
  .panel-dashboard-intro p { text-align: left; }
  .panel-hub-grid,
  .panel-feature-grid { grid-template-columns: 1fr; }
  .panel-hub-card { min-height: 150px; }
  .panel-security-summary { grid-template-columns: auto 1fr; margin-top: -20px; }
  .panel-security-action { display: none; }
  .panel-security-copy small { white-space: normal; }
  .panel-section-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .entry-gate { padding: 24px 20px; }
  .entry-orbit { width: 126px; height: 126px; margin-bottom: 24px; }
  .entry-core { width: 48px; height: 48px; border-radius: 15px; }
  .entry-copy p { max-width: 320px; }
  .entry-start { margin-top: 26px; }
  .entry-foot { bottom: 18px; font-size: 8px; letter-spacing: .13em; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { box-shadow: none; }
  .entry-gate *, .entry-gate { animation: none !important; transition-duration: .01ms !important; }
}
