/* 深蓝学堂 · 数字教育平台门户 — 明亮海军蓝白红视觉系统
   主色：海军蓝 / 白 / 五星红旗红；母题：舰艏斜切。
   全部图片来自 hgd-home/picture。 */

:root {
  --bg: #ffffff;
  --field: #f3f8ff;
  --field-2: #e7f1fd;
  --field-3: #d0e2f7;
  --field-ink: #0b2b55;
  --field-muted: #3f648f;

  --navy: #0e519f;
  --navy-deep: #0a3b78;
  --navy-bright: #1c6dcc;
  --deep: #0a3b78;
  --surface: #0e519f;
  --surface-2: #1661b4;
  --surface-3: #2b7bd6;
  --ink: #ffffff;
  --muted: #d7e8fb;

  --red: #de2910;
  --red-deep: #b81f0c;
  --gold: #f5c518;
  --accent: #de2910;
  --accent-ink: #ffffff;

  --cut: 22px;
  --cut-lg: 40px;
  --pad: clamp(18px, 3.4vw, 56px);
  --step-small: clamp(13px, 0.79rem + 0.1vw, 14px);
  --step-body: clamp(16px, 1rem + 0.25vw, 19px);
  --step-lead: clamp(20px, 1.1rem + 0.7vw, 26px);
  --step-head: clamp(32px, 1.3rem + 3.2vw, 64px);
  --step-mid: clamp(24px, 1.6rem + 1.2vw, 40px);
  --step-hero: clamp(54px, 7.4vw, 118px);
  --step-figure: clamp(56px, 5.4vw, 92px);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--field-ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-mid); line-height: 1.1; }
p { line-height: 1.6; }
.tnum { font-variant-numeric: tabular-nums; }

.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-lg { clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%); }
.tab-shape { clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%); }

