/* ========== 空旅网平台 - 设计系统 ========== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ink: #0d1117;
  --ink-2: #41474f;
  --ink-3: #6b7280;
  --line: #e6e9ef;
  --line-strong: #d4d9e2;
  --sky: #1f6feb;
  --sky-deep: #0b3d91;
  --sky-soft: #e8f0fe;
  --good: #1a7f5a;
  --good-bg: #e7f5ee;
  --bad: #a32d2d;
  --bad-bg: #fcebeb;
  --warn: #b06a00;
  --warn-bg: #fdf2e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------- 导航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; height: 62px; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 7px; font-weight: 700; cursor: pointer; }
.brand__mark { color: var(--sky); font-size: 19px; }
.brand__name { font-size: 18px; letter-spacing: .5px; }
.brand__sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a, .nav__links button.link { font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; border: 0; background: none; }
.nav__links a:hover, .nav__links button.link:hover { background: var(--bg-alt); color: var(--ink); }
.nav__links a.active { color: var(--sky); background: var(--sky-soft); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn--primary { background: var(--sky); color: #fff; box-shadow: 0 6px 18px rgba(31,111,235,.25); }
.btn--primary:hover { background: var(--sky-deep); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn--sm { padding: 6px 13px; font-size: 13px; }
.btn--good { background: var(--good); color: #fff; }
.btn--warn { background: var(--warn); color: #fff; }
.btn--danger { background: var(--bad); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- 主容器 ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 92px 24px 40px; min-height: 70vh; }
.page { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 首页 ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; padding: 64px 48px; margin-bottom: 40px; background: linear-gradient(160deg, #f2f7ff, #ffffff 65%); border: 1px solid var(--line); }
.hero__eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--sky-deep); background: #fff; border: 1px solid var(--line-strong); padding: 5px 13px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; background: linear-gradient(120deg, var(--ink) 30%, var(--sky-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 18px; max-width: 640px; font-size: 16.5px; color: var(--ink-2); }
.hero p.lead b { color: var(--ink); }
.hero__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.section { margin-bottom: 48px; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.section__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.section__head .sub { color: var(--ink-3); font-size: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); }
.card .ic { font-size: 26px; margin-bottom: 10px; }
.card--blue { border-top: 3px solid var(--sky); }
.card--teal { border-top: 3px solid #0f6e56; }
.card--amber { border-top: 3px solid #b06a00; }

.model-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 30px; }
.model-step { flex: 1 1 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); text-align: center; }
.model-step__num { width: 38px; height: 38px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 800; font-size: 14px; }
.model-step h3 { font-size: 16px; margin-bottom: 6px; }
.model-step p { font-size: 13.5px; color: var(--ink-2); }
.model-arrow { align-self: center; font-size: 20px; color: var(--line-strong); }

.callout { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(120deg, #f0f6ff, #fff); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; }
.callout__ic { font-size: 22px; }
.callout b { color: var(--sky-deep); }
.callout div { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 产品 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.prod__thumb { height: 130px; display: grid; place-items: center; background: linear-gradient(140deg, #e8f0fe, #dbeafe 70%); color: var(--sky-deep); font-size: 44px; }
.prod__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod__body h3 { font-size: 17px; }
.prod__meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; }
.prod__desc { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.prod__price { font-size: 20px; font-weight: 800; color: var(--sky-deep); }
.prod__price small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 14px; max-width: 440px; }
.form--wide { max-width: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 13px; outline: none; transition: border-color .15s; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); }
.field textarea { resize: vertical; min-height: 70px; }
.hint { font-size: 12.5px; color: var(--ink-3); }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.role-opt { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; cursor: pointer; transition: all .15s; background: #fff; }
.role-opt b { display: block; font-size: 14.5px; }
.role-opt span { font-size: 12px; color: var(--ink-3); }
.role-opt.sel { border-color: var(--sky); background: var(--sky-soft); }
.role-opt.sel b { color: var(--sky-deep); }

/* ---------- 消息 ---------- */
.msg { padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; margin-top: 12px; display: none; }
.msg.show { display: block; }
.msg--ok { background: var(--good-bg); color: var(--good); }
.msg--err { background: var(--bad-bg); color: var(--bad); }

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-bottom: 22px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th { text-align: left; padding: 12px 16px; background: var(--bg-alt); color: var(--ink-2); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafbfd; }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge--blue { background: var(--sky-soft); color: var(--sky-deep); }
.badge--good { background: var(--good-bg); color: var(--good); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--gray { background: var(--bg-alt); color: var(--ink-2); }

/* ---------- 工作台 ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h2 { font-size: 24px; font-weight: 800; }
.dash-head .who { font-size: 13.5px; color: var(--ink-3); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-c { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-c .v { font-size: 24px; font-weight: 800; color: var(--sky-deep); }
.stat-c .k { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--sky); border-bottom-color: var(--sky); }

.panel { display: none; }
.panel.on { display: block; animation: fadein .3s ease; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { font-size: 17px; font-weight: 700; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(13,17,23,.45); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 460px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.modal h3 { font-size: 17px; margin-bottom: 16px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 40px; background: var(--ink); color: #e8ecf3; border-radius: var(--radius) var(--radius) 0 0; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 36px 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer__brand { font-size: 16px; font-weight: 700; }
.footer__brand .brand__mark { color: #0ea5e9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; color: #aab4c4; font-size: 13px; }
.footer__beian { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: #e8ecf3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); padding: 7px 16px; border-radius: 999px; }
.footer__beian:hover { background: rgba(255,255,255,.14); color: #fff; }
.footer__copy { color: #6b7689; font-size: 12px; }

/* ---------- 商城 ---------- */
.mall-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.mall-tab { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: left; cursor: pointer; transition: all .15s; box-shadow: var(--shadow); }
.mall-tab b { display: block; font-size: 16px; color: var(--ink); }
.mall-tab span { font-size: 12.5px; color: var(--ink-3); }
.mall-tab:hover { border-color: var(--sky); }
.mall-tab.on { border-color: var(--sky); background: var(--sky-soft); }
.mall-tab.on b { color: var(--sky-deep); }
.mall-panel { animation: fadein .3s ease; }
.mall-note { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }

.ac-grid, .sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ac-card, .sc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 16px; padding: 18px; box-shadow: var(--shadow); }
.ac-card__ic, .sc-card__ic { font-size: 34px; line-height: 1; }
.ac-card__body, .sc-card__body { flex: 1; display: flex; flex-direction: column; }
.ac-card__body h3, .sc-card__body h3 { font-size: 16.5px; }
.ac-card__mfr { font-size: 13px; color: var(--sky); font-weight: 600; margin: 2px 0 4px; }
.ac-card__foot, .sc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; flex-wrap: wrap; }

