/* ========================================
   货代个人工作台（浅蓝版） - 全局样式
   基调：浅蓝 / 清爽 / 低饱和
   ======================================== */

:root {
  /* ===== 货代 ERP 视觉体系（去 AI 化重构） ===== */
  /* 主色：藏青，业务系统气质 */
  --color-primary: #1E5A96;
  --color-primary-light: #EDF3F9;
  --color-primary-dark: #16466F;
  --color-accent: #3D7CB8;

  --color-success: #3D7A4A;
  --color-success-light: #EDF4EE;
  --color-warning: #B07818;
  --color-warning-light: #F8F3E8;
  --color-danger: #B34747;
  --color-danger-light: #F7EDED;
  --color-info: #3D6E8E;
  --color-info-light: #ECF2F6;
  --color-default: #7A8A96;
  --color-default-light: #EEF1F3;

  /* 辅助色收敛：统一降饱和为蓝灰系（保留变量名兼容旧引用） */
  --color-violet: #4E6E8E;
  --color-violet-light: #EEF2F6;
  --color-teal: #3E7171;
  --color-teal-light: #ECF3F3;
  --color-rose: #96565E;
  --color-rose-light: #F5EFF0;
  --color-navy: #2C3E50;
  --color-navy-light: #EBEEF2;

  /* 背景：中性灰白，去蓝调 */
  --bg-page: #F0F2F4;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-sidebar-active: #EDF3F9;
  --bg-hover: #F5F7F8;

  --text-primary: #24313C;
  --text-secondary: #55636E;
  --text-tertiary: #8A98A3;
  --text-sidebar: #45535E;
  --text-sidebar-active: #1E5A96;

  --border-color: #D9DEE3;
  --border-radius: 3px;
  --border-radius-sm: 2px;
  --border-radius-lg: 4px;

  /* 阴影收敛：以边框分层为主，阴影仅做极轻过渡 */
  --shadow-sm: none;
  --shadow-md: 0 1px 3px rgba(20,32,45,0.08);
  --shadow-lg: 0 4px 14px rgba(20,32,45,0.12);

  --sidebar-w: 220px;
  --sidebar-w-collapsed: 56px;
  --topbar-h: 50px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
}

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

body {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */
#app { display: flex; min-height: 100vh; }

.main {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-width: 0;
  transition: margin-left 0.25s ease;
}
body.sidebar-collapsed .main { margin-left: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .sidebar-nav .nav-text,
body.sidebar-collapsed .sidebar-nav .nav-badge,
body.sidebar-collapsed .user-mini { display: none; }
body.sidebar-collapsed .sidebar-nav .nav-item { justify-content: center; padding: 12px 0; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-w);
  background: #F8FCFE;
  border-right: 1px solid var(--border-color);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column; z-index: 100;
  transition: width 0.25s ease; overflow: hidden;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;
}
.logo-icon { color: var(--color-primary); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 15px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.logo-sub { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #C9DDEF; border-radius: 2px; }

.nav-section { margin-bottom: 6px; }
.nav-section-title { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; padding: 8px 18px; white-space: nowrap; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  color: var(--text-sidebar); cursor: pointer; transition: all 0.15s ease;
  position: relative; white-space: nowrap; font-size: 13.5px; border-radius: 8px; margin: 2px 10px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--bg-sidebar-active); color: var(--text-sidebar-active); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--color-primary); border-radius: 0 3px 3px 0; }
.nav-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-text { flex: 1; }
.nav-badge { background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px; min-width: 18px; text-align: center; }

.sidebar-footer { padding: 12px 14px 16px; border-top: 1px solid var(--border-color); flex-shrink: 0; }
.user-mini { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; }
.user-mini .user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.user-mini-info { display: flex; flex-direction: column; }
.user-mini-name { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.user-mini-role { font-size: 11px; color: var(--text-tertiary); }

/* ===== Topbar ===== */
.topbar { height: var(--topbar-h); background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 50; flex-shrink: 0; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.btn-icon { border: none; background: transparent; cursor: pointer; padding: 8px; border-radius: 6px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; position: relative; transition: background 0.15s ease; }
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.badge-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--color-danger); border-radius: 50%; border: 1.5px solid #fff; }
.breadcrumb { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; padding: 6px 14px; width: 260px; transition: border-color 0.15s ease; }
.search-box:focus-within { border-color: var(--color-primary); }
.search-box svg { color: var(--text-tertiary); flex-shrink: 0; }
.search-box input { border: none; background: transparent; outline: none; font-size: 13px; width: 100%; color: var(--text-primary); }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 20px; transition: background 0.15s ease; }
.user-chip:hover { background: var(--bg-hover); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 500; }

/* ===== Content ===== */
.content { flex: 1; padding: 20px; overflow-x: auto; }

/* ===== Page Header ===== */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
/* ===== 驾驶舱 Hero 欢迎条 ===== */
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, #FFFFFF 0%, #F3F9FF 100%); border: 1px solid var(--border-color); border-left: 4px solid var(--color-primary); border-radius: var(--border-radius); padding: 22px 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.dh-main { min-width: 260px; }
.dh-greet { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: .3px; }
.dh-date { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dh-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 9px; background: #fff; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.dh-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.dh-ico { display: inline-flex; color: var(--color-primary); }
.page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.page-title-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
/* 模块图标多色变体（协调点缀，主调仍是蓝） */
.page-title-icon.v-orange { background: var(--color-warning-light); color: var(--color-warning); }
.page-title-icon.v-green { background: var(--color-success-light); color: var(--color-success); }
.page-title-icon.v-violet { background: var(--color-violet-light); color: var(--color-violet); }
.page-title-icon.v-teal { background: var(--color-teal-light); color: var(--color-teal); }
.page-title-icon.v-rose { background: var(--color-rose-light); color: var(--color-rose); }
.page-title-icon.v-cyan { background: #E2F4FB; color: var(--color-accent); }
.page-title-icon.v-navy { background: var(--color-navy-light); color: var(--color-navy); }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ===== Stat Cards ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--bg-card); border-radius: var(--border-radius); padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); border-left: 4px solid var(--color-primary); transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.c-orange { border-left-color: var(--color-warning); }
.stat-card.c-blue { border-left-color: var(--color-primary); }
.stat-card.c-green { border-left-color: var(--color-success); }
.stat-card.c-violet { border-left-color: var(--color-violet); }
.stat-card.c-teal { border-left-color: var(--color-teal); }
.stat-card.c-rose { border-left-color: var(--color-rose); }
.stat-card.c-cyan { border-left-color: var(--color-accent); }
.stat-card.c-navy { border-left-color: var(--color-navy); }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.stat-icon.blue { background: var(--color-primary-light); color: var(--color-primary); }
.stat-icon.green { background: var(--color-success-light); color: var(--color-success); }
.stat-icon.orange { background: var(--color-warning-light); color: var(--color-warning); }
.stat-icon.red { background: var(--color-danger-light); color: var(--color-danger); }
.stat-icon.cyan { background: #E2F4FB; color: var(--color-accent); }
.stat-icon.violet { background: var(--color-violet-light); color: var(--color-violet); }
.stat-icon.teal { background: var(--color-teal-light); color: var(--color-teal); }
.stat-icon.rose { background: var(--color-rose-light); color: var(--color-rose); }
.stat-icon.navy { background: var(--color-navy-light); color: var(--color-navy); }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-tertiary); }
.stat-unit { font-size: 14px; font-weight: 600; color: var(--text-tertiary); margin-left: 3px; }

