/* ============================================================
   军行研习社 · 总入口
   羊皮纸 + 墨色 + 朱红；移动优先，900px 起切桌面侧栏布局。
   ============================================================ */

:root {
  --paper: #F3E8D2;
  --card: #FFFDF7;
  --ink: #2E2318;
  --muted: #5C4933;
  --accent: #A45B24;
  --green: #5B7A3E;
  --line: #DCC9A6;
  --line-soft: rgba(220, 201, 166, 0.68);

  --font-serif: Georgia, "Songti SC", "STSong", "SimSun", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --radius: 14px;
  --content-gutter: 18px;
  --card-shadow: 0 4px 16px rgba(46, 35, 24, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(164, 91, 36, 0.18);
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(164, 91, 36, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--card);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 品牌 ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-seal {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFF8EA;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 0 0 2px rgba(255, 248, 234, 0.32),
    0 4px 10px rgba(164, 91, 36, 0.16);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-tagline {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- 侧栏（桌面才显示） ---------- */

.sidebar {
  display: none;
}

/* ---------- 手机顶部栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--content-gutter) 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(243, 232, 210, 0.96);
}

.brand--compact {
  gap: 10px;
  min-width: 0;
}

.brand-seal--compact {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 15px;
}

.brand--compact .brand-name {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
}

.topbar-context {
  display: none;
}

.user-zone {
  flex: 0 0 auto;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.user-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #EFE0C7;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.user-avatar svg {
  width: 18px;
  height: 18px;
}

.user-avatar--name {
  background: var(--accent);
  color: #FFF8EA;
  border-color: var(--accent);
}

.user-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chevron {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .user-button:hover {
    border-color: var(--line);
    background: rgba(255, 253, 247, 0.72);
  }
}

/* ---------- 页面主体 ---------- */

.main-column {
  min-width: 0;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--content-gutter) calc(96px + env(safe-area-inset-bottom, 0px));
}

main {
  outline: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 24px 0 30px;
}

.hero::after {
  content: "研";
  position: absolute;
  right: -18px;
  bottom: -56px;
  color: rgba(164, 91, 36, 0.055);
  font-family: var(--font-serif);
  font-size: 190px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.eyebrow-line {
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.hero-desc {
  max-width: 37em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.52);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hero-side {
  display: none;
}

/* ---------- 分区标题 ---------- */

.module-section + .module-section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.section-kicker--muted {
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.section-count {
  flex: 0 0 auto;
  margin-bottom: 2px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.56);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- 模块卡片 ---------- */

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-decoration: none;
}

.module-card--live {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.module-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #F2E6D2;
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.module-icon--warm {
  background: #F2E1C6;
}

.module-icon--green {
  background: #E8EFDD;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.status--live {
  border: 1px solid rgba(91, 122, 62, 0.24);
  background: rgba(91, 122, 62, 0.085);
  color: var(--green);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 122, 62, 0.12);
}

.status--soon {
  border: 1px dashed #C9B48D;
  background: rgba(92, 73, 51, 0.045);
  color: var(--muted);
}

.module-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.025em;
}

.module-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--line-soft);
}

.enter-label {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.enter-go {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF8EA;
  box-shadow: 0 2px 7px rgba(164, 91, 36, 0.22);
}

.enter-go svg {
  width: 17px;
  height: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .module-card--live:hover {
    border-color: #C9A876;
    box-shadow: 0 10px 26px rgba(46, 35, 24, 0.09);
    transform: translateY(-2px);
  }

  .module-card--live:hover .enter-go {
    background: #8F4C1B;
  }
}

.module-card--live:active {
  transform: translateY(0);
}

/* 即将上线：降饱和、不可点 */

.module-card--soon {
  border-color: #D9C7A6;
  background: #F8F0E1;
  box-shadow: none;
  color: #6A5740;
}

.module-card--soon .module-icon {
  opacity: 0.65;
  background: #EFE3CD;
  filter: grayscale(1);
  box-shadow: none;
}

.module-card--soon .module-name {
  color: #6A5740;
}

.module-card--soon .module-desc {
  color: #6B5842;
}

.module-card--soon .card-foot {
  border-top-color: rgba(201, 180, 141, 0.6);
}

.soon-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.soon-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.soon-hint {
  color: #7B664C;
  font-size: 15px;
}

/* ---------- 页脚 ---------- */

.page-footer {
  margin-top: 46px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer-brand {
  margin: 0 0 5px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.footer-note {
  margin: 0;
  line-height: 1.7;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .side-nav-item:hover {
    background: rgba(255, 253, 247, 0.58);
    color: var(--ink);
  }
}

/* ---------- 手机底部 Tab ---------- */

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 -8px 24px rgba(46, 35, 24, 0.06);
}

.tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tab svg {
  width: 22px;
  height: 22px;
}

.tab.is-active {
  color: var(--accent);
  font-weight: 600;
}

.tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .tab:hover {
    background: rgba(164, 91, 36, 0.045);
    color: var(--accent);
  }
}

/* ---------- 账号面板 ---------- */

.account-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(46, 35, 24, 0.24);
}

.account-panel {
  position: fixed;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  z-index: 80;
  width: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(46, 35, 24, 0.24);
}

.account-scrim[hidden],
.account-panel[hidden] {
  display: none;
}

.account-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.account-close svg {
  width: 18px;
  height: 18px;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 40px;
}

.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--accent);
  color: #FFF8EA;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.account-identity {
  min-width: 0;
}

