/* ============ 中汇云仓 · 设计 Token ============ */
:root {
  --c-primary: #0f6cbd;        /* 品牌蓝（取自 logo） */
  --c-primary-dark: #0a4f8a;
  --c-accent: #f5a800;         /* 品牌黄（取自 logo） */
  --c-text: #1f2d3d;
  --c-text-sub: #5e6d80;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f8fb;
  --c-border: #e3eaf1;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 108, 189, .10);
  --maxw: 1200px;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.soft { background: var(--c-bg-soft); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head h2 { font-size: 30px; color: var(--c-text); }
.sec-head h2 em { font-style: normal; color: var(--c-primary); }
.sec-head p { color: var(--c-text-sub); margin-top: 8px; }
.sec-head .bar { width: 48px; height: 4px; background: var(--c-accent); margin: 14px auto 0; border-radius: 2px; }

/* ============ 顶部通栏 + 页头 ============ */
.topbar { background: var(--c-primary-dark); color: #cfe3f5; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 100; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 44px; width: auto; }
.header-cta { text-align: right; }
.header-cta i { display: block; font-style: normal; font-size: 12px; color: var(--c-text-sub); }
.header-cta b { font-size: 20px; color: var(--c-primary); }

/* ============ 导航 ============ */
.nav { background: transparent; margin-left: auto; margin-right: 20px; }
.nav ul { display: flex; }
.nav li { position: relative; white-space: nowrap; }
.nav a { display: block; padding: 0 18px; line-height: 76px; color: var(--c-text); font-size: 16px; transition: color .2s, box-shadow .2s; }
.nav > ul > li > a:hover, .nav > ul > li > a.active { color: var(--c-primary); box-shadow: inset 0 -3px 0 var(--c-primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px 14px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--c-primary); border-radius: 1px; margin: 5px 0; }

/* ============ Banner ============ */
.banner { position: relative; min-height: 480px; display: flex; align-items: center; color: #fff; background: var(--c-primary-dark); }
.banner .bg { position: absolute; inset: 0; background: url("../img/hero.jpg") center/cover no-repeat; opacity: .45; }
.banner .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.banner h1 { font-size: 42px; line-height: 1.3; }
.banner h1 span { color: var(--c-accent); }
.banner p { margin: 16px 0 28px; font-size: 18px; max-width: 640px; color: #e8f1fa; }
.btn { display: inline-block; padding: 12px 32px; border-radius: 6px; font-size: 16px; transition: all .2s; }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid #fff; color: #fff; margin-left: 12px; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ============ 数字统计 ============ */
.stats { background: var(--c-primary); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stats b { font-size: 34px; display: block; }
.stats b i { font-style: normal; font-size: 16px; margin-left: 2px; }
.stats span { font-size: 14px; opacity: .85; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px 24px; transition: all .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.card .icon { width: 56px; height: 56px; border-radius: 12px; background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--c-primary); }

.card p { font-size: 14px; color: var(--c-text-sub); }
.soft .card { border-color: transparent; box-shadow: 0 2px 10px rgba(15,108,189,.06); }

/* 四色描边卡：栅格加 .grid-accent 即自动继承（card / news-card / contact-card 通用）
   四色按位置循环 4n 分组，超过 4 张时不留单色，必须放在 .soft .card 之后才能覆盖其透明边框 */
.grid-accent > .card,
.grid-accent > .news-card,
.grid-accent > .contact-card { border-top: 3px solid var(--c-primary); }
.grid-accent > :nth-child(4n+1) { border-top-color: var(--c-primary); }
.grid-accent > :nth-child(4n+2) { border-top-color: var(--c-accent); }
.grid-accent > :nth-child(4n+3) { border-top-color: #2e9e6b; }
.grid-accent > :nth-child(4n)   { border-top-color: #e0703a; }

/* ============ 图文混排 ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split h2 { font-size: 28px; margin-bottom: 16px; }
.split p { color: var(--c-text-sub); margin-bottom: 12px; }
.checklist li { padding: 6px 0 6px 30px; position: relative; color: var(--c-text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ============ 列表页 / 文章卡 ============ */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); transition: all .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .thumb { height: 180px; background: var(--c-bg-soft) center/cover no-repeat; }
.news-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 17px; margin-bottom: 8px; }
.news-card h3 a:hover { color: var(--c-primary); }
.news-card p { font-size: 14px; color: var(--c-text-sub); flex: 1; }
.news-card .date { font-size: 12px; color: #9aa8b8; margin-top: 12px; }

/* ============ FAQ 手风琴 ============ */
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item button { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--c-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-item button::after { content: "+"; font-size: 22px; color: var(--c-primary); font-weight: 400; }
.faq-item.open button::after { content: "−"; }
.faq-item .answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 22px; color: var(--c-text-sub); font-size: 15px; }
.faq-item.open .answer { max-height: 420px; padding-bottom: 18px; }

/* ============ 表格 ============ */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(15,108,189,.06); }
.table th { background: var(--c-primary); color: #fff; padding: 12px 16px; text-align: left; font-size: 15px; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tr:nth-child(even) td { background: var(--c-bg-soft); }

/* ============ 页内 banner ============ */
.page-banner { background: var(--c-primary-dark) url("../img/shelves.jpg") center/cover no-repeat; position: relative; color: #fff; text-align: center; padding: 70px 0; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(10, 79, 138, .72); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { font-size: 32px; }
.page-banner p { margin-top: 8px; color: #cfe3f5; font-size: 15px; }

/* ============ 联系卡 ============ */
.contact-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { color: var(--c-primary); margin-bottom: 12px; font-size: 18px; }
.contact-card p { color: var(--c-text-sub); font-size: 15px; padding: 4px 0; }
.contact-card b { color: var(--c-text); }
.person { border-left: 3px solid var(--c-accent); margin-top: 14px; padding-left: 14px; }

/* ============ CTA 条 ============ */
.cta-strip { background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary)); color: #fff; text-align: center; padding: 48px 0; }
.cta-strip h2 { font-size: 26px; margin-bottom: 10px; }
.cta-strip p { opacity: .85; margin-bottom: 22px; }

/* ============ 页脚 ============ */
.footer { background: #0e2a44; color: #9db4c9; font-size: 14px; }
.footer .wrap { padding: 48px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer li { padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; }

/* ============ 下拉子导航 ============ */
.nav li.has-sub { position: relative; }
.nav li.has-sub > a::after { content: " ▾"; font-size: 12px; opacity: .85; }
.nav .subnav { display: none; position: absolute; top: 100%; left: 0; min-width: 170px; background: #fff; box-shadow: 0 8px 24px rgba(15,108,189,.18); border-radius: 0 0 8px 8px; overflow: hidden; z-index: 60; }
.nav .subnav a { display: block; padding: 0 20px; line-height: 44px; color: var(--c-text); font-size: 15px; border-bottom: 1px solid var(--c-border); }
.nav .subnav a:last-child { border-bottom: 0; }
.nav .subnav a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.nav .subnav a.cur { color: var(--c-primary); font-weight: 600; background: var(--c-bg-soft); }
.nav .subnav-wide { min-width: 320px; display: none; }
.nav .subnav-wide a { float: left; width: 50%; padding: 0 18px; }
.nav .subnav-wide::after { content: ""; display: block; clear: both; }
.nav .subnav-wide a:nth-last-child(-n+2) { border-bottom: 0; }
.nav li.has-sub:hover .subnav { display: block; }
.nav li.has-sub:hover > .subnav-wide { display: block; }

/* ============ 响应式 ============ */
/* 中间视口：空间不足以放下全尺寸页头，先收敛页头间距 */
@media (max-width: 1220px) and (min-width: 1041px) {
  .logo img { height: 40px; }
  .nav { margin-right: 12px; }
  .nav a { padding: 0 12px; }
  .header-cta b { font-size: 18px; }
}

@media (max-width: 1040px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner h1 { font-size: 32px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 0; }
  .header .logo img { height: 44px; }
  .nav { display: none; order: 3; flex-basis: 100%; margin-left: 0; margin-right: 0; background: var(--c-primary); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { line-height: 46px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav > ul > li > a:hover, .nav > ul > li > a.active { color: #fff; background: var(--c-primary-dark); box-shadow: none; }
  .nav .subnav { display: block; position: static; box-shadow: none; border-radius: 0; background: var(--c-primary-dark); min-width: 0; }
  .nav .subnav-wide { display: block; }
  .nav .subnav-wide a { float: none; width: 100%; padding-left: 36px; }
  .nav .subnav-wide a:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .subnav-wide a:last-child { border-bottom: 0; }
  .nav .subnav a { color: #cfe3f5; line-height: 40px; padding-left: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .subnav a:hover { background: transparent; color: #fff; }
}
@media (max-width: 600px) {
  .topbar .wrap span:last-child { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner { min-height: 380px; }
  .sec-head h2 { font-size: 24px; }
  .table { display: block; overflow-x: auto; }
}

/* ============ 详情页 ============ */
.breadcrumb { font-size: 13px; color: var(--c-text-sub); padding-bottom: 14px; }
.breadcrumb a { color: var(--c-text-sub); }
.breadcrumb a:hover { color: var(--c-primary); }
.article { max-width: 860px; margin: 0 auto; }
.article h1 { line-height: 1.4; }
.article h2 { font-size: 21px; margin: 34px 0 12px; padding-left: 12px; border-left: 4px solid var(--c-primary); line-height: 1.5; }
.article p { color: var(--c-text); line-height: 1.9; margin-bottom: 12px; font-size: 15px; }
.article img { width: 100%; border-radius: var(--radius); margin: 8px 0 20px; }
.article ul { margin: 0 0 14px 20px; color: var(--c-text); line-height: 1.9; font-size: 15px; }
.article table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; }
.article table th, .article table td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; }
.article table th { background: var(--c-bg-soft); }

/* 栏目标题链接 */
.sec-head h2 a, .split h2 a { color: inherit; }
.sec-head h2 a:hover, .split h2 a:hover { color: var(--c-primary); }

/* ============ 方案/流程双栏清单 ============ */
.grid-2 > .card ul { margin-top: 12px; padding-left: 18px; list-style: disc; }
.grid-2 > .card ul li { font-size: 14px; color: var(--c-text-sub); padding: 3px 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card .tags span { font-size: 12px; color: var(--c-primary); background: rgba(15,108,189,.08); border-radius: 4px; padding: 3px 10px; }
