/* ============================================================
   广州巧匠展览策划有限公司 — 响应式官网样式
   设计基调：工程感 / 可信赖 B2B，藏蓝主色 + 朱红点缀
   ============================================================ */

/* ============================================================
   字体：思源黑体 Source Han Sans SC（本地子集 WOFF2，体积最小格式）
   仅收录本站实际用到的字符 + 常用标点，三档字重：
   400 常规正文 / 500 中等强调 / 700 加粗（600、800 自动归到 700）
   ============================================================ */
@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Han Sans SC";
  src: url("../fonts/SourceHanSansSC-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --navy: #0f2540;
  --navy-2: #16345c;
  --red: #c8102e;
  --red-dark: #9c0d24;
  --gold: #e8a33d;
  --ink: #1c2430;
  --gray: #5c6672;
  --line: #e3e7ec;
  --bg-soft: #f5f7fa;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(15, 37, 64, .10);
  --shadow-sm: 0 3px 12px rgba(15, 37, 64, .08);
  --container: 1200px;
  --topbar-h: 34px;
  --font: "Source Han Sans SC", "思源黑体 CN", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

/* ---------- 顶部通栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 110; height: var(--topbar-h); overflow: hidden; background: var(--navy); color: #cfd8e3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: var(--topbar-h); gap: 12px; flex-wrap: nowrap; }
.topbar a { color: #fff; }
.topbar-brand { flex: 1 1 auto; text-align: center; white-space: nowrap; color: #cfd8e3; letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; }
.topbar .hotline strong { color: var(--gold); font-size: 15px; letter-spacing: .5px; }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky; top: var(--topbar-h); z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 37, 64, .05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); letter-spacing: 1px;
}
.logo-text strong { display: block; font-size: 19px; color: var(--navy); letter-spacing: 1px; line-height: 1.25; }
.logo-text span { display: block; font-size: 11px; color: var(--gray); letter-spacing: .3px; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; font-size: 15.5px; color: var(--ink);
  border-radius: 6px; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); background: #fdf1f3; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 首屏 Banner ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-slides { position: relative; height: 520px; }
.hero-slide {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; }
/* 深色渐变压在图片上方，保证白色标题可读（放在容器上，img 自身不支持伪元素） */
.hero-slides::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,24,42,.88) 0%, rgba(10,24,42,.62) 45%, rgba(10,24,42,.18) 100%); }
.hero-content {
  position: absolute; z-index: 2; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-content .kicker { color: var(--gold); font-size: 15px; letter-spacing: 4px; margin-bottom: 14px; }
.hero-content h1 { font-size: 40px; line-height: 1.3; max-width: 640px; letter-spacing: 1px; }
.hero-content p { margin: 16px 0 28px; color: #d6dee8; font-size: 17px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 标语条（整条通栏灰底） ---------- */
.slogan-bar { background: var(--bg-soft); color: var(--ink); text-align: center; padding: 12px 0; font-size: 20px; letter-spacing: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s; line-height: 1.4;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .en { color: var(--red); font-size: 13px; letter-spacing: 4px; font-weight: 700; text-transform: uppercase; }
.section-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 12px; }
.section-head p { color: var(--gray); }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- 信任条 ---------- */
.trustbar { background: var(--navy-2); color: #fff; padding: 26px 0; }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trustbar b { display: block; font-size: 30px; color: var(--gold); font-family: var(--font); }
.trustbar span { font-size: 14px; color: #c9d4e0; }

/* ---------- 行业资讯列表（news.html） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; transition: .25s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.news-item h3 { font-size: 17px; line-height: 1.55; color: var(--navy); margin-bottom: 8px; }
.news-item h3 a { color: inherit; }
.news-item h3 a:hover { color: var(--red); }
.news-item p { color: var(--gray); font-size: 14px; line-height: 1.8; }
.news-more { margin-top: auto; padding-top: 14px; color: var(--red); font-size: 13.5px; font-weight: 600; }
button.news-more { border: 0; background: none; font-family: inherit; text-align: left; align-self: flex-start; cursor: pointer; }
button.news-more:hover { color: var(--red-dark); }
.news-item.has-detail { cursor: pointer; }
.news-full[hidden] { display: none; }

/* ---------- 资讯详情浮层 ---------- */
body.nm-lock { overflow: hidden; }
.news-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.news-modal[hidden] { display: none; }
.nm-mask {
  position: absolute; inset: 0; background: rgba(9, 24, 43, .58);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: nmFade .2s ease;
}
.nm-panel {
  position: relative; display: flex; flex-direction: column;
  width: min(620px, 100%); max-width: 100%; min-width: 0;
  max-height: min(80vh, 660px);
  overflow: hidden; background: #fff; border-radius: 14px;
  padding: 30px 32px 22px; box-shadow: 0 24px 64px rgba(9, 24, 43, .3);
  animation: nmIn .24s cubic-bezier(.2, .7, .3, 1);
}
/* 标题与按钮固定，正文区独立滚动（长文） */
.nm-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; margin: 0 -10px; padding: 0 10px; }
.nm-scroll::-webkit-scrollbar { width: 8px; }
.nm-scroll::-webkit-scrollbar-track { background: transparent; }
.nm-scroll::-webkit-scrollbar-thumb { background: #c9d2dc; border-radius: 8px; }
.nm-scroll::-webkit-scrollbar-thumb:hover { background: #a9b6c4; }
.nm-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--gray);
  font-size: 20px; line-height: 1; cursor: pointer; transition: .2s;
}
.nm-close:hover { border-color: var(--red); color: var(--red); }
.nm-cat { font-size: 12px; letter-spacing: 3px; color: var(--red); font-weight: 700; }
.nm-title { font-size: 22px; line-height: 1.5; color: var(--navy); margin: 8px 0 14px; padding-right: 26px; }
.nm-text { font-size: 15.5px; line-height: 1.95; color: var(--ink); }
.nm-text p { margin: 0 0 11px; }
.nm-text p:last-child { margin-bottom: 0; }
.nm-list { list-style: none; }
.nm-list li { position: relative; padding-left: 18px; margin-bottom: 9px; }
.nm-list li:last-child { margin-bottom: 0; }
.nm-list li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}
.nm-src { margin-top: 16px; font-size: 12.5px; color: var(--gray); }
.nm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.nm-actions .btn { padding: 11px 22px; font-size: 14.5px; }
@keyframes nmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 768px) {
  .news-modal { padding: 14px; align-items: flex-end; }
  .nm-panel { width: 100%; max-height: 86vh; padding: 26px 22px 20px; }
  .nm-close { top: 10px; right: 10px; }
  .nm-title { font-size: 19px; }
  .nm-text { font-size: 15px; line-height: 1.9; }
  .nm-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-mask, .nm-panel { animation: none; }
}

/* 每栏只露 4 条（2 行），其余在面板内滚动 */
.news-count { font-size: 13px; color: var(--gray); text-align: right; margin: 0 0 10px; }
.news-scroll {
  max-height: 426px;               /* 6 + 196 + 22 + 196 + 6：正好两行 4 条 */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 12px 6px 6px;
  margin: -6px -12px -6px -6px;    /* 抵消内边距，卡片仍与整栏左边缘对齐 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c3ccd7 #f2f5f8;
}
.news-scroll::-webkit-scrollbar { width: 9px; }
.news-scroll::-webkit-scrollbar-track { background: #f2f5f8; border-radius: 5px; }
.news-scroll::-webkit-scrollbar-thumb { background: #c3ccd7; border-radius: 5px; }
.news-scroll::-webkit-scrollbar-thumb:hover { background: #a5b2c1; }
.news-scroll .news-item { height: 196px; }
.news-scroll .news-item h3,
.news-scroll .news-item p {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 2; line-clamp: 2;
}

/* ---------- 服务卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: .25s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: .3s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .num { display: block; font-family: var(--font); font-size: 45px; line-height: 1.05; color: var(--red); font-weight: 700; letter-spacing: 2px; }
.service-card h3 { font-size: 20px; color: var(--navy); margin: 10px 0 12px; }
.service-card p { color: var(--gray); font-size: 15px; }
.service-card .more { display: inline-block; margin-top: auto; padding-top: 16px; align-self: flex-start; color: var(--red); font-weight: 600; font-size: 14.5px; }

/* ---------- 区块标题（复刻原站：中文大字 + 红色短杠） ---------- */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .en { font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; color: var(--dark); margin-top: 4px; letter-spacing: 2px; }
.sec-head h2::after { content: ""; display: block; width: 46px; height: 4px; background: var(--red); margin: 12px auto 0; }
.sec-head p { color: var(--gray); margin-top: 12px; }

/* ---------- CASE 案例板块（01-05，深色背景 + 大数字水印） ---------- */
.case-sec { position: relative; padding: 60px 0 52px; overflow: hidden; background: var(--white); }
/* 横栏灰白交替：灰色栏统一使用与「一站式服务流程」相同的 --bg-soft */
.case-sec.is-grey { background: var(--bg-soft); }
.case-sec.bg { background-size: cover; background-position: center; }
.case-sec.bg::before { content: ""; position: absolute; inset: 0; background: var(--bg-soft); }
.case-sec.bg .sec-head h2 { color:var(--dark); }
.case-sec.bg .sec-head p { color: var(--gray); }
.case-num { position: absolute; right: 4%; top: 18px; font-family: var(--font); font-size: 150px; font-weight: 800; color: rgba(0,0,0,.03); line-height: 1; pointer-events: none; }
.case-sec.bg .case-num { color: rgba(0, 0, 0, .042); } /* 浅灰底上水印编号（再调淡一档） */
.case-sec .container { position: relative; z-index: 1; }

/* ---------- 区块大英文水印（.section 内的 sec-num） ---------- */
.section.has-num { position: relative; overflow: clip; }
.section.has-num > .container { position: relative; z-index: 1; }
.sec-num {
  position: absolute; right: 2%; top: 8px; z-index: 0;
  font-family: var(--font); font-size: 150px; font-weight: 800; line-height: 1;
  letter-spacing: 1px; white-space: nowrap; pointer-events: none; user-select: none;
  color: rgba(0, 0, 0, .03);
}
.sec-num.m { font-size: 122px; }
.sec-num.s { font-size: 100px; }
.section.soft .sec-num, .section.alt .sec-num { color: rgba(0, 0, 0, .042); }

.case-scroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.case-scroll::-webkit-scrollbar { display: none; }
.case-scroll .case-card { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
/* 精选案例=单段 3 列网格（9 张卡） */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 18px; }

/* ---------- 案例卡片（复刻原站：图 + 标题 + 项目/地点/面积，悬停遮罩） ---------- */
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: .25s; position: relative; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card figure { position: relative; overflow: hidden; aspect-ratio: 540 / 383; background: #dcdfe3; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover img { transform: scale(1.05); }
.case-card .overlay {
  position: absolute; inset: 0; background: rgba(255, 49, 28, .88); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  opacity: 0; transition: opacity .3s; padding: 16px; text-align: center;
}
.case-card:hover .overlay { opacity: 1; }
.case-card .overlay p { font-size: 13.5px; }
.case-card .body { padding: 14px 16px 16px; }
.case-card .body h3 { font-size: 16.5px; color: var(--dark); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-card .body .meta { color: var(--gray); font-size: 13px; line-height: 1.6; }
.case-card .body .meta b { color: var(--red); }

.case-more { text-align: center; margin-top: 26px; }
.btn-more { display: inline-block; padding: 10px 34px; border: 1px solid var(--red); color: var(--red); border-radius: var(--radius); font-size: 15px; letter-spacing: 2px; transition: .2s; }
.btn-more:hover { background: var(--red); color: #fff; }

/* ---------- 案例分类标签（图片左上角小标签） ---------- */
.case-card .tag {
  position: absolute; top: 12px; left: 12px; background: rgba(15,37,64,.85);
  color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 4px;
  letter-spacing: 1px; z-index: 2; white-space: nowrap;
}

/* ---------- 案例筛选（与 qiaojiang-website_20261027 版样式一致：居中 + 药丸） ---------- */
.case-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.case-filter button {
  padding: 8px 18px; border: 1px solid var(--line); background: #fff; border-radius: 30px;
  font-size: 14.5px; color: var(--gray); cursor: pointer; transition: .2s; font-family: inherit;
}
.case-filter button:hover, .case-filter button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.case-filter button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- 优势 ---------- */
.advantage { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.advantage .icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; background: #fdf1f3;
  color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.advantage h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.advantage p { font-size: 14px; color: var(--gray); }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font); font-size: 34px; color: #e6ebf1; position: absolute; top: 12px; right: 18px; font-weight: 800; }
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; position: relative; }
.step p { font-size: 14px; color: var(--gray); }

/* ---------- 展会排期表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.schedule { min-width: 720px; font-size: 15px; }
.schedule th { background: var(--navy); color: #fff; text-align: left; padding: 14px 18px; font-weight: 600; white-space: nowrap; }
.schedule td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.schedule tr:hover td { background: #fafbfc; }
.schedule .venue { color: var(--gray); }
.note { font-size: 13.5px; color: var(--gray); margin-top: 14px; }

/* ---------- 文章/详情页 ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 48px; }
.breadcrumb { font-size: 13.5px; color: #a9b6c6; margin-bottom: 14px; }
.breadcrumb a { color: #cfd8e3; }
.breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: 30px; max-width: 800px; line-height: 1.4; }
.page-hero .sub { color: #c3cedb; margin-top: 10px; font-size: 15.5px; }

.article { max-width: 860px; margin: 0 auto; }
.article h2 { font-size: 23px; color: var(--navy); margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--red); }
.article h3 { font-size: 18.5px; color: var(--navy-2); margin: 26px 0 12px; }
.article p { margin-bottom: 14px; color: #333c47; }
.article ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; color: #333c47; }
.article li { margin-bottom: 6px; }
.article img { border-radius: var(--radius); margin: 20px 0; width: 100%; }
.article figure figcaption { font-size: 13px; color: var(--gray); text-align: center; margin-top: 8px; }
.article .figure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.article blockquote {
  background: var(--bg-soft); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 8px 8px 0; color: var(--gray); font-size: 15px; margin: 18px 0;
}
.kv-table td, .kv-table th { padding: 10px 14px; border: 1px solid var(--line); font-size: 14.5px; }
.kv-table th { background: var(--bg-soft); width: 140px; white-space: nowrap; }

/* ---------- 案例详情 ---------- */
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 8px; }
.case-facts .fact { background: var(--bg-soft); border-radius: 8px; padding: 16px 18px; text-align: center; }
.case-facts .fact span { display: block; font-size: 12.5px; color: var(--gray); margin-bottom: 4px; }
.case-facts .fact b { font-size: 17px; color: var(--navy); }

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: 52px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: #ffe3e8; font-size: 15px; }
.cta-band .phone { font-size: 30px; font-weight: 800; letter-spacing: 1px; font-family: var(--font); }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-list .icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; background: #fdf1f3; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.contact-list b { display: block; color: var(--navy); font-size: 15.5px; }
.contact-list p { color: var(--gray); font-size: 15px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
/* 锚点跳转时避开吸顶的通栏+导航条（实测两栏合计 110px） */
#form { scroll-margin-top: 126px; }
.contact-form h3 { color: var(--navy); font-size: 19px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fafbfc; transition: .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; background: #fff; }
.form-tip { font-size: 12.5px; color: var(--gray); margin-top: 10px; }
.form-status { margin-top: 12px; font-size: 14.5px; color: #1c7c3c; display: none; }
.form-status.error { color: var(--red); display: block; }
/* 防机器人蜜罐字段：移出视口，访客与读屏都不会碰到 */
.hp-field { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #9fb0c3; font-size: 14px; margin-top: 0; }
/* 页脚四栏：栏宽随内容，剩余空间均分到栏间，保证视觉间距相等 */
.footer-main { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; column-gap: 28px; padding: 54px 0 40px; }
.footer-main > div:nth-child(1) { max-width: 320px; }
.footer-main > div:nth-child(4) { max-width: 350px; }
.site-footer h2, .site-footer .ft-title { color: #fff; font-size: 16.5px; margin-bottom: 16px; font-weight: 600; }
.site-footer p, .site-footer li { margin-bottom: 9px; line-height: 1.7; }
.site-footer a { color: #9fb0c3; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.qr-tip { color: #7c8ea3; font-size: 12.5px; }

/* ---------- 回到顶部 / 浮动咨询 ---------- */
.back-top {
  position: fixed; right: 80px; bottom: 34px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.85); cursor: pointer; font-size: 18px;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
  box-shadow: 0 4px 16px rgba(15, 37, 64, .30);
}
.back-top:hover { background: var(--navy-2); }
.back-top.show { opacity: 1; visibility: visible; }
.float-contact {
  position: fixed; right: 22px; bottom: 34px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-contact a {
  width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: var(--shadow-sm); transition: .2s; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.float-contact a:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.float-contact a:active { background: var(--red-dark); transform: scale(.94); }
.float-contact a .ico { display: flex; align-items: center; justify-content: center; line-height: 1; }
.float-contact a .ico svg { display: block; width: 16px; height: 16px; }
.float-contact a .txt { font-size: 9.5px; line-height: 1; letter-spacing: 0; white-space: nowrap; }

/* ---------- 合并栏目：左目录 + 正文（展会指南的报价指南一节） ---------- */
.guide-layout { display: grid; grid-template-columns: 236px 1fr; gap: 46px; align-items: start; }
.guide-toc {
  position: sticky; top: 126px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.guide-toc .toc-title { font-size: 12.5px; letter-spacing: 2px; font-weight: 700; color: var(--red); margin-bottom: 10px; }
.guide-toc a {
  display: block; padding: 7px 10px; font-size: 14.5px; color: var(--gray);
  border-left: 2px solid var(--line); transition: .2s;
}
.guide-toc a:hover { color: var(--navy); background: var(--bg-soft); border-left-color: var(--red); }
.guide-toc .toc-cta {
  margin-top: 14px; text-align: center; background: var(--red); color: #fff;
  border-left: 0; border-radius: 6px; padding: 10px 8px; font-size: 14px; font-weight: 600;
}
.guide-toc .toc-cta:hover { background: var(--red-dark); color: #fff; }
.article-flat { max-width: none; margin: 0; }
.article-flat > h2:first-child { margin-top: 0; }
/* 展会指南导览卡：标题较长，允许换行（区别于案例卡的单行截断） */
.guide-card .body h3 { white-space: normal; line-height: 1.5; }

/* ---------- 长表格：固定高度 + 内部滚动 + 表头吸顶 ---------- */
.table-wrap.scroll-y { max-height: 420px; overflow: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.scroll-y .schedule thead th { position: sticky; top: 0; z-index: 2; }
.table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
.table-wrap::-webkit-scrollbar-track { background: #f2f5f8; }
.table-wrap::-webkit-scrollbar-thumb { background: #c3ccd7; border-radius: 5px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #a5b2c1; }

/* ---------- 页内锚点避让吸顶的通栏 + 导航（合计 110px） ---------- */
#baojia, #baojia-price, #baojia-items, #baojia-check, #baojia-how,
#timeline, #faq, #schedule { scroll-margin-top: 126px; }

/* ---------- 展馆信息卡（正方形 · 一行三个 · 面板内滚动） ---------- */
.hall-tip { font-size: 13px; color: var(--gray); text-align: right; margin: 0 0 10px; }
.hall-panel {
  max-height: 518px; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 12px 12px 2px; scrollbar-width: thin;
}
.hall-panel::-webkit-scrollbar { width: 9px; }
.hall-panel::-webkit-scrollbar-track { background: #f2f5f8; border-radius: 5px; }
.hall-panel::-webkit-scrollbar-thumb { background: #c3ccd7; border-radius: 5px; }
.hall-panel::-webkit-scrollbar-thumb:hover { background: #a5b2c1; }

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

.hall-card {
  min-height: 244px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; position: relative; overflow: hidden; transition: .25s;
}
.hall-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: .3s;
}
.hall-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.hall-card:hover::before { transform: scaleX(1); }

.hall-card .hall-city { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--red); margin: 0; }
.hall-card h3 { font-size: 17px; line-height: 1.35; color: var(--navy); margin: 7px 0 12px; letter-spacing: .3px; }
.hall-kv { margin: 0; display: grid; gap: 8px; }
.hall-kv > div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; font-size: 12.5px; line-height: 1.55; }
.hall-kv dt { color: #939cab; }
.hall-kv dd { margin: 0; color: var(--ink); }

@media (max-width: 1024px) {
  .hall-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hall-tip { text-align: left; }
  .hall-panel { max-height: 620px; padding-right: 8px; }
  .hall-grid { grid-template-columns: 1fr; gap: 16px; }
  .hall-card { min-height: 0; padding: 20px 18px; }
  .hall-kv { gap: 7px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-num { font-size: 96px; right: 3%; }
  .sec-num { font-size: 108px; right: 3%; }
  .sec-num.m { font-size: 90px; }
  .sec-num.s { font-size: 74px; }
  .footer-main { grid-template-columns: 1fr 1fr; justify-content: start; row-gap: 30px; }
}

@media (max-width: 1080px) {
  .topbar-brand { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .sec-num { font-size: 76px; top: 4px; right: 4%; }
  .sec-num.m { font-size: 64px; }
  .sec-num.s { font-size: 52px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 14px; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid #f0f2f5; font-size: 16px; }
  .main-nav a[aria-current="page"] { background: transparent; }
  .header-inner { min-height: 64px; }
  .hero-slides { height: 460px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .grid-3 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-toc { position: static; padding: 16px 14px; }
  .guide-toc .toc-title { margin-bottom: 8px; }
  .table-wrap.scroll-y { max-height: 360px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-item { padding: 18px 18px; }
  /* 触屏：面板滚到底后把滚动交还给页面，避免卡在面板里 */
  .news-scroll { overscroll-behavior: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .article .figure-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .section-head h2 { font-size: 24px; }
  .page-hero h1 { font-size: 24px; }
  .logo-text strong { font-size: 16px; }
  .topbar .slogan { display: none; }
  .float-contact { right: 14px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .float-contact a { width: 56px; height: 56px; gap: 3px; }
  .float-contact a .ico svg { width: 18px; height: 18px; }
  .float-contact a .txt { font-size: 10.5px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trustbar b { font-size: 24px; }
  .hero-content h1 { font-size: 23px; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- 浮动联系兜底卡（微信拨号 / 邮件未配置客户端） ---------- */
.contact-tip {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px); width: calc(100% - 32px); max-width: 356px;
  background: rgba(15,37,64,.97); color: #fff; border-radius: 14px; padding: 15px 16px 14px;
  font-size: 13px; line-height: 1.6; box-shadow: 0 12px 34px rgba(0,0,0,.32);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 9999;
}
.contact-tip.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.contact-tip .ct-hint { margin: 0 0 10px; padding-right: 16px; color: #cfd8e3; font-size: 12.5px; line-height: 1.65; }
.contact-tip .ct-value {
  font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1.5px; line-height: 1.3;
  word-break: break-all; user-select: all; -webkit-user-select: all;
}
.contact-tip .ct-actions { display: flex; gap: 10px; margin-top: 13px; }
.contact-tip .ct-actions button,
.contact-tip .ct-actions a {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 9px; font-size: 13px; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: .18s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.contact-tip .ct-copy { border: 0; background: var(--red); color: #fff; font-weight: 600; }
.contact-tip .ct-copy:active { background: var(--red-dark); }
.contact-tip .ct-copy.is-done { background: #1f8a4c; }
.contact-tip .ct-alt { border: 1px solid rgba(255,255,255,.30); background: transparent; color: #dbe4ef; }
.contact-tip .ct-alt:active { background: rgba(255,255,255,.12); }
.contact-tip .ct-close {
  position: absolute; top: 2px; right: 4px; background: none; border: 0; color: #9fb0c4;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 6px; font-family: inherit;
}
/* 手机端：卡片抬到右侧悬浮按钮列上方，避免相互遮挡 */
@media (max-width: 768px) {
  .contact-tip { bottom: calc(206px + env(safe-area-inset-bottom, 0px)); }
}

/* 打印 & 动效降级 */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* ========== 字高压扁（纵向缩放，全站文字） ==========
   原理等同 CDR 字符面板的「垂直比例」：只对字形纵向乘一个缩放系数，
   字宽、字距、字号、字重、布局占位全部不变，非破坏性，随时可还原。
   调整压扁程度只改下面一个数字：1 = 原样，.95 = 压到 95%
   作用范围：带 .vs 类的文本容器（由构建脚本自动标注为"叶子文本块"，
   即内部不含其他块级元素、也不含图片/图标，确保不会父子叠加双重压缩）
   外加标题、按钮、浮层标题兜底。
   行高已还原为原始值，压扁只由本变换负责，不再与行高压缩叠加。 */
:root { --vscale: .95; }

.vs,
h1, h2, h3, h4, h5, h6,
.btn, .btn-more,
.nm-title {
  transform: scaleY(var(--vscale));
  transform-origin: center center;
}


/* ---------- 展会排期常青页（calendar.html） ---------- */
.q-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.q-summary .q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.q-summary .q b { display: block; font-size: 16.5px; color: var(--navy); margin-bottom: 7px; }
.q-summary .q span { font-size: 13.5px; color: var(--gray); line-height: 1.75; }
.q-block + .q-block { margin-top: 34px; }
.q-block h3 { font-size: 19px; color: var(--navy); margin: 0 0 8px; padding-left: 12px; border-left: 4px solid var(--red); }
.q-block .q-lead { font-size: 14.5px; color: var(--gray); margin: 0 0 14px; padding-left: 16px; }
@media (max-width: 900px) { .q-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .q-summary { grid-template-columns: 1fr; } }


/* ---------- 资讯独立文章页（news/*.html） ---------- */
.art-meta { font-size: 13px; color: var(--gray); letter-spacing: .3px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.art-lead { font-size: 16px; line-height: 1.9; color: #2b3644; background: var(--bg-soft); border-left: 4px solid var(--red); padding: 15px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 30px; }
.article h2.vs { font-size: 20px; }
.rel-box { margin: 44px 0 0; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.rel-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.rel-box ul { list-style: none; padding: 0; margin: 0; }
.rel-box li { padding: 9px 0; border-bottom: 1px dashed #dde3ea; font-size: 14.5px; line-height: 1.6; }
.rel-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.rel-box a { color: var(--navy-2); }
.rel-box a:hover { color: var(--red); }
@media (max-width: 560px) {
  .art-lead { font-size: 15px; padding: 13px 16px; }
  .rel-box { padding: 18px 16px; }
}
a.news-more { align-self: flex-start; }
