/* ==========================================================================
   ParrotClient — 官网视觉系统
   纸面 / 冷灰 / 落日橙 · 衬线标题 · Google Fonts
   ========================================================================== */

:root {
  --ink: #1E2A31;
  --ink-2: #33434D;
  --slate: #435966;
  --muted: #5E6D76;
  --faint: #7C8A92;

  --paper: #F6F2E9;
  --paper-deep: #EFE9DC;
  --card: #FCF9F2;
  --mist: #E9EFF2;

  --sun: #C4693B;
  --sun-deep: #A8502A;
  --sun-soft: #E3B194;

  --line: rgba(30, 42, 49, 0.16);
  --line-soft: rgba(30, 42, 49, 0.09);

  --deep: #22333D;

  --max: 1180px;
  --edge: clamp(20px, 5vw, 48px);

  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 7px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
                 0 26px 50px -42px rgba(30, 42, 49, 0.55);

  --font-serif: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC",
                "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 84% -8%, rgba(227, 177, 148, 0.22), transparent 62%),
    radial-gradient(900px 500px at -8% 10%, rgba(186, 207, 213, 0.26), transparent 64%);
  background-attachment: fixed;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

::selection { background: rgba(196, 105, 59, 0.2); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

[id] { scroll-margin-top: 88px; }

.cyber-grid,
.ambient-glow { display: none; }

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

/* ==========================================================================
   顶栏
   ========================================================================== */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 233, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.brand-text { display: inline-flex; align-items: baseline; }

.brand-gradient { color: var(--sun-deep); }

.brand-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}

.pills {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--slate);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pill:hover {
  color: var(--ink);
  background: rgba(30, 42, 49, 0.05);
}

.pill.is-active {
  color: var(--ink);
  background: rgba(30, 42, 49, 0.07);
  font-weight: 500;
}

.pill.pill-primary {
  background: var(--deep);
  color: #F8F4EA;
  padding: 10px 18px;
  font-weight: 500;
  margin-left: 8px;
}

.pill.pill-primary:hover {
  background: var(--sun-deep);
  color: #FFF7EE;
}

.pill.is-account {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--sun-deep);
  font-weight: 500;
}

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px var(--edge) 0;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sun-deep);
  opacity: 0.55;
}

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  color: var(--sun-deep);
  background-image: linear-gradient(transparent 72%, rgba(227, 177, 148, 0.5) 0);
}

.hero-lede {
  max-width: 34em;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.hero-meta strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-meta span + span {
  border-left: 1px solid var(--line-soft);
  padding-left: 24px;
}

.hero-art { margin: 0; }

.hero-art-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #E9EFF0;
  box-shadow: 0 40px 70px -52px rgba(30, 42, 49, 0.6);
}

.hero-art-frame svg { display: block; width: 100%; height: auto; }

.art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, transform 0.22s ease;
}

.btn-primary {
  background: var(--deep);
  color: #F8F4EA;
}

.btn-primary:hover {
  background: var(--sun-deep);
  color: #FFF7EE;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
  flex-direction: row;
}

.btn-ghost:hover {
  border-color: var(--ink-2);
  background: rgba(255, 253, 247, 0.6);
}

.btn-main { display: block; font-size: 14.5px; }

.btn-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 300;
  opacity: 0.68;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   数据条
   ========================================================================== */
.facts {
  width: 100%;
  max-width: var(--max);
  margin: 68px auto 0;
  padding-inline: var(--edge);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fact + .fact { border-left: 1px solid var(--line-soft); }

.fact-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact-value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   章节
   ========================================================================== */
.section { padding-top: 104px; }

.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: 46px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.section-intro {
  justify-self: end;
  max-width: 40em;
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

/* ==========================================================================
   特性
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.feature-card {
  position: relative;
  padding: 30px 24px 32px;
  border-right: 1px solid var(--line-soft);
  transition: background-color 0.25s ease;
}

.feature-card:last-child { border-right: 0; }

.feature-card:hover { background: rgba(255, 253, 247, 0.62); }

.feature-num {
  position: absolute;
  top: 28px;
  right: 22px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--mist);
  color: var(--slate);
}

.feature-icon-box.purple { color: #75658F; background: #EFEBEC; }
.feature-icon-box.rose { color: #A15C64; background: #F3E9E6; }
.feature-icon-box.blue { color: #4E6A85; background: #E9EEF1; }

.feature-title {
  margin: 16px 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.feature-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.feature-meta {
  display: block;
  margin-top: 16px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   游戏内界面示意
   ========================================================================== */
.client-showcase {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--deep);
  box-shadow: 0 46px 80px -56px rgba(30, 42, 49, 0.85);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(248, 244, 234, 0.09);
  background: rgba(255, 255, 255, 0.025);
}

.window-dots { display: flex; gap: 7px; }

.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.85;
}

