:root {
  --ink: #17243a;
  --ink-soft: #4e5e70;
  --navy: #112737;
  --navy-2: #203a52;
  --paper: #f7f0df;
  --paper-deep: #eadcc1;
  --cream: #fffaf0;
  --gold: #ba8a3b;
  --gold-light: #e8cb8d;
  --bronze: #806039;
  --line: rgba(34, 47, 61, 0.16);
  --green: #2f765e;
  --red: #9b493d;
  --shadow: 0 18px 55px rgba(22, 34, 48, 0.12);
  --radius: 22px;
  --serif: "STKaiti", "KaiTi", "FangSong", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(211, 173, 100, 0.17), transparent 25rem),
    linear-gradient(180deg, #f8f2e5 0%, #f5eddc 52%, #efe4cf 100%);
  font-family: var(--sans);
  line-height: 1.7;
}
body, button, input { font-family: var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 60; height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; gap: 24px;
  color: #fff; background: rgba(17, 39, 55, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-seal {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: var(--navy); background: linear-gradient(145deg, #efd79d, #bd8734);
  font-family: var(--serif); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.brand-copy strong { display: block; letter-spacing: .08em; font-size: 17px; }
.brand-copy small { display: block; color: #cdd7df; font-size: 11px; letter-spacing: .12em; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { padding: 9px 12px; border-radius: 10px; color: #dce5ec; font-size: 14px; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; background: rgba(255,255,255,0.1); }
.menu-toggle { display: none; background: transparent; border: 0; color: #fff; font-size: 24px; }

.hero { position: relative; min-height: 690px; overflow: hidden; background: #142b38; }
.hero-art { position: absolute; inset: 0; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,28,39,.97) 0%, rgba(13,38,50,.90) 48%, rgba(12,31,42,.64) 72%, rgba(12,31,42,.82) 100%), linear-gradient(0deg, rgba(8,24,34,.75), transparent 60%); }
.hero-art-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(.72) contrast(1.04); }
.hero-art-side { position: absolute; right: 6%; top: 12%; width: min(32vw, 430px); height: 74%; object-fit: cover; border-radius: 34px; opacity: .32; transform: rotate(2deg); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%, transparent); }
.hero-content { position: relative; z-index: 2; min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 56px; align-items: center; padding: 82px 0 76px; color: #fff; }
.eyebrow, .kicker { margin: 0 0 8px; color: #d6b879; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 34px; height: 1px; margin: 0 9px 4px 0; background: currentColor; }
.hero h1 { margin: 0; max-width: 760px; font-family: var(--serif); font-size: clamp(48px, 6.3vw, 80px); line-height: 1.14; letter-spacing: .02em; text-shadow: 0 5px 30px rgba(0,0,0,.3); }
.hero h1 em { color: #f0d18e; font-style: normal; }
.hero-lead { max-width: 680px; margin: 22px 0 28px; color: #e1e8ed; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--navy); background: linear-gradient(135deg, #f2d596, #bf8b38); border-color: transparent; box-shadow: 0 10px 28px rgba(191,139,56,.25); }
.button.secondary { color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.button.small { min-height: 40px; padding: 8px 16px; background: var(--navy); color: #fff; border: 0; white-space: nowrap; }
.button.outline { color: var(--navy); border-color: rgba(17,39,55,.34); background: transparent; }
.hero-path { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #cbd7df; font-size: 12px; }
.hero-path span { padding: 4px 8px; border-radius: 999px; color: #13263a; background: #e8cb8d; font-weight: 700; }
.hero-path a { color: #f0d18e; }

.hero-atlas { align-self: center; padding: 22px; border-radius: 30px; background: rgba(9,28,39,.68); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 26px 80px rgba(0,0,0,.25); }
.atlas-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.atlas-head span { font-family: var(--serif); font-size: 24px; }
.atlas-head small { color: #afbec8; font-size: 11px; }
.atlas-wheel { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 15px auto; border-radius: 50%; border: 1px solid rgba(233,207,151,.34); background: radial-gradient(circle, rgba(232,203,141,.12), transparent 48%), conic-gradient(from 45deg, rgba(255,255,255,.035), rgba(255,255,255,.10), rgba(255,255,255,.035), rgba(255,255,255,.10), rgba(255,255,255,.035)); }
.atlas-wheel::before, .atlas-wheel::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.17); }
.atlas-wheel::after { inset: 28%; }
.atlas-core { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; transform: translate(-50%,-50%); border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--navy); background: radial-gradient(circle at 35% 30%, #f4dda8, #b98331); box-shadow: 0 0 0 10px rgba(232,203,141,.08), 0 12px 35px rgba(0,0,0,.24); }
.atlas-core strong { font-family: var(--serif); font-size: 25px; }
.atlas-core small { font-size: 11px; }
.atlas-point { position: absolute; width: 94px; text-align: center; color: #e8eef2; }
.atlas-point b { width: 43px; height: 43px; margin: 0 auto 4px; display: grid; place-items: center; border-radius: 50%; color: #f1d493; background: #173647; border: 1px solid rgba(241,212,147,.4); font-family: var(--serif); font-size: 20px; }
.atlas-point span { font-size: 11px; }
.p-time { left: 50%; top: 3%; transform: translateX(-50%); }
.p-theme { right: 0; top: 50%; transform: translateY(-50%); }
.p-people { left: 50%; bottom: 3%; transform: translateX(-50%); }
.p-evidence { left: 0; top: 50%; transform: translateY(-50%); }
.atlas-status { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.atlas-status div { padding: 10px 8px; text-align: center; border-radius: 14px; background: rgba(255,255,255,.06); }
.atlas-status strong { display: block; color: #f0d18e; font-size: 20px; }
.atlas-status span { color: #b8c7d0; font-size: 10px; }

.entry-strip { position: relative; z-index: 4; margin-top: -30px; }
.entry-grid { display: grid; grid-template-columns: repeat(4,1fr); border-radius: 24px; overflow: hidden; background: #fffaf0; box-shadow: var(--shadow); border: 1px solid rgba(128,96,57,.16); }
.entry-grid a { min-height: 106px; padding: 20px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-content: center; border-right: 1px solid var(--line); transition: .2s ease; }
.entry-grid a:last-child { border-right: 0; }
.entry-grid a:hover { background: #f2e2c2; }
.entry-grid span { grid-row: 1 / 3; align-self: center; color: #b7873d; font-family: var(--serif); font-size: 24px; }
.entry-grid strong { font-size: 15px; }
.entry-grid small { color: var(--ink-soft); font-size: 11px; }

.section { padding: 82px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading.compact { margin: 0 0 14px; padding: 0 4px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.section-heading.compact h2 { font-size: 26px; }
.heading-note { max-width: 535px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.light-heading h2 { color: #fff; }
.light-heading .heading-note { color: #cbd7df; }
.release-badge { color: #fff; background: var(--green); border-radius: 999px; padding: 5px 10px; font-size: 12px; }

.continue-card { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 18px; border-radius: var(--radius); background: rgba(255,250,240,.96); box-shadow: var(--shadow); border: 1px solid rgba(137,104,55,.18); }
.continue-cover { position: relative; }
.continue-cover img { width: 160px; height: 110px; object-fit: cover; border-radius: 15px; }
.continue-cover span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; color: #fff; background: rgba(17,39,55,.84); font-size: 10px; }
.continue-copy h3 { margin: 1px 0 3px; font-family: var(--serif); font-size: 27px; }
.continue-copy p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.path-label { color: var(--bronze); font-size: 12px; font-weight: 700; }
.progress-wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.progress-line { height: 8px; overflow: hidden; border-radius: 999px; background: #e3d8c4; }
.progress-line i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #b98331, #ddbc70); transition: width .35s ease; }
.continue-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--ink-soft); font-size: 12px; }

.history-map-section { color: #fff; background: linear-gradient(145deg, #102735, #183a49 66%, #17313c); }
.map-heading .heading-note { color: #bdcbd2; }
.period-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 22px; }
.period-tab { position: relative; min-height: 126px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; text-align: left; color: #fff; background: rgba(255,255,255,.055); overflow: hidden; }
.period-tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.period-tab.active { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px var(--accent); }
.period-tab strong { display: block; font-family: var(--serif); font-size: 25px; }
.period-tab span { color: #ddc990; font-size: 11px; }
.period-tab small { display: block; margin-top: 6px; color: #c7d4dc; line-height: 1.5; }
.era-rail { position: relative; display: grid; grid-template-columns: repeat(4,minmax(215px,1fr)); gap: 14px; overflow-x: auto; padding: 15px 2px 12px; scrollbar-width: thin; }
.era-rail::before { content: ""; position: absolute; left: 20px; right: 20px; top: 55px; height: 2px; background: linear-gradient(90deg, transparent, rgba(232,203,141,.5), transparent); }
.era-card { position: relative; min-height: 190px; padding: 20px; color: #fff; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); text-align: left; }
.era-card::before { content: ""; display: block; width: 14px; height: 14px; margin: 8px 0 23px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.era-card.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.era-card strong { display: block; font-family: var(--serif); font-size: 20px; }
.era-card .range { color: #e4ca91; font-size: 11px; }
.era-card p { margin: 7px 0 12px; color: #c9d6dd; font-size: 12px; }
.era-meta { display: flex; justify-content: space-between; color: #dce6eb; font-size: 10px; }
.era-progress { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.10); }
.era-progress i { display: block; height: 100%; background: var(--accent); }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: #c8d6dd; font-size: 11px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.live { background: #62b58f; }
.legend-dot.building { background: #d5a64c; }
.legend-dot.planned { background: #81929d; }
.legend-line { width: 28px; height: 2px; background: #d9be7d; }
.map-method { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 26px; }
.map-method article { display: flex; gap: 12px; padding: 17px; border-radius: 16px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.10); }
.map-method article > span { flex: 0 0 auto; color: #d7b96f; font-family: var(--serif); font-size: 21px; }
.map-method strong { display: block; }
.map-method p { margin: 2px 0 0; color: #c7d4dc; font-size: 11px; }

.chain-section { color: #fff; background: #172a3b; }
.learning-chain { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.chain-node { position: relative; min-height: 190px; padding: 20px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); }
.chain-node:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 3; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #172a3b; background: #d9be7d; transform: translateY(-50%); }
.chain-node.live { background: linear-gradient(145deg, rgba(186,138,59,.30), rgba(255,255,255,.06)); border-color: rgba(232,203,141,.45); }
.chain-node .chain-index { color: #d7b96f; font-family: var(--serif); font-size: 22px; }
.chain-node strong { display: block; margin: 12px 0 5px; font-family: var(--serif); font-size: 20px; }
.chain-node p { margin: 0; color: #c6d2da; font-size: 12px; }
.chain-node small { position: absolute; left: 20px; bottom: 17px; color: #e8cb8d; font-size: 10px; }

.theme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.theme-card { position: relative; min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; background: rgba(255,250,240,.82); box-shadow: 0 12px 35px rgba(62,44,21,.06); transition: .2s ease; overflow: hidden; }
.theme-card::after { content: attr(data-count); position: absolute; right: 14px; bottom: -22px; color: rgba(23,36,58,.06); font-family: var(--serif); font-size: 92px; }
.theme-card:hover, .theme-card.active { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.theme-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--accent); font-family: var(--serif); font-size: 23px; }
.theme-card h3 { margin: 15px 0 7px; font-family: var(--serif); font-size: 23px; }
.theme-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.theme-card small { display: block; margin-top: 13px; color: var(--accent); font-weight: 700; }

.catalog-section { background: rgba(255,250,240,.72); border-top: 1px solid rgba(128,96,57,.10); border-bottom: 1px solid rgba(128,96,57,.10); }
.catalog-tools { display: grid; grid-template-columns: minmax(280px,1fr) auto auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fffaf0; }
.search-box { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.search-box span { color: var(--bronze); font-size: 12px; font-weight: 700; }
.search-box input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.status-filters { display: flex; gap: 6px; }
.status-filters button, .clear-filters { min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); font-weight: 700; }
.status-filters button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.clear-filters { color: var(--red); border-color: rgba(155,73,61,.36); }
.active-filter-bar { min-height: 36px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 2px 4px; color: var(--ink-soft); font-size: 12px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; color: var(--navy); background: #eadcc1; font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 15px; }
.lesson-card { position: relative; min-height: 250px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; box-shadow: 0 8px 24px rgba(24,40,59,.06); }
.lesson-card.live { border-color: rgba(47,118,94,.38); }
.lesson-cover { height: 118px; background: linear-gradient(145deg, var(--accent), #1b3546); background-size: cover; background-position: center; position: relative; }
.lesson-cover.placeholder { display: grid; place-items: center; color: rgba(255,255,255,.88); font-family: var(--serif); font-size: 18px; }
.lesson-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,37,52,.48), transparent); }
.lesson-badge { position: absolute; z-index: 2; right: 9px; top: 9px; padding: 4px 8px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.92); font-size: 10px; font-weight: 700; }
.lesson-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.lesson-path { color: var(--bronze); font-size: 10px; }
.lesson-body h3 { margin: 6px 0 7px; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.lesson-body p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; }
.lesson-tags span { padding: 3px 7px; border-radius: 999px; color: var(--ink-soft); background: #efe6d5; font-size: 9px; }
.lesson-footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lesson-footer small { color: var(--ink-soft); }
.lesson-card.planned { opacity: .78; }
.catalog-empty { grid-column: 1 / -1; padding: 45px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--ink-soft); }
.catalog-more { margin-top: 24px; text-align: center; }
.catalog-more.hidden { display: none; }

.lens-section { color: #fff; background: linear-gradient(135deg, #172b3c, #244b57); }
.lens-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.lens-copy h2 { margin: 0; font-family: var(--serif); font-size: 48px; }
.lens-copy p:not(.kicker) { color: #c6d4dc; }
.text-link { display: inline-block; margin-top: 15px; color: var(--bronze); font-weight: 700; font-size: 13px; }
.light-link { color: #f0d18e; }
.lens-orbit { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin: auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.lens-orbit::before, .lens-orbit::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.13); }
.lens-orbit::after { inset: 34%; }
.lens-orbit > div { position: absolute; left: 50%; top: 50%; width: 145px; height: 145px; transform: translate(-50%,-50%); display: grid; place-content: center; text-align: center; border-radius: 50%; color: var(--navy); background: linear-gradient(145deg, #efd79d, #bd8734); }
.lens-orbit > div strong { font-family: var(--serif); font-size: 34px; }
.lens-orbit > div small { line-height: 1.5; }
.lens-orbit > span { --angle: calc(var(--i) * 45deg - 90deg); position: absolute; left: 50%; top: 50%; width: 68px; transform: translate(-50%,-50%) rotate(var(--angle)) translate(190px) rotate(calc(-1 * var(--angle))); text-align: center; }
.lens-orbit > span b { width: 49px; height: 49px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: #f0d18e; background: #173647; border: 1px solid rgba(240,209,142,.35); font-family: var(--serif); font-size: 21px; }
.lens-orbit > span small { display: block; margin-top: 3px; color: #d4e0e6; font-size: 10px; }

.dual-library { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.library-panel { padding: 25px; border-radius: var(--radius); background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(62,44,21,.06); }
.library-title { display: flex; align-items: center; gap: 14px; }
.library-title > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--bronze); font-family: var(--serif); }
.library-title h3 { margin: 0; font-family: var(--serif); font-size: 25px; }
.library-title p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.mini-people { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 20px; }
.mini-people a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #f1e7d5; }
.mini-people img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.mini-people strong, .mini-people small { display: block; }
.mini-people small { color: var(--ink-soft); font-size: 10px; }
.event-feature { display: grid; grid-template-columns: 115px 1fr; gap: 14px; margin-top: 20px; padding: 10px; border-radius: 14px; background: #f1e7d5; }
.event-feature img { width: 115px; height: 90px; object-fit: cover; border-radius: 11px; }
.event-feature strong { font-family: var(--serif); font-size: 20px; }
.event-feature p { margin: 2px 0; color: var(--ink-soft); font-size: 11px; }
.event-feature small { color: var(--bronze); font-size: 10px; }

.game-section { color: #fff; background: #172a3b; }
.game-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.game-grid a { min-height: 135px; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); }
.game-grid span { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #172a3b; background: #d8bb75; font-family: var(--serif); font-size: 21px; }
.game-grid strong, .game-grid small { display: block; }
.game-grid small { color: #bdcad2; font-size: 10px; }
.center-button { margin: 24px auto 0; width: max-content; }

.profile-section { background: #efe5d2; }
.profile-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.profile-copy h2 { margin: 0; font-family: var(--serif); font-size: 45px; }
.profile-copy > p:not(.kicker) { color: var(--ink-soft); }
.profile-stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 22px; }
.profile-stat-grid article { padding: 16px; border-radius: 16px; background: #fffaf0; border: 1px solid var(--line); }
.profile-stat-grid strong { display: block; color: var(--bronze); font-family: var(--serif); font-size: 28px; }
.profile-stat-grid span { color: var(--ink-soft); font-size: 11px; }
.dimension-panel { padding: 24px; border-radius: 22px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.dimension-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.dimension-head small { color: #aebdc7; }
.dimension-row { display: grid; grid-template-columns: 62px 1fr 40px; gap: 12px; align-items: center; margin: 11px 0; }
.dimension-row span { font-weight: 700; font-size: 12px; }
.dimension-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.dimension-track i { display: block; height: 100%; background: linear-gradient(90deg, #c38e3b, #efd596); }
.dimension-row.empty .dimension-track i { width: 100% !important; background: rgba(255,255,255,.12); }
.dimension-row strong { text-align: right; color: #e8cb8d; font-size: 12px; }
.dimension-row.empty strong { color: #91a3ae; }

.site-footer { padding: 40px 0 85px; color: #c6d2d9; background: #0f2533; }
.site-footer .shell { display: grid; gap: 4px; text-align: center; }
.site-footer strong { color: #f0d18e; font-family: var(--serif); font-size: 21px; }
.site-footer span { font-size: 12px; }
.site-footer small { color: #8398a5; }
.mobile-dock { display: none; }

@media (max-width: 1020px) {
  .hero-content { grid-template-columns: 1fr .72fr; gap: 28px; }
  .hero-atlas { padding: 16px; }
  .entry-grid { grid-template-columns: repeat(2,1fr); }
  .entry-grid a:nth-child(2) { border-right: 0; }
  .entry-grid a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .period-tabs { grid-template-columns: repeat(2,1fr); }
  .learning-chain { grid-template-columns: repeat(3,1fr); }
  .chain-node:not(:last-child)::after { display: none; }
  .theme-grid, .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .game-grid { grid-template-columns: repeat(2,1fr); }
  .map-method { grid-template-columns: repeat(2,1fr); }
  .catalog-tools { grid-template-columns: 1fr; }
  .status-filters { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header { height: 62px; padding: 0 14px; }
  .brand-seal { width: 38px; height: 38px; border-radius: 12px; }
  .brand-copy strong { font-size: 15px; }
  .main-nav { display: none; position: absolute; left: 14px; right: 14px; top: 68px; padding: 10px; flex-direction: column; border-radius: 15px; background: #173647; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-art-side { display: none; }
  .hero-content { min-height: auto; grid-template-columns: 1fr; padding: 70px 0 62px; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-atlas { max-width: 460px; width: 100%; margin: auto; }
  .entry-strip { margin-top: 0; }
  .entry-grid { border-radius: 0; width: 100%; }
  .section { padding: 62px 0; }
  .section-heading { display: block; }
  .heading-note { margin-top: 12px; }
  .continue-card { grid-template-columns: 96px 1fr; gap: 14px; }
  .continue-cover img { width: 96px; height: 96px; }
  .continue-card > .button { grid-column: 1 / -1; width: 100%; }
  .continue-meta { display: grid; gap: 2px; }
  .period-tabs { grid-template-columns: 1fr 1fr; }
  .period-tab { min-height: 145px; padding: 15px; }
  .era-rail { grid-template-columns: repeat(12, 220px); }
  .learning-chain { grid-template-columns: 1fr; }
  .theme-grid, .catalog-grid, .dual-library, .profile-layout, .lens-layout { grid-template-columns: 1fr; }
  .lens-layout { gap: 38px; }
  .lens-orbit > span { transform: translate(-50%,-50%) rotate(var(--angle)) translate(145px) rotate(calc(-1 * var(--angle))); }
  .mini-people { grid-template-columns: 1fr; }
  .map-method, .game-grid { grid-template-columns: 1fr 1fr; }
  .mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); color: #fff; background: rgba(15,37,51,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-dock a { display: grid; place-items: center; gap: 1px; }
  .mobile-dock span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #f0d18e; background: rgba(255,255,255,.08); font-family: var(--serif); }
  .mobile-dock small { font-size: 9px; }
}

@media (max-width: 480px) {
  .hero-content { padding-top: 54px; }
  .hero h1 { font-size: 39px; }
  .hero-actions .button { width: 100%; }
  .atlas-wheel { transform: scale(.94); margin: 4px auto; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .entry-grid a:last-child { border-bottom: 0; }
  .continue-card { grid-template-columns: 1fr; }
  .continue-cover img { width: 100%; height: 150px; }
  .period-tabs { grid-template-columns: 1fr; }
  .theme-grid, .catalog-grid, .game-grid, .map-method { grid-template-columns: 1fr; }
  .lens-orbit { transform: scale(.86); margin: -28px auto; }
  .event-feature { grid-template-columns: 90px 1fr; }
  .event-feature img { width: 90px; }
  .profile-stat-grid { grid-template-columns: 1fr 1fr; }
  .dimension-row { grid-template-columns: 54px 1fr 34px; gap: 8px; }
}

/* V0.4.0：净卡计划与四入口导航 */
.brand { min-width: 0; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.brand > strong { color: #fff; font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
.main-nav a.active { color: #142b38; background: linear-gradient(135deg, #f2d596, #c18b39); font-weight: 800; }
.hero h1 { max-width: 720px; }
.hero-author { margin: 13px 0 0; color: #d7e0e5; font-family: var(--serif); font-size: 18px; letter-spacing: .08em; }
.hero-lead { margin-top: 30px; font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: .08em; color: #f0d18e; }
.hero-atlas { padding-bottom: 24px; }
.atlas-wheel { margin-bottom: 4px; }

/* 中国史总图：卡片只保留朝代与时间 */
.period-tabs { gap: 16px; margin-bottom: 34px; }
.period-tab {
  min-height: 142px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: rgba(255,255,255,.065);
}
.period-tab::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 5px; }
.period-tab strong { font-size: clamp(27px, 3vw, 36px); line-height: 1.15; }
.period-tab span { margin-top: 12px; color: #f0d18e; font-size: 17px; line-height: 1.5; }
.era-rail { gap: 16px; }
.era-card {
  min-height: 142px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(155deg, rgba(255,255,255,.105), rgba(255,255,255,.04));
}
.era-card::before { width: 38px; height: 4px; margin: 0 0 18px; border-radius: 999px; box-shadow: none; }
.era-card strong { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.25; }
.era-card .range { margin-top: 12px; color: #f0d18e; font-size: 17px; line-height: 1.4; }
.era-card:hover { transform: translateY(-3px); border-color: rgba(240,209,142,.44); }

/* 独立课程主页 */
.course-page { background: linear-gradient(180deg, #f8f2e5, #f2e7d4); }
.course-hero { padding: 90px 0 48px; color: #fff; background: linear-gradient(145deg, #102938, #24485a); }
.course-hero .kicker { color: #e7c77f; }
.course-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 78px); line-height: 1.12; }
.course-hero p:not(.kicker) { max-width: 720px; margin: 12px 0 0; color: #d4e0e6; font-size: 16px; }
.course-main { padding: 46px 0 90px; }
.course-tools { display: grid; grid-template-columns: minmax(300px, 1.3fr) repeat(3, minmax(150px,.5fr)); gap: 12px; margin-bottom: 26px; }
.course-search, .course-select { min-height: 54px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf0; }
.course-search { display: flex; align-items: center; gap: 12px; padding: 0 17px; }
.course-search span { color: var(--bronze); font-weight: 800; font-size: 13px; }
.course-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.course-select { width: 100%; padding: 0 14px; color: var(--ink); font-weight: 700; outline: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.course-grid .lesson-card { overflow: hidden; border-radius: 20px; background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(37,43,51,.08); }
.course-grid .lesson-cover { min-height: 150px; position: relative; display: grid; place-items: center; color: #fff; background-size: cover; background-position: center; }
.course-grid .lesson-cover.placeholder { background: linear-gradient(145deg, color-mix(in srgb, var(--accent), #805f43 35%), #43525a); }
.course-grid .lesson-cover.placeholder > span:not(.lesson-badge) { font-family: var(--serif); font-size: 23px; }
.course-grid .lesson-badge { position: absolute; right: 11px; top: 11px; padding: 4px 9px; border-radius: 999px; color: #24313a; background: rgba(255,250,240,.92); font-size: 10px; font-weight: 800; }
.course-grid .lesson-body { padding: 18px 18px 20px; }
.course-grid .lesson-path { color: var(--bronze); font-size: 11px; }
.course-grid h2 { min-height: 2.5em; margin: 8px 0 7px; font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.course-grid p { min-height: 3.3em; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.course-card-action { margin-top: 18px; }
.course-card-action .button { width: 100%; }
.course-more { margin-top: 28px; text-align: center; }
.course-more.hidden { display: none; }
.course-empty { grid-column: 1/-1; padding: 46px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--ink-soft); background: rgba(255,250,240,.66); }

/* 兄弟项目 */
.brother-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.brother-card { min-height: 270px; padding: 26px; display: flex; flex-direction: column; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #173647, #264f5f); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.brother-card:nth-child(2) { background: linear-gradient(145deg, #304f65, #426f78); }
.brother-card:nth-child(3) { background: linear-gradient(145deg, #6d5031, #9b7442); }
.brother-card .brother-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #173647; background: #f0d18e; font-family: var(--serif); font-size: 22px; }
.brother-card h2 { margin: 24px 0 8px; font-family: var(--serif); font-size: 30px; }
.brother-card p { margin: 0; color: #d8e2e7; font-size: 14px; }
.brother-card .button { margin-top: auto; width: max-content; }

@media (max-width: 1020px) {
  .course-tools { grid-template-columns: 1fr 1fr; }
  .course-grid, .brother-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .brand-logo { width: 38px; height: 38px; border-radius: 12px; }
  .brand > strong { font-size: 15px; }
  .main-nav { display: none; }
  .hero-author { font-size: 15px; }
  .hero-lead { letter-spacing: .04em; }
  .period-tab { min-height: 118px; }
  .period-tab span, .era-card .range { font-size: 14px; }
  .era-card { min-height: 122px; }
  .course-hero { padding: 70px 0 40px; }
  .course-tools { grid-template-columns: 1fr; }
  .course-grid, .brother-grid { grid-template-columns: 1fr; }
}

.mobile-dock a.active span{color:#173647;background:#f0d18e}.mobile-dock a.active small{color:#fff;font-weight:800}


/* V0.5.1：中国近代史全站接入 */
.modern-launch-section { padding-top: 62px; padding-bottom: 30px; }
.modern-launch-card {
  display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); min-height: 390px;
  overflow: hidden; border-radius: 28px; color: #fff;
  background: linear-gradient(145deg,#102b39,#234f60); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(17,39,55,.18);
}
.modern-launch-art { position: relative; min-height: 390px; overflow: hidden; background: #183b49; }
.modern-launch-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 48%,rgba(16,43,57,.88)),linear-gradient(0deg,rgba(9,29,39,.55),transparent 55%); }
.modern-launch-art img { width:100%; height:100%; object-fit:cover; filter:saturate(.82) contrast(1.04); }
.modern-launch-art > span { position:absolute; z-index:2; left:16px; bottom:14px; padding:4px 9px; border-radius:999px; color:#fff; background:rgba(12,35,45,.76); border:1px solid rgba(255,255,255,.2); font-size:10px; }
.modern-launch-copy { padding: 42px clamp(28px,4vw,54px); align-self:center; }
.modern-launch-copy h2 { margin:0; font-family:var(--serif); font-size:clamp(42px,5vw,66px); line-height:1.1; }
.modern-launch-copy h3 { margin:12px 0 15px; color:#f0d18e; font-family:var(--serif); font-size:clamp(20px,2.3vw,30px); line-height:1.35; }
.modern-launch-copy > p:not(.kicker) { margin:0; color:#d8e3e8; font-size:15px; }
.modern-launch-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:24px 0; }
.modern-launch-meta span { padding:12px; text-align:center; border-radius:14px; background:rgba(255,255,255,.075); border:1px solid rgba(255,255,255,.1); }
.modern-launch-meta strong,.modern-launch-meta small { display:block; }
.modern-launch-meta strong { color:#f0d18e; font-size:18px; }
.modern-launch-meta small { color:#bbcbd3; font-size:10px; }
.modern-launch-actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.modern-launch-actions .button.small { color:#173647; background:linear-gradient(135deg,#f2d596,#c18b39); }
.modern-launch-actions .text-link { color:#f1dcad; }
@media (max-width: 850px) {
  .modern-launch-card { grid-template-columns:1fr; }
  .modern-launch-art { min-height:280px; }
  .modern-launch-art::after { background:linear-gradient(0deg,rgba(16,43,57,.92),transparent 55%); }
}
@media (max-width: 560px) {
  .modern-launch-section { padding-top:44px; }
  .modern-launch-art { min-height:220px; }
  .modern-launch-copy { padding:28px 22px 32px; }
  .modern-launch-meta { grid-template-columns:1fr 1fr; }
  .modern-launch-meta span:last-child { grid-column:1/-1; }
}
