:root {
  color-scheme: light;
  --green: #0b7a46;
  --green-dark: #075d36;
  --green-pale: #eaf5ed;
  --ink: #17231d;
  --muted: #647069;
  --line: #dbe4de;
  --paper: #ffffff;
  --page: #f4f7f4;
  --red: #c94b43;
  --blue: #3d78a3;
  --yellow: #e4b43b;
  --radius: 8px;
  --shadow: 0 14px 34px rgba(24, 58, 39, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 8px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(219, 228, 222, 0.9); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 18px; line-height: 1.2; }
.brand-copy small, .user-state { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.quiet-button, .back-button { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 13px; color: var(--green-dark); background: #fff; font-weight: 700; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.quiet-button:hover, .back-button:hover { border-color: #9fc1aa; background: var(--green-pale); }
.quiet-button:active, .back-button:active, .theme-row:active, .featured-theme:active { transform: translateY(1px); }

.home-shell, .theme-workspace, .plan-only { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.home-shell { padding: 48px 0 64px; }
.home-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; align-items: end; padding: 0 0 50px; }
.lead-copy { max-width: 670px; }
.section-label { margin-bottom: 9px; color: var(--green); font-size: 12px; font-weight: 800; }
.lead-copy h1 { margin-bottom: 18px; font-size: 58px; line-height: 1.06; letter-spacing: 0; }
.lead-copy > p:not(.section-label) { max-width: 510px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.82; }
.life-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.life-tags span { border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; color: var(--muted); background: rgba(255, 255, 255, .68); font-size: 12px; }
.life-tags span:nth-child(2) { border-color: #ebd5d2; color: var(--red); }
.life-tags span:nth-child(3) { border-color: #d5e2e9; color: var(--blue); }
.featured-theme { position: relative; display: grid; align-content: end; justify-items: start; min-height: 244px; overflow: hidden; border: 0; border-bottom: 5px solid var(--yellow); padding: 26px; color: #fff; background: var(--green-dark); text-align: left; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.featured-theme::after { content: "百"; position: absolute; top: 2px; right: 22px; color: rgba(255,255,255,.11); font-family: "STKaiti", "KaiTi", serif; font-size: 170px; font-weight: 800; line-height: 1; }
.featured-theme:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(24, 58, 39, .17); }
.featured-label, .featured-theme strong, .featured-theme small, .featured-arrow { position: relative; z-index: 1; }
.featured-label { margin-bottom: 16px; color: #b9dcc6; font-size: 12px; font-weight: 800; }
.featured-theme strong { font-size: 34px; line-height: 1.15; }
.featured-theme small { margin-top: 8px; color: #d5e9da; font-size: 13px; }
.featured-arrow { margin-top: 25px; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; font-size: 13px; font-weight: 800; }

.directory-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.directory-head h2 { margin: 0; font-size: 25px; line-height: 1.25; }
.directory-count { margin: 0; color: var(--muted); font-size: 13px; }
.theme-directory { display: grid; gap: 30px; }
.age-group { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 26px; align-items: start; }
.age-label { border-top: 2px solid var(--green); padding-top: 10px; color: var(--green-dark); font-size: 19px; font-weight: 800; }
.age-label small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.theme-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 26px; align-items: center; min-height: 76px; gap: 12px; border: 0; border-top: 1px solid var(--line); padding: 11px 0; color: var(--ink); background: transparent; text-align: left; transition: background .2s ease, transform .2s ease; }
.theme-row:hover { background: rgba(234, 245, 237, .58); }
.theme-row.is-featured { border-top-color: #7bb493; }
.theme-month { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.theme-name { min-width: 0; font-size: 17px; font-weight: 800; line-height: 1.42; }
.theme-name small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.theme-arrow { display: grid; width: 26px; height: 26px; place-items: center; color: var(--green); font-size: 18px; transition: transform .2s ease; }
.theme-row:hover .theme-arrow { transform: translateX(3px); }
.age-empty { margin: 0; border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }

.theme-hero { color: #fff; background: var(--green-dark); border-bottom: 6px solid var(--yellow); }
.theme-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; width: min(1180px, calc(100% - 48px)); min-height: 280px; margin: 0 auto; padding: 42px 0; }
.back-button { margin-bottom: 25px; color: #d8eee0; border-color: rgba(255,255,255,.34); background: transparent; }
.back-button:hover { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.09); }
.theme-kicker { margin-bottom: 16px; color: #b9dcc6; font-size: 13px; font-weight: 800; }
.theme-title { margin-bottom: 13px; font-family: "STKaiti", "KaiTi", "FangSong", serif; font-size: 64px; line-height: 1; letter-spacing: 0; }
.theme-meta { max-width: 620px; margin-bottom: 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.7; }
.plan-download { display: grid; grid-template-columns: 46px minmax(120px, 1fr) 20px; align-items: center; gap: 12px; width: 255px; min-height: 86px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 14px; color: var(--ink); background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.16); text-decoration: none; transition: transform .2s ease; }
.plan-download:hover { transform: translateY(-2px); }
.plan-download strong, .plan-download small { display: block; }
.plan-download strong { font-size: 15px; }
.plan-download small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.plan-download b { color: var(--green); font-size: 22px; }
.file-symbol { display: inline-grid; width: 42px; height: 48px; place-items: center; border-radius: 5px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 900; }

.theme-workspace { padding: 32px 0 70px; }
.content-nav { display: flex; overflow-x: auto; margin-bottom: 34px; border-bottom: 1px solid var(--line); background: transparent; scrollbar-width: none; }
.content-nav::-webkit-scrollbar { display: none; }
.content-nav button { display: grid; flex: 0 0 auto; gap: 4px; min-height: 59px; border: 0; border-bottom: 3px solid transparent; padding: 8px 18px; color: var(--green-dark); background: transparent; font-size: 14px; font-weight: 800; text-align: left; }
.content-nav button:hover, .content-nav button.active { border-bottom-color: var(--green); background: var(--green-pale); }
.content-nav small { color: var(--muted); font-size: 11px; font-weight: 500; }
.workspace-view { animation: view-in .36s cubic-bezier(.16,1,.3,1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.workspace-heading, .week-panel-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.workspace-heading { margin-bottom: 18px; }
.workspace-heading h2, .week-panel-header h2 { margin-bottom: 0; font-size: 25px; line-height: 1.3; }
.week-summary { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.week-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.week-tab { min-height: 68px; border: 0; border-right: 1px solid var(--line); padding: 10px 12px; color: var(--muted); background: #fff; text-align: left; }
.week-tab:last-child { border-right: 0; }
.week-tab strong, .week-tab small { display: block; }
.week-tab strong { margin-bottom: 5px; color: var(--ink); font-size: 15px; }
.week-tab small { font-size: 12px; }
.week-tab:hover { background: #f7faf7; }
.week-tab.active { background: var(--green); }
.week-tab.active strong, .week-tab.active small { color: #fff; }
.week-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.week-panel-header { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.week-plan-link { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid #bdd7c6; border-radius: var(--radius); padding: 0 13px; color: var(--green-dark); background: var(--green-pale); font-size: 13px; font-weight: 800; text-decoration: none; }
.activity-category + .activity-category { border-top: 1px solid var(--line); }
.activity-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 26px 12px; }
.activity-category-heading h3 { margin: 0; color: var(--green-dark); font-size: 16px; }
.activity-category-heading span { color: var(--muted); font-size: 12px; }
.activity-category.is-collective .activity-category-heading, .activity-table-head { background: #f7f9f7; }
.activity-table-head, .activity-row { display: grid; grid-template-columns: 76px 76px minmax(220px, 1fr) minmax(200px, auto); align-items: center; gap: 16px; }
.activity-table-head { min-height: 42px; padding: 0 26px; color: #7b8780; font-size: 12px; font-weight: 700; }
.activity-row { min-height: 78px; padding: 12px 26px; border-top: 1px solid #edf1ee; }
.activity-row:hover, .simple-activity-row:hover { background: #fbfdfb; }
.activity-day { color: var(--muted); font-size: 14px; font-weight: 700; }
.activity-row h4, .simple-activity-row h4 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.field { display: inline-grid; width: 44px; min-height: 26px; place-items: center; border-radius: 5px; color: #315245; background: var(--green-pale); font-size: 12px; font-weight: 800; }
.field-数学 { color: #285a7c; background: #e8f1f7; }
.field-艺术, .field-音乐 { color: #8a4a45; background: #faecea; }
.field-健康 { color: #7b5c18; background: #f9f0d9; }
.activity-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.resource-action { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 11px; color: #33453c; background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.resource-action-wrap { display: inline-flex; align-items: center; gap: 6px; }
.resource-action span { display: inline; width: auto; height: auto; color: var(--green-dark); background: transparent; font-size: 12px; font-weight: 850; }
.resource-action b { color: var(--ink); font-size: 12px; font-weight: 750; }
.resource-preview-action { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 10px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.resource-action:hover { border-color: #9fc1aa; background: var(--green-pale); }
.resource-preview-action:hover { border-color: #9fc1aa; background: #e1f0e5; }
.file-preview-dialog { width: min(960px, calc(100% - 32px)); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(24,58,39,.24); }
.file-preview-dialog::backdrop { background: rgba(16, 31, 22, .5); }
.file-preview-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.file-preview-dialog h2 { margin: 0; overflow-wrap: anywhere; font-size: 16px; }
.file-preview-dialog header button { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; color: var(--green-dark); background: #fff; cursor: pointer; }
.file-preview-body { padding: 18px; }
.file-preview-image { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; object-fit: contain; }
.file-preview-frame { display: block; width: 100%; height: 72vh; border: 0; }
.file-preview-unavailable { padding: 48px 24px; text-align: center; color: var(--muted); }
.file-preview-unavailable strong { color: var(--ink); font-size: 18px; }
.no-file { color: var(--muted); font-size: 13px; }
.simple-activity-list { display: grid; padding: 0 26px 12px; }
.simple-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: center; gap: 16px; min-height: 60px; border-top: 1px solid #edf1ee; }
.simple-activity-row:first-child { border-top: 0; }
.supporting-meta { display: block; margin-bottom: 4px; color: var(--green); font-size: 11px; font-weight: 800; }
.category-empty { display: grid; gap: 5px; margin: 0; padding: 24px 26px 28px; color: var(--muted); font-size: 13px; }
.category-empty strong { color: var(--ink); font-size: 15px; }
.support-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 10px 26px 28px; }
.support-group { border-top: 2px solid var(--green); background: #fbfdfb; }
.support-group:nth-child(2n) { border-top-color: var(--yellow); }
.support-group:nth-child(3n) { border-top-color: var(--blue); }
.support-group header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 13px 14px 10px; }
.support-index { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.support-group header h4 { margin: 0; color: var(--green-dark); font-size: 14px; }
.support-group header small { color: var(--muted); font-size: 11px; }
.support-items { padding: 0 14px 8px; }
.support-items .simple-activity-row { min-height: 0; padding: 11px 0; }
.support-items .simple-activity-row h4 { font-size: 14px; font-weight: 700; }
.region-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.region-entry { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 128px; border: 0; border-bottom: 1px solid var(--line); padding: 20px 4px; color: var(--ink); background: transparent; text-align: left; transition: background .24s ease, transform .24s ease; animation: view-in .42s cubic-bezier(.16,1,.3,1) both; }
.region-entry:nth-child(2) { animation-delay: .04s; }.region-entry:nth-child(3) { animation-delay: .08s; }.region-entry:nth-child(4) { animation-delay: .12s; }.region-entry:nth-child(5) { animation-delay: .16s; }.region-entry:nth-child(6) { animation-delay: .2s; }
.region-entry:hover { transform: translateX(5px); background: linear-gradient(90deg, rgba(234,245,237,.8), transparent); }
.region-number, .resource-entry-index { align-self: start; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.region-entry strong, .region-entry small { display: block; }.region-entry strong { margin-bottom: 8px; color: var(--green-dark); font-size: 19px; }.region-entry small { max-width: 280px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.region-entry b { align-self: start; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }.region-entry b span { margin-left: 6px; color: var(--green); font-size: 17px; }
.region-detail { margin-top: 10px; border-top: 2px solid var(--green); animation: view-in .3s ease both; }.back-link { margin: 20px 0 16px; border: 0; padding: 0; color: var(--green); background: transparent; font-size: 13px; font-weight: 800; }.back-link:hover { color: var(--green-dark); }
.region-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }.region-detail-heading h3 { margin: 0; color: var(--green-dark); font-size: 27px; }.region-detail-heading > span { color: var(--muted); font-size: 13px; }.region-activity-list { border-top: 1px solid var(--line); }.region-activity { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 74px; border-bottom: 1px solid #edf1ee; padding: 12px 0; }.region-activity > span { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }.region-activity h4 { margin: 0 0 4px; font-size: 16px; }.region-activity p { margin: 0; color: var(--muted); font-size: 12px; }
.resource-hub { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }.resource-entry { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; gap: 16px; min-height: 196px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); background: #fff; text-align: left; box-shadow: 0 10px 28px rgba(24,58,39,.045); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; animation: view-in .45s cubic-bezier(.16,1,.3,1) both; }.resource-entry:first-child { min-height: 250px; background: #eff7f0; }.resource-entry:nth-child(2) { animation-delay: .06s; }
.resource-entry:hover { transform: translateY(-4px); border-color: #9fc1aa; box-shadow: 0 18px 34px rgba(24,58,39,.1); }.resource-entry-copy { display: grid; align-content: start; gap: 8px; }.resource-entry-copy strong { color: var(--green-dark); font-size: 22px; }.resource-entry-copy small { color: var(--muted); font-size: 13px; line-height: 1.6; }.resource-entry-copy em { margin-top: 6px; color: var(--green); font-size: 12px; font-style: normal; font-weight: 800; }.resource-entry-arrow { color: var(--green); font-size: 22px; }.resource-preview { position: absolute; right: 24px; bottom: 24px; left: 82px; display: grid; gap: 7px; }.resource-preview i { display: block; overflow: hidden; border-bottom: 1px solid rgba(11,122,70,.16); padding-bottom: 7px; color: #527062; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }.resource-environment { background: #fffaf0; }.resource-environment .resource-entry-index, .resource-environment .resource-entry-copy em { color: #a37819; }.resource-information { background: #f2f6fa; }.resource-information .resource-entry-index, .resource-information .resource-entry-copy em { color: var(--blue); }
.plan-only { padding: 55px 0 80px; }
.plan-only h2 { margin-bottom: 12px; font-size: 28px; }
.plan-only > p:last-child { max-width: 520px; margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 12px; }
.empty-state { margin: 0; padding: 32px 0; color: var(--muted); text-align: center; }

/* Teacher-facing directory refinement. */
.home-view { background: #fafbfc; }
.home-shell { padding-top: 32px; }
.home-lead { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 36px; }
.lead-copy { max-width: none; }
.lead-copy h1 { font-size: 32px; line-height: 1.35; margin-bottom: 10px; }
.lead-copy > p:not(.section-label) { font-size: 17px; }
.life-tags { margin-top: 16px; gap: 20px; }
.life-tags span { border: 0; border-radius: 0; padding: 0; background: transparent; }
.featured-theme { grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; align-content: center; min-height: 108px; padding: 22px 26px; background: #edf2f6; color: #253c50; border-bottom: 0; border-left: 3px solid #658ba7; box-shadow: none; }
.featured-theme::after { display: none; }
.featured-label { grid-column: 1; grid-row: 1 / 3; margin: 0; color: #536a7a; }
.featured-theme strong { font-size: 26px; grid-column: 2; }
.featured-theme small { grid-column: 2; color: #627481; }
.featured-arrow { grid-column: 3; grid-row: 1 / 3; margin: 0; color: #385d76; border-color: #bacbd7; }
.featured-theme:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(40,65,80,.06); }
.directory-head { margin-bottom: 22px; }
.directory-head h2 { font-size: 24px; }
.directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.age-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.age-filters button { min-height: 40px; min-width: 60px; padding: 8px 16px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; }
.age-filters button[aria-pressed="true"] { background: var(--green-dark); color: white; }
.theme-search { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.theme-search input { width: 240px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: white; color: var(--ink); }
.age-group { grid-template-columns: 100px minmax(0, 1fr); gap: 28px; }
.theme-grid { gap: 16px; }
.theme-row { grid-template-columns: minmax(0, 1fr) 26px; gap: 8px; min-height: 138px; padding: 20px; border: 1px solid #e0e5e7; border-radius: 6px; background: white; }
.theme-month { grid-column: 1; color: #657681; font-weight: 500; }
.theme-name { grid-column: 1; font-size: 18px; }
.theme-name small { margin-top: 8px; }
.theme-arrow { grid-column: 2; grid-row: 1 / 3; }
.theme-row:hover { border-color: #9bb8a9; background: white; transform: translateY(-2px); }
.theme-hero { color: var(--ink); background: #eef2f4; border-bottom: 1px solid #dce3e6; }
.theme-hero-inner { min-height: 240px; padding: 28px 0; }
.theme-title { font-family: inherit; font-size: 38px; line-height: 1.35; overflow-wrap: anywhere; }
.theme-kicker, .theme-meta { color: #61717a; }
.back-button { color: var(--green-dark); border-color: #cad6d1; background: white; }
.back-button:hover { color: var(--green-dark); background: var(--green-pale); }
.plan-download { box-shadow: 0 4px 16px rgba(30,55,65,.04); }
.week-panel { border-radius: 0; border-inline: 0; box-shadow: none; }
.region-entry:hover { background: #edf3f2; }
.quiet-button { display: inline-flex; align-items: center; }
:is(button, a, input):focus-visible { outline: 3px solid #3d78a3; outline-offset: 4px; }
.theme-view { animation: view-in .3s ease both; }
@media (max-width: 760px) {
  .directory-tools { align-items: stretch; flex-direction: column; gap: 14px; }
  .theme-search { justify-content: space-between; }
  .theme-search input { width: min(70%, 320px); }
  .age-group { grid-template-columns: 1fr; gap: 14px; }
  .age-label small { display: inline; margin-left: 12px; }
  .home-view .lead-copy h1 { font-size: 28px; }
  .home-view .featured-theme { min-height: 126px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 20px; }
  .featured-label { grid-column: 1; grid-row: auto; }
  .featured-theme strong, .featured-theme small { grid-column: 1; }
  .featured-arrow { grid-column: 2; grid-row: 1 / 4; }
  .home-view .theme-row { grid-template-columns: minmax(0, 1fr) 26px; min-height: 124px; }
  .theme-view .theme-title { font-size: 30px; }
  .theme-view .week-summary { white-space: normal; }
}

/* 管理后台 */
.admin-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 72px; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-intro h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; }
.admin-intro p:not(.section-label) { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }
.admin-count { display: grid; justify-items: end; gap: 4px; color: var(--muted); }
.admin-count strong { color: var(--green); font-size: 42px; line-height: 1; }
.admin-login-panel, .admin-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.admin-login-panel { max-width: 560px; padding: 28px; }
.panel-heading h2 { margin: 0; font-size: 23px; }
.panel-heading .section-label { margin-bottom: 7px; }
.admin-login-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 22px; }
.admin-login-form label, .resource-form label, .status-control { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-login-form input, .resource-form input, .resource-form select, .resource-form textarea, .status-control select { width: 100%; min-height: 42px; border: 1px solid #cad6ce; border-radius: var(--radius); padding: 8px 11px; color: var(--ink); background: #fff; }
.resource-form textarea { resize: vertical; line-height: 1.6; }
.admin-login-form input:focus, .resource-form input:focus, .resource-form select:focus, .resource-form textarea:focus, .status-control select:focus { outline: 3px solid rgba(11,122,70,.14); border-color: var(--green); }
.primary-button, .danger-button { min-height: 42px; border: 0; border-radius: var(--radius); padding: 0 15px; font-weight: 800; }
.primary-button { color: #fff; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.danger-button { color: #a33e38; background: #fff1ef; }
.danger-button:hover { background: #ffe4e0; }
.admin-workspace { display: grid; gap: 22px; }
.upload-panel, .admin-panel:not(.upload-panel) { padding: 28px; }
.panel-note, .privacy-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.panel-note { margin: 10px 0 22px; }
.privacy-note { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid var(--yellow); }
.resource-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.form-actions, .list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions { justify-content: flex-start; }
.form-status { min-height: 20px; margin: 0; font-size: 13px; line-height: 1.5; }
.uploading { color: var(--muted); }.success-text { color: var(--green); }.error-text { color: var(--red); }
.list-heading { align-items: end; margin-bottom: 18px; }
.admin-resource-list { display: grid; gap: 10px; }
.admin-resource { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdfb; }
.admin-resource-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }.admin-resource-title h3 { overflow-wrap: anywhere; margin: 0; font-size: 17px; }
.resource-id { flex: 0 0 auto; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.admin-resource-main > p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.admin-resource-main .admin-summary { max-width: 760px; color: var(--ink); }
.admin-tags, .admin-files { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }.admin-tags span { border-radius: 4px; padding: 4px 7px; color: var(--green-dark); background: var(--green-pale); font-size: 11px; }.admin-files { gap: 8px 14px; }
.admin-file-link { color: var(--blue); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }.admin-resource-actions { display: grid; align-content: start; justify-items: stretch; gap: 12px; min-width: 142px; }.status-control select { min-height: 38px; padding: 6px 8px; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 30; transform: translate(-50%, 16px); opacity: 0; border-radius: var(--radius); padding: 11px 15px; color: #fff; background: var(--green-dark); pointer-events: none; transition: .2s ease; }.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 820px) {
  .home-lead { grid-template-columns: 1fr; gap: 28px; }.featured-theme { min-height: 190px; max-width: 520px; }
  .age-group { grid-template-columns: 1fr; gap: 12px; }.age-label { width: 120px; }
  .admin-login-form, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-login-form .primary-button { grid-column: 1 / -1; }.admin-resource { grid-template-columns: 1fr; }.admin-resource-actions { grid-template-columns: minmax(0, 1fr) minmax(100px, auto); align-items: end; }
  .region-directory, .resource-hub { grid-template-columns: 1fr; }.resource-entry:first-child { min-height: 260px; grid-row: auto; }
}

@media (max-width: 760px) {
  .topbar { min-height: 64px; gap: 12px; padding: 7px 14px; }.brand-logo { width: 44px; height: 44px; }.brand-copy strong { font-size: 16px; }.brand-copy small, .user-state { display: none; }.quiet-button { padding: 0 10px; }
  .home-shell, .theme-workspace, .plan-only, .admin-main { width: min(100% - 28px, 1180px); }.home-shell { padding: 34px 0 46px; }.home-lead { padding-bottom: 36px; }.lead-copy h1 { font-size: 42px; }.lead-copy > p:not(.section-label) { font-size: 15px; }
  .directory-head { align-items: start; }.directory-head h2 { font-size: 22px; }.directory-count { padding-top: 22px; white-space: nowrap; }.theme-grid { grid-template-columns: 1fr; }.theme-row { grid-template-columns: 76px minmax(0, 1fr) 26px; min-height: 68px; }.theme-name { font-size: 16px; }
  .theme-hero-inner { grid-template-columns: 1fr; gap: 28px; width: min(100% - 36px, 1180px); min-height: 0; padding: 32px 0; }.back-button { margin-bottom: 20px; }.theme-title { font-size: 50px; }.theme-meta { font-size: 14px; }.plan-download { width: 100%; }
  .theme-workspace { padding: 28px 0 44px; }.content-nav { margin-bottom: 28px; }.content-nav button { min-height: 56px; padding: 8px 13px; }.workspace-heading { align-items: start; }.workspace-heading h2 { font-size: 21px; }.week-summary { padding-top: 24px; font-size: 12px; }.week-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }.week-tabs::-webkit-scrollbar { display: none; }.week-tab { flex: 0 0 112px; }
  .week-panel-header { align-items: start; padding: 20px 16px 16px; }.week-panel-header h2 { font-size: 20px; }.week-plan-link { flex: 0 0 auto; padding: 0 10px; }.activity-table-head { display: none; }.activity-row { grid-template-columns: 48px 1fr; gap: 8px 12px; padding: 16px; }.activity-day { grid-column: 1; grid-row: 1; }.field { grid-column: 1; grid-row: 2; }.activity-row h4 { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 16px; }.activity-actions { grid-column: 1 / -1; justify-content: start; margin-top: 5px; }.resource-action { flex: 1; justify-content: center; }.activity-category-heading { padding-inline: 16px; }.simple-activity-list { padding-inline: 16px; }.simple-activity-row { grid-template-columns: 1fr; gap: 8px; padding: 13px 0; }.simple-activity-row .activity-actions { margin-top: 0; }.support-groups { grid-template-columns: 1fr; gap: 12px; padding: 8px 16px 22px; }
  .region-entry { min-height: 112px; padding: 17px 0; }.region-entry strong { font-size: 17px; }.region-entry small { font-size: 12px; }.region-detail-heading { align-items: start; }.region-activity { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }.region-activity .activity-actions { grid-column: 2; }.resource-entry { min-height: 180px; padding: 20px; }.resource-entry-copy strong { font-size: 19px; }.resource-preview { left: 78px; }
  .site-footer { width: min(100% - 32px, 1180px); padding: 22px 0 30px; }.plan-only { padding: 40px 0 55px; }.plan-only h2 { font-size: 24px; }
  .admin-main { padding: 32px 0 48px; }.admin-intro { align-items: start; }.admin-intro h1 { font-size: 28px; }.admin-count { display: none; }.admin-login-panel, .upload-panel, .admin-panel:not(.upload-panel) { padding: 20px 16px; }
}

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

@media (max-width: 420px) {
  .top-actions { gap: 0; }.featured-theme { min-height: 176px; }.directory-head { display: block; }.directory-count { padding-top: 8px; }.week-panel-header { display: grid; }.week-plan-link { width: 100%; justify-content: center; }.admin-login-form, .form-grid, .admin-resource-actions { grid-template-columns: 1fr; }.list-heading { align-items: start; }
}