.dot-red { background: #CF8A79; }
.dot-yellow { background: #D9BB84; }
.dot-green { background: #9FBE92; }

.showcase-title-bar {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(248, 244, 234, 0.55);
}

.showcase-status-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #A9CFB6;
  border: 1px solid rgba(169, 207, 182, 0.28);
  background: rgba(169, 207, 182, 0.08);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.showcase-body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 30px 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 177, 148, 0.1), transparent 58%),
    var(--deep);
}

.dynamic-island-wrap { display: flex; justify-content: center; }

.dynamic-island {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: #101B21;
  border: 1px solid rgba(248, 244, 234, 0.14);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.9);
}

.island-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: #FFF7EE;
  flex: none;
}

.island-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
}

.island-track {
  font-size: 12.5px;
  font-weight: 500;
  color: #F8F4EA;
  letter-spacing: 0.02em;
}

.island-artist {
  font-size: 10px;
  color: rgba(248, 244, 234, 0.48);
}

.soundwave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin-left: 6px;
}

.soundwave span {
  width: 2.5px;
  border-radius: 99px;
  background: var(--sun-soft);
  animation: wave 1.15s ease-in-out infinite alternate;
}

.soundwave span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.soundwave span:nth-child(2) { height: 16px; animation-delay: 0.35s; }
.soundwave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.soundwave span:nth-child(4) { height: 13px; animation-delay: 0.45s; }

.hud-simulation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hud-brand {
  display: flex;
  align-items: baseline;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #F8F4EA;
}

.hud-brand .brand-gradient { color: var(--sun-soft); }

.hud-specs {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(248, 244, 234, 0.52);
}

.spec-highlight { color: #A9CFB6; }

.hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.hud-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid rgba(248, 244, 234, 0.1);
  background: rgba(248, 244, 234, 0.045);
  color: rgba(248, 244, 234, 0.72);
  white-space: nowrap;
}

