:root {
  color-scheme: dark;
  --bg: #0b0d0c; --panel: #151915; --line: #303831; --text: #f4f5ed;
  --muted: #a7aea4; --lime: #d8ff57; --orange: #ff9862;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 88% 6%, #1b251d 0, transparent 28rem), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 99; left: 1rem; top: -4rem; padding: .7rem 1rem; background: var(--lime); color: #111; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.hub-header { height: 78px; padding: 0 clamp(1.2rem, 4vw, 5rem); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hub-brand { display: inline-flex; align-items: center; gap: .8rem; }
.hub-brand-mark { width: 2.5rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: .75rem; background: var(--lime); color: #10120f; font-weight: 950; font-size: 1.2rem; }
.hub-brand strong, .hub-brand small { display: block; }
.hub-brand strong { font-size: .98rem; }
.hub-brand small { margin-top: .15rem; font-size: .58rem; letter-spacing: .18em; color: var(--muted); }
.local-badge { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 99rem; }
.local-badge i { display: inline-block; width: .48rem; height: .48rem; margin-right: .35rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .25rem #d8ff5720; }
.hub-header-actions { display: flex; align-items: center; gap: .55rem; }
.logout-link { padding: .55rem .72rem; border: 1px solid var(--line); border-radius: 99rem; color: var(--muted); font-size: .7rem; }
.logout-link:hover, .logout-link:focus-visible { border-color: var(--lime); color: var(--text); }
main { width: min(1280px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 0 4rem; }
.hub-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); align-items: end; gap: 3rem; margin-bottom: clamp(2.4rem, 5vw, 4.5rem); }
.eyebrow { grid-column: 1 / -1; margin: 0 0 -.8rem; color: var(--lime); font-size: .7rem; font-weight: 850; letter-spacing: .2em; }
.hub-intro h1 { margin: 0; font-size: clamp(3rem, 7.5vw, 6.8rem); line-height: .92; letter-spacing: -.065em; }
.hub-intro h1 em { color: var(--lime); font-style: normal; }
.hub-intro > p:last-child { margin: 0 0 .25rem; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.85; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.module-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1.35rem; background: var(--panel); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.module-card:hover, .module-card:focus-visible { transform: translateY(-5px); border-color: #71805f; box-shadow: 0 22px 60px #0008; outline: none; }
.module-image { position: relative; height: clamp(250px, 34vw, 430px); overflow: hidden; background: #202720; }
.module-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .5s ease; }
.module-card:hover .module-image img { transform: scale(1.025); }
.module-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #111710 0, transparent 50%); pointer-events: none; }
.module-number, .module-status { position: absolute; z-index: 2; top: 1rem; }
.module-number { left: 1rem; display: grid; place-items: center; width: 2.3rem; aspect-ratio: 1; border-radius: 50%; background: #0d110dcc; border: 1px solid #ffffff2c; font-weight: 900; }
.module-status { right: 1rem; padding: .45rem .68rem; border-radius: 99rem; background: #0d110dcc; border: 1px solid #ffffff2c; color: #e9efd8; font-size: .68rem; }
.module-copy { padding: 1.55rem 1.65rem 1.75rem; }
.module-copy p { margin: 0 0 .55rem; color: var(--lime); font-size: .66rem; font-weight: 850; letter-spacing: .17em; }
.module-copy h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.module-copy > span { display: block; min-height: 3.2rem; margin: .8rem 0 1.35rem; color: var(--muted); line-height: 1.7; }
.module-copy b { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .9rem; }
.module-copy b i { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: #0e120d; font-style: normal; }
.lockin-visual { background: linear-gradient(135deg, #17201d, #101411 55%, #1d261d); isolation: isolate; }
.lockin-visual::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(#9caf9e17 1px, transparent 1px), linear-gradient(90deg, #9caf9e17 1px, transparent 1px); background-size: 42px 42px; }
.focus-orbit { position: absolute; z-index: 1; left: 50%; top: 46%; translate: -50% -50%; width: clamp(9rem, 18vw, 15rem); aspect-ratio: 1; border: 1px solid #d8ff576b; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 80px #d8ff5712; }
.focus-orbit::before, .focus-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #d8ff572d; }
.focus-orbit::before { inset: -1.6rem; }
.focus-orbit::after { inset: 1.4rem; background: #d8ff57; box-shadow: 0 0 45px #d8ff5748; }
.focus-orbit b { position: relative; z-index: 1; text-align: center; color: #11150e; font-size: clamp(1.1rem, 2.4vw, 2rem); line-height: .85; letter-spacing: -.06em; }
.focus-orbit i { position: absolute; width: .7rem; aspect-ratio: 1; border-radius: 50%; top: 11%; right: 11%; background: var(--orange); box-shadow: 0 0 0 .3rem #ff986220; }
.mini-task { position: absolute; z-index: 2; display: flex; gap: .55rem; align-items: center; padding: .7rem .85rem; border: 1px solid #ffffff22; background: #0d110ddd; border-radius: .75rem; font-size: .72rem; box-shadow: 0 12px 30px #0005; }
.mini-task small { color: var(--lime); }.task-a { left: 7%; top: 23%; }.task-b { right: 7%; top: 36%; }.task-c { left: 12%; bottom: 12%; }
.driving-visual { background: linear-gradient(145deg, #202825, #101413 55%, #151b18); }
.driving-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, #d8ff5725, transparent 28%), linear-gradient(90deg, transparent 48%, #ffffff20 49%, #ffffff20 51%, transparent 52%); }
.road-scene { position: absolute; inset: 3.6rem 12% 0; perspective: 460px; }
.lane { position: absolute; bottom: -15%; width: 2px; height: 112%; background: linear-gradient(#ffffff20, #ffffffb8); transform-origin: bottom; }
.lane-left { left: 15%; rotate: 13deg; }.lane-right { right: 15%; rotate: -13deg; }
.road-arrow { position: absolute; left: 50%; top: 9%; translate: -50% 0; color: var(--lime); font-size: clamp(2.8rem, 5vw, 4.8rem); text-shadow: 0 0 24px #d8ff5780; }
.car-icon { position: absolute; z-index: 2; left: 50%; bottom: 12%; translate: -50% 0; width: clamp(4rem, 7vw, 6rem); height: clamp(6.7rem, 11vw, 9.5rem); border-radius: 1.5rem 1.5rem .8rem .8rem; background: #f1f3ec; box-shadow: 0 18px 38px #0009, inset 0 -1.2rem #b7bdb5; }
.car-icon::before { content: ""; position: absolute; left: 12%; right: 12%; top: 16%; height: 25%; border-radius: .7rem .7rem .25rem .25rem; background: #263534; border: 2px solid #d8ff57; }
.car-icon::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 12%; height: .65rem; border-radius: 99rem; background: #ff5c4d; box-shadow: 0 0 18px #ff5c4d80; }
.car-icon b, .car-icon i { position: absolute; top: 48%; width: .5rem; height: 1.4rem; background: #0b0d0c; border-radius: .2rem; }.car-icon b { left: -.3rem; }.car-icon i { right: -.3rem; }
.road-tip { position: absolute; z-index: 3; padding: .45rem .65rem; border: 1px solid #d8ff5750; border-radius: 99rem; background: #0b0d0cdd; color: #e9efd8; font-size: .65rem; }
.tip-look { left: 50%; top: 2%; translate: -50% 0; }.tip-mirror { left: 0; top: 38%; }.tip-space { right: 0; top: 55%; }
.separation-note { margin-top: 1.4rem; min-height: 60px; border: 1px solid var(--line); border-radius: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .85rem; padding: 1rem; color: var(--muted); font-size: .78rem; }
.separation-note i { width: .25rem; aspect-ratio: 1; border-radius: 50%; background: var(--lime); }
footer { min-height: 70px; padding: 1.2rem clamp(1.2rem, 4vw, 5rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer b { color: var(--text); }
@media (max-width: 760px) {
  .local-badge { display: none; }
  main { width: min(100% - 1.2rem, 620px); padding-top: 3.2rem; }
  .hub-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .eyebrow { margin-bottom: 0; }
  .hub-intro h1 { font-size: clamp(3.2rem, 16vw, 5.5rem); }
  .module-grid { grid-template-columns: 1fr; }
  .module-image { height: 300px; }
  .module-copy { padding: 1.3rem; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (min-width: 761px) and (max-width: 1080px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