/* TEU 徽标：蓝底胶囊，数值突出、单位弱化，用于列表/仪表盘关键箱量处 */
.teu-badge { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 700; color: var(--color-primary-dark); background: var(--color-primary-light); border: 1px solid #bfe0fb; border-radius: 7px; padding: 1px 8px; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; vertical-align: middle; white-space: nowrap; }

/* ===== TEU 自动统计：高级方框卡片 ===== */
.teu-auto-tag { font-size: 11px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light); border: 1px solid #cfe6f8; border-radius: 20px; padding: 2px 10px; letter-spacing: .3px; }
.teu-stat-hero { display: flex; align-items: center; gap: 20px; padding: 16px 18px; background: linear-gradient(120deg, #F4FAFF, #FFFFFF); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 16px; }
.teu-hero-main { display: flex; align-items: baseline; gap: 6px; }
.teu-hero-num { font-size: 34px; font-weight: 800; color: var(--color-primary-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.teu-hero-unit { font-size: 15px; font-weight: 700; color: var(--color-primary); }
.teu-hero-side { display: flex; flex-direction: column; gap: 6px; margin-left: auto; text-align: right; }
.teu-hero-side > div { display: flex; gap: 8px; justify-content: flex-end; font-size: 13px; color: var(--text-tertiary); }
.teu-hero-side b { color: var(--text-primary); font-weight: 600; }
.teu-sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.teu-sub { background: #FBFDFF; border: 1px solid var(--border-color); border-radius: 11px; padding: 14px 16px; transition: box-shadow .15s ease, transform .15s ease; }
.teu-sub:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.teu-sub-label { font-size: 12.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.teu-sub-val { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-top: 6px; font-variant-numeric: tabular-nums; }
.teu-sub-val small { font-size: 13px; font-weight: 600; color: var(--text-tertiary); margin-left: 3px; }
.teu-sub-foot { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.teu-tip { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--border-color); color: var(--text-secondary); font-size: 10px; font-weight: 700; cursor: help; flex-shrink: 0; }
.teu-break { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.teu-break-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.teu-break-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; }
.tbk-name { width: 64px; flex-shrink: 0; color: var(--text-secondary); font-weight: 600; }
.tbk-bar { flex: 1; height: 7px; background: var(--color-primary-light); border-radius: 4px; overflow: hidden; }
.tbk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); border-radius: 4px; }
.tbk-val { width: 132px; flex-shrink: 0; text-align: right; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.teu-empty { font-size: 12.5px; color: var(--text-tertiary); }

/* 报表中心：TEU 统计小方块 */
.teu-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.teu-mini { background: #FBFDFF; border: 1px solid var(--border-color); border-left: 4px solid var(--color-primary); border-radius: 11px; padding: 14px 16px; transition: box-shadow .15s ease, transform .15s ease; }
.teu-mini:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.teu-mini.c-blue { border-left-color: var(--color-primary); }
.teu-mini.c-cyan { border-left-color: var(--color-accent); }
.teu-mini.c-green { border-left-color: var(--color-success); }
.teu-mini.c-orange { border-left-color: var(--color-warning); }
.teu-mini.c-violet { border-left-color: var(--color-violet); }
.teu-mini.c-teal { border-left-color: var(--color-teal); }
.tm-label { font-size: 12.5px; color: var(--text-secondary); }
.tm-val { font-size: 26px; font-weight: 700; color: var(--text-primary); margin-top: 6px; line-height: 1; font-variant-numeric: tabular-nums; }
.tm-foot { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; }
@media (max-width: 720px) { .teu-break { grid-template-columns: 1fr; } }
.teu-badge i { font-style: normal; font-weight: 600; font-size: 11px; color: var(--color-primary); }

/* ===== Card ===== */
.card { background: var(--bg-card); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-bottom: 20px; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-color); }
.card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px 20px; }

/* ===== 云端同步状态条 ===== */
.sync-bar { display: flex; align-items: center; gap: 8px; padding: 6px 24px; font-size: 12px; border-bottom: 1px solid var(--border-color); }
.sync-bar .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sync-bar.on { background: #E9F8F0; color: #1E7E4A; }
.sync-bar.on .dot { background: #2BA46C; box-shadow: 0 0 0 3px rgba(43,164,108,0.15); }
.sync-bar.off { background: #FFF7E6; color: #9A6B00; }
.sync-bar.off .dot { background: #E5A100; box-shadow: 0 0 0 3px rgba(229,161,0,0.15); }

/* ===== Table ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--border-radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { background: #F2F7FB; color: var(--text-secondary); font-weight: 600; text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border-color); white-space: nowrap; cursor: pointer; user-select: none; }
table.data-table th:hover { color: var(--color-primary); }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); white-space: nowrap; }
table.data-table tbody tr { transition: background 0.1s ease; }
table.data-table tbody tr:hover { background: var(--color-primary-light); }
table.data-table tbody tr:last-child td { border-bottom: none; }
.clickable-row { cursor: pointer; }
.cell-main { font-weight: 600; color: var(--text-primary); }
.cell-sub { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
th.tbl-act { text-align: center; width: 56px; }
td.tbl-act { text-align: center; width: 56px; padding: 6px 8px; }
td.tbl-act .todo-del { display: inline-flex; vertical-align: middle; }

/* ===== 批量选择 ===== */
th.tbl-check, td.tbl-check { width: 38px; text-align: center; padding: 10px 6px; }
th.tbl-check { cursor: default; }
th.tbl-check:hover { color: var(--text-secondary); }
.row-check, .check-all { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; vertical-align: middle; }
tr.row-selected { background: var(--color-primary-light) !important; }
.todo-item.row-selected { background: var(--color-primary-light); border-radius: 8px; }
.todo-row-check { margin-top: 4px; flex-shrink: 0; }
.batch-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.batch-count { font-size: 12px; color: var(--text-tertiary); }
.btn-batch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--border-radius-sm); font-size: 12.5px; font-weight: 600; border: 1px solid var(--color-danger); background: #fff; color: var(--color-danger); cursor: pointer; transition: all .15s ease; }
.btn-batch:hover:not(:disabled) { background: var(--color-danger); color: #fff; }
.btn-batch:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-default { background: var(--color-default-light); color: var(--color-default); }
.badge-info { background: var(--color-info-light); color: var(--color-info); }
.badge-success { background: var(--color-success-light); color: var(--color-success); }
.badge-warning { background: var(--color-warning-light); color: var(--color-warning); }
.badge-danger { background: var(--color-danger-light); color: var(--color-danger); }
.badge-primary { background: var(--color-primary-light); color: var(--color-primary); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--border-radius-sm); font-size: 13px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline { background: #fff; color: var(--text-secondary); border-color: var(--border-color); }
.btn-outline:hover { background: var(--bg-hover); color: var(--text-primary); border-color: #BBD4E8; }
.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { opacity: 0.85; }
.btn-warning { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-warning:hover { background: #d97706; border-color: #d97706; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-text { background: transparent; border: none; color: var(--color-primary); cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 4px; transition: background 0.15s ease; }
.btn-text:hover { background: var(--color-primary-light); }
.btn-text.danger { color: var(--color-danger); }
.btn-text.danger:hover { background: var(--color-danger-light); }

/* ===== Filter Bar ===== */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 3px; }
.filter-tab { border: none; background: transparent; color: var(--text-secondary); font-size: 13px; padding: 6px 14px; border-radius: 4px; cursor: pointer; transition: all 0.15s ease; font-weight: 500; }
.filter-tab.active { background: var(--color-primary); color: #fff; }
.filter-tab:not(.active):hover { background: var(--bg-hover); }
.filter-search { flex: 1; min-width: 200px; max-width: 320px; position: relative; }
.filter-search input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-size: 13px; outline: none; background: #fff; transition: border-color 0.15s ease; }
.filter-search input:focus { border-color: var(--color-primary); }
.filter-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); }
.filter-select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-size: 13px; background: #fff; cursor: pointer; outline: none; min-width: 120px; }
.filter-select:focus { border-color: var(--color-primary); }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-label .req { color: var(--color-danger); }
.form-input, .form-select, .form-textarea { padding: 9px 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); font-size: 13px; background: #fff; color: var(--text-primary); outline: none; transition: border-color 0.15s ease; font-family: var(--font); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(61,155,233,0.12); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-hint { font-size: 12px; color: var(--text-tertiary); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(31,58,77,0.35); z-index: 200; display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--border-radius-lg); width: 90%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal.wide { max-width: 880px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.modal-close { border: none; background: transparent; cursor: pointer; font-size: 20px; color: var(--text-tertiary); padding: 4px; line-height: 1; border-radius: 4px; }
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border-color); position: sticky; bottom: 0; background: var(--bg-card); }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 70px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-color); border-left: 4px solid var(--color-primary); border-radius: var(--border-radius-sm); padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 240px; max-width: 380px; animation: toastIn 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.danger { border-left-color: var(--color-danger); }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-tertiary); }
.empty-state svg { margin-bottom: 12px; color: #C9DDEF; }
.empty-state p { font-size: 14px; }

/* ===== Info List ===== */
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; }
.info-label { width: 110px; flex-shrink: 0; font-size: 13px; color: var(--text-secondary); text-align: right; }
.info-value { font-size: 13px; color: var(--text-primary); font-weight: 500; flex: 1; }
.info-value.muted { color: var(--text-tertiary); font-weight: 400; }

/* ===== Checklist (Today) ===== */
.todo-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.todo-item:last-child { border-bottom: none; }
.todo-check { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #C2D6E8; cursor: pointer; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.todo-check:hover { border-color: var(--color-primary); }
.todo-check.done { background: var(--color-success); border-color: var(--color-success); }
.todo-check.done svg { color: #fff; }
.todo-body { flex: 1; }
.todo-title { font-size: 13.5px; font-weight: 500; color: var(--text-primary); cursor: pointer; }
.todo-title.done { text-decoration: line-through; color: var(--text-tertiary); }
.todo-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--text-tertiary); }
.todo-del { flex-shrink: 0; margin: 1px 0 0 auto; width: 28px; height: 28px; border: none; background: transparent; border-radius: 7px; color: var(--text-tertiary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; }
.todo-del:hover { background: #FDECEC; color: var(--color-danger); }
.todo-del:active { transform: scale(0.92); }

/* ===== Timeline ===== */
.timeline { display: flex; align-items: center; gap: 0; padding: 8px 0; }
.timeline-step { flex: 1; text-align: center; position: relative; }
.timeline-step::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--border-color); z-index: 0; }
.timeline-step:last-child::after { display: none; }
.timeline-step.done::after { background: var(--color-success); }
.timeline-step.current::after { background: linear-gradient(90deg, var(--color-success) 50%, var(--border-color) 50%); }
.timeline-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; position: relative; z-index: 1; margin: 0 auto; border: 2px solid var(--border-color); background: #fff; color: var(--text-tertiary); }
.timeline-step.done .timeline-dot { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.timeline-step.current .timeline-dot { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px var(--color-primary-light); }
.timeline-label { font-size: 11px; color: var(--text-secondary); margin-top: 5px; }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--text-primary); }

/* ===== Progress ===== */
.progress-track { width: 100%; height: 10px; background: #EAF2F9; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); border-radius: 5px; transition: width 0.6s ease; }

/* ===== Contact card ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.contact-card { border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 14px; transition: border-color 0.15s ease, box-shadow 0.15s ease; background: #fff; }
.contact-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.contact-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-avatar { width: 38px; height: 38px; border-radius: 9px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.contact-type { font-size: 11px; padding: 1px 8px; border-radius: 8px; background: var(--color-default-light); color: var(--color-default); font-weight: 600; }
.contact-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); margin-top: 5px; }
.contact-row svg { color: var(--text-tertiary); flex-shrink: 0; }

/* ===== Tags ===== */
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 8px; background: var(--color-primary-light); color: var(--color-primary); margin-right: 4px; }

/* ===== Bar chart ===== */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 10px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-rect { width: 60%; max-width: 36px; background: linear-gradient(180deg, var(--color-primary), var(--color-accent)); border-radius: 4px 4px 0 0; transition: height 0.6s ease; min-height: 4px; }
.bar-col:hover .bar-rect { background: linear-gradient(180deg, var(--color-accent), #8FD0EE); }
.bar-label { font-size: 11px; color: var(--text-tertiary); }
.bar-value { font-size: 11px; font-weight: 600; color: var(--text-primary); }

/* ===== Tools (计算器) ===== */
.tool-box { border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 18px; background: #fff; }
.tool-result { background: var(--color-primary-light); border-radius: var(--border-radius-sm); padding: 14px; margin-top: 14px; }
.tool-result-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.tool-result-row .val { font-family: var(--mono); font-weight: 700; color: var(--color-primary-dark); }

/* ===== Notes ===== */
.note-item { border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.note-item .note-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 1200px) { .search-box { width: 200px; } .form-grid { grid-template-columns: 1fr; } }

/* 手机端：侧栏变抽屉 + 底部标签栏 */
.nav-backdrop { display: none; }
.mobile-tabbar { display: none; }

@media (max-width: 768px) {
  /* 侧栏 → 抽屉（从左侧滑出，带遮罩） */
  .sidebar { transform: translateX(-100%); width: 82%; max-width: 300px; box-shadow: var(--shadow-lg); transition: transform 0.25s ease; }
  .main { margin-left: 0; }
  body.sidebar-collapsed .main { margin-left: 0; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(20,40,60,0.42); z-index: 96; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  body.sidebar-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  /* 顶栏精简（隐藏搜索与用户名片，保留汉堡/铃铛/记一笔/退出） */
  .search-box { display: none; }
  .user-chip { display: none; }
  .topbar { padding: 0 12px; }

  /* 内容区：底部给标签栏留位；间距收紧 */
  .content { padding: 12px; padding-bottom: 82px; }
  .stat-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .page-header { gap: 8px; }
  .card-header { padding: 12px 14px; }
  .card-body { padding: 14px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* 筛选区：标签换行 + 搜索框撑满，避免横向溢出 */
  .filter-tabs { flex-wrap: wrap; }
  .filter-search { flex: 1; min-width: 0; max-width: none; width: 100%; }
  .batch-bar { margin-left: 0; }

  /* 驾驶舱 hero：纵向排布，记一笔按钮撑满 */
  .dash-hero { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash-hero #btnDashAdd { width: 100%; justify-content: center; }
  .dh-main { min-width: 0; width: 100%; }

  /* 快捷操作：手机端两列 */
  .quick-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick-action { padding: 12px 12px; }

  /* 业务构成环图：窄屏图例换行 */
  .donut-wrap { flex-wrap: wrap; justify-content: center; }

  /* 登录页：收紧留白，保证可滚动（margin:auto 已在 .login-main 上，内容超屏时从顶部可滚动） */
  .login-overlay { padding: 14px; }
  .login-main { padding: 0; gap: 16px; }
  .login-card { width: 100%; max-width: 400px; padding: 26px 20px 20px; }
  .login-right { gap: 14px; }
  .li-brand { gap: 12px; }
  .li-name { font-size: 22px; }
  .li-panel { padding: 14px 16px; }
  .li-stat { padding: 12px 14px; }
  .ls-grid { gap: 10px; }
  .ls-card { padding: 14px 10px; }

  /* 在途跟踪时间线：窄屏横向滚动，避免 7 个节点挤成一团 */
  .timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .timeline-step { flex: 1 0 68px; }

  /* 详情信息行：窄屏标签与值纵向堆叠，避免 110px 标签挤窄内容 */
  .info-row { flex-direction: column; gap: 3px; }
  .info-label { width: auto; text-align: left; }

  /* TEU 统计英雄条：窄屏纵向堆叠 */
  .teu-stat-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .teu-hero-side { margin-left: 0; width: 100%; }
  .teu-hero-side > div { justify-content: space-between; }

  /* 顶栏：收紧间距，避免窄屏上右侧按钮被挤出屏幕 */
  .topbar { padding: 0 10px; }
  .topbar-left, .topbar-right { gap: 6px; }
  .topbar .btn-sm { padding: 5px 9px; }

  /* 筛选标签：加大点按区域，手指更好点 */
  .filter-tab { padding: 9px 14px; }

  /* 输入框 ≥16px：避免 iOS Safari 聚焦时自动放大页面 */
  .form-input, .form-select, .form-textarea, .login-input, .filter-select,
  .filter-search input, .search-box input { font-size: 16px; }

  /* 表格：触屏惯性滚动；卡片内的宽表（系统管理）可横向滚动 */
  .table-wrapper { -webkit-overflow-scrolling: touch; }
  .card > .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card > .table th, .card > .table td { white-space: nowrap; }

  /* 提示条：窄屏通栏，避免贴着右边溢出 */
  .toast-container { left: 12px; right: 12px; top: 60px; }
  .toast { min-width: 0; max-width: none; width: 100%; }

  /* 弹窗：整屏可滚动，兼容手机软键盘弹出 */
  .modal-overlay { padding: 12px; overflow-y: auto; }
  .modal { margin: auto; }

  /* 弹窗近似全屏，按钮更好点 */
  .modal { width: 94%; max-width: 94%; max-height: none; }
  .modal-body { padding: 18px; }
  .modal-header { padding: 14px 18px; }
  .modal-footer { padding: 12px 18px; flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1; justify-content: center; }

  /* 底部标签栏（手机专属，固定在底部，带红标与 active） */
  .mobile-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border-color); padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); }
  .mtab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 2px; cursor: pointer; position: relative; color: var(--text-tertiary); transition: color 0.15s ease; }
  .mtab:active { background: var(--color-primary-light); }
  .mtab.active { color: var(--color-primary); }
  .mtab-icon { display: flex; }
  .mtab-label { font-size: 11px; line-height: 1.1; white-space: nowrap; }
  .mtab-badge { position: absolute; top: -1px; left: 50%; margin-left: 8px; background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; padding: 0 4px; text-align: center; }
}

/* 更窄的手机：标题与统计数字略缩小；社区板块单列（避免 minmax(300px) 在 320px 屏溢出） */
@media (max-width: 480px) {
  .page-title { font-size: 17px; }
  .stat-value { font-size: 23px; }
  .topbar-left .breadcrumb { font-size: 14px; }
  .board-grid { grid-template-columns: 1fr; }
  .teu-hero-num { font-size: 29px; }
  .board-head { flex-wrap: wrap; }
}

/* ===== Utility ===== */
.text-center { text-align: center; } .text-right { text-align: right; }
.text-muted { color: var(--text-tertiary); } .text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); } .text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.font-bold { font-weight: 600; } .font-mono { font-family: var(--mono); }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; } .w-full { width: 100%; } .hidden { display: none; }

/* ===== 驾驶舱：快捷操作 ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.quick-action {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius);
  cursor: pointer; transition: all 0.15s ease;
}
.quick-action:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.quick-action .qa-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-action .qa-icon.v-teal { background: var(--color-teal-light); color: var(--color-teal); }
.quick-action .qa-icon.v-orange { background: var(--color-warning-light); color: var(--color-warning); }
.quick-action .qa-icon.v-violet { background: var(--color-violet-light); color: var(--color-violet); }
.quick-action .qa-icon.v-rose { background: var(--color-rose-light); color: var(--color-rose); }
.quick-action .qa-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }

/* ===== 驾驶舱：环图 ===== */
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut {
  width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; position: relative;
}
.donut::after {
  content: ''; position: absolute; inset: 32px; background: #fff; border-radius: 50%;
}
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut-center .dc-val { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.donut-center .dc-label { font-size: 11px; color: var(--text-tertiary); }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.donut-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.donut-legend-val { margin-left: auto; font-weight: 600; color: var(--text-primary); font-family: var(--mono); }

/* ===== 驾驶舱：动态流 ===== */
.activity-feed { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.activity-item::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -10px; width: 2px; background: var(--border-color); }
.activity-item:last-child::before { display: none; }
.activity-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.activity-dot.success { background: var(--color-success-light); color: var(--color-success); }
.activity-dot.primary { background: var(--color-primary-light); color: var(--color-primary); }
.activity-dot.info { background: var(--color-info-light); color: var(--color-info); }
.activity-dot.danger { background: var(--color-danger-light); color: var(--color-danger); }
.activity-body { flex: 1; }
.activity-text { font-size: 13px; color: var(--text-primary); }
.activity-time { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* ===== 订舱 / 拖车 卡片列表 ===== */
.record-list { display: flex; flex-direction: column; gap: 10px; }
.record-card { border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 14px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.record-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.record-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.record-title { font-weight: 600; font-size: 14px; }
.record-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.record-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-secondary); margin-top: 8px; }
.record-meta b { color: var(--text-primary); font-weight: 600; }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--border-color); }
.page-btn { min-width: 30px; height: 30px; border: 1px solid var(--border-color); background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.page-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.page-btn:hover:not(.active) { background: var(--bg-hover); }

/* ===== 小标题 ===== */
.section-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

/* ===== 图表卡片内联布局 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== 全球港口查询 ===== */
.port-card-wrap { overflow: hidden; }
.port-count { font-size: 12px; color: var(--color-primary); font-weight: 600; }
.port-search-hero {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-primary-light);
  border: 1px solid #CDE6F7; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 14px;
}
.port-search-hero:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(61,155,233,0.15); }
.port-search-icon { color: var(--color-primary); display: flex; flex-shrink: 0; }
.port-search-input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; color: var(--text-primary); }
.port-search-input::placeholder { color: var(--text-tertiary); }
.port-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 12px; color: var(--text-tertiary); }
.port-chip {
  border: 1px solid #CFE6F5; background: #fff; color: var(--text-secondary);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer;
  transition: all .15s ease;
}
.port-chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.port-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.port-card {
  border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.port-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(61,155,233,0.12); border-color: #BFE0F6; }
.port-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.port-name { min-width: 0; }
.port-cn { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.port-en { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.port-code {
  flex-shrink: 0; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 600;
  color: var(--color-primary); background: var(--color-primary-light);
  border-radius: 6px; padding: 3px 8px; letter-spacing: .3px;
}
.port-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.port-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag-region { background: #EEF3F7; color: #51657A; }
.tag-lane { background: var(--color-primary-light); color: #2B7CC0; }
.tag-base { background: #E6F6EE; color: #1F9D5B; }
.tag-feeder { background: #FDF1E3; color: #C97A1B; }
.port-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-tertiary); border-top: 1px dashed var(--border-color); padding-top: 8px; }
.port-coord { font-family: var(--font-mono, monospace); }
.port-empty { text-align: center; padding: 46px 20px; color: var(--text-tertiary); }
.port-empty-icon { color: #BFD9EC; display: flex; justify-content: center; margin-bottom: 10px; }
.port-empty p { font-size: 14px; color: var(--text-secondary); margin: 0 0 6px; }
.port-empty span { font-size: 12px; }

/* ===== 港口详情弹窗（地图坐标 / 复制代码） ===== */
.port-card { cursor: pointer; }
.port-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--color-primary-light); border: 1px solid #CDE6F7; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.port-detail-name { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.port-detail-en { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.port-detail-code { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--color-primary); background: #fff; border: 1px solid #CDE6F7; border-radius: 8px; padding: 6px 12px; letter-spacing: .5px; }
.port-map-box { border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; margin: 0 0 14px; background: #F2F8FC; position: relative; }
.port-map-svg { width: 100%; height: auto; display: block; }
.port-map-cap { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--text-tertiary); background: rgba(255,255,255,0.8); border-radius: 6px; padding: 2px 8px; }
.port-map-pin { animation: pinPulse 1.6s ease-in-out infinite; }
@keyframes pinPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.port-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.port-detail-item { background: #F7FAFD; border: 1px solid var(--border-color); border-radius: 9px; padding: 10px 14px; }
.port-detail-item .k { font-size: 11px; color: var(--text-tertiary); margin-bottom: 2px; letter-spacing: .5px; }
.port-detail-item .v { font-size: 13.5px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.port-detail-item .v .font-mono { font-family: var(--mono); }
.btn-copy { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #CDE6F7; background: #fff; color: var(--color-primary); border-radius: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; cursor: pointer; transition: all .15s ease; }
.btn-copy:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.port-note { font-size: 11.5px; color: var(--text-tertiary); margin-top: 14px; display: flex; align-items: center; gap: 6px; }

/* ===== 散货拼箱：体积重 vs 实际重 ===== */
.charge-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.charge-ton { font-size: 14px; font-weight: 700; color: var(--color-primary-dark); font-family: var(--mono); }
.charge-tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.charge-tag.vol { background: var(--color-warning-light); color: var(--color-warning); }
.charge-tag.wt { background: var(--color-info-light); color: var(--color-info); }
.charge-tag.eq { background: var(--color-success-light); color: var(--color-success); }
.charge-hint-box { background: var(--color-primary-light); border: 1px dashed #BFE0F6; border-radius: 9px; padding: 10px 14px; font-size: 12.5px; color: var(--text-secondary); }

/* ===== 登录遮罩（高级航运背景 + 毛玻璃卡片） ===== */
.login-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; padding: 24px; overflow-y: auto; background: linear-gradient(160deg, rgba(13, 30, 48, 0.86) 0%, rgba(23, 48, 72, 0.78) 55%, rgba(13, 30, 48, 0.9) 100%), url('/assets/bg-ship.jpg') center / cover no-repeat fixed; }
.login-card { width: 380px; max-width: calc(100vw - 40px); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 18px; padding: 40px 36px 30px; box-shadow: 0 24px 64px rgba(4, 16, 32, 0.45); }
.login-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--color-primary); box-shadow: 0 6px 16px rgba(61, 155, 233, 0.35); }
.login-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-tertiary); margin: 0 0 26px; }
.login-form { display: flex; flex-direction: column; }
.login-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin: 0 0 6px; }
.login-input { height: 42px; border: 1px solid var(--border-color); border-radius: 9px; padding: 0 14px; font-size: 14px; color: var(--text-primary); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; margin-bottom: 16px; }
.login-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.login-input::placeholder { font-size: 12px; color: var(--text-tertiary); letter-spacing: 0; }
.login-error { min-height: 18px; font-size: 12.5px; color: var(--color-danger); margin: -8px 0 10px; }
.login-btn { height: 44px; border: none; border-radius: 9px; background: var(--color-primary); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 4px; cursor: pointer; transition: background .15s ease; }
.login-btn:hover { background: var(--color-primary-dark); }
.login-btn:disabled { opacity: .6; cursor: default; }
.login-hint { text-align: center; font-size: 11.5px; color: var(--text-tertiary); margin: 18px 0 0; line-height: 1.6; }
.login-hint b { color: var(--text-secondary); }
.login-toggle { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 14px; }
.login-toggle a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.login-toggle a:hover { text-decoration: underline; }

/* 登录页主区：左右分栏（左信息区 + 右登录卡），原 login-card 内部样式不动 */
.login-main { width: 100%; max-width: 1080px; margin: auto; display: flex; flex-direction: row; align-items: stretch; gap: 34px; padding: 24px; }

/* 左侧信息面板 */
.login-info { flex: 1 1 400px; min-width: 300px; display: flex; flex-direction: column; gap: 18px; color: #fff; }
.li-brand { display: flex; align-items: center; gap: 14px; }
.li-logo { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #3d9be9 0%, #1f5f9e 100%); box-shadow: 0 8px 20px rgba(4, 16, 32, 0.4); flex-shrink: 0; }
.li-name { font-size: 26px; font-weight: 700; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.li-slogan { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 3px; letter-spacing: .5px; }
.li-panel { background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 15px; padding: 18px 20px; }
.li-panel-title { font-size: 15px; font-weight: 700; letter-spacing: .3px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.li-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.li-list li { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.86); padding-left: 16px; position: relative; }
.li-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #5db9ff; }
.li-stats { display: flex; gap: 14px; }
.li-stat { flex: 1; background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 13px; padding: 14px 16px; }
.li-stat b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; letter-spacing: .3px; }
.li-stat span { font-size: 12px; color: rgba(255,255,255,0.68); line-height: 1.5; }

/* 右侧登录卡 + 服务板块 */
.login-right { flex: 0 0 400px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.login-services { width: 100%; }
.ls-head { text-align: center; color: rgba(255,255,255,0.92); font-size: 15px; font-weight: 600; letter-spacing: 0.5px; margin: 4px 0 2px; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.ls-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ls-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 14px; padding: 18px 14px; text-align: center; box-shadow: 0 10px 26px rgba(4, 16, 32, 0.28); transition: transform .18s ease, box-shadow .18s ease; cursor: default; }
.ls-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(4, 16, 32, 0.4); }
.ls-ico { width: 42px; height: 42px; border-radius: 11px; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #3d9be9 0%, #1f5f9e 100%); box-shadow: 0 6px 14px rgba(31,95,158,0.35); }
.ls-name { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin: 0 0 7px; }
.ls-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.55; margin: 0; }
@media (max-width: 960px) {
  .login-main { flex-direction: column; align-items: center; max-width: 560px; }
  .login-info { flex: none; width: 100%; order: 2; }
  .login-right { flex: none; width: 100%; order: 1; }
  .li-stats { flex-direction: column; }
}

/* 注册表单复用登录页样式，无独立规则 */

/* 账号审核面板 */
.page-head { margin-bottom: 18px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.page-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { font-size: 12px; font-weight: 600; color: var(--text-tertiary); background: var(--bg-secondary); }
.table tbody tr:hover { background: var(--bg-secondary); }
.charge-hint-box b { color: var(--color-primary-dark); font-family: var(--mono); }

/* ===== 协助目录：批量勾选 ===== */
.contact-check { display: flex; align-items: center; margin-right: 8px; }
.contact-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-primary); }
.contact-card.row-selected { box-shadow: 0 0 0 2px var(--color-primary); border-color: var(--color-primary); }
.batch-all { display: flex; align-items: center; gap: 6px; margin-right: 12px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; }

/* ===== 订舱运费：输入框 + 币种选择 同行 ===== */
.input-cur { display: flex; gap: 6px; align-items: center; }
.input-cur .form-input { flex: 1; min-width: 0; }
.input-cur .cur-sel { width: 66px; flex: none; padding-left: 8px; padding-right: 6px; }
.font-mono { font-family: var(--mono); white-space: nowrap; }

/* ===== 行业社区板块卡片 ===== */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.board-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; gap: 10px; }
.board-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bc-title { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.bc-arrow { color: var(--color-primary); margin: 0 2px; font-weight: 700; }
.bc-sep { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); margin: 0 7px; vertical-align: middle; flex-shrink: 0; }
.bc-price { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; }
.bc-price i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-light); border: 1px solid #cfe6f8; border-radius: 5px; padding: 1px 6px; }
.bc-quote-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3d9be9 0%, #1f5f9e 100%); border: none; border-radius: 7px; padding: 5px 11px; cursor: pointer; transition: all .15s ease; }
.bc-quote-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(31,95,158,0.3); }
.bc-quotes { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.bc-quote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: 8px; padding: 7px 11px; font-size: 12px; }
.bq-amt { font-size: 15px; font-weight: 800; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; }
.bq-remark { color: var(--text-secondary); }
.bq-time { margin-left: auto; color: var(--text-tertiary); font-size: 11px; }
.bc-del { flex: none; width: 28px; height: 28px; border: none; background: transparent; color: var(--text-tertiary); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bc-del:hover { background: var(--color-danger-light); color: var(--color-danger); }
.bc-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.bc-edit { width: 28px; height: 28px; border: none; background: transparent; color: var(--text-tertiary); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bc-edit:hover { background: var(--color-primary-light); color: var(--color-primary); }
.bc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bc-info { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bc-info-label { flex: none; font-size: 12px; color: var(--text-tertiary); }
.bc-info-val { font-size: 14px; font-weight: 600; color: var(--text-primary); word-break: break-word; }
.bc-pricebox { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 11px; }
.bc-pricebox b { font-size: 17px; font-weight: 800; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; }
.bc-pricebox i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-light); border: 1px solid #cfe6f8; border-radius: 5px; padding: 1px 6px; }
@media (max-width: 480px) { .bc-info-grid { grid-template-columns: 1fr; } }
.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-chip { font-size: 12px; color: var(--color-primary-dark); background: var(--color-primary-light); border: 1px solid #cfe6f8; border-radius: 6px; padding: 2px 8px; }
.bc-body { font-size: 13px; color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.bc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-tertiary); border-top: 1px dashed var(--border-color); padding-top: 8px; margin-top: 2px; }
.bc-author { font-weight: 600; color: var(--text-secondary); }
.bc-contact { color: var(--color-success); }
.bc-time { margin-left: auto; }
/* 弹窗表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row textarea { resize: vertical; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-ghost:hover { background: var(--bg-hover); }

/* =========================================================
   航程查询（提单号 / 订舱号 SO / 箱号 → 船舶航程与节点轨迹）
   风格参考维运网：搜索区（方式切换 + 大搜索框） + 结果卡片 + 纵向节点时间线
   ========================================================= */
.tk-hero-card { overflow: visible; }
.tk-kind-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tk-kind {
  border: 1px solid var(--border-color); background: #fff; color: var(--text-secondary);
  border-radius: 999px; padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.tk-kind:hover { border-color: #BFE0F6; color: var(--color-primary-dark); background: var(--bg-hover); }
.tk-kind.active {
  background: linear-gradient(135deg, #3d9be9 0%, #1f5f9e 100%);
  color: #fff; border-color: #1f5f9e;
  box-shadow: 0 4px 12px rgba(31,95,158,0.28);
}
.tk-search-row { display: flex; gap: 12px; align-items: stretch; }
.tk-search-hero { flex: 1; margin-bottom: 0; padding: 15px 20px; }
.tk-input { font-size: 16px; letter-spacing: .4px; }
.tk-go { flex: none; padding: 0 26px; font-size: 14px; font-weight: 700; border-radius: 12px; }
.tk-examples { margin: 14px 0 0; }
.tk-hint { margin-left: 4px; color: var(--text-tertiary); }

/* 结果区 */
.tk-result-card { margin-top: 18px; }
.tk-res-head-right { display: flex; align-items: center; gap: 10px; }
.tk-badge { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.tk-badge.st-wait { background: var(--color-warning-light); color: var(--color-warning); }
.tk-badge.st-sail { background: var(--color-primary-light); color: var(--color-primary-dark); }
.tk-badge.st-done { background: var(--color-success-light); color: var(--color-success); }

/* 进度条 */
.tk-bar { height: 6px; border-radius: 999px; background: #E8F1F8; overflow: hidden; margin-bottom: 16px; }
.tk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6FC3EC 0%, #3D9BE9 60%, #2B7FC4 100%); transition: width .4s ease; }

/* 概览网格 */
.tk-ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.tk-ov { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed var(--border-color); }
.tk-ov .k { flex: none; font-size: 12px; color: var(--text-tertiary); }
.tk-ov .v { font-size: 13.5px; font-weight: 600; color: var(--text-primary); word-break: break-word; }
.tk-code { font-style: normal; font-size: 11px; font-weight: 700; color: var(--color-primary); background: var(--color-primary-light); border-radius: 5px; padding: 1px 6px; }
.tk-at { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--color-success); }

/* 节点时间线 */
.tk-timeline-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--text-primary);
  margin: 22px 0 14px; padding-top: 14px; border-top: 1px solid var(--border-color);
}
.tk-timeline { position: relative; padding-left: 4px; }
.tk-node { display: flex; gap: 14px; position: relative; }
.tk-node-rail { position: relative; flex: none; width: 18px; display: flex; justify-content: center; }
.tk-node-rail::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%); background: #E2ECF4;
}
.tk-node:first-child .tk-node-rail::before { top: 10px; }
.tk-node:last-child .tk-node-rail::before { bottom: calc(100% - 10px); }
.tk-dot {
  position: relative; z-index: 1; margin-top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #CFDEE9; box-sizing: border-box;
}
.tk-node.done .tk-dot { background: var(--color-success); border-color: var(--color-success); }
.tk-node.done .tk-node-rail::before { background: #B7E3CC; }
.tk-node.current .tk-dot { background: var(--color-primary); border-color: #fff; box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 6px rgba(61,155,233,0.18); animation: tkPulse 1.6s ease-in-out infinite; }
@keyframes tkPulse { 0%,100% { box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 5px rgba(61,155,233,0.22); } 50% { box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 9px rgba(61,155,233,0.05); } }
.tk-node-body { flex: 1; min-width: 0; padding: 0 0 18px 0; }
.tk-node-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-node-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.tk-node.todo .tk-node-name { color: var(--text-tertiary); font-weight: 600; }
.tk-node-code { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: .3px; }
.tk-node-st { font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.tk-node-st.done { background: var(--color-success-light); color: var(--color-success); }
.tk-node-st.current { background: var(--color-primary-light); color: var(--color-primary-dark); }
.tk-node-st.todo { background: var(--color-default-light); color: var(--color-default); }
.tk-node-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.tk-node-date { font-family: var(--mono); font-weight: 700; color: var(--text-primary); }
.tk-node.todo .tk-node-date { color: var(--text-tertiary); font-weight: 500; }
.tk-sep { width: 4px; height: 4px; border-radius: 50%; background: #C9DDEF; }
.tk-node-desc { font-size: 12px; color: var(--text-tertiary); margin-top: 3px; line-height: 1.55; }
.tk-source { font-size: 11.5px; color: var(--text-tertiary); margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--border-color); }

/* 空状态/说明卡 */
.tk-intro-card { margin-top: 18px; }
.tk-intro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tk-intro-item { display: flex; gap: 12px; align-items: flex-start; background: #F7FAFD; border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 16px; }
.tk-intro-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }
.tk-intro-item b { display: block; font-size: 13.5px; color: var(--text-primary); margin-bottom: 3px; }
.tk-intro-item span { font-size: 12px; color: var(--text-tertiary); line-height: 1.55; }
.tk-intro-note { font-size: 12px; color: var(--text-tertiary); margin-top: 14px; display: flex; align-items: center; gap: 6px; }

/* 功能授权开关 */
.feat-switch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border-color); background: #fff; border-radius: 999px;
  padding: 5px 14px 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  transition: all .15s ease; user-select: none;
}
.feat-switch:hover { border-color: #BFE0F6; background: var(--bg-hover); }
.feat-switch input { width: 15px; height: 15px; accent-color: var(--color-primary); cursor: pointer; margin: 0; }
.feat-switch.on { background: var(--color-primary-light); border-color: #BFE0F6; color: var(--color-primary-dark); }

/* 移动端适配 */
@media (max-width: 768px) {
  .tk-search-row { flex-direction: column; }
  .tk-go { padding: 11px 20px; border-radius: 10px; }
  .tk-kind { padding: 6px 14px; font-size: 12.5px; }
  .tk-ov-grid { grid-template-columns: 1fr; }
  .tk-ov { border-bottom: 1px dashed var(--border-color); }
  .tk-res-head-right { width: 100%; justify-content: space-between; }
  .card-header:has(.tk-res-head-right) { flex-wrap: wrap; gap: 8px; }
}




/* =========================================================================
 * 船期查询 / 航程查询 · 维运网式 UI（Arco 设计规范）
 * 主色 #1677FF / 文字 #1D2129·#4E5969·#86909C / 边框 #E5E6EB / 底 #F7F8FA
 * 深色照片 Hero + 标签条 + 白色搜索卡 + 结果表 + 垂直时间线
 * ========================================================================= */
.wy-wrap {
  font-family: "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1D2129;
}
.wy-wrap b, .wy-wrap strong { font-weight: 600; }

/* --- Hero 深色照片区（船期 / 航程共用） --- */
.wy-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 0 20px 16px;
  background:
    linear-gradient(165deg, rgba(9, 26, 46, 0.88) 0%, rgba(15, 42, 70, 0.72) 55%, rgba(7, 20, 36, 0.9) 100%),
    url('/assets/bg-ship.jpg') center / cover no-repeat #0B2239;
}

/* 标签条：深色底 + 白色激活页签 */
.wy-tabs {
  display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap;
  margin: 0 -20px; padding: 10px 20px 0;
  background: linear-gradient(180deg, rgba(10, 26, 44, 0.5), rgba(10, 26, 44, 0.18));
}
.wy-tab {
  appearance: none; border: none; background: transparent;
  height: 42px; padding: 0 20px;
  font-size: 14px; color: rgba(255, 255, 255, 0.82);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  border-radius: 8px 8px 0 0; font-family: inherit; white-space: nowrap;
}
.wy-tab svg { width: 15px; height: 15px; }
.wy-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.wy-tab.on { background: #fff; color: #1677FF; font-weight: 600; }
.wy-tab.on:hover { background: #fff; }

/* 白色搜索卡 */
.wy-form-card {
  position: relative;
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  background: #fff; border-radius: 6px;
  padding: 14px 16px 16px; margin-top: -1px;
  box-shadow: 0 8px 24px rgba(8, 28, 56, 0.22);
}
.wy-mode {
  flex: none; height: 40px; line-height: 38px; padding: 0 14px;
  background: #F2F3F5; border-radius: 4px;
  font-size: 13px; color: #4E5969; white-space: nowrap;
}
.wy-mode em { font-style: normal; margin-left: 8px; color: #86909C; font-size: 11px; }
.wy-field { position: relative; display: flex; flex-direction: column; gap: 5px; }
.wy-field label { font-size: 12px; color: #86909C; line-height: 1; }
.wy-field input, .wy-field select {
  height: 40px; border: 1px solid #E5E6EB; border-radius: 4px;
  padding: 0 12px; font-size: 14px; color: #1D2129; background: #fff;
  outline: none; font-family: inherit; width: 190px; box-sizing: border-box;
}
.wy-field select { cursor: pointer; }
.wy-field input:focus, .wy-field select:focus { border-color: #1677FF; box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1); }
.wy-field input::placeholder { color: #C9CDD4; }
.wy-grow { flex: 1 1 220px; }
.wy-grow input { width: 100%; }
.wy-sm input, .wy-sm select { width: 126px; }
.wy-swap {
  flex: none; width: 30px; height: 30px; margin-bottom: 5px;
  border: 1px solid #E5E6EB; background: #fff; border-radius: 50%;
  color: #4E5969; cursor: pointer; font-size: 14px; line-height: 1;
}
.wy-swap:hover { color: #1677FF; border-color: #1677FF; }
.wy-search {
  flex: none; height: 40px; padding: 0 26px;
  background: #1677FF; border: none; border-radius: 4px;
  color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.wy-search svg { width: 15px; height: 15px; }
.wy-search:hover { background: #4096FF; }
.wy-search:active { background: #0E5FD8; }

/* 常用航线（历史搜索行） */
.wy-history { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-top: 12px; }
.wy-history-lb { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.wy-chip {
  border: none; background: transparent; color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px; padding: 4px 10px; border-radius: 3px;
  cursor: pointer; font-family: inherit;
}
.wy-chip:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Hero 内提示行 */
.wy-hero-tips {
  padding: 10px 2px 0; font-size: 12px; color: rgba(255, 255, 255, 0.66);
  display: flex; align-items: center; gap: 6px;
}
.wy-hero-tips svg { width: 13px; height: 13px; flex: none; }

/* --- 结果大标题（起运港 → 目的港） --- */
.wy-headline { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 12px; flex-wrap: wrap; }
.wy-headline b { font-size: 19px; color: #1D2129; }
.wy-hl-code { font-size: 12.5px; color: #86909C; }
.wy-hl-ar { color: #1677FF; font-weight: 600; }
.wy-hl-meta { margin-left: 10px; font-size: 12.5px; color: #86909C; }

/* --- 港口联想下拉 --- */
.sc-sug {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 4px;
  box-shadow: 0 8px 20px rgba(29, 33, 41, 0.12);
  z-index: 60; max-height: 280px; overflow-y: auto;
}
.sc-sug-i { padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.sc-sug-i:hover { background: #F2F3F5; }
.sc-sug-i b { font-size: 13.5px; color: #1D2129; font-weight: 600; }
.sc-sug-i span { font-size: 11.5px; color: #86909C; }

/* --- 空态 / 提示：一行灰字 --- */
.sc-blank {
  padding: 28px 16px; text-align: center; font-size: 13px; color: #86909C;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 6px;
}
.sc-warn {
  margin-top: 8px; padding: 7px 11px; border-radius: 4px;
  background: #FFF3E5; color: #FA8C16; font-size: 12px; border: 1px solid #FFE4BA;
}

/* --- 结果工具条 --- */
.sc-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: #fff;
  border: 1px solid #E5E6EB; border-bottom: none; border-radius: 6px 6px 0 0;
}
.sc-tools-cnt { font-size: 12.5px; color: #4E5969; }
.sc-tools-cnt b { color: #1677FF; font-size: 14px; }
.sc-tools-right { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.sc-tools-lb { font-size: 12px; color: #86909C; }
.sc-tb {
  height: 26px; padding: 0 10px; font-size: 12.5px; background: #fff;
  color: #4E5969; border: 1px solid #E5E6EB; border-radius: 3px;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center;
}
.sc-tb:hover { border-color: #1677FF; color: #1677FF; }
.sc-tb.on { background: #1677FF; border-color: #1677FF; color: #fff; }
.sc-tb-chk { gap: 5px; padding: 0 9px; cursor: pointer; }

/* --- 航次表格 --- */
.sc-tablewrap { background: #fff; border: 1px solid #E5E6EB; border-radius: 0 0 6px 6px; overflow-x: auto; }
.sc-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.sc-grid thead th {
  background: #F7F8FA; color: #4E5969; font-weight: 600; font-size: 12.5px;
  text-align: left; padding: 9px 12px; border-bottom: 1px solid #E5E6EB; white-space: nowrap;
}
.sc-grid td { padding: 10px 12px; border-bottom: 1px solid #F2F3F5; vertical-align: middle; color: #1D2129; }
.sc-grid tbody tr.sc-row:hover { background: #F7F8FA; }
.sc-grid b, .sc-grid span, .sc-subtable b, .sc-subtable span { font-variant-numeric: tabular-nums; }

.sc-c-etd { width: 96px; }
.sc-c-eta { width: 96px; }
.sc-c-vessel { min-width: 170px; }
.sc-c-carrier { width: 128px; }
.sc-c-route { width: 172px; }
.sc-c-tt { width: 62px; }
.sc-c-cut { width: 132px; }

.sc-c-etd b, .sc-c-eta b { display: block; font-size: 14.5px; font-weight: 600; color: #1D2129; }
.sc-c-etd span, .sc-c-eta span { font-size: 11px; color: #86909C; }
.sc-c-vessel b { font-weight: 600; color: #1D2129; }
.sc-c-vessel span { margin-left: 6px; font-size: 11px; color: #86909C; }
.sc-c-carrier .sc-car { display: flex; align-items: center; gap: 7px; }
.sc-car-badge {
  flex: none; width: 26px; height: 26px; border-radius: 4px;
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.sc-car-txt b { display: block; font-size: 13px; color: #1D2129; line-height: 1.2; }
.sc-car-txt span { font-size: 11px; color: #86909C; }
.sc-c-tt b { font-size: 15px; font-weight: 700; color: #1677FF; }
.sc-c-tt span { font-size: 11.5px; color: #86909C; margin-left: 2px; }
.sc-c-cut b { display: block; font-size: 12.5px; color: #4E5969; }
.sc-c-cut span { font-size: 11px; color: #86909C; }

/* 路线单元格 */
.sc-rt { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sc-rt-cn { font-weight: 600; color: #1D2129; }
.sc-rt-code { font-size: 11px; color: #86909C; }
.sc-rt-ar { color: #1677FF; font-weight: 600; }
.sc-rt-via { margin-top: 2px; font-size: 11px; color: #86909C; }
.sc-tag { margin-left: 2px; padding: 1px 6px; border-radius: 2px; font-size: 11px; font-weight: 600; }
.sc-tag.direct { background: #E8FFEA; color: #2AAE67; }
.sc-tag.trans { background: #FFF3E5; color: #FA8C16; }

/* 展开按钮 */
.sc-exp {
  width: 18px; height: 18px; line-height: 16px; text-align: center; padding: 0;
  background: transparent; border: 1px solid #E5E6EB; border-radius: 3px;
  color: #4E5969; font-size: 10px; cursor: pointer;
}
.sc-exp:hover { border-color: #1677FF; color: #1677FF; }
.sc-exp.open { background: #ECF4FF; border-color: #94BFFF; color: #1677FF; }

/* 展开的中转分段子表 */
.sc-detail-td { padding: 0 !important; background: #FAFBFC; border-bottom: 1px solid #E5E6EB !important; }
.sc-subtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sc-subtable td { padding: 6px 12px; border-bottom: 1px dashed #E5E6EB; color: #4E5969; }
.sc-subtable tr:last-child td { border-bottom: none; }
.sc-sub-seg { white-space: nowrap; }
.sc-sub-no {
  display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 50%; background: #ECF4FF; color: #1677FF; font-size: 10px; margin-right: 7px;
}
.sc-sub-mode { display: inline-block; min-width: 34px; font-size: 11px; color: #86909C; }
.sc-sub-pt { color: #1D2129; }
.sc-sub-vessel { color: #1D2129; }
.sc-sub-t { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- 航程结果卡 --- */
.tk-res { background: #fff; border: 1px solid #E5E6EB; border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.tk-res-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid #F2F3F5; background: #F7F8FA;
}
.tk-res-kind { font-size: 12px; color: #86909C; }
.tk-res-no { font-size: 15px; font-weight: 700; color: #1D2129; letter-spacing: 0.3px; font-variant-numeric: tabular-nums; }
.tk-res-st { padding: 2px 9px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.tk-res-st.done { background: #E8FFEA; color: #2AAE67; }
.tk-res-st.sail { background: #ECF4FF; color: #1677FF; }
.tk-res-st.wait { background: #F2F3F5; color: #4E5969; }
.tk-res-head .sc-tb { margin-left: auto; }

/* 路线可视化：起运港 —— 船名/进度 —— 目的港 */
.tk-route { display: flex; align-items: center; gap: 18px; padding: 16px 14px 12px; }
.tk-route-pt span { display: block; font-size: 11.5px; color: #86909C; margin-bottom: 3px; }
.tk-route-pt b { font-size: 16px; color: #1D2129; }
.tk-route-pt i { font-style: normal; font-size: 11px; color: #86909C; margin-left: 5px; }
.tk-route-mid { flex: 1; text-align: center; min-width: 180px; }
.tk-route-mid .vessel { font-size: 13px; font-weight: 600; color: #4E5969; margin-bottom: 6px; }
.tk-route-line { height: 3px; background: #E5E6EB; border-radius: 2px; margin: 8px 6px; position: relative; }
.tk-route-line .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #94BFFF, #1677FF); border-radius: 2px; }
.tk-route-line i {
  position: absolute; top: -11px; transform: translateX(-50%);
  background: #fff; padding: 0 6px; line-height: 1; font-style: normal; font-size: 14px;
}
.tk-route-mid .tt { font-size: 12px; color: #86909C; }
.tk-route-mid .tt b { color: #1677FF; font-size: 13px; }

/* 规格栏 */
.tk-spec { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #F2F3F5; }
.tk-spec-i { padding: 10px 14px; border-right: 1px solid #F2F3F5; }
.tk-spec-i:nth-child(4n) { border-right: none; }
.tk-spec-i span { display: block; font-size: 11.5px; color: #86909C; margin-bottom: 3px; }
.tk-spec-i b { font-size: 13.5px; font-weight: 600; color: #1D2129; font-variant-numeric: tabular-nums; }
.tk-spec-i em { font-style: normal; color: #2AAE67; font-size: 11.5px; }

/* 垂直时间线 */
.tk-line { padding: 6px 14px 14px; border-top: 1px solid #F2F3F5; }
.tk-ln { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 9px 0 9px 26px; }
.tk-ln::before {
  content: ''; position: absolute; left: 7px; top: 26px; bottom: -8px;
  width: 2px; background: #F2F3F5;
}
.tk-ln:last-child::before { display: none; }
.tk-ln-dot {
  position: absolute; left: 2px; top: 13px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #C9CDD4; box-sizing: border-box;
}
.tk-ln.done .tk-ln-dot { border-color: #2AAE67; background: #2AAE67; }
.tk-ln.current .tk-ln-dot { border-color: #1677FF; box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15); }
.tk-ln-body { flex: 1; min-width: 0; }
.tk-ln-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-ln-head b { font-size: 13.5px; color: #1D2129; }
.tk-ln-code { font-size: 11px; color: #86909C; background: #F2F3F5; padding: 1px 6px; border-radius: 2px; }
.tk-ln-st { font-size: 11.5px; color: #86909C; margin-left: auto; }
.tk-ln.done .tk-ln-st { color: #2AAE67; }
.tk-ln.current .tk-ln-st { color: #1677FF; font-weight: 600; }
.tk-ln-meta { margin-top: 2px; font-size: 12px; color: #86909C; }
.tk-ln-desc { margin-top: 2px; font-size: 11.5px; color: #86909C; }
.tk-ln-time {
  flex: none; width: 128px; text-align: right;
  font-size: 12.5px; color: #4E5969; font-variant-numeric: tabular-nums;
}
.tk-ln-time em { font-style: normal; font-size: 10.5px; color: #2AAE67; background: #E8FFEA; border-radius: 2px; padding: 0 4px; margin-left: 4px; }

@media (max-width: 900px) {
  .tk-spec { grid-template-columns: repeat(2, 1fr); }
  .tk-spec-i:nth-child(4n) { border-right: 1px solid #F2F3F5; }
  .tk-spec-i:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  .wy-hero { padding: 0 14px 14px; }
  .wy-tabs { margin: 0 -14px; padding: 8px 14px 0; }
  .wy-field, .wy-sm input, .wy-sm select { flex: 1 1 100%; }
  .wy-field input, .wy-sm input, .wy-sm select { width: 100%; }
  .wy-swap, .wy-mode { display: none; }
  .wy-search { width: 100%; justify-content: center; }
  .sc-tools-right { margin-left: 0; width: 100%; }
  .sc-grid { font-size: 12.5px; }
  .tk-route { flex-direction: column; gap: 10px; align-items: stretch; }
  .tk-route-mid { width: 100%; }
  .tk-ln-time { margin-left: 0; width: 100%; text-align: left; }
}

/* =========================================================================
 * 去AI化 · 企业级 ERP 视觉覆写层
 * 原则：边框分层代替阴影 / 小圆角 / 单色彩收敛 / 密表格 / 无彩色图标底
 * ========================================================================= */

/* --- 卡片：去浮夸阴影，实线边框 --- */
.card { box-shadow: none; border: 1px solid var(--border-color); border-radius: 4px; }
.card:hover { box-shadow: none; }
.card-header { border-bottom: 1px solid var(--border-color); padding: 10px 16px; }
.card-body { padding: 14px 16px; }

/* --- 页头：去掉大图标彩底 --- */
.page-title { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.page-title-icon { background: transparent; color: var(--color-primary); width: auto; height: auto; border-radius: 0; padding: 0; }
.page-subtitle { font-size: 12px; margin-top: 3px; }
.page-header { margin-bottom: 14px; }

/* --- 侧栏：白底 + 精确边框 + 更紧凑 --- */
.sidebar { background: #FFFFFF; border-right: 1px solid var(--border-color); }
.sidebar-logo { padding: 13px 16px; }
.logo-title { font-size: 14.5px; letter-spacing: 0.5px; }
.logo-sub { font-size: 9px; letter-spacing: 1.2px; color: var(--text-tertiary); }
.logo-icon { color: var(--color-primary); }
.nav-item { border-radius: 2px; margin: 1px 8px; padding: 9px 12px; font-size: 13px; }
.nav-item.active { background: var(--color-primary-light); color: var(--color-primary-dark); border-left: 3px solid var(--color-primary); padding-left: 9px; }
.nav-item.active::before { display: none; }
.nav-badge { background: var(--color-danger); font-size: 10.5px; height: 16px; min-width: 16px; line-height: 16px; border-radius: 2px; padding: 0 4px; }
.nav-section-title { font-size: 10px; padding: 10px 16px 4px; color: var(--text-tertiary); letter-spacing: 1px; }

/* --- 顶栏 --- */
.topbar { height: var(--topbar-h); border-bottom: 1px solid var(--border-color); background: #fff; }
.breadcrumb { font-size: 14px; font-weight: 600; }
.search-box { background: #fff; border: 1px solid var(--border-color); border-radius: 3px; }
.search-box input { font-size: 12.5px; }

/* --- 按钮：方正小圆角、实边框 --- */
.btn { border-radius: 3px; font-weight: 500; font-size: 13px; transition: background .12s, border-color .12s; }
.btn-primary { background: var(--color-primary); border: 1px solid var(--color-primary-dark); box-shadow: none; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-icon { border-radius: 3px; }

/* --- 统计卡：去彩色图标底 + 去悬浮上浮 --- */
.stat-card { border: 1px solid var(--border-color); border-radius: 4px; box-shadow: none; transition: none; }
.stat-card:hover { transform: none; box-shadow: none; border-color: #C6CDD3; }
.stat-icon { border-radius: 3px; width: 34px; height: 34px; }
.stat-icon.blue, .stat-icon.v-blue { background: var(--color-primary-light); color: var(--color-primary-dark); }
.stat-icon.green, .stat-icon.v-green { background: var(--color-success-light); color: var(--color-success); }
.stat-icon.orange, .stat-icon.v-orange { background: var(--color-warning-light); color: var(--color-warning); }
.stat-icon.violet, .stat-icon.v-violet { background: var(--color-violet-light); color: var(--color-violet); }
.stat-icon.rose, .stat-icon.v-rose { background: var(--color-rose-light); color: var(--color-rose); }
.stat-icon.teal, .stat-icon.v-teal { background: var(--color-teal-light); color: var(--color-teal); }
.stat-value { font-size: 22px; }

/* --- 仪表盘 hero：去渐变横幅 --- */
.dash-hero { background: #fff; border: 1px solid var(--border-color); border-radius: 4px; box-shadow: none; }
.dh-btn { border: 1px solid var(--border-color); background: #fff; border-radius: 3px; }
.dh-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }

/* --- 快捷操作 --- */
.quick-action { border: 1px solid var(--border-color); border-radius: 4px; box-shadow: none; }
.quick-action:hover { border-color: var(--color-primary); box-shadow: none; transform: none; }
.qa-icon { border-radius: 3px; }

/* --- 表格：密排、清晰表头 --- */
.data-table { font-size: 12.5px; }
.data-table thead th { background: #F4F6F7; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); padding: 8px 10px; font-size: 12px; }
.data-table tbody td { padding: 7px 10px; border-bottom: 1px solid #E8ECEF; }
.data-table tbody tr:hover { background: #F7F9FA; }

/* --- 徽章：方正化 --- */
.badge { border-radius: 2px; font-weight: 600; font-size: 11px; padding: 2px 7px; }

/* --- 弹窗 --- */
.modal { border-radius: 4px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 12px 18px; }
.modal-footer { border-top: 1px solid var(--border-color); }

/* --- 表单 --- */
.form-input, .form-select, input[type=text], input[type=date], input[type=number], select {
  border-radius: 3px; border: 1px solid var(--border-color);
}
.form-label { font-size: 12.5px; }

/* --- 同步条：改成细窄提示 --- */
.sync-bar { font-size: 11.5px; padding: 3px 16px; }

/* --- toast --- */
.toast { border-radius: 3px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }

/* --- 港口/航程页专属元素方正化 --- */
.port-search-hero { border-radius: 4px; border: 1px solid var(--border-color); background: #fff; }
.port-chip { border-radius: 2px; }
.tk-kind { border-radius: 3px; }
.tk-go { border-radius: 3px; }
.tk-hero-card, .tk-result-card, .tk-intro-card { border-radius: 4px; }
.tk-node-dot, .tk-dot { border-radius: 2px; }
.sc-input { border-radius: 3px; }
.sc-chip { border-radius: 2px; }
.sc-tool { border-radius: 2px; }
.sc-badge { border-radius: 2px; }
.sc-dleft { border-radius: 2px; }

/* --- 登录页：去掉玻璃拟态与悬浮阴影 --- */
.login-card { border-radius: 4px; box-shadow: none; border: 1px solid var(--border-color); backdrop-filter: none; background: #fff; }
.login-overlay { backdrop-filter: none; }
.login-info .li-panel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; backdrop-filter: none; }
.login-btn { border-radius: 3px; }
.login-input { border-radius: 3px; }
.ls-card { border-radius: 4px; box-shadow: none; border: 1px solid var(--border-color); }

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C8CFD4; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #AEB7BD; }
::-webkit-scrollbar-track { background: #F0F2F4; }


/* --- 同步条收敛：浅灰背景、小圆点，去掉绿色横幅感 --- */
.sync-bar.on { background: #F6F8F9; color: var(--text-secondary); }
.sync-bar.on .dot { background: var(--color-success); box-shadow: none; }
.sync-bar.off { background: var(--color-warning-light); color: var(--color-warning); }
.sync-bar.off .dot { background: var(--color-warning); box-shadow: none; }

/* --- page-title-icon 各色号统一为透明底主色（去AI彩底） --- */
.page-title-icon.v-cyan, .page-title-icon.v-blue, .page-title-icon.v-green,
.page-title-icon.v-orange, .page-title-icon.v-violet, .page-title-icon.v-rose,
.page-title-icon.v-teal, .page-title-icon.v-gold {
  background: transparent; color: var(--color-primary); width: auto; height: auto; padding: 0; border-radius: 0;
}


/* --- 登录页背景：船舶实景照片 + 深色压暗（覆盖前面所有 background 定义，保持最后生效） --- */
.login-overlay {
  background-image:
    linear-gradient(160deg, rgba(9, 22, 36, 0.74) 0%, rgba(16, 38, 60, 0.58) 55%, rgba(9, 22, 36, 0.8) 100%),
    url('/assets/bg-ship.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* 登录 logo：去 App 图标式圆角彩底，扁平化 */
.login-logo { background: transparent; border-radius: 0; color: #fff; width: auto; height: auto; padding: 0; box-shadow: none; }
.li-logo { background: transparent; border-radius: 0; color: #fff; width: auto; height: auto; padding: 0; box-shadow: none; }
.ls-ico { border-radius: 3px; }


/* =========================================================================
 * 船期结果区 · 维运网同款版式（v38，2026-09-16）
 * 取值来源：维运网真实 CSS（routeTable / blueTitleTable / styleComp_transBlock）
 *   表头底色 #5E94E5 / 表头字 12px #fff / 正文 13px
 *   主色 #0066FF / 航程橙 #D3551F / 文字 #1D2129 #4E5969 #86909C
 * ========================================================================= */

/* --- 概览条：由 X 发往 Y 共有 N 条直航信息，M 条中转信息 --- */
.wy-sum {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 8px 16px; margin: 12px 0; border-radius: 8px; background: #F2F3F5;
  font-size: 12px; color: #4E5969; line-height: 20px;
}
.wy-sum b { color: #0066FF; font-size: 14px; font-weight: 700; margin: 0 4px; }

/* --- 分组板：直航（共舱）/ 中转 --- */
.wy-board { margin-bottom: 14px; background: #fff; border-radius: 8px; overflow: hidden; }
.wy-board-hd { display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 2px 8px; }
.wy-board-title { font-size: 14px; font-weight: 700; color: #1D2129; }
.wy-board-title span { font-weight: 400; font-size: 14px; color: #4E5969; }
.wy-board-note { font-size: 12px; color: #86909C; }
.wy-bt { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.wy-bt thead th {
  background: #5E94E5; color: #fff; font-weight: 400; font-size: 12px;
  text-align: left; padding: 7px 6px; white-space: nowrap;
}
.wy-bt thead th:first-child { padding-left: 12px; border-top-left-radius: 8px; }
.wy-bt thead th:last-child { padding-right: 12px; border-top-right-radius: 8px; }
.wy-bt td { padding: 8px 6px; font-size: 13px; color: #1D2129; border-bottom: 1px solid #F0F1F3; vertical-align: middle; }
.wy-bt td:first-child { padding-left: 12px; }
.wy-bt td:last-child { padding-right: 12px; }
.wy-bt tbody tr:last-child td { border-bottom: none; }
.wy-bd-wd { color: #1D2129; }
.wy-bd-tt { color: #D3551F; font-variant-numeric: tabular-nums; }
.wy-bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wy-bd-empty { text-align: center !important; color: #86909C; padding: 26px 12px !important; }
.wy-chip2 {
  height: 22px; padding: 0 8px; border: 1px solid #E5E6EB; border-radius: 3px; background: #fff;
  color: #1D2129; font-size: 12.5px; font-family: inherit; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: all .15s;
}
.wy-chip2:hover { border-color: #0066FF; color: #0066FF; }
.wy-chip2.on { background: #0066FF; border-color: #0066FF; color: #fff; }

/* --- 筛选条 --- */
.wy-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 12px; background: #fff; border-radius: 8px;
}
.wy-filters select {
  height: 30px; min-width: 132px; padding: 0 26px 0 10px; font-size: 13px; color: #1D2129; font-family: inherit;
  border: 1px solid #C9CDD4; border-radius: 4px; background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%2386909C' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.wy-filters select:hover { border-color: #0066FF; }
.wy-filters-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wy-filters-cnt { font-size: 12.5px; color: #4E5969; }
.wy-filters-cnt b { color: #0066FF; font-size: 14px; font-weight: 700; }
.wy-tb-btn {
  height: 28px; padding: 0 12px; font-size: 12.5px; font-family: inherit; color: #4E5969;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 3px; cursor: pointer;
}
.wy-tb-btn:hover { border-color: #0066FF; color: #0066FF; }

/* --- 明细区标题 --- */
.wy-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 0 8px; }
.wy-sec-title { font-size: 14px; font-weight: 700; color: #1D2129; }
.wy-sec-title span { padding-left: 10px; font-size: 12px; font-weight: 400; color: #86909C; }
.wy-sec-note { font-size: 12px; color: #86909C; }

/* --- 明细表（蓝头） --- */
.wy-tablewrap { background: #fff; border-radius: 8px; overflow-x: auto; }
.wy-table { width: 100%; min-width: 1020px; border-collapse: separate; border-spacing: 0; }
.wy-table thead th {
  background: #5E94E5; color: #fff; font-weight: 400; font-size: 12px;
  text-align: left; padding: 7px 6px; white-space: nowrap;
}
.wy-table thead th:first-child { padding-left: 12px; border-top-left-radius: 8px; }
.wy-table thead th:last-child { padding-right: 12px; border-top-right-radius: 8px; }
.wy-table td { padding: 9px 6px; font-size: 13px; color: #1D2129; border-bottom: 1px solid #F0F1F3; vertical-align: middle; }
.wy-table td:first-child { padding-left: 12px; }
.wy-table td:last-child { padding-right: 12px; }
.wy-table tbody tr.wy-tr.alt { background: #FAFBFC; }
.wy-table tbody tr.wy-tr:hover { background: #F2F7FF; }
.wy-table b, .wy-table span { font-variant-numeric: tabular-nums; }

.wy-td-car b { color: #0066FF; font-weight: 700; font-size: 13.5px; }
.wy-td-car span { display: block; font-size: 11.5px; color: #86909C; }
.wy-td-vessel b { font-weight: 600; color: #1D2129; }
.wy-td-vessel span { display: block; font-size: 11.5px; color: #86909C; }
.wy-td-etd b, .wy-td-eta b { display: block; font-weight: 600; color: #1D2129; }
.wy-td-etd span, .wy-td-eta span { font-size: 11.5px; color: #86909C; }
.wy-td-via { color: #4E5969; }
.wy-via { display: flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 19px; }
.wy-via i {
  flex: none; font-style: normal; font-size: 13px; line-height: 16px; padding: 0 2px;
  border: 1px solid #D3551F; border-radius: 2px; color: #D3551F;
}
.wy-via span { color: #4E5969; }
.wy-direct {
  display: inline-block; height: 18px; line-height: 18px; padding: 0 6px;
  border-radius: 2px; background: #E8F7EE; color: #00B42A; font-size: 12px;
}
.wy-td-tt { color: #D3551F; }
.wy-td-tt b { color: #D3551F; font-weight: 700; font-size: 14px; }
.wy-td-cut b { display: block; font-weight: 600; color: #1D2129; }
.wy-td-cut span { display: block; font-size: 11.5px; color: #86909C; }
.wy-op-btn {
  height: 28px; padding: 0 10px; font-size: 12px; font-family: inherit; color: #1D2129;
  background: #fff; border: 1px solid #D9D9D9; border-radius: 3px; cursor: pointer;
}
.wy-op-btn:hover { border-color: #0066FF; color: #0066FF; }
.wy-op-btn.open { background: #F2F7FF; border-color: #0066FF; color: #0066FF; }
.wy-op-none { color: #C9CDD4; }
.wy-empty { text-align: center !important; color: #86909C; padding: 28px 12px !important; }

/* --- 窄屏适配 --- */
@media (max-width: 820px) {
  .wy-sum { padding: 8px 12px; }
  .wy-board { overflow-x: auto; }
  .wy-bt { min-width: 560px; }
  .wy-board-note { display: none; }
  .wy-filters select { min-width: 0; flex: 1 1 46%; }
  .wy-filters-right { margin-left: 0; width: 100%; }
  .wy-sec-title span { display: none; }
}


/* =========================================================================
 * v39 调整（2026-09-16）
 *  ① 表单区对齐维运网：去掉「按港口」下拉，起运港/目的港并排等宽
 *  ② 分组板：标签整齐换行、行高收紧、天数整数
 *  ③ 港口联想：中文名 / 英文名 / 五字码 三列对齐，字重统一
 * ========================================================================= */

/* --- 1. 表单区：两港等宽 + 控件等高（维运网真实版式） --- */
.wy-form-card { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.wy-form-card .wy-field.wy-grow { flex: 1 1 300px; min-width: 220px; }
.wy-form-card .wy-field.wy-sm { flex: 0 0 auto; width: 118px; }
.wy-form-card .wy-field > label { font-size: 12px; color: var(--textThird, #86909C); line-height: 18px; display: block; margin-bottom: 4px; }
.wy-form-card .wy-field > input,
.wy-form-card .wy-field > select {
  width: 100%; height: 34px; box-sizing: border-box;
  padding: 0 10px; font-size: 13.5px; font-family: inherit; color: #1D2129;
  background: #fff; border: 1px solid #C9CDD4; border-radius: 3px;
}
.wy-form-card .wy-field > input:focus,
.wy-form-card .wy-field > select:focus { border-color: #0066FF; outline: none; box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.08); }
.wy-form-card .wy-field > input::placeholder { color: #C9CDD4; }
.wy-form-card .wy-swap { flex: none; width: 30px; height: 34px; margin-bottom: 0; }
.wy-form-card .wy-search { flex: none; height: 34px; padding: 0 22px; margin-bottom: 0; display: inline-flex; align-items: center; gap: 6px; }

/* --- 2. 分组板：标签整齐换行 --- */
.wy-bd-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 2px 0; }
.wy-chip2 {
  height: 21px; min-width: 62px; padding: 0 7px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #E5E6EB; border-radius: 3px; background: #fff;
  color: #1D2129; font-size: 12px; font-family: inherit; cursor: pointer;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: all .15s;
}
.wy-bt td { padding: 6px 6px; }
.wy-bd-wd { white-space: nowrap; }
.wy-bd-tt { white-space: nowrap; }

/* --- 3. 港口联想下拉：三列对齐 --- */
.sc-sug-i { display: flex; align-items: center; gap: 8px; }
.sc-sug-i b { flex: none; min-width: 74px; font-size: 13px; font-weight: 400; color: #1D2129; }
.sc-sug-i span { flex: 1 1 auto; font-size: 12px; font-weight: 400; color: #86909C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-sug-i em { flex: none; font-style: normal; font-size: 12px; color: #0066FF; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .wy-form-card .wy-field.wy-grow { flex: 1 1 100%; min-width: 0; }
  .wy-form-card .wy-field.wy-sm { width: calc(50% - 5px); }
  .wy-bd-chips { gap: 3px 5px; }
  .wy-chip2 { min-width: 0; }
}


/* =========================================================================
 * v40 调整（2026-09-16）
 *  ① 全局放大字号（分组板 / 概览条 / 筛选条 / 明细表同步加大）
 *  ② 分组板更接近维运网：一个开航日一行，行首最短航程，右侧船东标签平铺
 *  ③ 航程天数只显示整数（schedTT 统一 Math.round，CSS 再兜底隐藏小数点）
 *  ④ 航班明细表整体重做：加大行高、蓝色船东、橙色航程、更克制的次要信息
 * ========================================================================= */

/* --- 1. 概览条：放大一档 --- */
.wy-sum { padding: 10px 16px; font-size: 13.5px; line-height: 22px; }
.wy-sum b { font-size: 16px; }

/* --- 2. 分组板标题 --- */
.wy-board { margin-bottom: 16px; }
.wy-board-hd { padding: 12px 2px 10px; }
.wy-board-title { font-size: 17px; font-weight: 700; }
.wy-board-title span { font-size: 16px; font-weight: 400; }
.wy-board-note { font-size: 12.5px; }

/* --- 3. 分组板表格 --- */
table.wy-bt thead th { font-size: 15px; padding: 11px 8px; font-weight: 400; }
table.wy-bt thead th:first-child { padding-left: 16px; }
table.wy-bt thead th:last-child { padding-right: 16px; }
table.wy-bt td { padding: 12px 8px; font-size: 14.5px; }
table.wy-bt td:first-child { padding-left: 16px; }
table.wy-bt td:last-child { padding-right: 16px; }
.wy-bd-wd { font-size: 14.5px; font-weight: 500; }
.wy-bd-tt { font-size: 14.5px; }
.wy-bd-tt b { font-size: 17px; font-weight: 700; }
.wy-bd-empty { padding: 32px 12px !important; font-size: 13.5px; }

/* --- 3b. 分组板：前两列居中（表定开航 / 航程），表头同步居中 --- */
table.wy-bt thead th:nth-child(1),
table.wy-bt thead th:nth-child(2) { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt tbody tr td.wy-bd-wd,
table.wy-bt tbody tr td.wy-bd-tt { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt th:nth-child(1), table.wy-bt td.wy-bd-wd { width: 118px; }
table.wy-bt th:nth-child(2), table.wy-bt td.wy-bd-tt { width: 104px; }
table.wy-bt thead th.wy-bt-th-l { text-align: left; padding-left: 16px; }

/* --- 4. 船东标签：加大、整数天（小数天兜底隐藏） --- */
.wy-bd-chips { gap: 6px 8px; padding: 1px 0; }
.wy-chip2 {
  height: 26px; min-width: 78px; padding: 0 10px; border-radius: 4px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .2px;
}
.wy-chip2 i { font-style: normal; font-weight: 700; padding-left: 3px; }
.wy-chip2.on { font-weight: 600; }
.wy-bd-more {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px;
  border: 1px dashed #C9CDD4; border-radius: 4px; color: #86909C;
  font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: default;
}

/* --- 5. 筛选条：同步放大 --- */
.wy-filters { gap: 10px; padding: 12px 14px; border-radius: 8px; }
.wy-filters select { height: 34px; min-width: 142px; font-size: 13.5px; padding: 0 28px 0 11px; }
.wy-filters-cnt { font-size: 13.5px; }
.wy-filters-cnt b { font-size: 16px; }
.wy-tb-btn { height: 32px; padding: 0 14px; font-size: 13.5px; border-radius: 4px; }

/* --- 6. 明细区标题 --- */
.wy-sec-title { font-size: 16px; }
.wy-sec-title span { font-size: 12.5px; }
.wy-sec-note { font-size: 12.5px; }
.wy-sec-hd { margin-bottom: 10px; }

/* --- 7. 明细表重做：表头 14px、正文 14.5px --- */
table.wy-table thead th { font-size: 14px; padding: 11px 8px; font-weight: 400; }
table.wy-table thead th:first-child { padding-left: 16px; }
table.wy-table thead th:last-child { padding-right: 16px; }
table.wy-table td { padding: 14px 8px; font-size: 14.5px; border-bottom: 1px solid #F2F3F5; }
table.wy-table td:first-child { padding-left: 16px; }
table.wy-table td:last-child { padding-right: 16px; }
.wy-table tbody tr.wy-tr { transition: background .12s; }
.wy-table { table-layout: fixed; }
.wy-td-op { white-space: nowrap; }
/* 四列数值/标签列居中：航程、相关信息的按钮、截关时间次行 */
table.wy-table thead th:nth-child(4) { text-align: center; }
table.wy-table tbody tr td.wy-td-tt { text-align: center; }
table.wy-table thead th:nth-child(8) { text-align: center; }
table.wy-table tbody tr td.wy-td-op { text-align: center; }

.wy-td-car b { font-size: 15px; letter-spacing: .3px; }
.wy-td-car span { font-size: 12.5px; margin-top: 2px; }
.wy-td-vessel b { font-size: 14.5px; font-weight: 600; }
.wy-td-vessel span { font-size: 12.5px; margin-top: 2px; color: #86909C; }
.wy-td-etd b, .wy-td-eta b { font-size: 14.5px; font-weight: 600; }
.wy-td-etd span, .wy-td-eta span { font-size: 12.5px; margin-top: 2px; }
.wy-td-tt b { font-size: 17px; }
.wy-td-tt { font-size: 13px; }
.wy-td-via { font-size: 13.5px; }
.wy-via { gap: 5px; font-size: 13.5px; line-height: 21px; }
.wy-via i { font-size: 13px; line-height: 17px; padding: 0 3px; }
.wy-via-more { font-size: 12.5px; color: #86909C; line-height: 21px; }
.wy-direct { height: 22px; line-height: 22px; padding: 0 9px; font-size: 13px; border-radius: 3px; }
.wy-td-cut b { font-size: 13.5px; }
.wy-td-cut span { font-size: 12.5px; margin-top: 2px; }
.wy-op-btn { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 4px; }
.wy-op-none { font-size: 13px; }
.wy-empty { padding: 36px 12px !important; font-size: 13.5px; }

/* --- 8. 航程天数列：只允许整数（隐藏任何残留的小数写法） --- */
.wy-bd-tt, .wy-chip2, .wy-td-tt { font-variant-numeric: tabular-nums; }

/* --- 9. 中转航程明细（展开区）字号同步 --- */
.sc-subtable { font-size: 13px; }
.sc-sub { font-size: 13px; }
.sc-sub-no { font-size: 12.5px; }
.sc-sub-mode { font-size: 12.5px; }
.sc-sub-pt { font-size: 13.5px; }
.sc-sub-vessel { font-size: 13.5px; }
.sc-sub-t { font-size: 13px; }
.sc-detail-td { padding: 12px 16px 16px !important; }
.sc-detail td { padding: 12px 16px 18px; }
/* ===== 增量块 BEGIN ===== */


/* =========================================================================
 * v40 调整（2026-09-16）
 *  ① 全局放大字号（分组板 / 概览条 / 筛选条 / 明细表同步加大）
 *  ② 分组板更接近维运网：一个开航日一行，行首最短航程，右侧船东标签平铺
 *  ③ 航程天数只显示整数（schedTT 统一 Math.round，CSS 再兜底隐藏小数点）
 *  ④ 航班明细表整体重做：加大行高、蓝色船东、橙色航程、更克制的次要信息
 * ========================================================================= */

/* --- 1. 概览条：放大一档 --- */
.wy-sum { padding: 10px 16px; font-size: 13.5px; line-height: 22px; }
.wy-sum b { font-size: 16px; }

/* --- 2. 分组板标题 --- */
.wy-board { margin-bottom: 16px; }
.wy-board-hd { padding: 12px 2px 10px; }
.wy-board-title { font-size: 17px; font-weight: 700; }
.wy-board-title span { font-size: 16px; font-weight: 400; }
.wy-board-note { font-size: 12.5px; }

/* --- 3. 分组板表格 --- */
table.wy-bt thead th { font-size: 15px; padding: 11px 8px; font-weight: 400; }
table.wy-bt thead th:first-child { padding-left: 16px; }
table.wy-bt thead th:last-child { padding-right: 16px; }
table.wy-bt td { padding: 12px 8px; font-size: 14.5px; }
table.wy-bt td:first-child { padding-left: 16px; }
table.wy-bt td:last-child { padding-right: 16px; }
.wy-bd-wd { font-size: 14.5px; font-weight: 500; }
.wy-bd-tt { font-size: 14.5px; }
.wy-bd-tt b { font-size: 17px; font-weight: 700; }
.wy-bd-empty { padding: 32px 12px !important; font-size: 13.5px; }

/* --- 3b. 分组板：前两列居中（表定开航 / 航程），表头同步居中 --- */
table.wy-bt thead th:nth-child(1),
table.wy-bt thead th:nth-child(2) { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt tbody tr td.wy-bd-wd,
table.wy-bt tbody tr td.wy-bd-tt { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt th:nth-child(1), table.wy-bt td.wy-bd-wd { width: 118px; }
table.wy-bt th:nth-child(2), table.wy-bt td.wy-bd-tt { width: 104px; }
table.wy-bt thead th.wy-bt-th-l { text-align: left; padding-left: 16px; }

/* --- 4. 船东标签：加大、整数天（小数天兜底隐藏） --- */
.wy-bd-chips { gap: 6px 8px; padding: 1px 0; }
.wy-chip2 {
  height: 26px; min-width: 78px; padding: 0 10px; border-radius: 4px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .2px;
}
.wy-chip2 i { font-style: normal; font-weight: 700; padding-left: 3px; }
.wy-chip2.on { font-weight: 600; }
.wy-bd-more {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px;
  border: 1px dashed #C9CDD4; border-radius: 4px; color: #86909C;
  font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: default;
}

/* --- 5. 筛选条：同步放大 --- */
.wy-filters { gap: 10px; padding: 12px 14px; border-radius: 8px; }
.wy-filters select { height: 34px; min-width: 142px; font-size: 13.5px; padding: 0 28px 0 11px; }
.wy-filters-cnt { font-size: 13.5px; }
.wy-filters-cnt b { font-size: 16px; }
.wy-tb-btn { height: 32px; padding: 0 14px; font-size: 13.5px; border-radius: 4px; }

/* --- 6. 明细区标题 --- */
.wy-sec-title { font-size: 16px; }
.wy-sec-title span { font-size: 12.5px; }
.wy-sec-note { font-size: 12.5px; }
.wy-sec-hd { margin-bottom: 10px; }

/* --- 7. 明细表重做：表头 14px、正文 14.5px --- */
table.wy-table thead th { font-size: 14px; padding: 11px 8px; font-weight: 400; }
table.wy-table thead th:first-child { padding-left: 16px; }
table.wy-table thead th:last-child { padding-right: 16px; }
table.wy-table td { padding: 14px 8px; font-size: 14.5px; border-bottom: 1px solid #F2F3F5; }
table.wy-table td:first-child { padding-left: 16px; }
table.wy-table td:last-child { padding-right: 16px; }
.wy-table tbody tr.wy-tr { transition: background .12s; }
.wy-table { table-layout: fixed; }
.wy-td-op { white-space: nowrap; }
/* 四列数值/标签列居中：航程、相关信息的按钮、截关时间次行 */
table.wy-table thead th:nth-child(4) { text-align: center; }
table.wy-table tbody tr td.wy-td-tt { text-align: center; }
table.wy-table thead th:nth-child(8) { text-align: center; }
table.wy-table tbody tr td.wy-td-op { text-align: center; }

.wy-td-car b { font-size: 15px; letter-spacing: .3px; }
.wy-td-car span { font-size: 12.5px; margin-top: 2px; }
.wy-td-vessel b { font-size: 14.5px; font-weight: 600; }
.wy-td-vessel span { font-size: 12.5px; margin-top: 2px; color: #86909C; }
.wy-td-etd b, .wy-td-eta b { font-size: 14.5px; font-weight: 600; }
.wy-td-etd span, .wy-td-eta span { font-size: 12.5px; margin-top: 2px; }
.wy-td-tt b { font-size: 17px; }
.wy-td-tt { font-size: 13px; }
.wy-td-via { font-size: 13.5px; }
.wy-via { gap: 5px; font-size: 13.5px; line-height: 21px; }
.wy-via i { font-size: 13px; line-height: 17px; padding: 0 3px; }
.wy-via-more { font-size: 12.5px; color: #86909C; line-height: 21px; }
.wy-direct { height: 22px; line-height: 22px; padding: 0 9px; font-size: 13px; border-radius: 3px; }
.wy-td-cut b { font-size: 13.5px; }
.wy-td-cut span { font-size: 12.5px; margin-top: 2px; }
.wy-op-btn { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 4px; }
.wy-op-none { font-size: 13px; }
.wy-empty { padding: 36px 12px !important; font-size: 13.5px; }

/* --- 8. 航程天数列：只允许整数（隐藏任何残留的小数写法） --- */
.wy-bd-tt, .wy-chip2, .wy-td-tt { font-variant-numeric: tabular-nums; }

/* --- 9. 中转航程明细（展开区）字号同步 --- */
.sc-subtable { font-size: 13px; }
.sc-sub { font-size: 13px; }
.sc-sub-no { font-size: 12.5px; }
.sc-sub-mode { font-size: 12.5px; }
.sc-sub-pt { font-size: 13.5px; }
.sc-sub-vessel { font-size: 13.5px; }
.sc-sub-t { font-size: 13px; }
.sc-detail-td { padding: 12px 16px 16px !important; }
.sc-detail td { padding: 12px 16px 18px; }

/* --- 10. 港口联想下拉（维运网版式：单列 "JEDDAH(吉达，沙特阿拉伯)"） ---
   注意：老版 (v11~v13) 有 `.sc-sug-i span{flex:1 1 auto;font-size:12px}` 与
   `.sc-sug-i em{flex:none;font-size:12px}` 两条后代选择器（权重 0,1,1），
   会压过单类选择器 (0,1,0)。所以这里统一用 `.sc-sug .sc-sug-i .sc-sug-xx`
   （权重 0,3,0）确保生效；不要退回单类选择器。 */
/* ★ 关键：`.wy-hero{overflow:hidden}` 会把下拉框超出表单卡的部分整块裁掉
   （hero 高度仅约 202px，下拉一动就看不见）。圆角背景改用 ::before 承载，
   容器本身 overflow 放开为 visible，下拉才能完整显示。 */
.wy-hero { overflow: visible; }
.wy-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: 8px; overflow: hidden; pointer-events: none;
  /* 兜底：JPEG（任何浏览器都能解析） */
  background-image:
    linear-gradient(165deg, rgba(9, 26, 46, 0.88) 0%, rgba(15, 42, 70, 0.72) 55%, rgba(7, 20, 36, 0.9) 100%),
    url('/assets/bg-ship.jpg');
  /* 现代浏览器走 WebP：原 1.9MB → 128KB（不支持 image-set 时整条丢弃，自动回退上行 JPEG） */
  background-image:
    linear-gradient(165deg, rgba(9, 26, 46, 0.88) 0%, rgba(15, 42, 70, 0.72) 55%, rgba(7, 20, 36, 0.9) 100%),
    image-set(url('/assets/bg-ship.webp') 1x);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-color: #0B2239;
}
/* hero 内的实际内容抬到背景层之上 */
.wy-hero > * { position: relative; z-index: 1; }
.sc-sug {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 200;
  min-width: 100%; width: max-content; max-width: 520px;
  max-height: 336px; overflow-y: auto; overflow-x: hidden; padding: 4px; display: none;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(20, 32, 45, .14);
}
.sc-sug .sc-sug-i {
  display: flex; flex-direction: row; align-items: center; gap: 0;
  height: 36px; padding: 0 12px; border-radius: 3px; cursor: pointer;
  font-size: 14px; line-height: 1;
}
.sc-sug .sc-sug-i:hover,
.sc-sug .sc-sug-i.active { background: #F2F7FF; }
/* 单列文本：英文名(中文名，国家) */
.sc-sug .sc-sug-i .sc-sug-tx {
  flex: 1 1 auto; min-width: 0; display: block;
  color: #1D2129; font-size: 14px; font-weight: 500; line-height: 36px;
  letter-spacing: .2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 括号部分（中文名，国家）用次级灰、常规字重 */
.sc-sug .sc-sug-i .sc-sug-tx .sc-sug-pn {
  font-style: normal; font-weight: 400; color: #86909C; }
.sc-sug .sc-sug-i i { font-style: normal; color: #0066FF; }
.sc-sug .sc-sug-i.alias { background: #FFF7E8; }
.sc-sug .sc-sug-i.alias:hover { background: #FFF1D6; }
.sc-sug .sc-sug-empty { padding: 14px 12px; text-align: center; color: #86909C; font-size: 13px; }
/* 表单区容器需要定位锚点 */
.wy-form-card .wy-field { position: relative; }

/* --- 11. 窄屏：字号不缩、标签可换行 --- */
@media (max-width: 820px) {
  .wy-bt thead th, .wy-bt td { font-size: 13.5px; }
  .wy-chip2 { min-width: 0; font-size: 13px; }
  .wy-table { min-width: 1080px; }
}

/* hero 内标签条：负边距原本靠父级 overflow:hidden 裁掉，
   现在父级放开为 visible，改用自身圆角+裁切避免溢出圆角外 */
.sc-hero-clip, .wy-tabs { border-top-left-radius: 8px; border-top-right-radius: 8px; }

/* =========================================================================
 * v44 调整（2026-09-16）
 *  ① 中转分组板取消「航程」独立列（行首不再单列最短航程），改由船东标签
 *     上的天数体现；表格降为 2 列（表定开航 + 船东/航程），需覆盖
 *     v40 里针对第 2 列的 width / nth-child 居中规则（不能沿用 96px）
 *  ② 直航分组板「航程」表头可点击，切换船东标签的航程排序方向
 * ========================================================================= */

/* --- 12. 中转分组板（2 列）：第 1 列仍居中定宽，第 2 列吃掉剩余宽度并左对齐 --- */
table.wy-bt.wy-bt-2c thead th:nth-child(1),
table.wy-bt.wy-bt-2c thead th:last-child { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt.wy-bt-2c tbody tr td.wy-bd-wd { text-align: center; padding-left: 8px; padding-right: 8px; }
table.wy-bt.wy-bt-2c th:nth-child(1),
table.wy-bt.wy-bt-2c td.wy-bd-wd { width: 118px; }
/* 第 2 列：覆盖 v40 的 `th:nth-child(2), td.wy-bd-tt { width: 104px }`（特指度更高） */
table.wy-bt.wy-bt-2c thead th.wy-bt-th-l,
table.wy-bt.wy-bt-2c tbody tr td.wy-bd-chips {
  width: auto; text-align: left;
  padding-left: 16px; padding-right: 16px;
}

/* --- 13. 直航分组板「航程」表头：可点击切换排序方向 --- */
table.wy-bt thead th.sched-tt-sort { cursor: pointer; user-select: none; }
table.wy-bt thead th.sched-tt-sort:hover { color: #0066FF; }
table.wy-bt thead th.sched-tt-sort .sched-sort-ar {
  font-style: normal; font-size: 12px; margin-left: 2px; color: #C9CDD4;
}
table.wy-bt thead th.sched-tt-sort:hover .sched-sort-ar { color: #0066FF; }

/* =========================================================================
 * v45 性能（2026-09-17）
 *  ① 背景大图 1.9MB PNG → 128KB WebP（JPEG 兜底），登录页首屏与船期页 Hero 同步
 *  ② `.wy-hero` 本体那条旧 background 已失效（v43 起背景由 ::before 承担），
 *     但它仍引用 PNG 会让浏览器白下载一次 → 直接清掉
 *  ③ 全部 .login-overlay 定义里残留的 PNG 引用在此统一覆盖为 WebP
 * ========================================================================= */

/* --- 14. 清掉 .wy-hero 本体上已失效、但仍会触发 PNG 下载的 background --- */
.wy-hero { background: none; }

/* --- 15. 登录页背景：WebP（JPEG 兜底） --- */
.login-overlay {
  background-image:
    linear-gradient(160deg, rgba(9, 22, 36, 0.74) 0%, rgba(16, 38, 60, 0.58) 55%, rgba(9, 22, 36, 0.8) 100%),
    url('/assets/bg-ship.jpg');
  background-image:
    linear-gradient(160deg, rgba(9, 22, 36, 0.74) 0%, rgba(16, 38, 60, 0.58) 55%, rgba(9, 22, 36, 0.8) 100%),
    image-set(url('/assets/bg-ship.webp') 1x);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-color: #0B2239;
}

/* =========================================================================
 * v46 目的港「按国家检索」（2026-09-17）
 *   输入国家名（中文 委内瑞拉 / 英文 Venezuela / 前缀 委内）时，
 *   下拉顶部出现一条分组说明，下面列出该国全部港口。
 *   权重取 `.sc-sug .sc-sug-hd`（0,2,0），高于 v11~v13 的单类规则，
 *   并与 `.sc-sug .sc-sug-i` 系列保持同一层级，避免被静默压死。
 * ========================================================================= */
.sc-sug .sc-sug-hd {
  position: sticky; top: 0; z-index: 1;
  display: block; height: 28px; padding: 0 12px; margin: 0 0 2px;
  background: #F7F8FA; border-radius: 3px;
  color: #4E5969; font-size: 12.5px; font-weight: 600; line-height: 28px;
  letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* =========================================================================
 * v47 全球港口查询 · 数据源换为 bmcx 合并库（3852 条 / 229 国）
 *   新增：结果截断提示 .port-more、无坐标占位 .port-map-none
 * ========================================================================= */
.port-card-wrap .port-results { align-items: stretch; }
.port-results .port-more {
  grid-column: 1 / -1;
  text-align: center; padding: 12px 0 4px;
  font-size: 12px; color: var(--text-tertiary);
}
.port-map-box.port-map-none {
  display: flex; align-items: center; justify-content: center;
  min-height: 92px; padding: 18px 22px;
  background: #F7F9FB; border: 1px dashed var(--border-color); border-radius: 10px;
  color: var(--text-tertiary); font-size: 12.5px; line-height: 1.7; text-align: center;
}
.port-results .port-tag.tag-lane { background: var(--color-primary-light); color: #2B7CC0; }
.port-results .port-foot { justify-content: flex-start; }

/* ===== 增量块 END ===== */

/* =========================================================================
 * v52 空运订舱 · 机场/航司输入联想浮层
 *   浮层挂在 body 上（position:fixed），避免被 .modal 的 overflow-y 裁剪；
 *   长链路选择器与既有 .sc-sug 系列同级，防止被旧规则静默压死。
 * ========================================================================= */
.sug-float {
  position: fixed; z-index: 3000; display: none;
  max-height: 260px; overflow-y: auto; padding: 4px;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(20, 32, 45, .14);
}
.sug-float .sug-float-i {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px; border-radius: 3px; cursor: pointer;
  font-size: 13.5px; color: #1D2129; line-height: 1; white-space: nowrap; overflow: hidden;
}
.sug-float .sug-float-i:hover,
.sug-float .sug-float-i.on { background: #F2F3F5; }
.sug-float .sug-float-main { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.sug-float .sug-float-code { flex: none; font-style: normal; font-size: 12px; color: #86909C; letter-spacing: .3px; }
.sug-float .sug-float-sub { flex: 1 1 auto; text-align: right; font-size: 11.5px; color: #86909C; overflow: hidden; text-overflow: ellipsis; }