.account-name {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.account-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--green);
  font-size: 15px;
}

.account-admin {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(91, 122, 62, 0.24);
  border-radius: 999px;
  background: rgba(91, 122, 62, 0.085);
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
}

.account-divider {
  margin: 16px 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

.account-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  font-size: 15px;
}

.account-row dt {
  flex: 0 0 auto;
  color: var(--muted);
}

.account-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  text-align: right;
}

.account-logout {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(164, 91, 36, 0.045);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.account-logout svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.account-logout-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.account-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
  .account-close:hover {
    background: rgba(92, 73, 51, 0.06);
  }

  .account-logout:hover {
    border-color: #C9A876;
    background: rgba(164, 91, 36, 0.08);
  }
}

@media (max-width: 899px) {
  /* 手机上藏掉大字水印：它会压在标签和正文后面，看着像脏点 */
  .hero::after { display: none; }
  body.account-open {
    overflow: hidden;
  }
}

/* ============================================================
   桌面：240px 侧栏 + 两列卡片
   ============================================================ */

@media (min-width: 900px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 32px 24px 24px;
    border-right: 1px solid var(--line);
    background: linear-gradient(
      180deg,
      rgba(255, 253, 247, 0.34),
      rgba(226, 207, 173, 0.2)
    );
  }

  .brand--sidebar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }

  .brand--sidebar .brand-seal {
    grid-row: 1;
    grid-column: 1;
  }

  .brand--sidebar .brand-copy {
    display: contents;
  }

  .brand--sidebar .brand-name {
    grid-row: 1;
    grid-column: 2;
    font-size: 23px;
  }

  .brand--sidebar .brand-tagline {
    grid-column: 1 / -1;
    max-width: 180px;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 38px;
  }

  .side-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .nav-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
  }

  .side-nav-item.is-active {
    border-color: var(--line);
    background: var(--card);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(46, 35, 24, 0.045);
  }

  .side-nav-item.is-active .nav-icon {
    color: var(--accent);
  }

  .sidebar-foot {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
  }

  .sidebar-quote {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.03em;
  }

  .sidebar-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
  }

  .sidebar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(91, 122, 62, 0.12);
  }

  .topbar {
    min-height: 76px;
    padding: env(safe-area-inset-top, 0px) clamp(24px, 4vw, 56px) 0;
  }

  .brand--compact {
    display: none;
  }

  .topbar-context {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .topbar-kicker {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
  }

  .topbar-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
  }

  .user-name {
    max-width: 180px;
  }

  .page {
    padding: 0 clamp(24px, 4vw, 56px) 56px;
  }

  .hero {
    padding: 44px 0 42px;
    gap: 48px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    margin-top: 14px;
  }

  .hero-subtitle {
    margin-top: 13px;
  }

  .hero-desc {
    margin-top: 14px;
  }

  .hero-tags {
    margin-top: 20px;
  }

  .hero-side {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
    padding: 10px 8px 0 0;
  }

  .hero-side::before {
    content: "";
    position: absolute;
    top: -24px;
    left: -34px;
    z-index: 0;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(164, 91, 36, 0.16);
    border-radius: 50%;
    pointer-events: none;
  }

  .hero-stamp {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 92px;
    height: 92px;
    border: 2px solid var(--accent);
    border-radius: 16px;
    background: rgba(255, 253, 247, 0.5);
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.02em;
    box-shadow:
      inset 0 0 0 4px rgba(243, 232, 210, 0.92),
      inset 0 0 0 5px rgba(164, 91, 36, 0.46);
    transform: rotate(3deg);
  }

  .hero-vertical {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    padding-left: 11px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
  }

  .module-section + .module-section {
    margin-top: 50px;
  }

  .section-head {
    margin-bottom: 18px;
    padding-bottom: 13px;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .module-card {
    min-height: 206px;
    padding: 22px;
  }

  .module-name {
    font-size: 23px;
  }

  .tabbar {
    display: none;
  }

  .account-scrim {
    display: none;
  }

  .account-panel {
    top: var(--account-top, 88px);
    right: var(--account-right, 40px);
    bottom: auto;
    left: auto;
    width: min(340px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 16px;
  }
}

/* ---------- 减少动态效果 ---------- */

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