:root {
  color-scheme: light;
  --c-navy: #0b2545;
  --c-navy-2: #13315c;
  --c-primary: #165dff;
  --c-primary-dark: #0e42b8;
  --c-red: #e60012;
  --c-bg: #f4f6fb;
  --c-card: #ffffff;
  --c-text: #1d2433;
  --c-muted: #6b7280;
  --c-border: #e5e9f2;
  --shadow: 0 6px 24px rgba(13, 38, 76, 0.08);
  --shadow-lg: 0 16px 48px rgba(13, 38, 76, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff; color-scheme: light;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 8px rgba(13,38,76,.05);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--c-navy); text-decoration: none; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-navy));
  color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo .logo-name { font-size: 19px; font-weight: 800; color: var(--c-navy); }
.logo .logo-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: var(--c-red); text-transform: uppercase; }
.logo small { color: var(--c-red); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; }
.nav-links a { padding: 8px 14px; border-radius: 9px; color: var(--c-navy); font-weight: 600; transition: .15s; }
.nav-links a:hover { background: #eef3ff; color: var(--c-primary); }
.nav-links a.active { color: var(--c-primary); background: #eaf0ff; }
.auth-bar { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.auth-bar a.nav-item {
  padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14px;
  color: var(--c-navy); transition: .15s; white-space: nowrap;
}
.auth-bar a.nav-item:hover { background: #eef3ff; color: var(--c-primary); }
.auth-bar a.nav-item.admin { color: var(--c-red); }
/* nav 内按钮文字须独立设置，避免被 .nav-links a 颜色规则覆盖成黑字 */
.nav-links a.btn.btn-primary,
.nav-links a.btn.btn-primary:hover { color: #fff; background: var(--c-primary); }
.nav-links a.btn.btn-primary:hover { background: var(--c-primary-dark); }
.nav-links a.btn.btn-ghost,
.nav-links a.btn.btn-ghost:hover { color: var(--c-primary); background: #eef3ff; }
.nav-links a.btn.btn-ghost:hover { background: #e2ebff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--c-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: .15s; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: #eef3ff; color: var(--c-primary); }
.btn-ghost:hover { background: #e2ebff; }
.btn-dark { background: var(--c-navy); color: #fff; }
.btn-dark:hover { background: var(--c-navy-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1c4a9e 0%, transparent 60%),
    linear-gradient(135deg, var(--c-navy) 0%, #0f3a86 100%);
  color: #fff; padding: 90px 0 80px;
}
.hero h1 { font-size: 42px; line-height: 1.2; font-weight: 800; letter-spacing: .5px; position: relative; z-index: 2; }
.hero h1 .hl { color: #6ea8ff; }
.hero p.sub { margin-top: 16px; font-size: 18px; color: #c7d6f5; max-width: 620px; position: relative; z-index: 2; }
.hero-routes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 10px; position: relative; z-index: 2; }
.hero-routes .route { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 16px; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.hero-routes .route b { color: #6ea8ff; font-weight: 800; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-stats { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 2; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 18px; backdrop-filter: blur(6px); }
.stat .num { font-size: 30px; font-weight: 800; color: #fff; }
.stat .lbl { color: #b9cdf2; font-size: 13px; margin-top: 4px; }

/* Hero decorative elements (air/sea freight visuals) */
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-deco .deco-plane {
  position: absolute; top: 18%; right: 6%; opacity: .18;
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-deco .deco-ship {
  position: absolute; bottom: 10%; right: 12%; opacity: .13;
  animation: heroFloat 10s ease-in-out 2s infinite;
}
.hero-deco .deco-route {
  position: absolute; top: 38%; left: 10%; width: 80%; opacity: .10;
}
.hero-deco .deco-box {
  position: absolute; opacity: .10; border: 2px solid rgba(255,255,255,.3); border-radius: 6px; transform: rotate(15deg);
}
.hero-deco .box-1 { width: 48px; height: 42px; top: 28%; right: 28%; animation: heroFloat 7s ease-in-out 1s infinite; }
.hero-deco .box-2 { width: 32px; height: 28px; bottom: 26%; right: 38%; animation: heroFloat 9s ease-in-out 3s infinite; }
.hero-deco .box-3 { width: 26px; height: 22px; top: 55%; right: 52%; animation: heroFloat 6s ease-in-out .5s infinite; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Hero cards grid for major routes */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  max-width: 1200px;
  margin: 40px auto 0;
  z-index: 2;
  position: relative;
}
.hcard {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
}
.hcard:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-4px);
}
.hcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcard-flag {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  background: rgba(255,255,255,.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.hcard-new {
  font-size: 16px;
  opacity: .9;
}
.hcard h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.hcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #b9cdf2;
}
.hcard-p {
  margin: 0;
  font-size: 14px;
  color: #c7d6f5;
  line-height: 1.45;
}

/* Wave divider between hero and content */
.wave-divider {
  position: relative; margin-top: -1px; line-height: 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, #0f3a86 100%);
}
.wave-divider svg { display: block; width: 100%; height: 80px; }

/* Service card icon overhaul */
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #eaf0ff, #dce6ff);
  color: var(--c-primary); display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(22,93,255,.10);
  transition: .2s;
}
.card:hover .ico { background: linear-gradient(135deg, var(--c-primary), #3d7bff); color: #fff; box-shadow: 0 6px 18px rgba(22,93,255,.22); transform: scale(1.06); }
.card .ico svg { width: 26px; height: 26px; }

/* Step icons */
.step .step-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 10px; background: linear-gradient(135deg, #eaf0ff, #dce6ff); display: grid; place-items: center; color: var(--c-primary); }
.step .step-icon svg { width: 22px; height: 22px; }

/* CTA banner icon */
.cta-banner-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #c7d6f5; }
.cta-banner-icon svg { width: 36px; height: 36px; }

/* ---------- Sections ---------- */
section.block { padding: 68px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--c-primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin-top: 8px; color: var(--c-navy); position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--c-primary), #6ea8ff); }
.section-head p { color: var(--c-muted); margin-top: 14px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
/* 网格/弹性子项默认 min-width:auto，内含 min-width 宽表格时会撑破容器、
   导致整页横向溢出；置 0 后交给内部 overflow-x:auto 容器滚动 */
.grid > *, .tip > div, .member-grid > * { min-width: 0; }

.card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--c-navy); font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--c-muted); font-size: 14.5px; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--c-primary); background: #eef3ff; padding: 3px 10px; border-radius: 20px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card .tags .tag { margin-top: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--c-border) 10%, var(--c-border) 90%, transparent); z-index: 0; }
.step { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 20px 16px; text-align: center; position: relative; z-index: 1; transition: .18s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdddfb; }
.step .step-icon { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 10px; background: linear-gradient(135deg, #eaf0ff, #dce6ff); display: grid; place-items: center; color: var(--c-primary); }
.step .step-icon svg { width: 22px; height: 22px; }
.step .n { display: none; }
.step h4 { color: var(--c-navy); font-size: 15px; }
.step p { color: var(--c-muted); font-size: 13px; margin-top: 4px; }

/* ---------- Forms ---------- */
.panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--c-border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fbfcfe; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px #e2ebff; }
.hint { font-size: 12.5px; color: var(--c-muted); margin-top: 4px; }

/* 轨迹页示例运单（可点击） */
.demo-no { color: var(--c-primary); cursor: pointer; border-bottom: 1px dashed transparent; transition: .15s; }
.demo-no:hover { border-bottom-color: var(--c-primary); }
.demo-sep { color: #aab4c5; margin: 0 6px; }

/* ---------- Quote result ---------- */
.result { margin-top: 22px; border-radius: var(--radius); border: 1px solid var(--c-border); overflow: hidden; display: none; }
.result.show { display: block; }
.result .r-head { background: linear-gradient(135deg, var(--c-primary), var(--c-navy)); color: #fff; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.result .r-total { font-size: 34px; font-weight: 800; }
.result .r-total small { font-size: 15px; font-weight: 600; opacity: .85; }
.result .r-body { padding: 8px 26px 22px; }
.r-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--c-border); font-size: 15px; }
.r-line:last-child { border-bottom: none; }
.r-line .k { color: var(--c-muted); }
.r-line .v { font-weight: 700; color: var(--c-navy); }
.r-note { margin-top: 10px; font-size: 13px; color: var(--c-primary); background: #eef3ff; padding: 10px 14px; border-radius: 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--c-border); }
.tl-item { position: relative; padding: 0 0 22px 6px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--c-border);
}
.tl-item.done::before { background: var(--c-primary); border-color: var(--c-primary); }
.tl-item.cur::before { border-color: var(--c-primary); box-shadow: 0 0 0 4px #d6e4ff; }
.tl-item .t { font-weight: 700; color: var(--c-navy); }
.tl-item .m { font-size: 13px; color: var(--c-muted); }
.tl-item .l { font-size: 12.5px; color: var(--c-primary); margin-top: 2px; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.table th { color: var(--c-muted); font-weight: 700; background: #fafbfe; font-size: 13px; }
.table tr:hover td { background: #fafbff; }
/* 费用单表：列数多、含多个长单号，强制单行显示并限宽省略，禁止逐字竖排 */
.inv-table th, .inv-table td { white-space: nowrap; }
.inv-table td { font-size: 13.5px; }
/* 宽表格通用：外层横向滚动 + 单元格单行。
   不这样做时，浏览器会把文字列压到 min-content（中文可逐字换行），
   导致表头/公司名/徽章竖排、行高暴涨。 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table th, .table-scroll .table td { white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
.badge.blue { background: #eaf0ff; color: var(--c-primary); }
.badge.navy { background: var(--c-navy); color: #fff; }
.badge.red { background: #fde8eb; color: #b3261e; }
.badge.green { background: #e6f7ee; color: #1a8a4f; }
.badge.amber { background: #fff4e0; color: #b97400; }
.badge.gray { background: #eef1f6; color: #6b7280; }

/* ---------- Tracking box ---------- */
.track-box { max-width: 760px; margin: 0 auto; }
.track-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 26px; }
.track-meta .m { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 14px 16px; }
.track-meta .m .k { font-size: 12px; color: var(--c-muted); }
.track-meta .m .v { font-size: 17px; font-weight: 800; color: var(--c-navy); margin-top: 4px; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 12px; border: none; background: #eef1f6; color: var(--c-muted); font-weight: 700; border-radius: 10px; cursor: pointer; font-size: 15px; }
.auth-tabs button.active { background: var(--c-primary); color: #fff; }
.auth-form { display: none; }
.auth-form.active { display: block; }

/* ---------- Member ---------- */
.member-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; }
.mh-actions { margin-left: auto; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-navy)); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.member-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }

/* ---------- Footer ---------- */
#site-footer { background: var(--c-navy); color: #c7d6f5; margin-top: 40px; padding: 48px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
#site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
#site-footer a { color: #9fb4e0; display: block; padding: 5px 0; font-size: 14px; }
#site-footer a:hover { color: #fff; }
#site-footer .desc { font-size: 14px; color: #9fb4e0; margin-top: 12px; max-width: 300px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 13px; color: #8ea4d4; text-align: center; }

/* ---------- Knowledge Center (Guide) ---------- */
.guide-hero { background: linear-gradient(135deg, var(--c-navy) 0%, #0f3a86 100%); color: #fff; padding: 46px 0 38px; }
.guide-hero .crumb { font-size: 13px; color: #9fb4e0; margin-bottom: 10px; }
.guide-hero .crumb a { color: #c7d6f5; }
.guide-hero .crumb a:hover { color: #fff; }
.guide-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.guide-hero p { color: #c7d6f5; margin-top: 10px; max-width: 760px; font-size: 15.5px; }

.sub-nav { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 66px; z-index: 40; }
.sub-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 9px 20px; max-width: 1180px; margin: 0 auto; }
.sub-nav a { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--c-navy); white-space: nowrap; transition: .15s; }
.sub-nav a:hover { background: #eef3ff; color: var(--c-primary); }
.sub-nav a.active { background: var(--c-primary); color: #fff; }

.tip { border-radius: 12px; padding: 16px 18px; font-size: 14.5px; margin: 20px 0; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.tip .ti { font-size: 18px; line-height: 1.4; }
.tip b { display: block; margin-bottom: 3px; }
.tip.info { background: #eef4ff; border-color: #d4e2ff; color: #123c8f; }
.tip.warn { background: #fff6e6; border-color: #ffe3b3; color: #8a5800; }
.tip.danger { background: #fff0f1; border-color: #ffd6da; color: #a11221; }

.card .g-num { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--c-primary); background: #eef3ff; padding: 2px 10px; border-radius: 20px; margin-bottom: 10px; }
.card.link-card { position: relative; padding-bottom: 44px; }
.card.link-card .go { position: absolute; right: 22px; bottom: 16px; color: var(--c-primary); font-weight: 800; }

.formula { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.formula .f { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 18px 14px; text-align: center; box-shadow: var(--shadow); }
.formula .f .fx { font-size: 15px; font-weight: 800; color: var(--c-navy); }
.formula .f .fl { font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }

.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.compare-cols .col { border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--c-border); background: #fff; }
.compare-cols .col h3 { color: var(--c-navy); font-size: 19px; margin-bottom: 6px; }
.compare-cols .col ul { list-style: none; margin-top: 12px; }
.compare-cols .col li { padding: 9px 0; border-bottom: 1px dashed var(--c-border); font-size: 14.5px; color: var(--c-text); display: flex; gap: 8px; }
.compare-cols .col li:last-child { border-bottom: none; }
.compare-cols .col.good { border-top: 4px solid var(--c-primary); }
.compare-cols .col.bad { border-top: 4px solid var(--c-red); }

.bar-chart { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 12px; font-size: 14px; }
.bar-row .bar { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--c-primary), #6ea8ff); min-width: 8px; }
.bar-row .val { font-weight: 800; color: var(--c-navy); }

.faq details { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--c-navy); padding: 16px 0; list-style: none; position: relative; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--c-primary); font-size: 21px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .fa-body { padding: 14px 0 18px; color: var(--c-muted); font-size: 14.5px; border-top: 1px dashed var(--c-border); }
.faq .fa-body b { color: var(--c-navy); }

.guide-cta { background: linear-gradient(135deg, var(--c-navy), #0f3a86); color: #fff; border-radius: var(--radius); padding: 34px 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.guide-cta h3 { font-size: 22px; }
.guide-cta p { color: #c7d6f5; font-size: 14.5px; margin-top: 6px; }

/* ---------- Misc ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--c-navy); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--c-red); }
.toast.ok { background: #1a8a4f; }

.empty { text-align: center; color: var(--c-muted); padding: 40px 0; }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.mt { margin-top: 18px; }
.flag { font-size: 12px; color: var(--c-red); font-weight: 700; }

@media (max-width: 860px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-deco { display: none; }
  .wave-divider svg { height: 50px; }
  .grid-3, .grid-4, .grid-5, .grid-6, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .form-row, .track-meta, .member-grid, .foot-grid { grid-template-columns: 1fr; }
  .formula { grid-template-columns: 1fr 1fr; }
  .compare-cols { grid-template-columns: 1fr; }
  .guide-hero h1 { font-size: 26px; }
  .sub-nav { top: 58px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: 10px 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .cta-banner-icon { display: none; }
}

/* ---------- 会员中心响应式（平板 / 手机） ---------- */
/* 平板（<=860）：订单表转卡片、表单行保持两列、详情元信息两列 */
@media (max-width: 860px) {
  .member-head { padding: 18px 18px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .track-meta { grid-template-columns: 1fr 1fr; }

  /* 订单表格 → 卡片式堆叠（.table-cards 由 member.html 订单表使用，已移出 .member-grid） */
  .table-cards thead { display: none; }
  .table-cards,
  .table-cards tbody,
  .table-cards tr,
  .table-cards td { display: block; width: 100%; }
  /* 卡片模式恢复自动换行，避免 .table-scroll 的 nowrap 让长值撑破卡片 */
  .table-scroll .table-cards td { white-space: normal; }
  .table-cards tr { border: 1px solid var(--c-border); border-radius: 12px; padding: 4px 2px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .table-cards tr:hover td { background: transparent; }
  .table-cards td { border: none; padding: 9px 14px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 13.5px; }
  .table-cards td::before { content: attr(data-label); color: var(--c-muted); font-weight: 600; font-size: 12.5px; flex-shrink: 0; }
  .table-cards td:last-child { justify-content: flex-end; padding-top: 4px; padding-bottom: 12px; }
}

/* 手机（<=560）：单列、输入框放大防 iOS 缩放、面板留白收紧 */
@media (max-width: 560px) {
  .panel { padding: 18px 16px; }
  .member-head { padding: 16px; gap: 12px; }
  .member-head h2 { font-size: 19px; }
  .avatar { width: 48px; height: 48px; font-size: 19px; }
  .mh-actions { margin-left: 0; width: 100%; }
  .mh-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .track-meta { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 12px 13px; }
  .of-section { padding: 14px; }
  .of-field input, .of-field select, .of-textarea { font-size: 16px; padding: 11px 12px; }
  .g-attr { font-size: 12.5px; padding: 6px 10px; }
}
