/* SFWL CMS 前台样式（仿物流专线站结构） */
:root {
  --main: #0b63b8;
  --main-dark: #084a8a;
  --accent: #ff6a00;
  --text: #222;
  --gray: #666;
  --light: #8a94a6;
  --bg: #f4f6f9;
  --border: #e4e8ef;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(16, 39, 74, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--main); }
img { max-width: 100%; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

.container { width: 1200px; max-width: 94%; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray);
  height: 34px;
  line-height: 34px;
}
.topbar .container { display: flex; justify-content: space-between; }
.topbar .welcome b { color: var(--accent); font-weight: 600; }
.topbar .tel strong { color: var(--main); font-size: 15px; margin-left: 4px; }

/* ---------- 头部 ---------- */
.header { background: #fff; padding: 18px 0 14px; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 8px;
  background: linear-gradient(135deg, var(--main), #3f9be0);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-text strong { display: block; font-size: 22px; letter-spacing: 1px; color: var(--main-dark); }
.logo-text span { font-size: 12px; color: var(--light); letter-spacing: 3px; }
.logo-img { display: block; max-height: 56px; max-width: 300px; width: auto; height: auto; }
.header-slogan { color: var(--gray); font-size: 13px; }
.header-slogan b { color: var(--accent); font-size: 15px; }

/* ---------- 导航 ---------- */
.navbar { background: var(--main); position: relative; z-index: 30; }
.navbar .container { display: flex; align-items: stretch; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > .nav-link {
  display: block; padding: 0 22px; height: 48px; line-height: 48px;
  color: #fff; font-size: 15px; transition: background .2s;
}
.nav-item:hover > .nav-link, .nav-item.active > .nav-link { background: var(--main-dark); color: #fff; }
.dropdown-menu {
  position: absolute; left: 0; top: 100%; min-width: 170px;
  background: #fff; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius);
  padding: 6px 0; display: none; border-top: 2px solid var(--accent);
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 7px 18px; font-size: 13px; color: var(--text); white-space: nowrap;
}
.dropdown-menu a:hover { background: #f2f7fd; color: var(--main); padding-left: 22px; }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search form { display: flex; }
.nav-search input {
  width: 160px; height: 30px; border: 0; border-radius: 3px 0 0 3px;
  padding: 0 10px; font-size: 13px; outline: none;
}
.nav-search button {
  height: 30px; border: 0; padding: 0 14px; background: var(--accent); color: #fff;
  border-radius: 0 3px 3px 0; cursor: pointer; font-size: 13px;
}

/* ---------- 横幅 ---------- */
.banner { position: relative; height: 380px; overflow: hidden; background: var(--main-dark); }
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(120deg, #08325e, #0b63b8 55%, #2f8ed0);
}
.banner-slide.active { opacity: 1; }
/* 整张轮播图可点击，跳转到后台设置的链接（选择器优先级需高于 .banner-slide .inner） */
.banner-slide a.banner-link {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: none; width: 100%; cursor: pointer; color: #fff;
}
.banner-slide a.banner-link:hover { color: #fff; }
.banner-link:hover .banner-btn { background: #e85f00; }
.banner-slide .inner { text-align: center; max-width: 760px; padding: 0 20px; }
.banner-slide h2 { font-size: 38px; letter-spacing: 2px; margin-bottom: 14px; }
.banner-slide p { font-size: 16px; opacity: .9; margin: 0 0 24px; }
.banner-btn {
  display: inline-block; padding: 10px 34px; border-radius: 40px;
  background: var(--accent); color: #fff; font-size: 15px;
}
.banner-btn:hover { background: #e85f00; color: #fff; }
.banner-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots span { width: 26px; height: 5px; background: rgba(255,255,255,.45); border-radius: 3px; cursor: pointer; }
.banner-dots span.active { background: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; background: var(--main); border-radius: 2px;
}
.section-head .more { color: var(--light); font-size: 13px; }
.section-head .more:hover { color: var(--main); }

.notice {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  padding: 12px 18px; border-radius: var(--radius); font-size: 13px; color: var(--gray);
}
.notice b { color: var(--accent); }

/* 快捷城市 */
.city-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.city-grid a {
  display: block; text-align: center; padding: 10px 4px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px;
  transition: all .2s;
}
.city-grid a:hover { border-color: var(--main); color: var(--main); box-shadow: var(--shadow); transform: translateY(-2px); }

/* 业务卡片 */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }.biz-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; transition: all .2s;
}
.biz-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.biz-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--main-dark); }
.biz-card p { color: var(--gray); font-size: 13px; margin: 0 0 14px; min-height: 44px; }
.biz-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.biz-links a { color: var(--light); }
.biz-links a:hover { color: var(--accent); }

/* 服务项目卡片 */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; transition: all .2s; display: flex; flex-direction: column;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfe0f2; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card h3 a { color: var(--main-dark); }
.svc-card h3 a:hover { color: var(--main); }
.svc-card p { color: var(--gray); font-size: 13px; line-height: 1.9; margin: 0 0 16px; flex: 1; }
.svc-card .go { font-size: 13px; color: var(--main); }

/* 线路表 */
.line-table { width: 100%; background: #fff; border-collapse: collapse; border: 1px solid var(--border); }
.line-table th, .line-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.line-table th { background: #f7f9fc; color: var(--gray); font-weight: 600; }
.line-table tbody tr:hover { background: #f9fbfe; }
.line-table .go { color: var(--accent); font-weight: 600; }

/* 布局：主栏 + 侧栏 */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

/* 面包屑 */
.crumb { font-size: 12px; color: var(--light); padding: 14px 0; }
.crumb a { color: var(--gray); }
.crumb span { margin: 0 6px; }

/* 页面主标题 */
.page-title { font-size: 26px; margin-bottom: 6px; }
.page-sub { color: var(--light); font-size: 13px; margin-bottom: 18px; }

/* 列表 */
.list-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.list-item { padding: 16px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 16px; align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-item .date {
  width: 62px; text-align: center; flex: none; background: #f5f8fc;
  border-radius: var(--radius); padding: 8px 0; color: var(--main); font-weight: 700; font-size: 20px; line-height: 1.2;
}
.list-item .date em { display: block; font-size: 11px; color: var(--light); font-style: normal; font-weight: 400; }
.list-item .info h3 { font-size: 16px; margin-bottom: 6px; }
.list-item .info p { color: var(--gray); font-size: 13px; margin: 0; }

/* 内容页 */
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; }
.article h1 { font-size: 25px; line-height: 1.5; margin-bottom: 12px; }
.article-meta { color: var(--light); font-size: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.article-meta span { margin-right: 16px; }
.article-content { font-size: 15px; line-height: 1.95; color: #333; }
.article-content p { margin: 0 0 14px; }
.article-content img { height: auto; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--gray); flex-wrap: wrap; }

/* 侧栏 */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; }
.sidebar-box .hd { padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.sidebar-box .bd { padding: 12px 16px; }
.sidebar-box .bd li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.sidebar-box .bd li:last-child { border-bottom: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 4px 10px; background: #f4f7fb; border-radius: 3px; font-size: 12px; color: var(--gray); }
.tag-list a:hover { background: var(--main); color: #fff; }
.contact-box { background: linear-gradient(135deg, var(--main), #1c7fce); color: #fff; border: 0; }
.contact-box .hd { border-color: rgba(255,255,255,.2); }
.contact-box .bd p { margin: 0 0 8px; font-size: 13px; opacity: .95; }
.contact-box .bd .tel { font-size: 22px; font-weight: 700; }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; padding: 24px 0 6px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--gray);
}
.pager .current, .pager a:hover { background: var(--main); border-color: var(--main); color: #fff; }

/* 页脚 */
.footer { background: #16283d; color: #a9b6c7; margin-top: 30px; padding: 36px 0 0; font-size: 13px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a:hover { color: #fff; }
.footer li { padding: 5px 0; }
.footer .f-tel { color: #fff; font-size: 22px; font-weight: 700; margin: 4px 0 10px; }
.footer-bottom { padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #7e8ea3; }
.friend-links { padding: 0 0 14px; font-size: 12px; color: #7e8ea3; }
.friend-links a { margin-right: 14px; color: #9fb0c4; }

/* 移动端底部导航（参考 m.nbpfwl.com 深色图标工具栏） */
.mobile-nav { display: none; }
.m-wx-mask, .m-wx-toast { display: none; }
.floating { position: fixed; right: 18px; bottom: 90px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating a {
  width: 46px; height: 46px; border-radius: 50%; background: var(--main); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; text-align: center;
  box-shadow: var(--shadow);
}
.floating a.tel { background: var(--accent); }

/* 留言表单 */
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px; font-family: inherit; outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--main); }
.btn {
  display: inline-block; border: 0; background: var(--main); color: #fff;
  padding: 11px 28px; border-radius: var(--radius); font-size: 15px; cursor: pointer;
}
.btn:hover { background: var(--main-dark); color: #fff; }
.btn-accent { background: var(--accent); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .banner { height: 260px; }
  .banner-slide h2 { font-size: 24px; }
  .nav-item > .nav-link { padding: 0 14px; font-size: 14px; }
  .nav-search { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .svc-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .header { padding: 12px 0; }
  .header-slogan { display: none; }
  .logo-text strong { font-size: 18px; }
  .logo-img { max-height: 42px; max-width: 210px; }
  .navbar { overflow-x: auto; }
  .nav-item > .nav-link { padding: 0 12px; height: 42px; line-height: 42px; font-size: 13px; white-space: nowrap; }
  .banner { height: 200px; }
  .banner-slide h2 { font-size: 19px; }
  .banner-slide p { font-size: 13px; }
  .section { padding: 22px 0; }
  .city-grid { grid-template-columns: repeat(4, 1fr); }
  .biz-grid { grid-template-columns: 1fr; }
  .article { padding: 18px; }
  .article h1 { font-size: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(120deg, #08325e, #0b63b8 55%, #2f8ed0);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, .16);
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; font-size: 11px; line-height: 1; color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .16);
  }
  .mobile-nav a:first-child { border-left: 0; }
  .mobile-nav a svg { width: 18px; height: 18px; fill: #fff; }
  .mobile-nav a.on, .mobile-nav a:active {
    background: linear-gradient(180deg, #ff8226, #ef5f00);
  }
  .m-wx-mask.show {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .6);
  }
  .m-wx-box {
    position: relative; width: 280px; max-width: 86%; background: #fff; border-radius: 10px;
    padding: 26px 20px 20px; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  }
  .m-wx-close {
    position: absolute; top: 8px; right: 12px; width: 28px; height: 28px; line-height: 28px;
    font-style: normal; font-size: 22px; color: #999; cursor: pointer; text-align: center;
  }
  .m-wx-box img { width: 200px; height: 200px; object-fit: contain; margin: 0 auto; display: block; }
  .m-wx-tip { margin: 10px 0 0; font-size: 13px; color: var(--gray); }
  .m-wx-empty {
    padding: 26px 10px; background: var(--bg); border-radius: 8px;
    font-size: 13px; color: var(--gray); line-height: 1.9;
  }
  .m-wx-empty b { color: var(--accent); font-size: 16px; }
  .m-wx-id { margin: 12px 0 0; font-size: 13px; color: var(--text); }
  .m-wx-id span { color: var(--main); font-weight: 600; }
  .m-wx-copy {
    margin-left: 8px; border: 0; background: var(--main); color: #fff; border-radius: 4px;
    font-size: 12px; padding: 3px 10px; cursor: pointer;
  }
  .m-wx-open {
    display: inline-block; margin-top: 12px; background: #07c160; color: #fff;
    padding: 8px 30px; border-radius: 20px; font-size: 14px;
  }
  .m-wx-toast {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99;
    background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; padding: 9px 18px;
    border-radius: 6px; white-space: nowrap;
  }
  .m-wx-toast.show { display: block; }
  .floating { display: none; }
  .line-table th:nth-child(3), .line-table td:nth-child(3) { display: none; }
}
