: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, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--c-navy);
}
.logo .mark {
  flex-shrink: 0;
  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 small {
  color: var(--c-red);
  font-weight: 700;
}
  /* ===== 新品牌字标（HGCD 金字＋橙弧＋恒基承达）===== */
  .logo .brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
  .logo .bl-word { position: relative; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-style: italic; font-size: 27px; letter-spacing: -0.5px; line-height: 1; padding-bottom: 7px; color: #b8912f; }
  .logo .bl-swoosh { position: absolute; left: 1px; bottom: 0; width: 100%; height: 7px; display: block; }
  .logo .bl-div { width: 1.5px; align-self: stretch; background: #c9a35f; opacity: 0.85; }
  .logo .bl-name { font-size: 23px; font-weight: 800; letter-spacing: 2px; color: var(--c-navy); }
  .logo.foot-logo .bl-word { color: #dcb84f; }
  .logo.foot-logo .bl-name { color: #e8d5a4; }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--c-navy);
  font-weight: 600;
  transition: 0.15s;
  white-space: nowrap;
}
/* 登录态页眉多出管理后台/会员中心/退出三项，总宽最容易超标：登录区与语言区
   一律不参与挤压、不换行，宽度不够时整段导航折叠进汉堡菜单（见文件末尾 1150px 断点），
   不再把链接逐字挤换行。 */
#authArea {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  white-space: nowrap;
}
#langSwitchArea {
  flex-shrink: 0;
}
.nav-inner .logo {
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-links a:hover {
  background: #eef3ff;
  color: var(--c-primary);
}
.nav-links a.active {
  color: var(--c-primary);
  background: #eaf0ff;
}
/* 语言选择：单一下拉（默认不展开），位于页眉最右端，避免中日双语并排挤压导航 */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-btn { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: 9px; background: #fff; color: var(--c-navy); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.lang-btn:hover { background: #eef3ff; color: var(--c-primary); }
.lang-caret { font-size: 10px; color: #98a2b5; }
.lang-drop { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 128px; background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(13, 38, 76, 0.14); padding: 6px; z-index: 80; }
.lang-menu.open .lang-drop { display: block; }
.lang-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--c-navy); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.lang-drop a:hover { background: #eef3ff; color: var(--c-primary); }
.lang-drop a.on { color: var(--c-primary); background: #eaf0ff; }
.lang-drop a.on::after { content: ' ✓'; }
/* 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: 0.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, 0.5);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.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: 0.55;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */
/* Hero 背景图由 CSS 变量驱动，JS 按需给 .hero 加 .hero-bg-{effect} 类切换天气图 */
:root {
  --hero-mask: linear-gradient(
    100deg,
    rgba(11, 37, 69, 0.95) 0%,
    rgba(11, 37, 69, 0.78) 38%,
    rgba(11, 37, 69, 0.38) 65%,
    rgba(11, 37, 69, 0.42) 100%
  );
  --hero-mask-day: linear-gradient(
    100deg,
    rgba(11, 37, 69, 0.85) 0%,
    rgba(11, 37, 69, 0.78) 38%,
    rgba(11, 37, 69, 0.55) 65%,
    rgba(11, 37, 69, 0.62) 100%
  );
  --hero-bg: url('../img/hero-bg.jpg');
}
html.hero-day {
  --hero-bg: url('../img/hero-bg-day.jpg');
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--hero-mask) 0 0 / cover no-repeat,
    var(--hero-bg) 62% 40% / cover no-repeat;
  color: #fff;
  padding: 90px 0 80px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.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 双栏：左侧品牌文案，右侧线路卡片（恢复原首页布局） */
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-main {
  min-width: 0;
}
.hero-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}
.route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(7, 29, 58, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 24px rgba(3, 18, 40, 0.18);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 168, 255, 0.8);
  background: rgba(18, 61, 112, 0.72);
}
.rc-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.rc-flag {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.rc-arrow {
  color: #78adff;
  font-size: 16px;
  font-weight: 800;
}
.rc-label {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.rc-eta {
  color: #c7d6f5;
  font-size: 11.5px;
  line-height: 1.5;
}
.rc-eta b {
  color: #91baff;
  font-weight: 800;
}
.hero .cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.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 昼夜背景 ---------- */
/* 白天：换深圳港日景图，叠加层加深，保证白字可读（z-index 1，在内容之下） */
html.hero-day .hero {
  background:
    var(--hero-mask-day) 0 0 / cover no-repeat,
    var(--hero-bg) 62% 40% / cover no-repeat;
}
html.hero-day .hero h1,
html.hero-day .hero h1 .hl,
html.hero-day .hero p.sub,
html.hero-day .route-card,
html.hero-day .route-card .rc-label,
html.hero-day .route-card .rc-eta,
html.hero-day .route-card .rc-flag,
html.hero-day .route-card .rc-arrow,
html.hero-day .hero .cta,
html.hero-day .hero .stat,
html.hero-day .stat .num,
html.hero-day .stat .lbl {
  color: #fff !important;
}
html.hero-day .hero h1 .hl {
  color: #6ea8ff !important;
}
html.hero-day .hero p.sub {
  color: #c7d6f5 !important;
}
html.hero-day .route-card {
  background: rgba(7, 29, 58, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}
html.hero-day .route-card .rc-label {
  color: #fff !important;
}
html.hero-day .route-card .rc-eta {
  color: #c7d6f5 !important;
}
html.hero-day .route-card .rc-eta b {
  color: #91baff !important;
}
html.hero-day .route-card .rc-arrow {
  color: #78adff !important;
}
html.hero-day .stat {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
html.hero-day .stat .num {
  color: #fff !important;
}
html.hero-day .stat .lbl {
  color: #b9cdf2 !important;
}
html.hero-day .wave-divider {
  background: #f4f6fb;
}
html.hero-day .wave-divider svg path {
  fill: #f4f6fb;
}

/* ---------- Hero 实时天气覆盖层（雨 / 雾 / 云）---------- */
.hero-weather {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: wxFadeIn 0.6s ease-out forwards;
}
@keyframes wxFadeIn {
  to {
    opacity: 1;
  }
}

/* 雨天：斜向雨丝 + 暗化 */
.hero-weather.w-rain {
  background: linear-gradient(
    105deg,
    transparent 49%,
    rgba(255, 255, 255, 0.14) 49%,
    rgba(255, 255, 255, 0.14) 51%,
    transparent 51%
  );
  background-size: 16px 26px;
  animation: wxRain 1.2s linear infinite;
}
@keyframes wxRain {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 10px 26px;
  }
}

/* 雾天：半透明白雾 */
.hero-weather.w-fog {
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  animation: wxFog 12s ease-in-out infinite alternate;
}
@keyframes wxFog {
  0% {
    transform: translateX(0);
    opacity: 0.6;
  }
  100% {
    transform: translateX(3%);
    opacity: 0.9;
  }
}

/* 多云：飘动云层 */
.hero-weather.w-cloud {
  background:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(255, 255, 255, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 55%
    );
  animation: wxCloud 18s linear infinite;
}
@keyframes wxCloud {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      8% 0,
      -6% 0;
  }
}

/* 晴天无特效（clear）：保持默认，不加覆盖层 */

/* ---------- Hero 天气背景图（effect × 昼夜 共 8 档）---------- */
/* JS 通过 hero-weather.js 给 .hero 加 .hero-bg-{effect} 类；
   此处只改 --hero-bg 变量（继承 background 简写），图片 404 时 JS 不加类、自动回退默认图。
   优先级：html.hero-day .hero.hero-bg-x (0,3,1) > .hero.hero-bg-x (0,2,0) > html.hero-day (0,1,1) > :root */
.hero.hero-bg-clear {
  --hero-bg: url('../img/hero-bg.jpg');
}
.hero.hero-bg-rain {
  --hero-bg: url('../img/hero-bg-rain.jpg');
}
.hero.hero-bg-fog {
  --hero-bg: url('../img/hero-bg-fog.jpg');
}
.hero.hero-bg-cloud {
  --hero-bg: url('../img/hero-bg-cloud.jpg');
}

html.hero-day .hero.hero-bg-clear {
  --hero-bg: url('../img/hero-bg-day.jpg');
}
html.hero-day .hero.hero-bg-rain {
  --hero-bg: url('../img/hero-bg-rain-day.jpg');
}
html.hero-day .hero.hero-bg-fog {
  --hero-bg: url('../img/hero-bg-fog-day.jpg');
}
html.hero-day .hero.hero-bg-cloud {
  --hero-bg: url('../img/hero-bg-cloud-day.jpg');
}

/* ---------- 天气标签（右上角）---------- */
.hero-wx-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  font-size: 13px;
  color: #fff;
  z-index: 3;
  white-space: nowrap;
}
.hero-wx-badge .wx-icon {
  font-size: 17px;
  line-height: 1;
}
html.hero-day .hero-wx-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(22, 93, 255, 0.2);
  color: var(--c-navy);
}

/* 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, 0.1);
  transition: 0.2s;
}

/* 国旗+双向箭头组合图标（如 🇨🇳⇄🇯🇵）：不换行、自适应宽度，避免一字一行 */
.card .ico.route {
  width: auto;
  min-width: 52px;
  padding: 0 12px;
  font-size: 17px;
  white-space: nowrap;
  letter-spacing: 1px;
}
.card:hover .ico {
  background: linear-gradient(135deg, var(--c-primary), #3d7bff);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 93, 255, 0.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, 0.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);
}
/* 网格/弹性子项默认 min-width:auto，内含 min-width 宽表格时会撑破容器、
   导致整页横向溢出；置 0 后交给内部 overflow-x:auto 容器滚动 */
.grid > *,
.tip > div,
.member-grid > * {
  min-width: 0;
}

/* ---------- 横向滑动容器（线路/品类卡片随新增只往右延展，不撑高页面）----------
   用法：把 grid-3 包在 <div class="slide"> 里；容器内卡片等宽、不折行，
   超出部分横向滚动，同时保留鼠标滚轮与触控板左右滑动。 */
.slide {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 14px;  /* 留出滚动条空间 */
}
.slide > * {
  flex: 0 0 280px;
  min-width: 0;
  scroll-snap-align: start;
}
.slide::-webkit-scrollbar { height: 8px; }
.slide::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.slide::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.slide::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
/* 触控板/鼠标滚轮横向滚动：Chrome 默认把纵向滚轮转为横向，Firefox 需此 hack */
.slide { scrollbar-width: thin; scrollbar-color: #cbd5e1 #f3f4f6; }

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: 0.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: 0.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: 0.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: 0.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: 0.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, 0.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: 0.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: 0.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: 0.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-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }
  .hero-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wave-divider svg {
    height: 50px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 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;
  }

  .nav-links.open { display: flex; }
  .cta-banner-icon { display: none; }
  /* 线路滑动条：移动端卡片随屏幕变窄，始终露出至少 1.5 张，可左右滑动 */
  .slide { gap: 14px; padding-bottom: 10px; }
  .slide > * { flex: 0 0 min(260px, 90vw); }

}

/* ---------- 会员中心响应式（平板 / 手机） ---------- */
/* 平板（<=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;
  }
  /* 窄屏页眉：隐藏 logo 旁 CN·JP·KR 小字，320~370px 宽屏下导航不再撑出横向滚动 */
  .logo small {
    display: none;
  }
  .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;
  }
  .g-attr {
    font-size: 12.5px;
    padding: 6px 10px;
  }

  /* 卡片网格：手机端双列并排，避免六张卡片一字长蛇阵竖排 */
  .grid {
    gap: 12px;
  }
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 六大核心服务卡片手机端：纵向 flex，每列宽度足够容纳文字 */
  .services-grid > .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 12px;
  }
  .services-grid > .service-card .ico {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(22, 93, 255, 0.08);
  }
  .services-grid > .service-card .ico svg {
    width: 20px;
    height: 20px;
  }
  .services-grid > .service-card h3 {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--c-navy);
  }
  .services-grid > .service-card p {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    color: var(--c-muted);
    flex: 1;
  }
  .services-grid > .service-card .tag,
  .services-grid > .service-card .tags {
    margin-top: 4px !important;
  }
  .services-grid > .service-card .tag {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
  }
  .services-grid > .service-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .services-grid > .service-card .tags .tag {
    margin-top: 0 !important;
  }

  /* 首页右侧线路卡片在窄屏时仍保持两列，避免单列过长 */
  .hero-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .route-card {
    padding: 12px;
  }
  .rc-label {
    font-size: 14px;
  }
  .rc-eta {
    font-size: 10.5px;
  }
}

