:root {
  --brand: #1F53DC;            /* 主色调（海恩瑞国际集运主色 #1F53DC，后台可配置） */
  --brand-dark: #16358F;
  --brand-rgb: 31, 83, 220;
  --ink: #1f2a44;             /* 深色文字/标题 */
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e6ebf1;
  --muted: #64748b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(31, 42, 68, .08);
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text, #1e293b);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* 顶部导航 */
.header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(135deg, #1f2a44 0%, #16203a 100%);
  color: #fff;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.logo span { color: #fff; opacity: .9; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { font-size: 15px; opacity: .85; transition: opacity .2s; padding: 6px 0; position: relative; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff; border-radius: 2px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.header-phone a { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: transform .15s, filter .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { filter: brightness(1.1); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #16203a 0%, #0f172a 100%);
  color: #fff; padding: 84px 0 96px; position: relative; overflow: hidden;
}
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.45) 60%, rgba(15,23,42,.6) 100%); transition: opacity .6s ease; }
.hero.no-mask::before { opacity: 0; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(var(--brand-rgb), .42), transparent 70%); z-index: 1; }
.hero .container.hero-content { position: relative; z-index: 2; transition: opacity .6s ease; }
.hero .hero-content.is-hidden { opacity: 0; pointer-events: none; }
.hero h1 { font-size: 42px; line-height: 1.25; margin: 0 0 16px; font-weight: 800; }
.hero p { font-size: 18px; opacity: .9; max-width: 580px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.hero-badge b { color: #fff; font-size: 18px; }

/* 区块 */
section.block { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 8px 0 6px; color: var(--ink); }
.section-head p { color: var(--muted); margin: 0; }

/* 服务卡片 */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; border: 1px solid var(--line); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,42,68,.14); }
.service-card .ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--brand-rgb), .12); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.service-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.service-card a { color: var(--brand); font-weight: 600; font-size: 14px; }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: 28px; color: var(--ink); margin-top: 0; }
.about-grid p { color: var(--muted); }
.about-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-card .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.about-card .row:last-child { border-bottom: none; }
.about-card .row span:first-child { color: var(--muted); }

