[v-cloak] { display: none; }
:root {
  color-scheme: light;
  --navy: #0b2342;
  --ink: #152942;
  --blue: #154981;
  --muted: #485d73;
  --border: #d8e3ee;
  --surface: #fff;
  --page: #f1f5fa;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.6; }
a { color: var(--blue); }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid transparent; border-radius: .65rem; background: var(--blue); color: white; padding: .6rem .95rem; font-weight: 650; line-height: 1.4; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #b76421; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.65rem); line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: 1.18rem; line-height: 1.45; }
small { font-size: .875rem; }
.muted, .subline, .detail-source { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { background: var(--navy); color: #fff; }
.topbar-inner, .nav-inner, .layout { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 4.65rem; }
.identity { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; line-height: 1.25; }
.identity strong, .identity small { display: block; }
.identity strong { font-size: clamp(.9rem, 3vw, 1.12rem); }
.identity small { margin-top: .3rem; color: #b5cde7; font-size: .72rem; letter-spacing: .07em; }
.identity small span { color: #f0b67a; margin-inline: .15rem; }
.brand-mark { display: grid; place-items: center; width: 2.55rem; aspect-ratio: 1; border-radius: .7rem; background: #294a70; border: 1px solid #54789c; color: #d8e9fc; font-size: 1.35rem; font-weight: 750; }
.top-link { color: #d5e7fa; white-space: nowrap; font-size: .875rem; text-underline-offset: .27em; }
.layout { padding-block: 1.5rem 6.5rem; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(110deg,#102c51 25%,#184a7d); color: white; padding: clamp(1.25rem, 5vw, 3.25rem); }
.hero-content { position: relative; z-index: 1; }
.eyebrow { color: #526d8d; font-weight: 750; font-size: .75rem; letter-spacing: .1em; }
.hero .eyebrow { color: #afd1f1; margin-bottom: .65rem; }
.hero p { color: #deebfa; margin-block: .75rem 1.5rem; }
.hero-design { position: absolute; inset: 0 0 0 58%; background: radial-gradient(ellipse at center,#4883af55,transparent 70%); overflow: hidden; }
.hero-design i { position: absolute; inset: 4% -4% 4% 8%; border: 1px solid #89b4d953; border-radius: 50%; transform: rotate(-32deg); }
.hero-design i:nth-child(2) { inset: 13% 2% 13% 14%; }
.hero-design i:nth-child(3) { inset: 23% 9% 23% 21%; }
.search-box { display: flex; align-items: center; gap: .65rem; background: white; border: 1px solid var(--border); border-radius: .8rem; padding: .3rem .35rem .3rem .85rem; max-width: 39rem; }
.search-box input { min-width: 0; flex: 1; border: 0; padding: .5rem 0; color: var(--ink); background: transparent; }
.search-box button { flex-shrink: 0; }
.search-icon { width: .85rem; height: .85rem; border: 2px solid #567595; border-radius: 50%; position: relative; flex: 0 0 auto; margin-right: .15rem; }
.search-icon::after { content: ""; position: absolute; width: .45rem; height: 2px; background: #567595; transform: rotate(45deg); bottom: -3px; right: -5px; }
.section { margin-top: 1.4rem; }
.quick-grid { margin-top: .75rem; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.shortcut { text-align: left; padding: .9rem; background: white; color: var(--ink); border-color: var(--border); min-width: 0; }
.shortcut strong, .shortcut small { display: block; }
.shortcut small { color: var(--muted); font-weight: 400; margin-top: .35rem; }
.short-icon { display: inline-grid; place-items: center; color: #19558d; background: #e9f2fd; padding: .3rem .45rem; border-radius: .45rem; margin-bottom: .6rem; }
.dashboard { display: grid; grid-template-columns: 1.45fr 1fr; gap: .85rem; margin-top: 1.2rem; }
.panel, .record { background: var(--surface); border: 1px solid var(--border); border-radius: .9rem; }
.panel { padding: clamp(.9rem, 3vw, 1.35rem); }
.panel h1, .panel h2 { margin-bottom: .55rem; }
.course, .section-head, .progress-footer, .card-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.course { padding-block: .65rem; }
.course + .course { border-top: 1px solid var(--border); }
.course p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.course button { flex-shrink: 0; }
.large-number { font-size: 2rem; color: var(--navy); font-weight: 750; }
.large-number small, .progress-footer { color: var(--muted); }
progress { display: block; width: 100%; height: .9rem; accent-color: #2473ab; margin: .6rem 0 .8rem; }
.secondary, .filters button { color: var(--blue); background: #f0f6fd; border-color: #cbdcf0; }
.text-button { background: transparent; color: var(--blue); padding: .25rem; text-decoration: underline; text-underline-offset: .2em; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 1rem; flex-wrap: wrap; }
.bottom-nav { position: fixed; z-index: 2; inset: auto 0 0; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); }
.nav-inner { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); max-width: 40rem; }
.bottom-nav a { display: grid; justify-items: center; gap: .18rem; text-decoration: none; color: var(--muted); padding: .6rem .15rem; border-top: 3px solid transparent; font-size: .875rem; }
.bottom-nav .active { color: #154981; background: #edf5ff; border-color: #2468a0; font-weight: 700; }
.bottom-nav svg { width: 1.35rem; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.record { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; text-align: left; color: var(--ink); margin-top: .55rem; min-width: 0; }
.record small { color: var(--muted); text-align: right; }
.record .subline { display: block; font-size: .9rem; font-weight: 400; margin-top: .25rem; }
.learn-tools, .actions, .filters { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: .85rem 0; }
.learn-tools { justify-content: space-between; }
.learn-tools select, .admin-form input, .admin-form textarea { border: 1px solid #a5bbd2; padding: .55rem .65rem; border-radius: .5rem; background: white; color: var(--ink); }
.check { display: inline-flex; align-items: center; }
.flashcard { display: grid; justify-items: center; gap: .75rem; text-align: center; min-height: 14rem; width: 100%; border-radius: 1rem; background: #153b67; padding: clamp(1rem, 4vw, 2.4rem); margin-top: .75rem; }
.flashcard > strong { font-size: clamp(1.2rem,3vw,1.7rem); }
.flashcard .eyebrow, .flashcard small { color: #bfdbf8; }
.flashcard.answer { background: #e5f2fc; color: var(--navy); border-color: #aac6df; }
.flashcard.answer .eyebrow, .flashcard.answer small { color: #385f82; }
.knowledge-search { max-width: 100%; }
.filters .active { background: var(--blue); color: white; }
.results { display: grid; gap: .1rem; }
.detail { max-width: 58rem; overflow-wrap: anywhere; }
.detail figure { margin: 1rem 0; }
.detail img { width: min(100%,26rem); display: block; border-radius: .6rem; }
.detail figcaption, .detail-source { font-size: .875rem; }
.detail-source { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: 1rem; }
.english-body, .article-body { white-space: pre-line; margin-top: .85rem; }
.english-body { font-weight: 550; }
.status { display: inline-block; margin-top: .55rem; border-radius: .4rem; padding: .15rem .45rem; background: #e8f0fc; font-size: .875rem; }
.pending { color: #74410c; background: #ffedcf; }
.metrics { display: flex; gap: .7rem 1.25rem; flex-wrap: wrap; margin-top: .8rem; }
.metrics strong { font-size: 1.25rem; }
.error, .feedback { padding: .6rem .85rem; border-radius: .55rem; margin-bottom: .7rem; background: #fdebe6; color: #742d20; }
.feedback { background: #e2f0fd; color: #174a79; }
.admin-layout { max-width: 55rem; padding-bottom: 2rem; }
.admin-form { display: grid; gap: .85rem; }
.admin-form label { display: grid; gap: .25rem; }
.admin-form textarea { min-height: 5rem; }
.admin-history > article { padding: .8rem 0; border-top: 1px solid var(--border); }
.admin-history p { overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 680px) {
  .topbar-inner, .layout { width: calc(100% - 1.25rem); }
  .layout { padding-top: .85rem; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard { grid-template-columns: 1fr; }
  .search-box button { padding-inline: .55rem; font-size: .875rem; }
  .hero-design { inset-inline-start: 30%; opacity: .6; }
}
@media (max-width: 365px) {
  .hero { padding: .9rem; }
  .search-box { gap: .44rem; padding-left: .55rem; }
  .search-box input { font-size: .88rem; }
  .brand-mark { width: 2rem; }
}
