/* 九元航空网页 VI。标准色取自 VI 手册第 18 页，Logo 与飞机使用原始素材。 */
:root {
  --brand-pink: #f9007b;
  --brand-blue: #002fa7;
  --blue: var(--brand-blue);
  --ink: #172442;
  --muted: #69758a;
  --line: #e3e8f0;
  --page: #f5f7fb;
}
body { font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 14px; }
.sidebar { width: 238px; padding: 24px 20px; background: white; color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 10; overflow-y: auto; }
.brand { padding: 0 4px 27px; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-logo { display: block; width: 190px; height: auto; }
.brand .brand-product { color: #56627b; font-size: 12px; letter-spacing: 1.4px; text-align: center; }
.brand-product b { color: #c7cedb; margin: 0 4px; }
.module-nav { gap: 7px; padding-top: 25px; }
.module-nav a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 9px; color: #5d6980; font-size: 14px; transition: background .16s, color .16s; }
.module-nav a::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .65; flex-shrink: 0; }
.module-nav a[data-module="dashboard"]::before { box-shadow: inset 4px 0 currentColor; }
.module-nav a[data-module="imports"]::before { border-top: 0; border-radius: 0 0 3px 3px; }
.module-nav a[data-module="weatherData"]::before { border-radius: 50%; }
.module-nav a[data-module="flightData"]::before { transform: rotate(-35deg); border-radius: 1px 8px 1px 1px; }
.module-nav a[data-module="settings"]::before { border-radius: 50%; box-shadow: inset 0 0 0 3px white; background: currentColor; }
.module-nav a:hover { background: #f2f5fc; color: var(--brand-blue); }
.module-nav a.active { background: #edf2ff; color: var(--brand-blue); font-weight: 700; box-shadow: none; }
.module-nav a.active::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--brand-pink); }
.sidebar-signature { margin-top: auto; padding: 38px 8px 4px; display: grid; gap: 10px; }
.signature-line { width: 26px; height: 3px; background: var(--brand-pink); }
.sidebar-signature strong { font-size: 11px; font-weight: 500; color: #66738b; }
.sidebar-signature > span:last-child { font-size: 8px; letter-spacing: 1px; color: #8993a5; }
.workspace { margin-left: 238px; padding: 30px 36px; max-width: 1900px; }
.topbar { margin-bottom: 26px; min-height: 55px; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 600; }
.topbar h1 { font-size: 24px; font-weight: 650; letter-spacing: -.6px; }
.access-state { font-size: 11px; color: #718098; background: white; border: 1px solid var(--line); padding: 9px 13px; border-radius: 30px; }
.brand-hero { grid-column: 1 / -1; position: relative; min-height: 342px; overflow: hidden; border: 1px solid #dde5f7; border-radius: 18px; background: linear-gradient(115deg, #fff 20%, #f0f5ff 78%, #e9efff); }
.hero-copy { position: relative; z-index: 2; padding: 35px 38px 76px; width: 49%; }
.hero-kicker { margin: 0 0 18px; color: var(--brand-blue); font-size: 11px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.hero-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-pink); }
.hero-copy h2 { color: var(--brand-blue); font-size: clamp(28px, 2.8vw, 43px); line-height: 1.4; letter-spacing: -1.4px; font-weight: 750; }
.hero-description { color: #657490; font-size: 12px; line-height: 1.9; margin: 14px 0 21px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions button { padding: 11px 17px; font-size: 12px; font-weight: 600; }
.hero-actions button > span { margin-left: 17px; font-size: 18px; line-height: 1; }
.hero-art { position: absolute; width: 58%; height: 100%; right: 0; top: 0; pointer-events: none; }
.hero-art img { position: absolute; z-index: 1; width: 108%; height: auto; right: -5%; top: 3%; filter: drop-shadow(0 24px 16px #143b8020); }
.sky-orbit { position: absolute; width: 470px; height: 470px; border: 1px solid #002fa710; border-radius: 50%; right: -15%; top: -35%; }
.orbit-two { width: 350px; height: 350px; right: -4%; top: -21%; border: 45px solid #002fa705; }
.sky-dot { position: absolute; width: 44px; height: 44px; background: var(--brand-pink); border-radius: 50%; right: 22%; top: 14%; opacity: .12; }
.aircraft-caption { position: absolute; right: 27px; bottom: 74px; color: #7186ae; font-size: 8px; letter-spacing: 1.7px; display: flex; align-items: center; gap: 10px; }
.aircraft-caption i { width: 30px; height: 1px; background: #adbddd; }
.hero-footer { position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid #dde5f0; padding: 14px 38px; display: flex; justify-content: space-between; color: #7a88a1; font-size: 10px; letter-spacing: 1px; }
.hero-footer b { color: var(--brand-pink); margin: 0 9px; }
.dashboard-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; padding-top: 12px; margin-bottom: 2px; }
.dashboard-heading h2 { font-size: 19px; }
.dashboard-heading > span { color: var(--muted); font-size: 11px; }
.metric-grid { gap: 16px; }
/* 原基础样式的 metric-grid 会覆盖隐藏状态，保证切换模块后首页收起。 */
.module-section:not(.active) { display: none; }
.metric { position: relative; border-radius: 12px; padding: 19px 20px; gap: 12px; border-color: var(--line); box-shadow: 0 3px 10px #152c5a03; }
.metric > span { font-size: 12px; }
.metric > span::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; background: #8292b4; border-radius: 50%; margin-right: 7px; }
.metric.danger > span::before { background: var(--red); }
.metric.orange > span::before { background: var(--orange); }
.metric.yellow > span::before { background: var(--yellow); }
.metric.green > span::before { background: var(--green); }
.metric strong { font: 500 34px/1.1 Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.panel, .table-panel { border-radius: 13px; padding: 24px; box-shadow: 0 4px 18px #18306103; }
.dashboard-panel { margin: 4px 0 0; }
.section-head h2 { font-size: 16px; }
.sub-panel { background: #f9fbff; border-radius: 10px; padding: 22px; }
button { border-radius: 7px; font-weight: 600; transition: background .16s, box-shadow .16s; }
button:hover { background: #002680; box-shadow: 0 3px 10px #002fa71a; }
button.secondary { background: white; color: var(--brand-blue); border: 1px solid #dce4f3; }
button.secondary:hover { background: #edf2ff; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea { border-radius: 7px; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #002fa72b; outline-offset: 1px; border-color: var(--brand-blue); }
:is(button,a):focus-visible { outline: 3px solid #809be7; outline-offset: 3px; }
.notice { font-size: 12px; font-weight: 500; border-radius: 9px; padding: 13px 17px; }
th { background: #f7f9fd; color: #718098; font-size: 11px; font-weight: 600; }
td { font-size: 12px; }
tbody tr:hover { background: #f8faff; }
.table-wrap { border-radius: 8px; }
.weather-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weather-source-grid .wide { grid-column: 1 / -1; min-width: 0; }
.weather-source-grid > button { justify-self: start; }
.mini-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.upload-grid > button { justify-self: start; }
@media (min-width: 1700px) { .hero-art img { width: 88%; top: -14%; } }
@media (max-width: 1200px) and (min-width: 761px) {
  .sidebar { width: 205px; padding: 20px 14px; position: fixed; }
  .brand-logo { width: 173px; }
  .workspace { margin-left: 205px; padding: 24px; }
  .module-nav { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-panel { grid-column: 1 / -1; }
  .hero-copy { width: 57%; padding-left: 25px; }
  .hero-art { width: 49%; }
  .hero-art img { top: 19%; }
  .hero-footer { padding-left: 25px; padding-right: 25px; }
  .topbar, .section-head { flex-direction: row; align-items: center; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; padding: 10px 16px 0; }
  .brand { padding: 0 0 8px; display: flex; align-items: center; justify-content: space-between; }
  .brand-logo { width: 146px; }
  .brand .brand-product { font-size: 10px; letter-spacing: 0; }
  .module-nav { display: flex; overflow-x: auto; gap: 5px; padding: 10px 0; }
  .module-nav a { flex-shrink: 0; font-size: 12px; padding: 10px 12px; }
  .module-nav a::before, .module-nav a.active::after, .sidebar-signature { display: none; }
  .workspace { margin-left: 0; padding: 22px 16px; }
  .topbar { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 20px; }
  .topbar h1 { font-size: 19px; }
  .topbar .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .access-state { font-size: 9px; padding: 7px 9px; white-space: nowrap; }
  .brand-hero { min-height: 468px; }
  .hero-copy { width: 100%; padding: 25px 24px; }
  .hero-copy h2 { font-size: 31px; }
  .hero-kicker { font-size: 10px; margin-bottom: 12px; }
  .hero-description { font-size: 11px; margin: 12px 0 17px; }
  .hero-art { width: 80%; height: 210px; top: auto; bottom: 29px; }
  .hero-art img { width: 115%; right: -4%; top: -3%; }
  .sky-orbit { width: 260px; height: 260px; top: -15%; }
  .orbit-two { display: none; }
  .aircraft-caption { display: none; }
  .hero-footer { padding: 12px 20px; font-size: 8px; letter-spacing: .2px; }
  .hero-footer > span:first-child { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dashboard-panel { grid-column: 1 / -1; }
  .dashboard-heading > span { font-size: 10px; }
  .metric { padding: 16px 18px; }
  .panel, .table-panel { padding: 18px; min-width: 0; }
  .section-head { gap: 12px; }
  .dashboard-panel .section-head { flex-direction: row; align-items: center; }
  .section-head h2 { font-size: 15px; }
  .weather-source-grid, .upload-grid, .mini-form, .settings-list, .summary-grid { grid-template-columns: 1fr; }
  .sub-panel { padding: 16px; }
  .settings-list { gap: 8px; }
  .settings-list dd { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