/* Insights */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg-soft, #f5f7fa); border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px 16px; margin-bottom: 22px; font-size: 14px; }
.filter-bar b { color: var(--primary, #2f54eb); }
.filter-bar a { white-space: nowrap; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s; cursor: pointer; }
.post-card:hover { transform: translateY(-4px); }
.post-card .cover { width: 100%; height: 180px; object-fit: cover; }
.post-card .body { padding: 18px 18px 22px; }
.post-card .cat { color: var(--brand); font-size: 12px; font-weight: 700; }
.post-card h3 { font-size: 17px; margin: 8px 0 8px; color: var(--ink); line-height: 1.4; }
.post-card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 12px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item .q { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.faq-item .q .arrow { transition: transform .2s; color: var(--brand); }
.faq-item.open .q .arrow { transform: rotate(45deg); }
.faq-item .a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; color: var(--muted); }
.faq-item.open .a { padding: 0 20px 18px; max-height: 400px; }

/* 路线 */
.route-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.route-filters button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; }
.route-filters button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.route-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.route-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.route-card .flag { font-size: 30px; }
.route-card .country { font-size: 20px; font-weight: 700; color: var(--ink); }
.route-card .tag { font-size: 12px; background: rgba(var(--brand-rgb), .12); color: var(--brand); padding: 2px 10px; border-radius: 999px; }
.route-card .line { font-weight: 600; margin: 6px 0; }
.route-card .desc { color: var(--muted); font-size: 14px; min-height: 40px; }
.route-card .kv { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.route-card .kv div span { display: block; }
.route-card .kv .k { color: var(--muted); font-size: 12px; }
.route-card .kv .v { font-weight: 700; color: var(--ink); }

/* 文章详情 */
.post-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.post-main { min-width: 0; }
.post-sidebar { position: sticky; top: 90px; }
.article { max-width: 100%; }
.article .cover { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.article h1 { font-size: 32px; color: var(--ink); margin-bottom: 10px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.article .summary { background: #f5f7fb; border-left: 3px solid var(--brand); border-radius: 8px; padding: 14px 18px; color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0 0 24px; }
.article .content { font-size: 16px; }
.article .content h2 { color: var(--ink); margin-top: 30px; }
.article .content p { margin: 14px 0; }
.article .content img { border-radius: 10px; margin: 16px 0; }
.back-link { color: var(--brand); font-weight: 600; display: inline-block; margin-bottom: 10px; }
.related-section { margin-top: 50px; }
.related-section h2 { color: var(--primary); margin-bottom: 16px; }

/* 侧边栏 */
.widget { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 22px; }
.widget h3 { font-size: 18px; color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.widget h3 .bar { width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.widget ul, .widget ol { margin: 0; padding: 0; list-style: none; }
.widget li { margin: 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: none; }
.widget li a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--ink); font-size: 14px; line-height: 1.5; transition: color .2s; }
.widget li a:hover { color: var(--brand); }
.rank-list { counter-reset: rank; }
.rank-list li { position: relative; padding-left: 28px; }
.rank-list li::before { counter-increment: rank; content: counter(rank); position: absolute; left: 0; top: 10px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #f1f5f9; color: var(--muted); font-size: 12px; font-weight: 700; }
.rank-list li:nth-child(-n+3)::before { background: var(--brand); color: #fff; }
.dot-list li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; opacity: .6; }
.arrow-list li a::before { content: "›"; color: var(--brand); font-size: 18px; flex: 0 0 auto; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); background: #f8fafc; }
.tag-cloud a:hover { border-color: var(--brand); color: var(--brand); }
.tag-cloud .count { color: var(--muted); font-size: 12px; margin-left: 4px; }
.archive-list li a { justify-content: space-between; }
.archive-list .count { color: var(--muted); font-size: 13px; }

/* 页脚 */
.footer { background: linear-gradient(135deg, #16203a 0%, #0f172a 100%); color: #cbd5e1; padding: 50px 0 24px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.footer a { color: #cbd5e1; display: block; margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 22px; font-weight: 800; color: #fff; }
.footer .brand span { color: #fff; }
.footer .contact-line { margin: 6px 0; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.footer .contact-line a { display: inline; margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 13px; opacity: .7; }
.footer-bottom p { margin: 4px 0; white-space: nowrap; }
.footer-bottom a { display: inline; margin-bottom: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.qr-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.qr-item { text-align: center; }
.qr-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #fff; }
.qr-item span { display: block; font-size: 12px; color: #94a3b8; margin-top: 6px; }
.about-card .qr-group { justify-content: flex-start; }
.about-card .qr-item span { color: var(--muted); }

/* 工具 */
.page-hero { background: linear-gradient(135deg, #1f2a44 0%, #16203a 100%); color: #fff; padding: 56px 0; }
.page-hero h1 { margin: 0; font-size: 32px; }
.page-hero p { opacity: .9; margin: 8px 0 0; }

/* 响应式 */
@media (max-width: 920px) {
  .services, .insights, .routes { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--brand-dark); flex-direction: column; padding: 16px 20px; gap: 14px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .hero h1 { font-size: 30px; }
  .services, .insights, .routes, .footer .cols { grid-template-columns: 1fr; }
}

/* 右侧悬浮工具栏（轻量、不抢视觉） */
.float-toolbar { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.float-btn { width: 42px; height: 42px; border: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; position: relative; box-shadow: 0 3px 10px rgba(0,0,0,.14); opacity: .9; transition: transform .2s, box-shadow .2s, opacity .2s; }
.float-btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-btn img { width: 22px; height: 22px; object-fit: contain; }
.float-btn:hover { transform: translateX(-3px); box-shadow: 0 5px 16px rgba(0,0,0,.18); opacity: 1; }
.float-btn.phone { background: #c7a777; }
.float-btn.wechat { background: transparent url('/assets/images/wechat-logo.png') center/contain no-repeat; }
.float-btn.back-top { background: transparent url('/assets/images/arrow-up.png') center/contain no-repeat; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .25s, visibility .25s, transform .25s; }
.float-btn.back-top.visible { opacity: .9; visibility: visible; transform: translateX(0); }
.float-btn.back-top:hover { transform: translateX(-3px); opacity: 1; }

.float-pop { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(10px); width: max-content; max-width: 320px; background: #fff; color: var(--ink); padding: 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; pointer-events: none; }
.float-btn:hover .float-pop { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.float-pop a { color: var(--brand); font-size: 18px; font-weight: 700; text-decoration: none; }
.float-pop .qr-group { display: flex; gap: 14px; flex-wrap: nowrap; align-items: flex-start; }
.float-pop .qr-item { flex: 0 0 auto; text-align: center; }
.float-pop .qr-item img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.float-pop .qr-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

@media (max-width: 920px) {
  .float-toolbar { right: 6px; }
  .float-btn { width: 38px; height: 38px; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-btn img { width: 20px; height: 20px; }
  .float-pop { right: calc(100% + 8px); padding: 10px; }
  .float-pop .qr-item img { width: 90px; height: 90px; }
}