.section { padding: clamp(88px, 10vw, 156px) var(--pad); position: relative; }
.section--light { background: #ffffff; color: var(--field-ink); }
.section--light2 { background: var(--field); color: var(--field-ink); }
.section--dark { background: var(--navy); color: #ffffff; }
.section--deep { background: var(--navy-deep); color: #ffffff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { max-width: 46ch; color: var(--muted); font-size: var(--step-body); margin-top: 14px; }
.section--light .section-head p, .section--light2 .section-head p { color: var(--field-muted); }
.more { font-size: var(--step-small); color: var(--red-deep); white-space: nowrap; padding: 8px 0; }
.more:hover { text-decoration: underline; text-underline-offset: 5px; }
.section--dark .more, .section--deep .more { color: #ffffff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--red); color: #fff; border: 0;
  padding: 15px 30px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #b81f0c; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--quiet { background: var(--field-2); color: var(--field-ink); }
.btn--quiet:hover { background: var(--field-3); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-deep); }
.btn--wide { width: 100%; }

/* ---- 蓝白红三色条 + 顶栏 ---- */
.accent-bar { height: 8px; display: flex; }
.accent-bar span:nth-child(1) { flex: 2.1; background: var(--navy); }
.accent-bar span:nth-child(2) { flex: .42; background: #ffffff; }
.accent-bar span:nth-child(3) { flex: 1.7; background: var(--red); }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 44px);
  padding: 0 var(--pad); height: 74px;
  background: var(--field); color: var(--field-ink);
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { display: block; font-size: 13px; color: var(--field-muted); margin-top: 4px; font-weight: 400; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 32px); margin-left: auto; }
.nav a { font-size: 15px; color: var(--field-muted); transition: color .18s ease; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: #ffffff; border: 0; color: var(--field-ink); transition: background .18s ease; }
.icon-btn:hover { background: var(--field-3); }
.icon-btn svg { width: 17px; height: 17px; }
.nav-cta { padding: 11px 20px; font-size: 14px; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ---- hero：斜切白面板 + 明亮建筑大图 + 红旗红楔形 ---- */
.hero { position: relative; min-height: min(900px, 94svh); overflow: hidden; background: #ffffff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; filter: brightness(1.1) saturate(1.06); animation: drift 26s ease-in-out infinite alternate; }
.hero-scrim { position: absolute; inset: 0; background: rgba(255, 255, 255, .12); }
.hero-panel {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0;
  width: min(57vw, 860px); background: #ffffff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 88px) 100%, 0 100%);
  display: flex; align-items: center;
}
.hero-panel-inner { width: 100%; max-width: 700px; padding: 40px clamp(28px, 5vw, 88px) 40px var(--pad); }
.hero h1 { font-size: var(--step-hero); color: var(--navy-deep); line-height: 0.96; }
.hero-sub { margin-top: clamp(20px, 2.4vw, 34px); max-width: 40ch; font-size: var(--step-lead); color: var(--field-muted); line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(26px, 3.2vw, 44px); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: clamp(34px, 4vw, 60px); }
.hero-fact { background: var(--field); padding: 16px 18px; }
.hero-fact strong { display: block; font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--navy); }
.hero-fact span { display: block; font-size: 13px; color: var(--field-muted); margin-top: 8px; }
.hero-wedge {
  position: absolute; z-index: 3; right: -4vw; bottom: 62px;
  width: min(42vw, 620px); height: min(58vh, 560px);
  background: var(--red); color: #ffffff;
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%, 0 24%);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4vw, 60px); padding-left: clamp(72px, 8vw, 130px);
}
.hero-wedge .wedge-number { font-size: clamp(52px, 6.2vw, 104px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.95; margin: 0 0 12px; }
.hero-wedge .wedge-note { font-size: 15px; max-width: 30ch; line-height: 1.5; }
.hero-tabs { position: absolute; z-index: 4; bottom: 0; left: 0; right: 0; display: flex; gap: 4px; padding: 0 var(--pad); height: 62px; background: var(--navy-deep); }
.hero-tabs a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #ffffff; font-size: 15px; font-weight: 700; transition: background .2s ease; }
.hero-tabs a:hover, .hero-tabs a:focus-visible { background: var(--red); }
.hero-tabs a span { color: var(--muted); font-size: 13px; font-weight: 400; }
.hero-tabs a:hover span { color: #ffffff; }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1.4%); } }

/* ---- roles ---- */
.roles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: stretch; }
.roles-photo { position: relative; min-height: 520px; background: var(--field-2); overflow: hidden; }
.roles-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.roles-photo .photo-tag { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; padding: 14px 22px; font-size: var(--step-small); font-weight: 700; }
.roles-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.role-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.role-tab { background: transparent; border: 0; color: var(--field-muted); font-size: var(--step-lead); font-weight: 700; padding: 8px 0; margin-right: 22px; transition: color .18s ease; position: relative; }
.role-tab[aria-selected="true"] { color: var(--field-ink); }
.role-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.role-tab:hover { color: var(--field-ink); }
.role-detail { min-height: 250px; }
.role-detail h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 16px; }
.role-detail > p { max-width: 40ch; color: var(--field-muted); margin-bottom: 26px; }
.role-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.role-fact { background: var(--field-2); padding: 18px 20px; }
.role-fact strong { display: block; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.04em; line-height: 1.1; color: var(--navy); }
.role-fact span { font-size: var(--step-small); color: var(--field-muted); }
.role-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.role-actions .btn { padding: 20px 12px; }

/* ---- courses ---- */
.courses-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.course-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-chip { background: var(--navy-deep); border: 0; color: var(--muted); padding: 10px 18px; font-size: 14px; transition: background .18s, color .18s; }
.cat-chip:hover, .cat-chip[aria-pressed="true"] { background: var(--red); color: #fff; }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 44px; }
.course-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: start; cursor: pointer; padding: 0; background: none; border: 0; text-align: left; color: inherit; }
.course-item img { width: 72px; height: 72px; object-fit: cover; filter: saturate(.95); transition: filter .2s ease, transform .2s ease; }
.course-item:hover img, .course-item.is-active img { filter: saturate(1.15); transform: translateY(-3px); }
.course-item .ci-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.course-item .ci-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.course-item .ci-tag { font-size: var(--step-small); color: #ffffff; white-space: nowrap; }
.course-item .ci-desc { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 8px; max-width: 34ch; }
.course-item .ci-meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.course-preview { position: sticky; top: 100px; }
.course-preview .frame { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--navy-deep); overflow: hidden; }
.course-preview .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .28s ease; }
.course-preview .frame img.is-on { opacity: 1; }
.course-preview .cap { margin-top: 18px; }
.course-preview .cap h3 { font-size: clamp(24px, 2.4vw, 34px); }
.course-preview .cap p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 40ch; }
.course-preview .cap .cap-num { color: var(--gold); font-size: 14px; font-weight: 700; display: block; margin-top: 16px; }

