/* 应用中心官网 — 共享样式（首页 + 应用详情页）
   设计语言：暖奶油底 + 十应用专属色 + 大圆角卡片 + 轻阴影
   零外部依赖（内网部署，无 CDN 字体/图标） */

:root {
  --cream: #FBF8F3;       /* 全站暖奶油底 */
  --paper: #FFFFFF;
  --ink: #1C1917;         /* 深炭暖黑 */
  --ink-soft: #57534E;    /* 正文灰 */
  --ink-faint: #A8A29E;   /* 元信息灰 */
  --warm-black: #17140F;  /* 数字带/页脚暖黑 */
  --hairline: #EAE5DC;
  --orange: #F97316;      /* 平台点缀色（行动感） */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--cream); color: var(--ink);
  font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ---------- 小件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--orange)); }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: 0.01em; line-height: 1.3; }
.sub { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  font-size: 14px; font-weight: 600; padding: 12px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(28,25,23,.18); }
.btn-dark:hover { background: #000; }
.btn-line { border: 1.5px solid #D6D0C6; color: var(--ink); background: rgba(255,255,255,.6); }
.btn-line:hover { border-color: var(--ink); }
.pill {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  border: 1px solid #D6D0C6; border-radius: 999px; padding: 4px 13px; white-space: nowrap;
}

/* ---------- 顶栏（sticky 毛玻璃） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,243,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 900; }
.brand .mark { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.topnav a:hover { color: var(--ink); }
.topnav .btn { padding: 8px 18px; font-size: 13px; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 92px 0 72px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px); font-weight: 900; line-height: 1.22;
  letter-spacing: 0.01em; margin-bottom: 22px;
}
.hero h1 .rainbow {
  background: linear-gradient(90deg, #4F46E5 0%, #F43F5E 30%, #F97316 55%, #16A34A 78%, #0EA5E9 100%);
  background-repeat: no-repeat; background-size: 100% 0.22em; background-position: 0 88%;
  padding-bottom: 0.06em;
}
.hero .desc { font-size: 16px; color: var(--ink-soft); max-width: 560px; margin-bottom: 34px; }
.hero .desc b { color: var(--ink); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 7px 16px 7px 12px;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip:hover { transform: translateY(-2px); border-color: var(--c); color: var(--ink); }
.chip.plain { opacity: .62; }
.chip.plain i { background: #A8A29E; }

/* ---------- 首页数字带 ---------- */
.stats { background: var(--warm-black); color: #fff; border-radius: 28px; margin: 26px 0 0; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 36px; border-left: 1px solid rgba(255,255,255,.09); }
.stat:first-child { border-left: none; }
.stat b {
  display: block; font-size: 54px; font-weight: 900; line-height: 1.1; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #FDE68A, #F97316); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .t { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.stat .d { font-size: 12.5px; color: #A8A29E; margin-top: 3px; }

/* ---------- 首页应用橱窗 ---------- */
.apps { padding: 96px 0 90px; }
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.apps-head .sub { max-width: 420px; }
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.app-card {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
a.app-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(28,25,23,.12); }
.card-art {
  position: relative; height: 150px; background: var(--c, #E7E4DD);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* 应用 logo（白色图形，居中主视觉） */
.card-art .logo {
  width: 104px; height: 104px; position: relative; z-index: 2;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.2)); transition: transform .25s ease;
}
a.app-card:hover .card-art .logo { transform: scale(1.07); }
/* 汉字单字退为背景水印 */
.card-art .big {
  position: absolute; right: -4px; bottom: -34px; z-index: 1;
  font-size: 150px; font-weight: 900; color: rgba(255,255,255,.14); line-height: 1;
  transition: transform .25s ease; pointer-events: none;
}
a.app-card:hover .card-art .big { transform: scale(1.05) rotate(-2deg); }
.card-art .num {
  position: absolute; top: 14px; right: 18px; z-index: 3; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.75); letter-spacing: 0.1em;
}
.app-card.dim .card-art .big { color: rgba(0,0,0,.07); }
.app-card.dim .card-art .logo { filter: none; }
.app-card.dim .card-art svg :is(path, rect, circle) { fill: #8A857E; }
.app-card.dim .card-art .num { color: rgba(0,0,0,.35); }
.card-body { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 800; }
.card-body h3 small { font-size: 12px; font-weight: 500; color: var(--ink-faint); margin-left: 9px; letter-spacing: 0.05em; }
.card-body p { font-size: 14px; color: var(--ink-soft); flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.card-meta .m { font-size: 12px; color: var(--ink-faint); }
.go { font-size: 13.5px; font-weight: 700; color: var(--c, var(--ink)); }
a.app-card:hover .go { text-decoration: underline; text-underline-offset: 5px; }
.app-card.dim { opacity: .78; }
.app-card.dim:hover { transform: none; box-shadow: none; }

/* ---------- 首页入口区 ---------- */
.entries { padding: 0 0 100px; }
.entries .panel { background: #F3EFE7; border-radius: 28px; padding: 64px 56px 58px; }
.entries-head { margin-bottom: 40px; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.entry {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.entry:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(28,25,23,.11); }
.entry .no {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #fff; background: var(--c); margin-bottom: 8px;
}
.entry h3 { font-size: 17.5px; font-weight: 800; }
.entry p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.entry .go { font-size: 13.5px; font-weight: 700; margin-top: 12px; }
a.entry:hover .go { text-decoration: underline; text-underline-offset: 5px; }

/* ================= 详情页 ================= */
.d-hero { padding: 54px 0 44px; }
.d-banner {
  --c: #4F46E5;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 72%, #1C1917));
  border-radius: 30px; color: #fff; padding: 52px 54px;
  display: flex; align-items: center; gap: 44px; overflow: hidden; position: relative;
}
.d-banner .glyph {
  width: 138px; height: 138px; flex-shrink: 0;
  filter: drop-shadow(0 16px 44px rgba(0,0,0,.28)); position: relative; z-index: 2;
}
/* banner 背景汉字水印 */
.d-banner .wall {
  position: absolute; right: 18px; bottom: -52px; z-index: 1; pointer-events: none;
  font-size: 290px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.1);
}
.d-banner .info { flex: 1; min-width: 0; }
.d-banner .no { font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; color: rgba(255,255,255,.72); margin-bottom: 10px; }
.d-banner h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.25; }
.d-banner h1 small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: rgba(255,255,255,.7); margin-top: 6px; }
.d-banner .slogan { font-size: 15.5px; color: rgba(255,255,255,.88); margin: 14px 0 22px; max-width: 520px; }
.d-banner .tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-banner .pill { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.d-banner .btn { background: #fff; color: var(--c); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.d-banner .btn:hover { transform: translateY(-2px) scale(1.02); }
.d-banner .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }

.d-body { padding: 30px 0 84px; }
.d-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.d-what h2, .d-feats h2 { font-size: 24px; margin-bottom: 18px; }
.d-what .para { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.d-what .para b { color: var(--ink); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.feat {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 18px 18px 16px;
}
.feat .t { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.feat .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--orange)); flex-shrink: 0; }
.feat p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.d-status {
  background: #F3EFE7; border-radius: 20px; padding: 26px 28px; margin-bottom: 18px;
}
.d-status .t { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.d-status .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #16A34A); }
.d-status p { font-size: 13.5px; color: var(--ink-soft); }
.d-how { background: var(--warm-black); color: #fff; border-radius: 20px; padding: 26px 28px; }
.d-how .t { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.d-how ol { list-style: none; counter-reset: step; }
.d-how li { counter-increment: step; display: flex; gap: 12px; font-size: 13.5px; color: #D6D0C6; padding: 7px 0; }
.d-how li::before {
  content: counter(step); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #FDE68A; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
/* 底部翻页（prev / next 等宽对称，中间返回） */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; padding: 26px 0 0; border-top: 1px solid var(--hairline); margin-top: 26px; }
.pager a, .pager span {
  border: 1px solid var(--hairline); background: var(--paper); border-radius: 14px;
  padding: 15px 20px; font-size: 13.5px; transition: transform .15s ease, border-color .15s ease;
}
.pager a:hover { transform: translateY(-3px); border-color: var(--pc, var(--ink)); }
.pager a b { display: block; font-size: 14.5px; font-weight: 700; }
.pager .prev b { text-align: left; }
.pager .next { text-align: right; }
.pager small { display: block; font-size: 11.5px; color: var(--ink-faint); font-weight: 500; margin-top: 3px; }
.pager .home { border: none; background: none; padding: 10px 14px; text-align: center; color: var(--ink-soft); font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- 页脚 ---------- */
footer { background: var(--warm-black); color: #D6D0C6; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 52px; }
.foot-brand { font-size: 19px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand .mark { width: 20px; height: 20px; display: inline-block; flex-shrink: 0; }
.foot-brand .mark svg { width: 100%; height: 100%; display: block; }
.foot-note { font-size: 13px; line-height: 1.9; color: #A8A29E; max-width: 300px; }
footer h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 15px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 13px; }
footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #78716C;
}

/* ---------- 入场动画 ---------- */
body.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
body.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 访问密码门 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(28,25,23,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.gate.on { opacity: 1; pointer-events: auto; }
.gate-card {
  position: relative; width: min(480px, calc(100vw - 40px)); background: var(--paper);
  border-radius: 26px; padding: 40px 40px 30px; text-align: center;
  box-shadow: 0 30px 80px rgba(28,25,23,.35);
  transform: translateY(14px); transition: transform .2s ease;
}
.gate.on .gate-card { transform: none; }
.gate-card.shake { animation: gate-shake .4s ease; }
@keyframes gate-shake {
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.gate-x {
  position: absolute; top: 14px; right: 18px; border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--ink-faint); padding: 6px;
}
.gate-x:hover { color: var(--ink); }
.gate-lock { width: 52px; height: 52px; margin: 0 auto 10px; display: block; }
.gate-card h3 { font-size: 21px; font-weight: 900; margin-bottom: 18px; }
.gate-qr { display: flex; justify-content: center; margin-bottom: 14px; }
.gate-qr img { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--hairline); display: block; }
.gate-qr-ph {
  width: 150px; height: 150px; border: 2px dashed #D6D0C6; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-faint); background: #F8F5EF;
}
.gate-qr-ph svg { width: 44px; height: 44px; opacity: .5; }
.gate-qr-ph span { font-size: 11.5px; line-height: 1.6; }
.gate-tip { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.gate-tip b { color: var(--ink); }
.gate-form { display: flex; gap: 10px; }
.gate-form input {
  flex: 1; min-width: 0; border: 1.5px solid #D6D0C6; border-radius: 12px;
  padding: 12px 16px; font-size: 14.5px; font-family: inherit; background: #FCFAF6; color: var(--ink);
}
.gate-form input:focus { outline: none; border-color: #4F46E5; }
.gate-form button {
  border: none; border-radius: 12px; padding: 12px 22px; font-size: 14.5px; font-weight: 700;
  font-family: inherit; background: var(--ink); color: #fff; cursor: pointer;
  transition: background .15s ease;
}
.gate-form button:hover { background: #000; }
.gate-err { font-size: 12.5px; color: #DC2626; margin-top: 10px; text-align: left; padding-left: 4px; }
.gate-note { font-size: 12px; color: var(--ink-faint); margin-top: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .apps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(255,255,255,.09); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.09); }
  .entry-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .topnav a.hide-m { display: none; }
  .hero { padding-top: 64px; }
  .d-cols { grid-template-columns: 1fr; gap: 34px; }
  .d-banner { flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px 34px; }
  .d-banner .glyph { width: 92px; height: 92px; }
  .d-banner .wall { font-size: 210px; bottom: -38px; }
  .card-art .logo { width: 84px; height: 84px; }
  .card-art .big { font-size: 122px; bottom: -28px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid rgba(255,255,255,.09); }
  .stat:first-child { border-top: none; }
  .stat b { font-size: 44px; }
  .entries .panel { padding: 44px 24px 40px; }
  .chips { gap: 8px; }
  .chip { font-size: 12px; padding: 6px 12px 6px 10px; }
  .feat-grid { grid-template-columns: 1fr; }
  .d-banner { padding: 32px 24px; }
}
