/* ============================================================
   千博网络官网  qbwl.com.cn
   设计系统：深石板蓝 + 品牌红，移动优先，零依赖
   ============================================================ */
:root {
  --ink: #1b2433;
  --ink-2: #232f42;
  --red: #b3271e;
  --red-dark: #8c1d15;
  --red-soft: #fdf1f0;
  --blue: #2563eb;
  --text: #2b3442;
  --muted: #67717f;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-dark: #141b26;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 27, 38, .04), 0 8px 24px rgba(20, 27, 38, .06);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; font-weight: 700; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--bg-dark);
  color: #c6cdd8;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap;
}
.topbar a { color: #e8ebf0; }
.topbar a:hover { color: #fff; }
.topbar .tel { font-weight: 600; letter-spacing: .02em; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand .brand-text { display: none; }
@media (min-width: 720px) {
  .brand .brand-text { display: block; }
  .brand .brand-text b { display: block; font-size: 17px; color: var(--ink); letter-spacing: .02em; }
  .brand .brand-text span { font-size: 12px; color: var(--muted); }
}

.main-nav ul { list-style: none; display: flex; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 13px; color: var(--ink);
  font-size: 15.5px; font-weight: 500; border-radius: 8px; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--red); text-decoration: none; }
.main-nav > ul > li.active > a { font-weight: 700; }
.main-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; list-style: none; z-index: 50;
}
.main-nav li:hover > .sub { display: block; }
.main-nav .sub a {
  display: block; padding: 8px 12px; color: var(--text); font-size: 14.5px;
  border-radius: 7px; white-space: nowrap;
}
.main-nav .sub a:hover { background: var(--red-soft); color: var(--red); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 18px; color: var(--ink);
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .main-nav > ul > li > a { padding: 11px 10px; border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .main-nav .sub { display: block; position: static; border: none; box-shadow: none; padding: 0 0 4px 14px; }
  .main-nav .sub a { color: var(--muted); }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13.5px; color: var(--muted); padding: 14px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b8bfc9; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(179, 39, 30, .28), transparent 60%),
    linear-gradient(135deg, #141b26 0%, #1e2a3d 55%, #24344d 100%);
  color: #eef1f6;
  padding: 76px 0 84px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.hero .container { position: relative; z-index: 1; }
.hero .kicker {
  display: inline-block; font-size: 13.5px; letter-spacing: .12em;
  color: #ffb4ad; border: 1px solid rgba(255, 180, 173, .4);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(26px, 4.6vw, 42px); max-width: 20em; }
.hero h1 .em { color: #ff8f85; }
.hero .lead { margin-top: 18px; max-width: 44em; color: #c8d0dc; font-size: clamp(15px, 1.8vw, 17.5px); }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; list-style: none; }
.hero .facts li { color: #e8ebf0; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.hero .facts li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #ff8f85; flex-shrink: 0;
}
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; transition: .18s; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(179, 39, 30, .35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red-soft); }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #c8d0dc; }
.section.dark h2 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .tag { color: var(--red); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; }
.section-head h2 { font-size: clamp(22px, 3.2vw, 30px); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section.dark .section-head p { color: #98a3b3; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); height: 100%;
  transition: transform .18s, box-shadow .18s; position: relative;
}
a.card { display: block; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(20,27,38,.05), 0 16px 36px rgba(20,27,38,.1); text-decoration: none; border-color: #f3c6c2; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; background: var(--red-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--red); }
.card .badge {
  position: absolute; top: 18px; right: 18px; font-size: 12px; color: var(--red);
  background: var(--red-soft); border-radius: 999px; padding: 2px 10px; font-weight: 600;
}

/* ---------- 事实条 / 数字 ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 22px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.stat b { display: block; font-size: clamp(26px, 3.6vw, 38px); color: #ff8f85; font-weight: 800; }
.stat span { color: #aab4c2; font-size: 14px; }

/* ---------- 规格表 ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; background: #fff; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.spec-table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; width: 11em; }
.spec-table tr:nth-child(even) td { background: #fcfcfd; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 页面主体排版 ---------- */
.prose { max-width: 52em; }
.prose h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 40px 0 14px; padding-left: 13px; border-left: 4px solid var(--red); }
.prose h3 { font-size: 18.5px; margin: 26px 0 10px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 1.4em; }
.prose li { margin: 5px 0; }
.prose .lead-p { font-size: 17.5px; color: var(--ink); }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 18px 0; }
.prose blockquote {
  border-left: 4px solid var(--red); background: var(--red-soft);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--ink);
}
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
@media (max-width: 720px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-grid figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background:#fff; }
.cert-grid figcaption { font-size: 13px; color: var(--muted); padding: 10px 12px; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 14px 20px 18px; color: var(--text); }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, #8c1d15 100%);
  color: #fff; padding: 46px 0; border-radius: 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(19px, 2.6vw, 26px); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 6px; font-size: 15px; }
.cta-band .btn { background: #fff; color: var(--red); font-weight: 700; }
.cta-band .btn:hover { background: #ffe9e7; }

/* ---------- 列表页 ---------- */
.list-item {
  display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item .date { flex-shrink: 0; width: 86px; text-align: center; padding-top: 4px; }
.list-item .date b { display: block; font-size: 24px; color: var(--red); }
.list-item .date span { font-size: 13px; color: var(--muted); }
.list-item h3 { font-size: 18.5px; margin-bottom: 6px; }
.list-item h3 a { color: var(--ink); }
.list-item h3 a:hover { color: var(--red); }
.list-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15.5px; }
.contact-card dt { color: var(--muted); white-space: nowrap; }
.contact-card dd { color: var(--ink); font-weight: 500; }
address { font-style: normal; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: #98a3b3; font-size: 14px; padding: 52px 0 26px; margin-top: 0; }
.site-footer a { color: #c8d0dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 7px 0; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px;
}

/* ---------- 杂项 ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 16px; font-size: 14px; color: var(--text);
}
.notice {
  background: #fff8e6; border: 1px solid #f2dfae; color: #7a6218;
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 16px 0;
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }

/* ===== 在线留言表单 / 分页 ===== */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.form-row label b { color: var(--red); font-weight: 700; }
.form-row input[type="text"],
.form-row textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.form-row input[type="text"]:focus,
.form-row textarea:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { max-width: 200px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 8px; flex-wrap: wrap; }
.pager a, .pager span.cur {
  display: inline-block; min-width: 38px; text-align: center; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; color: var(--ink);
}
.pager a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pager span.cur { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* ===== 首页轮播图（后台"轮播图"管理，PC/手机双图，轨道平移切换） ===== */
.banner-slider { position: relative; width: 100%; overflow: hidden; background: #0d1b2e; touch-action: pan-y; }
.banner-slider .slides { display: flex; transition: transform .6s ease; }
.banner-slide { flex: 0 0 100%; min-width: 0; }
.banner-slide a { display: block; }
.banner-slide img { display: block; width: 100%; height: auto; border: 0; user-select: none; -webkit-user-drag: none; }
.banner-slide .bn-m { display: none; }
@media (max-width: 768px) {
  .banner-slide .bn-pc { display: none; }
  .banner-slide .bn-m { display: block; }
}
/* 圆点指示器 */
.banner-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.bn-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .3s ease; }
.bn-dot:hover { background: rgba(255, 255, 255, .75); }
.bn-dot.active { width: 24px; background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .banner-slider .slides { transition: none; }
}