/* ---- live class ---- */
.live-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.live-photo { grid-column: 1 / 8; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--field-2); }
.live-photo img { width: 100%; height: 100%; object-fit: cover; }
.live-photo .live-badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; padding: 12px 22px; font-weight: 700; font-size: 14px; }
.live-copy { grid-column: 9 / 13; }
.live-copy h2 { font-size: clamp(32px, 3.4vw, 52px); margin-bottom: 20px; }
.live-copy > p { color: var(--field-muted); max-width: 32ch; margin-bottom: 34px; }
.timeline { display: grid; gap: 2px; margin-bottom: 34px; }
.tl-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 16px; padding: 16px 18px; background: #ffffff; }
.tl-time { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--navy); }
.tl-time small { display: block; font-size: 13px; color: var(--field-muted); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.tl-name { font-size: 17px; font-weight: 700; }
.tl-meta { font-size: 14px; color: var(--field-muted); margin-top: 4px; }

/* ---- cases ---- */
.cases-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.case-tile { position: relative; overflow: hidden; background: var(--navy-deep); min-height: 220px; }
.case-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.case-tile:hover img { transform: scale(1.05); }
.case-tile .case-over { position: absolute; inset: auto 0 0 0; padding: 20px; background: rgba(6, 32, 68, .88); }
.case-tile .case-over strong { display: block; font-size: 17px; line-height: 1.3; }
.case-tile .case-over span { font-size: 13px; color: var(--muted); }
.case-tile.wide { grid-column: span 2; }
.case-tile.tall { grid-row: span 2; min-height: 460px; }
.case-title-slot { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 12px; }
.case-title-slot h2 { font-size: clamp(34px, 4vw, 60px); }
.case-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding-top: 10px; }
.case-tile .case-corner { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 12px; }

/* ---- resources ---- */
.res-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.res-frame { position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5; background: var(--field-2); overflow: hidden; cursor: pointer; }
.res-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: crossfade 12s infinite; }
.res-frame img:nth-child(1) { animation-delay: 0s; }
.res-frame img:nth-child(2) { animation-delay: 2.4s; }
.res-frame img:nth-child(3) { animation-delay: 4.8s; }
.res-frame img:nth-child(4) { animation-delay: 7.2s; }
.res-frame img:nth-child(5) { animation-delay: 9.6s; }
@keyframes crossfade { 0%, 16% { opacity: 1; } 20%, 96% { opacity: 0; } 100% { opacity: 1; } }
.res-caption { font-size: 14px; color: var(--field-muted); margin-top: 16px; }
.res-list { display: grid; gap: 2px; }
.res-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 18px; background: var(--field-2); transition: background .2s ease; }
.res-row:hover { background: var(--field-3); }
.res-ico { width: 46px; height: 46px; display: grid; place-items: center; background: #ffffff; font-size: 12px; font-weight: 700; color: var(--navy); }
.res-row h3 { font-size: 19px; font-weight: 700; }
.res-row p { font-size: 14px; color: var(--field-muted); margin-top: 4px; }
.res-row .res-date { font-size: 13px; color: var(--field-muted); white-space: nowrap; }

/* ---- notices ---- */
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 64px; }
.notice-row { display: grid; grid-template-columns: 74px 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 16px; background: #ffffff; }
.notice-date { font-size: 34px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--navy); }
.notice-row img { width: 76px; height: 58px; object-fit: cover; }
.notice-row .nt-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.notice-row .nt-meta { font-size: 13px; color: var(--field-muted); margin-top: 6px; }
.notice-row:hover .nt-title { color: var(--red-deep); }