/* ── 新闻资讯模块 ──────────────────────────────────────── */
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.news-card .news-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #f3f4f6;
}
.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.news-card-body h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--c-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body p {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  font-size: 11.5px;
  color: #9ca3af;
  display: flex;
  gap: 6px;
  align-items: center;
}
.news-cat {
  color: var(--c-primary);
  background: #f0f9ff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
}
.go {
  font-size: 12px;
  color: var(--c-primary);
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.news-filter button {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  color: #374151;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.news-filter button .n {
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 1px 6px;
}
.news-filter button.on {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.news-filter button.on .n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.news-pager {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.news-pager button {
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.news-pager button:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.news-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--c-muted);
  font-size: 14px;
}
.news-article-wrap .news-title {
  font-size: 22px;
  margin: 12px 0 8px;
  color: var(--c-navy);
}
.news-article-wrap .news-summary {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.news-article-wrap .news-cover-lg {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 14px 0;
  background: #f3f4f6;
}
.news-article-wrap .news-body {
  font-size: 15px;
  line-height: 1.85;
  color: #1f2937;
  overflow-wrap: break-word;
}
.news-article-wrap .news-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 12px 0;
}
/* 正文长链接（如参考链接的完整 URL）默认不可断行，手机端会撑宽整页导致横向出框：
   链接允许任意处断行；表格/代码块改为自身横向滚动，不撑破版面 */
.news-article-wrap .news-body a {
  overflow-wrap: anywhere;
}
.news-article-wrap .news-body pre {
  overflow-x: auto;
}
.news-article-wrap .news-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.news-article-wrap .news-contact {
  margin-top: 28px;
  padding: 14px 18px;
  background: #f0f9ff;
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  color: #374151;
}
.news-article-wrap .news-contact a {
  color: var(--c-primary);
  font-weight: 500;
}
.news-prevnext {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.pn-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}
.pn-card:hover {
  border-color: var(--c-primary);
  background: #f0f9ff;
}
.pn-card span {
  font-size: 12px;
  color: #9ca3af;
}
.pn-card b {
  font-size: 13.5px;
  color: var(--c-navy);
  font-weight: 500;
}

@media (max-width: 560px) {
  .news-card {
    min-height: 170px;
    padding: 14px !important;
  }
  .news-card .news-cover {
    height: 130px;
  }
  .news-card-body h3 {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  .news-card-body p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .news-article-wrap .news-title {
    font-size: 19px;
  }
  .news-article-wrap .news-body {
    font-size: 14.5px;
  }
  .news-article-wrap .news-cover-lg {
    height: 160px;
  }
  .news-filter {
    margin-bottom: 12px;
  }
}

/* 页眉折叠断点：登录态页眉（7 个导航 + 管理后台/会员中心/退出 + 语言按钮）总宽约 1100px，
   旧 860px 断点下，861–1150px 区间导航会被硬挤换行。1150px 以下提前折叠进汉堡菜单，
   与 860px 以下的移动端菜单规则一致（本块在文件末尾，≤860px 时两块规则相同，不冲突）。 */
@media (max-width: 1150px) {
  .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;
  }
}