.hud-pill.cyan { color: #9CC7D6; border-color: rgba(156, 199, 214, 0.24); }
.hud-pill.indigo { color: #B3BBDF; border-color: rgba(179, 187, 223, 0.24); }
.hud-pill.purple { color: #CDB5DB; border-color: rgba(205, 181, 219, 0.24); }
.hud-pill.emerald { color: #A9CFB6; border-color: rgba(169, 207, 182, 0.24); }

.hud-irc-chat {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid rgba(248, 244, 234, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(248, 244, 234, 0.62);
}

.irc-tag {
  flex: none;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F8F4EA;
  background: rgba(248, 244, 234, 0.13);
  border-radius: 4px;
  padding: 2px 7px;
}

.irc-sender { color: var(--sun-soft); }

/* ==========================================================================
   日志布局
   ========================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

.journal-main,
.journal-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.header-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mist);
  color: var(--slate);
}

.card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.header-hint {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  white-space: nowrap;
}

.side-hint { margin: -8px 0 10px; }

.badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(196, 105, 59, 0.12);
  color: var(--sun-deep);
}

.bilibili-icon-glow {
  background: rgba(227, 108, 143, 0.12);
  color: #B0556F;
}

.bilibili-badge {
  background: rgba(227, 108, 143, 0.1);
  color: #A44E67;
}

.prose {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
  white-space: pre-line;
}

/* ==========================================================================
   开发日志
   ========================================================================== */
.devlog-spotlight {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F2F5F4 0%, #FBF9F3 100%);
}

.devlog-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.devlog-tag-badge {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-deep);
  background: rgba(196, 105, 59, 0.12);
  border-radius: 999px;
  padding: 2px 9px;
}

.devlog-date {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.devlog-title {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.devlog-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.devlog-player-box { margin-top: 16px; }

.player-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #1B272E;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: rgba(248, 244, 234, 0.62);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  background: linear-gradient(165deg, #2B4049 0%, #1B272E 100%);
}

.player-placeholder:hover {
  color: #F8F4EA;
  background: linear-gradient(165deg, #33505A 0%, #1F2E36 100%);
}

.play-btn-circle {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(248, 244, 234, 0.34);
  color: inherit;
}

.player-hint {
  font-size: 11px;
  letter-spacing: 0.05em;
}

.bilibili-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-custom-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(248, 244, 234, 0.7);
}

.player-custom-notice .btn-inline {
  display: inline-block;
  margin-top: 12px;
  color: #F8F4EA;
  border-color: rgba(248, 244, 234, 0.32);
}

.player-custom-notice .btn-inline:hover {
  background: rgba(248, 244, 234, 0.12);
  color: #FFFFFF;
}

.devlog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.btn-play-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--deep);
  color: #F8F4EA;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-play-toggle:hover { background: var(--sun-deep); }

.btn-bili-jump {
  font-size: 12px;
  color: var(--sun-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 105, 59, 0.35);
  padding-bottom: 1px;
}

.btn-bili-jump:hover { border-bottom-color: var(--sun-deep); }

.devlog-history {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.history-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.history-item:last-child { border-bottom: 0; }

.history-item-left {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.history-icon-box {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mist);
  color: var(--slate);
}

.history-icon-box.is-bili {
  background: rgba(227, 108, 143, 0.1);
  color: #B0556F;
}

.history-info { min-width: 0; }

.history-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.history-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 6px;
}

.history-title-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.history-desc {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--faint);
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.history-date {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.btn-history-preview {
  border: 1px solid var(--line);
  background: none;
  border-radius: 6px;
  padding: 4px 9px;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-history-preview:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.btn-history-jump {
  font-size: 10.5px;
  color: var(--sun-deep);
  text-decoration: none;
  white-space: nowrap;
}

/* ==========================================================================
   更新日志时间线
   ========================================================================== */
.changelog { position: relative; }

.entry {
  position: relative;
  padding: 0 0 24px 24px;
  border-left: 1px solid var(--line-soft);
}

.entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-node {
  position: absolute;
  left: -4.5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--card);
}

.entry-body { min-width: 0; }

.entry .head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.entry .ver {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--sun-deep);
  letter-spacing: 0.02em;
}

.entry .date {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}

.entry ul {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.entry li {
  position: relative;
  padding-left: 15px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.entry li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--faint);
}

/* ==========================================================================
   社群链接
   ========================================================================== */
.links { display: flex; flex-direction: column; }

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.link-row:first-child { border-top: 0; padding-top: 2px; }
.link-row:last-child { padding-bottom: 2px; }

.link-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.link-icon-box {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--mist);
  color: var(--slate);
}

.link-row.is-discord .link-icon-box {
  background: rgba(86, 97, 201, 0.1);
  color: #5661C9;
}

.link-row.is-qq .link-icon-box {
  background: rgba(44, 156, 201, 0.1);
  color: #2C89AD;
}

.link-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.link-badge {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.link-text-group .label {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-2);
}

.btn-inline {
  flex: none;
  font-size: 11px;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-inline:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #F8F4EA;
}

/* ==========================================================================
   教学
   ========================================================================== */
.tutorial-video-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--mist);
}

.t-video-info { min-width: 0; }

.t-video-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
}

.t-video-title {
  margin: 5px 0 2px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.t-video-desc {
  margin: 0;
  font-size: 11px;
  color: var(--faint);
}

.btn-video {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--deep);
  color: #F8F4EA;
  font-size: 11.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-video:hover { background: var(--sun-deep); }

.tutorial-prose {
  font-size: 12.5px;
  line-height: 2;
  color: var(--muted);
}

/* ==========================================================================
   开始使用
   ========================================================================== */
.start-band {
  margin-top: 104px;
  padding: 72px 0;
  background: var(--deep);
  color: #F8F4EA;
}

.start-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.start-band .eyebrow { color: var(--sun-soft); }
.start-band .eyebrow::before { background: var(--sun-soft); }

.start-band h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.28;
  color: #F8F4EA;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.start-band .btn-primary {
  background: var(--paper);
  color: var(--deep);
}

.start-band .btn-primary:hover {
  background: var(--sun-soft);
  color: #2A1A10;
}

.start-band .btn-ghost {
  color: #F8F4EA;
  border-color: rgba(248, 244, 234, 0.28);
}

.start-band .btn-ghost:hover {
  background: rgba(248, 244, 234, 0.1);
  border-color: rgba(248, 244, 234, 0.55);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: #1B272E;
  color: rgba(239, 233, 220, 0.7);
  margin-top: 104px;
}

.start-band + .footer { margin-top: 0; }

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px var(--edge);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #F8F4EA;
}

.footer-logo .brand-gradient { color: var(--sun-soft); }

.footer-slogan {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(239, 233, 220, 0.46);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-content: start;
}

