:root {
  /* 锡尔国际品牌色系 — 深蓝紫 + 金色 */
  --primary: #3B3B81;
  --primary-light: #5A5A9E;
  --primary-dark: #2A2A5E;
  --primary-50: rgba(59,59,129,0.06);
  --primary-100: rgba(59,59,129,0.12);
  --accent: #FCD020;
  --accent-dark: #E5B800;
  --accent-light: #FFE066;
  --cyan: #5A5A9E;
  --cyan-light: #7A7AB8;
  --cyan-glow: #9A9AD0;
  /* 语义色 */
  --success: #16A34A; --success-light: #DCFCE7;
  --danger: #DC2626;  --danger-light: #FEE2E2;
  --warning: #F59E0B; --warning-light: #FEF3C7;
  --purple: #7C3AED;  --purple-light: #EDE9FE;
  /* 中性色 */
  --ink: #1A1919;
  --muted: #6B7280;
  --subtle: #9CA3AF;
  --line: #D5DDE8;
  --bg: #F7F9FC;
  --bg-alt: #EEF2F7;
  --card: #ffffff;
  /* 圆角五档 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  /* 阴影三级 — 蓝色调 */
  --shadow-sm: 0 1px 2px rgba(59,59,129,.04), 0 1px 3px rgba(0,0,0,.02);
  --shadow: 0 4px 12px rgba(59,59,129,.06);
  --shadow-lg: 0 12px 28px rgba(59,59,129,.10);
  /* 间距 */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-6:24px; --s-8:32px; --s-12:48px;
  /* 过渡 */
  --transition: all .18s ease;
  --transition-fast: all .15s ease;
  --transition-slow: all .3s ease;
  /* 容器宽度 */
  --wrap: 1100px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航：白底 + 深蓝logo ===== */
.nav-site {
  background: #fff; color: var(--ink); padding: 0; position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.nav-site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .3px; color: var(--primary); display: flex; align-items: center; gap: 9px; }
.logo:hover { text-decoration: none; }
.logo .dot { width: 11px; height: 11px; background: var(--accent); border-radius: 50%; display: inline-block; }
nav.site a { color: #334155; margin-left: 26px; font-size: 14.5px; font-weight: 500; }
nav.site a:hover { color: var(--primary); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.locale { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.btn.nav-cta { padding: 9px 18px; font-size: 13.5px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; background: var(--primary); color: #fff; font-weight: 600;
  padding: 12px 26px; border-radius: var(--r-md); border: none; cursor: pointer; font-size: 15px;
  box-shadow: var(--shadow-sm); transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.sm { padding: 9px 18px; font-size: 14px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 84px 0 92px; position: relative; overflow: hidden;
}
.hero {
  background-image: linear-gradient(120deg, rgba(59,59,129,.82), rgba(19,86,160,.88)), url('assets/truck.jpg');
  background-size: cover; background-position: center 42%;
}
.hero h1 { font-size: 32px; line-height: 1.25; margin: 0 0 16px; font-weight: 800; letter-spacing: -.4px; max-width: 760px; }
.hero p { font-size: 17px; opacity: .94; max-width: 620px; margin: 0 0 28px; }
.hero .btn + .btn { margin-left: 12px; }
/* 深色背景上主按钮改金色，确保可见 */
.hero .btn:not(.ghost):not(.nav-cta) { background: var(--accent); color: var(--primary-dark); }
.hero .btn:not(.ghost):not(.nav-cta):hover { background: var(--accent-dark); }

/* ===== 区块 ===== */
.section { padding: 76px 0; }
.section.alt { background: #fff; }
.section h2 { font-size: 24px; color: var(--ink); margin: 0 0 8px; letter-spacing: -.3px; }
.section .sub { color: var(--muted); margin: 0 0 38px; font-size: 15.5px; }

/* ===== 网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===== 卡片 ===== */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.card p { color: #475569; margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-50); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; font-weight: 600; }
.card .days { color: var(--primary); font-weight: 700; }
.card a { color: var(--primary); font-weight: 600; }

/* 路线卡图片区 */
.card-media { margin: -24px -24px 18px; height: 152px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--primary-dark); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-cta { display: inline-block; margin-top: 6px; color: #fff !important; background: var(--primary); padding: 8px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.card .card-cta:hover { background: var(--primary-dark); text-decoration: none; color: #fff !important; }

ul.clean { padding-left: 18px; margin: 8px 0 0; }
ul.clean li { margin: 4px 0; }

/* ===== 底部 CTA 横幅 ===== */
.cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 58px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.92); margin: 0 0 24px; font-size: 16px; }
.cta-band .btn { background: var(--accent); color: var(--primary-dark); }
.cta-band .btn:hover { background: var(--accent-dark); }
.cta-band .btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ===== FAQ 手风琴 ===== */
.faq { max-width: 840px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { color: var(--primary); }
.faq details .ans { padding: 0 22px 20px; color: var(--muted); line-height: 1.8; }

/* ===== 如何运作：圆形步骤图标 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 8px; }
.step .num { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 800; margin: 0 auto 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--primary-100); }
.step h3 { color: var(--ink); font-size: 17px; margin: 0 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* ===== 页脚：4 列深色 ===== */
.footer-site { background: var(--primary-dark); color: #cbd5e1; padding: 58px 0 26px; font-size: 14px; }
.footer-site a { color: #cbd5e1; }
.footer-site a:hover { color: #fff; text-decoration: none; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
footer .f-brand .logo { color: #fff; }
footer .f-brand p { color: #94a3b8; margin: 16px 0 0; line-height: 1.8; max-width: 280px; }
footer h4 { color: #fff; font-size: 14px; margin: 0 0 16px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin: 10px 0; }
footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; color: #94a3b8; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== 计算器 ===== */
.calc-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.calc-form { padding: 26px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 4px; margin-bottom: 18px; background: #fcfdfe; }
.fieldset > .legend { font-size: 12.5px; font-weight: 700; color: var(--primary); letter-spacing: .6px; margin-bottom: 14px; display: block; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 500; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-100); }
.swap { text-align: center; margin: 2px 0 16px; }
.swap button { background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary); border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.swap button:hover { background: var(--primary-100); }
.chk { display: flex; align-items: center; gap: 9px; margin: 11px 0; font-size: 14px; color: var(--ink); }
.chk input { width: auto; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); position: sticky; top: 88px; overflow: hidden; color: var(--ink) !important; }
.result-media { height: 142px; background: var(--primary-dark); overflow: hidden; }
.result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-routes { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fcfdfe; }
.chip { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); border: 1px solid var(--primary-100); cursor: pointer; font-weight: 600; transition: background .15s; }
.chip:hover { background: var(--primary-100); }
.result { padding: 22px; }
.result .total { font-size: 36px; font-weight: 800; color: var(--primary); }
.result .total small { font-size: 15px; color: var(--muted); font-weight: 500; }
.result table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.result td { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink) !important; }
.result tr:last-child td { border-bottom: none; }
.result td:last-child { text-align: right; font-weight: 600; }
.note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ===== 留资弹窗 CTA 按钮（计算结果区内） ===== */
.lead-cta-btn {
  display: block; width: 100%; margin-top: 18px; padding: 14px; font-size: 16px;
  background: var(--accent); color: var(--primary-dark); border: none; border-radius: var(--r-md);
  font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .18s, transform .18s;
}
.lead-cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ===== 留资弹窗 ===== */
.lead-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(19,86,160,.55); z-index: 9999; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 20px;
}
.lead-overlay.show { display: flex; }
.lead-modal {
  background: #fff; border-radius: var(--r-lg); max-width: 480px; width: 100%;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: leadSlideIn .25s ease;
}
@keyframes leadSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.lead-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.lead-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.lead-close {
  background: none; border: none; font-size: 24px; color: var(--muted);
  cursor: pointer; padding: 0; line-height: 1;
}
.lead-close:hover { color: var(--ink); }
.lead-body { padding: 24px; overflow-y: auto; flex: 1; }
.lead-price-summary {
  background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--r-md);
  padding: 16px; margin-bottom: 16px;
}
.lead-summary-row {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 0;
  font-size: 14px;
}
.lead-summary-row span { color: var(--muted); }
.lead-summary-row strong { color: var(--ink); }
.lead-tip {
  font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 20px;
}
.lead-tip strong { color: var(--primary); }
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-field { display: flex; flex-direction: column; }
.lead-field label {
  font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 6px;
}
.lead-field input {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; background: #fff;
}
.lead-field input:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-100);
}
.lead-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-submit-btn {
  margin-top: 6px; padding: 14px; font-size: 15px; width: 100%;
}
.lead-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.lead-disclaimer {
  font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0;
}
.lead-disclaimer a { color: var(--primary); font-weight: 600; }

@media (max-width: 920px) {
  .card-grid, .grid2, .calc-wrap, .steps, footer .cols { grid-template-columns: 1fr; }
  .form-row, .lead-field-row { grid-template-columns: 1fr; }
  footer .cols { gap: 28px; }
  .hero h1 { font-size: 30px; }
  nav.site { display: none; }
  .lead-overlay { padding: 20px 12px; }
}

/* ===== Hero 数据条 ===== */
.hero-stats {
  display: flex; gap: 0; margin-top: 36px; max-width: 620px;
  background: rgba(255,255,255,.1); border-radius: var(--r-md); overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero-stat {
  flex: 1; text-align: center; padding: 14px 8px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ===== 优势卡片图标圆圈 ===== */
.card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}

/* ===== 步骤连接线 ===== */
.steps { position: relative; }
.steps::before {
  content: ''; position: absolute; top: 29px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--primary-100), var(--primary-100));
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .num {
  background: var(--primary) !important; color: #fff !important;
  border: 4px solid var(--bg) !important; box-shadow: 0 0 0 1px var(--primary-100) !important;
}

/* ===== 信任徽章 ===== */
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-50); color: var(--primary); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; margin-top: 12px;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center;
}

/* ===== 线路卡片悬停强调 ===== */
.card .card-cta {
  transition: background .18s, transform .18s;
}
.card:hover .card-cta { transform: translateX(2px); }

/* ===== 2026-08 移动端点按区补强 ===== */
@media (max-width: 920px) {
  .logo, .card-cta { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 45%; }
  .steps::before { display: none; }
}

/* === 移动端适配 Phase 3 === */
.mobile-nav-toggle{display:none;background:none;border:none;font-size:22px;color:var(--primary);cursor:pointer;padding:4px}

@media (max-width: 768px){
  :root{--wrap:100%}
  .wrap{padding:0 16px}
  
  /* 导航 */
  .nav-site .wrap{height:54px}
  .logo{font-size:17px}
  .logo .dot{width:9px;height:9px}
  .nav-right{gap:8px}
  .locale{display:none}
  .btn.nav-cta{padding:7px 14px;font-size:12px}
  .mobile-nav-toggle{display:block}
  .nav-right .nav-links-mobile{
    display:none;position:fixed;top:54px;left:0;right:0;bottom:0;
    background:#fff;flex-direction:column;padding:16px;gap:8px;z-index:49;
    box-shadow:0 4px 16px rgba(0,0,0,.1)
  }
  .nav-right .nav-links-mobile.open{display:flex}
  .nav-right .nav-links-mobile a{padding:12px 16px;font-size:15px;color:var(--ink);border-radius:8px}
  
  /* Hero */
  .hero{padding:56px 0 64px}
  .hero h1{font-size:26px;max-width:100%}
  .hero p{font-size:15px;max-width:100%;margin-bottom:20px}
  .hero .btn{padding:10px 20px;font-size:14px}
  .hero .btn+.btn{margin-left:0;margin-top:8px}
  .hero-stats{gap:10px !important;margin-top:14px !important}
  .hero-stats > div{padding:6px 10px !important;min-width:calc(50% - 5px)}
  .hero-stats > div > div:first-child{font-size:18px !important}
  .hero-stats > div > div:last-child{font-size:10px !important}
  
  /* 区块 */
  .section{padding:40px 0}
  .card-grid{grid-template-columns:1fr;gap:16px}
  .grid2{grid-template-columns:1fr;gap:16px}
  
  /* 卡片 */
  .card{padding:18px}
  .card h3{font-size:16px}
  .card-media{margin:-18px -18px 14px;height:120px}
  
  /* 步骤 */
  .steps{grid-template-columns:1fr;gap:20px}
  .step .num{width:48px;height:48px;font-size:20px}
  .step h3{font-size:16px}
  
  /* CTA */
  .cta-band{padding:40px 0}
  .cta-band h2{font-size:22px}
  .cta-band p{font-size:14px}
  .cta-band .btn{padding:10px 22px;font-size:14px}
  
  /* FAQ */
  .faq{max-width:100%}
  .faq summary{padding:14px 16px;font-size:15px}
  .faq details .ans{padding:0 16px 16px;font-size:14px}
  
  /* 计算器表单 */
  .calc-form{padding:16px !important}
  .calc-form .form-row{flex-direction:column;gap:10px}
  .calc-form .form-group{width:100% !important}
  .calc-form select,.calc-form input{width:100%;font-size:15px}
  
  /* 结果卡片 */
  .result-card{padding:16px !important}
  .result-grid{grid-template-columns:1fr !important;gap:10px}
  .result-price{font-size:28px !important}
  
  /* 实时运价列表 */
  .live-routes-grid{grid-template-columns:1fr !important;gap:10px}
  
  /* 弹窗 */
  .lead-modal{max-width:92% !important}
  .lead-body{padding:20px 16px !important}
  .lead-modal{max-height:94vh !important}
  
  /* 趋势图 */
  .trend-section{padding:14px !important}
  #trendChart{height:200px !important}
  
  /* footer */
  .footer-site{padding:32px 0 20px}
  .footer-site .grid2{grid-template-columns:1fr;gap:20px}
}

@media (max-width: 480px){
  .hero{padding:40px 0 48px}
  .hero h1{font-size:22px}
  .hero p{font-size:14px}
  .hero-stats > div{min-width:calc(100% - 0px)}
  .hero-stats{flex-direction:column}
  .card{padding:14px}
  .result-price{font-size:24px !important}
  .calc-form select,.calc-form input{font-size:14px}
}


/* ===== 统一区块头部 .section-head ===== */
.section-head { margin-bottom: 28px; }
.section-head .tag {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--accent-dark); background: rgba(232,146,12,0.1);
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 6px;
}
.section-head h2 {
  font-size: 24px; font-weight: 800; padding-left: 16px; position: relative;
  margin: 0 0 4px; letter-spacing: -.3px;
}
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 4px; height: 20px; background: var(--accent); border-radius: 2px;
}
.section-head .desc {
  font-size: 14px; color: var(--muted); padding-left: 16px; margin-top: 4px;
}

/* ===== Badge 统一 ===== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
}
.badge.primary { background: var(--primary-100); color: var(--primary); }
.badge.accent { background: rgba(232,146,12,0.1); color: var(--accent-dark); }
.badge.success { background: var(--success-light); color: var(--success); }
.badge.danger { background: var(--danger-light); color: var(--danger); }
.badge.gray { background: #F3F4F6; color: var(--muted); }

/* ===== Alert 提示条 ===== */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 8px;
}
.alert.info { background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-dark); }
.alert.success { background: var(--success-light); border: 1px solid rgba(22,163,74,0.15); color: #166534; }
.alert.warning { background: var(--warning-light); border: 1px solid rgba(245,158,11,0.2); color: #92400E; }
.alert.danger { background: var(--danger-light); border: 1px solid rgba(220,38,38,0.15); color: #991B1B; }

/* ===== Loading 加载态 ===== */
.loading {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px; color: var(--muted); font-size: 13px;
}
.loading::before {
  content: ''; width: 32px; height: 32px;
  border: 3px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Empty 空数据态 ===== */
.empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px; background: var(--bg); border-radius: var(--r-md);
}
.empty .empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.empty .empty-text { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.empty .empty-hint { font-size: 12px; color: var(--subtle); }

/* ===== Error 错误态 ===== */
.error-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px; background: var(--danger-light); border-radius: var(--r-md);
  border: 1px solid rgba(220,38,38,0.15);
}
.error-state .error-icon { font-size: 32px; margin-bottom: 8px; }
.error-state .error-title { font-size: 15px; font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.error-state .error-text { font-size: 13px; color: #991B1B; }

/* ===== Toast 通知 ===== */
.toast {
  position: fixed; top: 76px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.toast-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastSlideIn .3s ease;
}
.toast-item.success { background: var(--success-light); color: #166534; }
.toast-item.error { background: var(--danger-light); color: #991B1B; }
.toast-item.warning { background: var(--warning-light); color: #92400E; }
.toast-item.info { background: var(--primary-100); color: var(--primary-dark); }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== Breadcrumb 面包屑 ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 8px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--subtle); font-size: 11px; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ===== Pagination 分页 ===== */
.pagination {
  display: flex; align-items: center; gap: 4px;
  justify-content: center; padding: 12px;
}
.pagination .pg-btn {
  min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px;
  cursor: pointer; background: #fff; transition: var(--transition);
}
.pagination .pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .pg-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .pg-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .pg-dots { color: var(--subtle); padding: 0 4px; }

/* ===== Focus 可访问性 ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
:disabled, .disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Nav home link - subtle */
nav.site a.nav-home { color: var(--subtle, #9CA3AF) !important; font-size: 13px; }
nav.site a.nav-home:hover { color: var(--primary) !important; }


/* ===== Visual Polish 20260821 ===== */
/* Hero stats: more visible */
.hero-stats > div {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, background .2s;
}
.hero-stats > div:hover {
  background: rgba(255,255,255,0.18) !important;
  transform: translateY(-2px);
}

/* Form card: add subtle accent */
.calc-form {
  border-top: 3px solid var(--accent) !important;
}

/* Fieldset: cleaner borders */
.fieldset {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  background: rgba(59,59,129,0.02) !important;
}
.fieldset .legend {
  background: var(--card) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 4px 12px !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--line) !important;
}

/* Select/Input: consistent styling */
.calc-form select,
.calc-form input[type="number"] {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  transition: border-color .2s, box-shadow .2s !important;
  background: #fff !important;
  color: var(--ink) !important;
  width: 100% !important;
}
.calc-form select:focus,
.calc-form input[type="number"]:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59,59,129,0.1) !important;
  outline: none !important;
}

/* Calculate button: more prominent */
.calc-form .btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
  color: #fff !important;
  padding: 12px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: var(--r-md) !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform .2s, box-shadow .2s !important;
}
.calc-form .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(232,146,12,0.3) !important;
}

/* Result section: accent border */
#result {
  border-left: 3px solid var(--accent) !important;
}

/* Section headings: consistent accent */
.section-head h2 {
  position: relative;
  padding-left: 14px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .tag {
  background: var(--primary-100) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* ===== v3 Update 20260822: Nav CTA Button + Combobox + Visual Enhancement ===== */

/* Nav CTA Button - golden gradient like official site */
.nav-calc-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FCD020 0%, #E5B800 100%) !important;
  color: #1a1a2e !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(253,208,32,0.3);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-calc-btn:hover {
  background: linear-gradient(135deg, #FDC830 0%, #F0A000 100%) !important;
  box-shadow: 0 4px 18px rgba(253,208,32,0.5);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stat-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  min-width: 80px;
  transition: transform .2s, background .2s;
}
.stat-item:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.stat-item span {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
}
.hero-actions { margin-top: 20px; }
.hero-actions .btn + .btn { margin-left: 12px; }

/* Form field wrapper */
.form-field { position: relative; }
.form-field label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 500; }
.form-field input[type="text"],
.form-field input[type="number"],
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,59,129,0.1);
  outline: none;
}
.field-hint {
  display: block;
  font-size: 11px;
  color: var(--subtle);
  margin-top: 4px;
}

/* Route info panel */
.route-info {
  font-size: 13px;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--primary-50);
  border-radius: var(--r-sm);
  line-height: 1.6;
  border-left: 3px solid var(--primary);
}
.route-info-live {
  background: rgba(22,163,74,0.06);
  border-left-color: var(--success);
  color: #166534;
}
.route-info-custom {
  background: rgba(245,158,11,0.06);
  border-left-color: var(--warning);
  color: #92400E;
}

/* Badges */
.badge-live {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-estimate {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-tir {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

/* Calc actions */
.calc-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-calc {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-calc:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,146,12,0.3);
}
.calc-note {
  font-size: 12px;
  color: var(--muted);
}

/* Result display */
.result-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.placeholder-icon {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-100);
  margin-bottom: 12px;
}
.result-placeholder p { margin: 4px 0; font-size: 14px; }
.result-placeholder .muted { font-size: 13px; color: var(--subtle); }

.result-label { font-size: 13px; color: var(--muted) !important; }
.result-total {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0 8px;
}
.result-total small { font-size: 15px; color: var(--muted); font-weight: 500; }
.result-meta { margin: 8px 0; font-size: 13px; color: var(--muted) !important; }
.result-meta .meta-label { color: var(--muted) !important; }
.result-meta strong { color: var(--primary) !important; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}
.result-table td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink) !important;
}
.result-table tr:last-child td {
  border-bottom: none;
}
.result-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink) !important;
}
.result-note {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin-top: 6px !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}
.result-note:last-of-type {
  font-size: 12px !important;
  margin-top: 4px !important;
}

/* Lead CTA button in result */
.btn-lead {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  font-size: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s, transform .18s;
}
.btn-lead:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* Section head accent (already exists, ensure consistency) */
.section-head h2 {
  position: relative;
  padding-left: 14px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
  .nav-calc-btn { padding: 7px 14px; font-size: 13px; }
  .hero-stats { gap: 8px; }
  .stat-item { padding: 8px 12px; min-width: 70px; }
  .stat-item strong { font-size: 18px; }
  .calc-actions { flex-direction: column; align-items: stretch; }
  .btn-calc { width: 100%; text-align: center; }
}
