:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #292a2d;
  background: #fafafa;
  font-synthesis: none;
  line-height: 1.7;
  --red: #bf3028;
  --muted: #717276;
  --line: #e9e9eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
a { color: inherit; }
.shell { max-width: 1100px; margin: auto; padding: 0 44px; }
.masthead { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 750; letter-spacing: 1px; }
.brand-icon { position: relative; display: grid; place-items: center; background: #d43c32; color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 25px; font-weight: 500; }
.brand-dot { position: absolute; width: 7px; height: 7px; border: 2px solid #fafafa; background: #d43c32; border-radius: 50%; right: -1px; bottom: 2px; }
.brand small { display: block; font-size: 8px; font-weight: 500; letter-spacing: 2.3px; color: var(--muted); margin-top: -2px; }
.edition { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.edition-dot { width: 5px; height: 5px; background: #b4b5b7; border-radius: 50%; }
.intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 43px 0 34px; gap: 32px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.intro .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--red); letter-spacing: 2px; }
.intro .eyebrow span { width: 18px; height: 2px; background: var(--red); }
h1 { font-size: 40px; line-height: 1.5; letter-spacing: -1px; font-weight: 750; margin: 0 0 15px; }
.red-period { color: var(--red); }
.intro-text { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0 0 20px; }
.mobile-break { display: none; }
.intro-tags { display: flex; gap: 10px; }
.intro-tags span { border: 1px solid #e3e3e6; padding: 2px 9px; border-radius: 4px; font-size: 10px; color: #77787d; }
.intro-art { aspect-ratio: 1.42; position: relative; overflow: hidden; background: #f0ece8; border-radius: 5px; }
.art-orbit { position: absolute; height: 125%; aspect-ratio: 1; top: -13%; left: 16%; border: 1px solid #d6c7be; border-radius: 50%; }
.art-square { width: 40%; aspect-ratio: 1; position: absolute; top: 11%; left: 23%; background: #d4483b; transform: rotate(-16deg); box-shadow: 10px 12px 0 #c32f2a; }
.art-circle { position: absolute; width: 43%; aspect-ratio: 1; border-radius: 50%; background: #24282b; top: 32%; right: 9%; }
.art-lines { position: absolute; width: 30%; height: 35%; background: repeating-linear-gradient(0deg, #f0ece8 0px, #f0ece8 7px, #24282b 7px, #24282b 8px); left: 9%; bottom: 10%; transform: rotate(-16deg); }
.art-label { position: absolute; color: white; right: 14%; top: 49%; font-size: 10px; line-height: 1.5; letter-spacing: 1.5px; font-weight: 650; }
.art-index { position: absolute; bottom: 10px; right: 12px; font-size: 8px; letter-spacing: 2px; color: #77716d; }
.notice { display: flex; align-items: flex-start; gap: 9px; background: #f4f1ee; border-radius: 6px; padding: 12px 15px; margin: 0 0 26px; }
.notice p { font-size: 11px; color: #76706a; margin: 0; line-height: 1.8; }
.notice strong { color: #675c54; font-weight: 600; }
.notice-dot { background: #ab795a; width: 5px; height: 5px; border-radius: 50%; flex: none; margin-top: 7px; }
.selection-guide { margin: -12px 0 26px; color: var(--muted); font-size: 12px; }
.selection-guide summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.selection-guide summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.selection-guide p { margin: 0 0 10px; max-width: 750px; line-height: 1.9; }
.selection-guide strong { color: #55565c; font-weight: 600; }
.content-switch { display: inline-flex; gap: 3px; padding: 3px; background: #eeeeF0; border-radius: 7px; margin-bottom: 23px; }
.content-switch button { color: var(--muted); background: transparent; border: 0; border-radius: 5px; padding: 8px 17px; font-size: 12px; min-height: 44px; }
.content-switch button.active { color: var(--red); background: white; box-shadow: 0 1px 4px #0000000a; font-weight: 600; }
.news-controls { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: -3px 0 14px; }
.news-controls p { margin: 0; font-size: 11px; color: var(--muted); }
.news-controls button { flex: none; border: 1px solid #e3e3e6; border-radius: 6px; padding: 8px 11px; background: white; font-size: 11px; color: var(--red); min-height: 44px; }
.news-controls button:disabled { opacity: .6; cursor: wait; }
.source-status-list { display: grid; gap: 9px; padding: 4px 0 14px; }
.source-details { margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.source-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.source-details summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.source-line { font-size: 10px; line-height: 1.9; background: #f0f1f2; padding: 10px 12px; border-radius: 5px; margin: 0; color: #727279; }
.source-line strong { display: block; color: #55565b; font-weight: 550; }
.source-stale, .source-error { background: #fbefea; }
.news-card { border-top: 3px solid #d65449; }
.news-card .card-body { gap: 12px; }
.news-card h3 { overflow-wrap: anywhere; }
.translation-label { font-size: 10px; color: #8b6557; }
.original-title { font-size: 12px; color: #77787e; margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.news-source { font-size: 12px; font-weight: 600; margin: 0; color: #606167; }
.news-trigger { font-size: 12px; color: #73747a; margin: 0; line-height: 1.8; }
.preference-reason { font-size: 11px; line-height: 1.8; color: #8a5147; background: #fbf1ee; border-radius: 5px; padding: 8px 10px; margin: 0; }
.edition-stamp { font-size: 12px; line-height: 1.9; color: #776a61; background: #f6f4f2; padding: 12px; border-radius: 6px; }
.history-controls { display: grid; gap: 10px; margin-bottom: 25px; }
.history-controls label { font-size: 14px; font-weight: 650; }
.history-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; background: white; color: #393a3e; }
.history-controls p { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 0; }
.news-date { display: block; font-size: 11px; color: #77777d; }
.news-detail { padding: 10px 0; min-height: 44px; color: var(--muted); font-size: 11px; border: 0; background: transparent; }
.news-card .card-actions { gap: 6px; }
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 13px 0; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; }
.tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { border-color: var(--red); color: var(--red); font-weight: 650; }
#saved-count { font-size: 10px; border-radius: 12px; background: #efefef; color: #747479; padding: 1px 5px; margin-left: 2px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 19px; gap: 10px; }
.section-heading .eyebrow { margin: 0 0 5px; font-size: 9px; color: #929297; }
.section-heading h2 { font-size: 23px; font-weight: 700; margin: 0; letter-spacing: -.4px; }
.section-heading > span { color: var(--muted); font-size: 11px; flex: none; padding-bottom: 3px; }
#topic-panel, #book-panel { scroll-margin-top: 24px; }
.filters { display: flex; gap: 8px; margin-bottom: 23px; overflow: auto; padding: 4px 0 5px; }
.filter { background: #f0f0f2; border: 1px solid transparent; border-radius: 6px; color: #696a70; padding: 8px 15px; font-size: 12px; white-space: nowrap; min-height: 44px; }
.filter.active { background: #fbece9; color: #ad2d25; font-weight: 600; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { overflow: hidden; border: 1px solid #e7e7e9; background: #fff; border-radius: 10px; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; gap: 15px; }
.card-cover { height: 185px; position: relative; overflow: hidden; flex: none; }
.cover-word { position: absolute; left: 25px; top: 26px; font-size: 25px; font-weight: 750; letter-spacing: 2px; z-index: 1; }
.cover-index { position: absolute; left: 27px; top: 70px; font-size: 8px; letter-spacing: 2px; z-index: 1; }
.cover-shape { position: absolute; display: block; }
.cover-family { background: #ecd9ce; color: #593a31; }
.cover-family .shape-one { background: #c16048; width: 85px; height: 107px; right: 55px; bottom: -5px; border-radius: 55px 55px 0 0; transform: rotate(-15deg); }
.cover-family .shape-two { width: 100px; height: 130px; border: 1px solid #845b47; border-radius: 80px 80px 0 0; bottom: -10px; right: 25px; transform: rotate(15deg); }
.cover-family .shape-three { width: 160px; height: 1px; background: #b38c77; right: 0; top: 20px; transform: rotate(-35deg); }
.cover-degree { background: #dce4ed; color: #384b62; }
.cover-degree .shape-one { width: 55px; height: 65px; right: 100px; bottom: 0; background: #aabed2; }
.cover-degree .shape-two { width: 55px; height: 100px; right: 45px; bottom: 0; background: #637f9b; }
.cover-degree .shape-three { width: 55px; height: 135px; right: -10px; bottom: 0; background: #364f69; }
.cover-access { background: #dfe6de; color: #3b5342; }
.cover-access .shape-one { width: 104px; height: 145px; right: 45px; bottom: -1px; background: #7f9982; border-radius: 65px 65px 0 0; }
.cover-access .shape-two { width: 68px; height: 112px; right: 63px; bottom: -1px; background: #dfe6de; border-radius: 50px 50px 0 0; }
.cover-access .shape-three { width: 104px; height: 145px; right: 18px; bottom: -10px; border: 1px solid #4c6851; border-radius: 65px 65px 0 0; }
.cover-vocational { background: #e9e0d4; color: #634c34; }
.cover-vocational .shape-one { width: 95px; height: 95px; right: 48px; top: 65px; background: #bb9765; transform: rotate(-15deg); }
.cover-vocational .shape-two { width: 80px; height: 80px; right: -14px; top: 110px; border: 1px solid #886d47; transform: rotate(25deg); }
.cover-vocational .shape-three { width: 1px; height: 200px; right: 98px; top: -20px; background: #b39a76; transform: rotate(42deg); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.category { font-size: 11px; color: var(--red); font-weight: 600; }
.region { font-size: 10px; color: var(--muted); }
.card h3 { font-size: 22px; line-height: 1.65; font-weight: 700; margin: 0; letter-spacing: -.4px; }
.scenario { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.85; }
.lens { border-left: 2px solid #d95349; padding-left: 11px; font-size: 12px; margin: 0; color: #55565c; }
.lens strong { display: block; font-size: 10px; color: #85858a; margin-bottom: 3px; font-weight: 450; }
.source-status { font-size: 10px; color: #77777d; margin: 0; }
.selection-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.topic-kind { background: #f3f3f5; color: #62636a; font-size: 10px; padding: 2px 7px; border-radius: 4px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #efeff1; margin-top: auto; padding-top: 10px; }
.open-detail { background: none; border: 0; color: var(--red); font-size: 12px; padding: 11px 0; min-height: 44px; }
.save { border: 1px solid #e5e5e8; background: transparent; color: #66676d; border-radius: 6px; padding: 8px 12px; font-size: 12px; min-height: 44px; }
.save[aria-pressed=true] { background: #fbece9; color: #ad2d25; border-color: #f0cbc5; }
.empty { grid-column: 1/-1; text-align: center; border: 1px dashed #dadade; background: white; padding: 50px 20px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.section-description { font-size: 13px; color: var(--muted); margin: -3px 0 24px; }
.book-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.book { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 24px; border-top: 3px solid #ce5347; }
.book-number { font-size: 12px; letter-spacing: 2px; color: var(--red); }
.book h3 { font-size: 21px; font-weight: 700; margin: 12px 0 5px; }
.book-author { font-size: 12px; color: var(--muted); }
.book p:last-child { font-size: 13px; color: #606167; }
.method { margin-top: 38px; padding: 25px 0; display: flex; gap: 18px; border-top: 1px solid var(--line); }
.method-mark { font-family: Georgia, serif; font-size: 40px; color: #c34c43; line-height: 1; }
.method h2 { font-size: 14px; margin: 0 0 7px; font-weight: 650; }
.method p { font-size: 12px; line-height: 1.9; color: var(--muted); max-width: 720px; margin: 0; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 23px 0 30px; color: #77777d; font-size: 10px; }
dialog { border: 0; border-radius: 12px; background: #fff; color: #292a2d; max-width: 630px; width: calc(100% - 32px); max-height: 85dvh; padding: 28px; overscroll-behavior: contain; box-shadow: 0 16px 70px #0003; }
dialog::backdrop { background: #17171988; backdrop-filter: blur(4px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.dialog-top .eyebrow { margin: 0; color: var(--red); }
.close { font-size: 18px; background: none; border: 0; color: var(--muted); width: 44px; height: 44px; }
dialog h2 { font-size: 26px; font-weight: 700; line-height: 1.6; }
dialog h3 { font-size: 13px; color: var(--red); margin: 26px 0 8px; }
dialog p, dialog li { font-size: 14px; line-height: 1.9; }
dialog ul { padding-left: 20px; }
.detail-disclaimer { background: #f6f4f2; border-radius: 6px; padding: 12px; font-size: 12px !important; color: #756a60; }
.copy { background: var(--red); color: white; border: 0; border-radius: 7px; padding: 12px 20px; margin-top: 16px; min-height: 44px; }
.copy-fallback { width: 100%; min-height: 150px; font: inherit; font-size: 13px; margin-top: 12px; }
#toast { position: fixed; z-index: 10; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #292a2d; color: white; border-radius: 8px; padding: 11px 18px; font-size: 13px; max-width: 90%; box-shadow: 0 4px 20px #0002; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.visible { opacity: 1; }
[hidden] { display: none !important; }
@media (hover: hover) { .card:hover { box-shadow: 0 7px 25px #1f1f240a; } .open-detail:hover { text-decoration: underline; } }
@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .masthead { padding: max(17px, env(safe-area-inset-top)) 0 17px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-icon { width: 38px; height: 38px; font-size: 22px; }
  .brand small { font-size: 7px; letter-spacing: 1.7px; }
  .edition { font-size: 10px; }
  .intro { display: block; padding: 28px 0 23px; }
  .news-mode .intro { padding: 21px 0 18px; }
  .news-mode .intro-text, .news-mode .intro-tags { display: none; }
  .news-mode h1 { font-size: 26px; line-height: 1.5; margin-bottom: 0; }
  .intro .eyebrow { font-size: 10px; margin-bottom: 12px; }
  h1 { font-size: clamp(25px, 7.15vw, 37px); line-height: 1.6; letter-spacing: -.8px; margin-bottom: 12px; }
  .intro-text { font-size: 12px; margin-bottom: 16px; }
  .mobile-break { display: initial; }
  .intro-tags { gap: 7px; }
  .intro-tags span { font-size: 9px; }
  .intro-art { display: none; }
  .notice { padding: 11px 12px; margin-bottom: 26px; }
  .notice p { font-size: 10px; }
  .tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 5px max(10px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border: 0; border-top: 1px solid #e8e8eb; background: #ffffffed; backdrop-filter: blur(15px); }
  .tab { flex-direction: column; justify-content: center; gap: 3px; padding: 7px 4px; font-size: 10px; min-height: 56px; border: 0; }
  .tab svg { width: 22px; height: 22px; stroke-width: 1.65; }
  #saved-count { font-size: 8px; padding: 1px 4px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading .eyebrow { font-size: 8px; }
  .section-heading > span { font-size: 10px; }
  .topic-list, .book-list { grid-template-columns: 1fr; gap: 22px; }
  .card-cover { height: 145px; }
  .cover-word { font-size: 22px; top: 21px; left: 22px; }
  .cover-index { top: 60px; left: 23px; font-size: 7px; }
  .cover-family .shape-one { right: 36px; width: 65px; height: 80px; }
  .cover-family .shape-two { right: 14px; width: 76px; height: 100px; }
  .cover-access .shape-one { right: 23px; width: 85px; height: 110px; }
  .cover-access .shape-two { right: 40px; width: 51px; height: 85px; }
  .cover-access .shape-three { right: 5px; width: 85px; height: 110px; }
  .cover-degree .shape-one { right: 76px; width: 43px; height: 48px; }
  .cover-degree .shape-two { right: 33px; width: 43px; height: 77px; }
  .cover-degree .shape-three { right: -10px; width: 43px; height: 106px; }
  .cover-vocational .shape-one { width: 76px; height: 76px; right: 26px; top: 62px; }
  .card-body { padding: 19px 20px 15px; gap: 13px; }
  .card h3 { font-size: 21px; }
  .scenario { font-size: 12px; }
  .filters { margin-right: -20px; padding-right: 20px; gap: 7px; margin-bottom: 18px; }
  .filter { padding: 8px 12px; font-size: 11px; }
  .method { gap: 14px; margin-top: 30px; }
  dialog { padding: 20px; max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  dialog h2 { font-size: 23px; }
  footer { padding-bottom: calc(103px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(85px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