.cat-entry { display: block; position: relative; }
.cat-entry .ic { font-size: 26px; margin-bottom: 10px; }
.cat-entry h3 { font-size: 16px; }
.cat-entry p { font-size: 13px; }
.cat-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-entry__go { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--sky); }

/* ---------- 商城筛选与统一商品卡 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 12px; }
.filter-search { flex: 1 1 220px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 13px; outline: none; min-width: 0; }
.filter-search:focus { border-color: var(--sky); }
.filter-bar select { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; outline: none; }
.filter-bar select:focus { border-color: var(--sky); }
.mall-count { font-size: 13px; color: var(--ink-3); margin: 4px 2px 14px; }
.mall-count b { color: var(--sky-deep); font-size: 15px; }

.g-grid { display: grid; gap: 12px; }
.g-card { display: flex; gap: 16px; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.g-card:hover { border-color: var(--line-strong); }
.g-card__ic { font-size: 34px; line-height: 1; align-self: center; min-width: 44px; text-align: center; }
.g-card__body { flex: 1; min-width: 0; }
.g-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.g-card__sub { font-size: 12.5px; color: var(--ink-3); }
.g-card__body h3 { font-size: 16.5px; }
.g-card__meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.g-card__desc { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.g-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 150px; }
.g-card__price { font-size: 20px; font-weight: 800; color: var(--sky-deep); white-space: nowrap; }
.g-card__price small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.g-card__price--soft { font-size: 15px; color: var(--ink-3); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) { .grid3, .grid4, .roles { grid-template-columns: 1fr 1fr; } .mall-tabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .nav__links { position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px; display: none; box-shadow: var(--shadow); }
  .nav__links.open { display: flex; }
  .nav__links a, .nav__links button.link { padding: 12px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: flex; }
  .hero { padding: 40px 24px; }
  .grid3, .grid4, .roles { grid-template-columns: 1fr; }
  main { padding: 84px 16px 32px; }
  .model-arrow { transform: rotate(90deg); }
  .g-card { flex-direction: column; }
  .g-card__side { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
}