/* ---- platforms ---- */
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.platform-cell { position: relative; min-height: 158px; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; color: #ffffff; text-align: left; border: 0; overflow: hidden; transition: transform .22s ease; }
.platform-cell:hover { transform: translateY(-5px); }
.platform-cell strong { font-size: clamp(21px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; position: relative; z-index: 1; }
.platform-cell .p-desc { font-size: 15px; opacity: .9; margin-top: 10px; position: relative; z-index: 1; }
.platform-cell .p-arrow { position: absolute; top: 22px; right: 26px; font-size: 20px; z-index: 1; }
.pc-1 { background: #0a3b78; } .pc-3 { background: #1661b4; }
.pc-2 { background: #9cc8ee; color: var(--field-ink); }
.pc-4 { background: #de2910; } .pc-5 { background: #1c6dcc; } .pc-6 { background: #ffffff; color: var(--field-ink); }
.platform-note { margin-top: 30px; font-size: 14px; color: var(--muted); }

/* ---- stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: start; }
.stat-tile { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.stat-tile strong { font-size: var(--step-figure); letter-spacing: -0.06em; line-height: 0.95; }
.stat-tile strong em { font-size: .38em; font-style: normal; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.stat-tile span { font-size: 15px; line-height: 1.4; }
.stat-a { grid-column: 1 / 7; min-height: 62vh; background: var(--red); color: #ffffff; }
.stat-b { grid-column: 7 / 10; min-height: 42vh; margin-top: 12vh; background: var(--navy-deep); color: #ffffff; }
.stat-c { grid-column: 10 / 13; min-height: 32vh; margin-top: 24vh; background: #ffffff; color: var(--field-ink); }
.stat-heading { grid-column: 7 / 13; font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.chart-card { background: #ffffff; color: var(--field-ink); padding: 26px; min-width: 0; }
.chart-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 22px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
svg.donut { width: 116px; height: 116px; flex-shrink: 0; }
.legend { display: grid; gap: 9px; font-size: 13px; color: var(--field-muted); min-width: 0; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; }
.bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--field-muted); }
.bar-track { height: 11px; background: var(--field-2); }
.bar-fill { height: 100%; background: var(--navy-bright); }
.bar-fill.hot { background: var(--red); }
.bar-val { text-align: right; color: var(--field-ink); }
.columns { display: flex; align-items: flex-end; gap: 8px; height: 128px; }
.col { flex: 1; background: var(--navy-bright); min-width: 0; }
.col.hot { background: var(--red); }
.col-labels { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--field-muted); }
.col-labels span { flex: 1; text-align: center; min-width: 0; }
.figure-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-bottom: clamp(48px, 7vw, 96px); }
.figure-strip div { background: #ffffff; padding: 20px 14px; min-width: 0; }
.figure-strip strong { display: block; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.04em; line-height: 1.1; color: var(--navy); }
.figure-strip span { font-size: 13px; color: var(--field-muted); }

/* ---- help ---- */
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.faq-head { grid-column: 1 / 5; position: sticky; top: 100px; }
.faq-head h2 { font-size: clamp(30px, 3.4vw, 50px); margin-bottom: 18px; }
.faq-head p { color: var(--field-muted); max-width: 28ch; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq-item { background: var(--field-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--field-ink); }
.faq-plus::before { left: 0; right: 0; top: 8px; height: 3px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 3px; transition: transform .2s ease; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); }
.faq-item[open] { background: #ffffff; color: var(--field-ink); }
.faq-item[open] summary { background: var(--red); color: #ffffff; }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #ffffff; }
.faq-item .answer { padding: 24px 26px 28px; font-size: 16px; max-width: 56ch; line-height: 1.6; color: var(--field-ink); background: #ffffff; }

/* ---- footer ---- */
.footer { background: var(--red); color: #ffffff; padding: clamp(60px, 7vw, 110px) var(--pad) 32px; }
.footer-mark { font-size: clamp(64px, 13vw, 210px); font-weight: 700; letter-spacing: -0.07em; line-height: 0.82; margin-bottom: clamp(50px, 7vw, 100px); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-cols h3 { font-size: 15px; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; }
.footer-cols a { display: block; font-size: 15px; padding: 5px 0; opacity: .9; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-cols p { font-size: 15px; opacity: .9; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: clamp(50px, 6vw, 90px) 0 40px; }
.quick-cell { min-height: 96px; padding: 18px; display: flex; align-items: flex-end; font-size: 16px; font-weight: 700; color: var(--field-ink); }
.qc-1 { background: #ffffff; } .qc-2 { background: var(--field); } .qc-3 { background: var(--field-3); } .qc-4 { background: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; opacity: .9; border-top: 2px solid rgba(255,255,255,.4); padding-top: 24px; }

/* ---- workspace（明亮） ---- */
#workspace { display: none; background: var(--field); }
body.is-workspace #portal { display: none; }
body.is-workspace .topbar { display: none; }
body.is-workspace #workspace { display: block; }
.ws-bar { display: flex; align-items: center; gap: 16px; padding: 0 var(--pad); height: 72px; background: #ffffff; color: var(--field-ink); position: sticky; top: 0; z-index: 40; flex-wrap: wrap; }
.ws-bar .back { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--field-muted); }
.ws-bar .back:hover { color: var(--navy); }
.ws-bar .brand { margin-right: auto; }
.ws-role-switch { display: flex; gap: 4px; }
.ws-role-switch button { border: 0; background: var(--field-2); color: var(--field-muted); padding: 10px 16px; font-size: 14px; transition: background .18s, color .18s; }
.ws-role-switch button[aria-pressed="true"] { background: var(--red); color: #ffffff; font-weight: 700; }
.ws-role-switch button:hover { color: var(--field-ink); }
.ws-role-switch button[aria-pressed="true"]:hover { color: #ffffff; }
.ws-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ws-avatar { width: 34px; height: 34px; background: var(--field-3); color: var(--field-ink); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.ws-main { padding: 0 var(--pad) clamp(80px, 9vw, 140px); }
.ws-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.ws-hero h1 { font-size: clamp(38px, 5.4vw, 82px); line-height: 0.95; color: var(--navy-deep); }
.ws-hero .ws-hello { font-size: var(--step-body); color: var(--field-muted); margin-bottom: 18px; }
.ws-hero .ws-side { font-size: 15px; color: var(--field-muted); line-height: 1.7; }
.ws-hero .ws-side strong { display: block; color: var(--red); font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -0.04em; margin-bottom: 8px; }
.ws-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ws-metric { background: #ffffff; padding: 26px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.ws-metric.hot { background: var(--red); color: #ffffff; }
.ws-metric strong { font-size: clamp(34px, 3.6vw, 56px); letter-spacing: -0.055em; line-height: 1; color: var(--navy); }
.ws-metric strong em { font-size: .4em; font-style: normal; font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.ws-metric.hot strong { color: #ffffff; }
.ws-metric span { font-size: 14px; color: var(--field-muted); }
.ws-metric.hot span { color: #ffffff; }
.ws-blocks { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 8px; margin-top: 8px; align-items: start; }
.ws-block { background: #ffffff; padding: clamp(24px, 2.6vw, 40px); min-width: 0; }
.ws-block.light { background: var(--field-2); color: var(--field-ink); }
.ws-block h2 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 26px; }
.ws-block .block-note { font-size: 14px; color: var(--field-muted); margin-bottom: 22px; }
.ws-list { display: grid; gap: 2px; }
.ws-list.wide .ws-row { grid-template-columns: 112px minmax(0, 1fr) auto; }
.ws-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 16px; background: var(--field); }
.ws-block.light .ws-row { background: #ffffff; }
.ws-row .r-time { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.ws-row .r-time small { display: block; font-size: 12px; font-weight: 400; color: var(--field-muted); letter-spacing: 0; margin-top: 4px; }
.ws-row .r-title { font-size: 17px; font-weight: 700; }
.ws-row .r-meta { font-size: 13px; color: var(--field-muted); margin-top: 5px; }
.ws-row .r-side { font-size: 13px; color: var(--field-muted); text-align: right; white-space: nowrap; }
.ws-row .r-side .pill { display: inline-block; background: var(--field-3); color: var(--field-ink); padding: 5px 11px; font-size: 12px; }
.ws-row .r-side .pill.hot { background: var(--red); color: #ffffff; }
.ws-todo { display: grid; gap: 8px; }
.ws-todo-item { background: var(--field); padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.ws-todo-item strong { font-size: 16px; font-weight: 700; }
.ws-todo-item p { font-size: 13px; color: var(--field-muted); margin-top: 4px; }
.ws-todo-item .due { font-size: 13px; color: var(--red-deep); white-space: nowrap; }
.course-progress { display: grid; gap: 18px; }
.cp-row strong { font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.cp-row strong span { color: var(--field-muted); font-size: 14px; font-weight: 400; }
.cp-track { height: 9px; background: var(--field-2); margin-top: 10px; }
.cp-fill { height: 100%; background: var(--navy-bright); }
.cp-fill.hot { background: var(--red); }
.ws-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 26px; }
.ws-chart .c { flex: 1; background: var(--navy-bright); min-width: 0; }
.ws-chart .c.hot { background: var(--red); }
.ws-chart-labels { display: flex; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--field-muted); }
.ws-chart-labels span { flex: 1; text-align: center; min-width: 0; }
.ws-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ws-quick button { min-height: 96px; padding: 20px; background: #ffffff; border: 0; color: var(--field-ink); text-align: left; font-size: 16px; font-weight: 700; display: flex; flex-direction: column; justify-content: space-between; transition: background .18s ease; }
.ws-quick button:hover { background: var(--red); color: #ffffff; }
.ws-quick button span { font-size: 13px; font-weight: 400; color: var(--field-muted); }
.ws-quick button:hover span { color: #ffffff; }
.ws-status { display: grid; gap: 2px; }
.ws-status-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 14px; font-size: 15px; background: var(--field); }
.ws-block.light .ws-status-row { background: #ffffff; }
.ws-status-row i { width: 10px; height: 10px; background: var(--navy-bright); display: block; }
.ws-status-row i.warn { background: var(--red); }
.ws-status-row span { color: var(--field-muted); font-size: 13px; }
.ws-foot { margin-top: 40px; font-size: 13px; color: var(--field-muted); }

/* ---- toast & reveal ---- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--navy-deep); color: #ffffff; padding: 14px 24px; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s; }
.mt8 { margin-top: 8px; }
.res-frame.manual img { animation: none; opacity: 0; }
.res-frame.manual img.is-on { opacity: 1; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--field); padding: 18px var(--pad) 26px; flex-direction: column; gap: 2px; z-index: 49; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 16px; font-size: 17px; background: #ffffff; color: var(--field-ink); }
  .courses-wrap { grid-template-columns: 1fr; }
  .course-preview { display: none; }
  .live-grid { grid-template-columns: 1fr; }
  .live-photo, .live-copy { grid-column: 1 / -1; }
  .figure-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-blocks { grid-template-columns: 1fr; }
  .faq-head, .faq-list { grid-column: 1 / -1; }
  .faq-head { position: static; }
  .stat-heading { display: none; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: block; padding-top: 44svh; }
  .hero-photo { height: 48svh; bottom: auto; object-position: 62% 38%; }
  .hero-scrim { height: 48svh; bottom: auto; }
  .hero-panel { position: relative; width: 100%; clip-path: none; }
  .hero-panel-inner { max-width: none; padding: 34px var(--pad) 28px; }
  .hero-wedge { top: 74px; right: 0; bottom: auto; width: 46vw; height: 112px; padding: 14px 16px 14px 22%; justify-content: center; }
  .hero-wedge .wedge-number { font-size: 30px; margin: 0 0 4px; }
  .hero-wedge .wedge-note { display: none; }
  .hero-tabs { position: relative; height: auto; flex-wrap: wrap; padding: 4px var(--pad) 0; }
  .hero-tabs a { min-width: 0; flex: 1 1 33.333%; height: 48px; font-size: 13px; }
  .hero-tabs a:nth-child(4), .hero-tabs a:nth-child(5) { flex-basis: 50%; }
  .hero-tabs a span { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: 64px; }
  .mobile-nav { top: 64px; }
  .brand-sub { display: none; }
  .nav-cta { display: none; }
  .more { display: none; }
  .hero-panel-inner { padding-top: 28px; }
  .hero h1 { font-size: 15vw; }
  .hero-facts { gap: 4px; }
  .hero-fact { padding: 12px 10px; }
  .hero-fact strong { font-size: 24px; }
  .hero-fact span { font-size: 12px; }
  .roles-grid, .res-grid { grid-template-columns: 1fr; }
  .roles-photo { min-height: 320px; }
  .role-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-list, .notice-grid, .charts { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-tile.tall { grid-row: span 1; min-height: 220px; }
  .case-title-slot { grid-column: span 2; order: -1; }
  .stat-a, .stat-b, .stat-c, .stat-heading { grid-column: 1 / -1; margin-top: 0; min-height: 0; }
  .stat-a { min-height: 40vh; }
  .stat-b, .stat-c { min-height: 26vh; }
  .stats-grid { gap: 20px; }
  .figure-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mark { font-size: 18vw; }
  .ws-hero { grid-template-columns: 1fr; }
  .ws-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-role-switch button { padding: 9px 10px; font-size: 13px; }
  .ws-bar { height: auto; padding-top: 12px; padding-bottom: 12px; }
  .ws-row { grid-template-columns: 62px minmax(0, 1fr); }
  .ws-row .r-side { grid-column: 2; text-align: left; }
  .notice-row { grid-template-columns: 60px 64px minmax(0, 1fr); gap: 12px; }
  .notice-date { font-size: 26px; }
  .notice-row img { width: 64px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-photo { animation: none; }
}