.foot-link {
  font-size: 12px;
  color: rgba(239, 233, 220, 0.64);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-link:hover { color: #F8F4EA; }

.footer-meta {
  justify-self: end;
  max-width: 340px;
  text-align: right;
  font-size: 11px;
  line-height: 1.85;
  color: rgba(239, 233, 220, 0.44);
}

.footer-meta p { margin: 0 0 6px; }

.footer-meta .muted { color: rgba(239, 233, 220, 0.32); }

/* ==========================================================================
   表单基础
   ========================================================================== */
input,
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder { color: #A3AEB3; }

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(196, 105, 59, 0.13);
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.7;
}

input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 2px;
  background: #FFFDF8;
  cursor: pointer;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, opacity 0.2s ease;
}

.primary {
  background: var(--deep);
  color: #F8F4EA;
}

.primary:hover { background: #2C434D; }

.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
}

.ghost:hover {
  border-color: var(--ink-2);
  background: rgba(255, 253, 247, 0.7);
}

.primary:disabled,
.ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.small {
  padding: 6px 12px;
  font-size: 11.5px;
}

.msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.msg.err { color: #B4472E; }
.msg.ok { color: #2F7A55; }

.hint {
  margin: 8px 0 14px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--faint);
}

.hint strong { color: var(--ink-2); font-weight: 500; }

/* ==========================================================================
   登录 / 注册弹层
   ========================================================================== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(20, 29, 34, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  width: min(460px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  animation: modalIn 0.26s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.auth-modal { padding: 34px 32px 30px; }

.auth-header { text-align: center; margin-bottom: 4px; }

.auth-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}

.auth-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.auth-subtitle {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-deep);
}

.auth-tabs { margin: 22px 0 20px; }

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab:hover { color: var(--ink); }

.tab.is-active {
  background: #FFFDF8;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(30, 42, 49, 0.08);
}

#auth-form > label,
#login-form > label,
.fields > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.label-text {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap input { padding-left: 38px; }

.input-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  display: flex;
  align-items: center;
  color: #A3AEB3;
  pointer-events: none;
}

.auth-hint-banner {
  margin: 2px 0 16px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--mist);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--slate);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* ==========================================================================
   控制台
   ========================================================================== */
.stack {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px var(--edge) 0;
  display: grid;
  gap: 20px;
  align-content: start;
}

.stack .card { padding: 28px 30px; }

.stack .card h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

.info {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px 20px;
  margin: 0;
  align-items: baseline;
}

.info dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.info dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  word-break: break-word;
}

.dim { color: var(--faint); }

#login-card { width: 100%; border-color: var(--line); }

#login-form { margin-top: 18px; }

.row > label:has(> input[type="number"]) { flex: 0 0 168px; }

/* ==========================================================================
   后台 Admin
   ========================================================================== */
.admin-layout {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px var(--edge) 0;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 26px;
  align-items: start;
}

.admin-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.side {
  position: sticky;
  top: 88px;
  padding: 18px 14px;
}

.side-header {
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.side-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.side-sub {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.side-nav {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--slate);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.side-item svg { flex: none; opacity: 0.75; }

.side-item:hover {
  background: rgba(30, 42, 49, 0.05);
  color: var(--ink);
}

.side-item.is-active {
  background: var(--deep);
  color: #F8F4EA;
}

.side-item.is-active svg { opacity: 1; }

.side-note {
  margin: 12px 8px 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
}

.admin-pane { padding: 26px 28px; min-width: 0; }

.admin-pane > h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.admin-pane h2.sep {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.row > label {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.row > .primary,
.row > .ghost { flex: none; }

.fields {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.fields > label { margin-bottom: 12px; }

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12.5px;
}

th {
  padding: 10px 12px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: middle;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 253, 247, 0.6); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.day-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tiny {
  width: 66px;
  padding: 6px 8px;
  font-size: 12px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.pager-label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.seg button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.seg button:hover { border-color: var(--ink-2); color: var(--ink); }

.seg button[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: #F8F4EA;
}

.editor {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.list-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.68);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.field-row > label {
  flex: 1 1 140px;
  min-width: 0;
}

.field-row > button { flex: 0 0 auto; }

.list-item > button { justify-self: start; }

.field-row label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.add-row { margin-bottom: 18px; }

.key-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--mist);
  border-radius: 5px;
  padding: 2px 7px;
  word-break: break-all;
}

.key-value.block {
  display: block;
  margin: 4px 0;
  padding: 8px 10px;
  font-size: 12.5px;
  background: var(--paper-deep);
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(196, 105, 59, 0.12);
  color: var(--sun-deep);
  font-size: 9.5px;
  vertical-align: 1px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid #FFFDF8;
  border-radius: 50%;
  outline: 1px solid var(--line);
  cursor: pointer;
}

.picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.picker-row #pf-hex { max-width: 130px; }

.preview {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ==========================================================================
   动效
   ========================================================================== */
@keyframes wave {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { border-bottom: 1px solid var(--line-soft); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 1000px) {
  .topbar { height: 62px; }
  .pill.nav-item { display: none; }
  .pill.pill-primary { margin-left: 4px; }
  .journal-grid { grid-template-columns: 1fr; }
  .hero {
    padding-top: 56px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy { max-width: 640px; }
  .hero-art { max-width: 620px; }
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
  .section-intro { justify-self: start; max-width: 52em; }
  .admin-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-nav { display: flex; flex-wrap: wrap; }
  .side-item { width: auto; }
  .side-note { padding-bottom: 6px; }
}

@media (max-width: 860px) {
  .section { padding-top: 80px; }
  .start-band { margin-top: 80px; padding: 56px 0; }
  .footer { margin-top: 80px; }
  .start-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta {
    justify-self: start;
    text-align: left;
    max-width: none;
  }
  .facts { margin-top: 52px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .showcase-body { padding: 24px 20px; }
  .hud-simulation { flex-direction: column; gap: 16px; }
  .hud-right { align-items: flex-start; }
  .stack { padding-top: 40px; }
  .admin-layout { padding-top: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .brand-tag { display: none; }
  .topbar { gap: 10px; }
  .topbar .pill span { display: none; }
  .pills { gap: 0; }
  .pill { padding: 8px 9px; font-size: 12.5px; }
  .pill.is-account { max-width: 110px; }
  .hero { padding-top: 44px; }
  .hero-title { margin-bottom: 18px; }
  .hero-lede { font-size: 14.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { gap: 8px 16px; margin-top: 26px; }
  .hero-meta span + span { border-left: 0; padding-left: 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line-soft); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card {
    border-right: 0;
    padding: 26px 20px;
  }
  .feature-card:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  .feature-card:last-child { border-bottom: 0; }
  .showcase-header { padding: 11px 16px; }
  .showcase-title-bar { display: none; }
  .hud-pill { font-size: 9.5px; }
  .card { padding: 22px 20px; }
  .stack .card { padding: 22px 20px; }
  .card-header { align-items: flex-start; }
  .header-hint { display: none; }
  .entry { padding-left: 20px; }
  .link-row { flex-wrap: wrap; }
  .link-row .btn-inline { margin-left: 46px; }
  .tutorial-video-card { flex-direction: column; align-items: flex-start; }
  .history-item { flex-wrap: wrap; gap: 8px; }
  .history-actions { margin-left: 44px; }
  .footer-inner { padding: 36px var(--edge); }
  .info { grid-template-columns: 1fr; gap: 2px 0; }
  .info dt { margin-top: 10px; }
  .info dt:first-child { margin-top: 0; }
  .admin-pane { padding: 20px 18px; }
  .side { padding: 14px 12px; }
  .auth-modal { padding: 28px 20px 24px; }
  .modal { padding: 24px 20px; }
}

@media (max-width: 460px) {
  .nav-console { display: none; }
  .pill.pill-primary { padding: 9px 14px; }
  .art-caption span:last-child { display: none; }
  .devlog-spotlight { padding: 16px; }
  .devlog-actions { gap: 10px; }
  .seg button { padding: 6px 10px; }
}

/* ==========================================================================
   极简首页（项目 / 更新日志 / 教程）
   ========================================================================== */
.min-page {
  width: min(820px, calc(100% - var(--edge) * 2));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 0;
}

.min-hero { padding-bottom: 64px; }

.min-hero .hero-title {
  margin: 20px 0 22px;
  font-size: clamp(38px, 5.2vw, 58px);
}

.min-hero .hero-lede {
  max-width: 590px;
  margin: 0 0 32px;
}

.min-hero .hero-actions { justify-content: flex-start; }

.min-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.min-meta strong { color: var(--ink); font-weight: 600; }

.min-section {
  padding: 48px 0 12px;
  border-top: 1px solid var(--line-soft);
}

.min-section:last-child { padding-bottom: 84px; }

.min-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.min-section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.min-prose {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}

.min-section .changelog { padding-top: 4px; }
.min-section .changelog .entry { font-size: 14px; }
.min-section .tutorial-video-card { margin-bottom: 26px; }

.home .footer { margin-top: 40px; }

@media (max-width: 640px) {
  .min-hero { padding-bottom: 48px; }
  .min-hero .hero-title { font-size: clamp(32px, 9vw, 42px); }
  .min-section { padding-top: 36px; }
  .min-page { padding-top: 48px; }
}
