/* ============================================================
   先达图文 dqxd.cn — 设计系统 v5「大气商务」（2026-09-17a）
   方向：品牌红点睛 + 全幅业务大图 + 大留白大字号
   老板定稿：redesign/direction-d.html（无吉祥物，图片贴业务）
   零外部依赖 · prefers-reduced-motion 降级 · 1080/860/620 三档断点
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* v5 主令牌 */
  --red: #E60012;
  --red-dk: #B3000E;
  --red-tint: #FFF1F1;
  --ink: #16171B;
  --ink-2: #2A2C33;
  --mut: #5C616A;
  --bg: #FFFFFF;
  --soft: #F7F6F4;
  --line: #E9E7E3;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --sh-sm: 0 2px 10px rgba(22, 23, 27, .06);
  --sh-md: 0 20px 48px rgba(22, 23, 27, .12);
  --sh-lg: 0 24px 60px rgba(20, 20, 20, .14);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 兼容映射（inner.css / home.js 旧引用，勿删） */
  --paper: var(--bg);
  --paper-dim: var(--soft);
  --ink-soft: var(--mut);
  --ink-faint: #9A9EA8;
  --c: var(--red);
  --m: var(--red);
  --y: var(--red);
  --k: var(--ink);
  --xd-cyan: var(--red);
  --xd-magenta: var(--red);
  --xd-yellow: #FFC531;
  --xd-ink: var(--ink);
  --xd-ease: var(--ease);
  --xd-header-h: 78px;
  --xd-font: var(--font);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.75; font-size: 15px; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.xd-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; border-radius: 999px; transition: all .2s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; font-size: 16px; padding: 15px 38px; box-shadow: 0 10px 26px rgba(230, 0, 18, .32); }
.btn-primary:hover { background: var(--red-dk); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); font-size: 15px; padding: 13px 32px; background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .65); color: #fff; font-size: 15px; padding: 13px 32px; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }

/* ---------- 头部（白底实心栏，配红 logo） ---------- */
.xd-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease);
}
.xd-header.scrolled { box-shadow: 0 8px 30px rgba(22, 23, 27, .08); }
.xd-nav-in { display: flex; align-items: center; gap: 34px; height: var(--xd-header-h); }
.xd-logo img { height: 46px; width: auto; border-radius: 8px; }
.xd-nav .xd-nav-links { display: flex; gap: 28px; margin-left: auto; }
.xd-nav-links a {
  color: var(--ink); font-size: 15px; font-weight: 600; padding: 6px 2px;
  border-bottom: 2.5px solid transparent; transition: all .18s var(--ease);
}
.xd-nav-links a:hover, .xd-nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
a.xd-nav-cta {
  background: var(--red); color: #fff !important; font-weight: 700; padding: 10px 24px !important;
  border-radius: 999px; border-bottom: 0 !important; font-size: 14.5px;
  box-shadow: 0 6px 18px rgba(230, 0, 18, .3); transition: all .2s var(--ease);
}
a.xd-nav-cta:hover { background: var(--red-dk); transform: translateY(-1px); }
.xd-burger { display: none; align-items: center; gap: 7px; margin-left: auto; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.xd-burger svg { width: 24px; height: 24px; }

/* ---------- Hero：全幅业务大图 ---------- */
.xd-hero {
  position: relative; min-height: 660px; display: flex; align-items: flex-end; color: #fff;
  background: url("img/biz/biz-print.jpg") center 38% / cover no-repeat;
}
.xd-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 10, .5) 0%, rgba(10, 8, 10, .1) 38%, rgba(10, 8, 10, .78) 100%);
}
.xd-hero-in { position: relative; width: 100%; padding-bottom: 92px; padding-top: 80px; }
.xd-hero-tag {
  display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .1em;
  color: #fff; border-left: 4px solid var(--red); padding-left: 14px;
}
.xd-hero h1 {
  font-size: clamp(38px, 5vw, 66px); line-height: 1.22; font-weight: 900; letter-spacing: -.01em;
  margin: 20px 0 18px; max-width: 13em; text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.xd-hero .xd-hero-sub { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 34em; }
.xd-hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.xd-hero-tel {
  display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 15.5px;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 14px 30px; transition: all .2s var(--ease);
}
.xd-hero-tel:hover { background: rgba(255, 255, 255, .14); }
.xd-hero-tel b { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.xd-hero-tel small { color: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 500; }

/* ---------- 数据条（压 Hero 底） ---------- */
.xd-stats { position: relative; z-index: 2; margin-top: -56px; }
.xd-stats-in {
  background: #fff; border-radius: 18px; box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.xd-stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.xd-stat:last-child { border-right: 0; }
.xd-stat b { display: block; font-size: 36px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.xd-stat b em { font-style: normal; color: var(--red); font-size: .72em; }
.xd-stat span { font-size: 13px; color: var(--mut); }

/* ---------- 区块通用 ---------- */
.xd-section { padding: 96px 0; }
.xd-section.alt { background: var(--soft); }
.xd-sec-head { max-width: 660px; margin-bottom: 52px; }
.xd-sec-head.center { margin: 0 auto 52px; text-align: center; }
.xd-kick {
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800;
  letter-spacing: .18em; color: var(--red); margin-bottom: 16px;
}
.xd-kick::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.xd-sec-head.center .xd-kick { justify-content: center; }
.xd-sec-head.center .xd-kick::before { display: none; }
.xd-sec-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.xd-sec-sub { color: var(--mut); font-size: 15px; margin-top: 14px; }
.xd-more-row { margin-top: 40px; text-align: center; }

/* ---------- 核心业务：四张大图 ---------- */
.xd-core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.xd-core {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: #fff;
}
.xd-core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.xd-core:hover img { transform: scale(1.05); }
.xd-core::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 8, 10, .82) 100%); }
.xd-core .bd { position: relative; z-index: 1; padding: 30px 34px; }
.xd-core h3 { font-size: 26px; font-weight: 900; }
.xd-core p { font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-top: 8px; }
.xd-core .go { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 800; color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 3px; }

/* ---------- 全部项目：4×2 卡片阵列 ---------- */
.xd-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.xd-svc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 24px; transition: all .25s var(--ease); overflow: hidden; display: block;
}
.xd-svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.xd-svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #DDD9D3; }
.xd-svc-card:hover::before { transform: scaleX(1); }
.xd-svc-card .no {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 10px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 900; border-radius: 8px; font-variant-numeric: tabular-nums;
}
.xd-svc-card h3 { font-size: 19px; font-weight: 900; margin: 16px 0 8px; }
.xd-svc-card p { font-size: 13px; color: var(--mut); min-height: 3.4em; }
.xd-svc-card .note { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 800; color: var(--red); background: var(--red-tint); padding: 6px 13px; border-radius: 999px; }

/* ---------- 热门印件 ---------- */
.xd-pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xd-pro-card {
  border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: all .25s var(--ease); display: block;
}
.xd-pro-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.xd-pro-img { display: block; background: linear-gradient(180deg, #F7FAFE, #E9F1FA); }
.xd-pro-img img { width: 100%; height: auto; }
.xd-pro-body { display: block; padding: 18px 22px 22px; }
.xd-pro-body h3 { font-size: 16px; font-weight: 800; }
.xd-pro-body p { font-size: 13px; color: var(--mut); margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 招牌大横幅 ---------- */
.xd-band {
  position: relative; min-height: 480px; display: flex; align-items: center; color: #fff;
  background: url("img/biz/biz-sign.jpg") center / cover no-repeat;
}
.xd-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 8, 10, .84) 0%, rgba(10, 8, 10, .32) 60%, transparent 100%);
}
.xd-band .bd { position: relative; max-width: 540px; padding: 80px 0; }
.xd-band h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; line-height: 1.35; }
.xd-band p { color: rgba(255, 255, 255, .88); font-size: 15px; margin: 18px 0 24px; }
.xd-band ul { margin-bottom: 32px; }
.xd-band li { font-size: 14.5px; padding: 7px 0; color: rgba(255, 255, 255, .92); }
.xd-band li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 2px; margin-right: 12px; vertical-align: 1px; }

/* ---------- 四步工序 ---------- */
.xd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xd-step { padding: 34px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: all .25s var(--ease); }
.xd-step:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.xd-step i { font-style: normal; font-size: 14px; font-weight: 900; color: var(--red); letter-spacing: .14em; }
.xd-step h3 { font-size: 20px; font-weight: 900; margin: 14px 0 9px; }
.xd-step p { font-size: 13.5px; color: var(--mut); }

/* ---------- 优势 ---------- */
.xd-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xd-why { border-top: 3px solid var(--red); padding-top: 24px; }
.xd-why h3 { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.xd-why p { font-size: 13.5px; color: var(--mut); }

/* ---------- 设备 ---------- */
.xd-eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.xd-eq-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: all .25s var(--ease); display: block; }
.xd-eq-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.xd-eq-card > img { width: 100%; }
.xd-eq-card .bd, .xd-eq-card > div { padding: 16px 22px 22px; }
.xd-eq-num { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--red); font-weight: 800; margin-bottom: 8px; }
.xd-eq-card h3 { font-size: 16px; font-weight: 800; }
.xd-eq-card p { font-size: 12.5px; color: var(--mut); margin-top: 6px; }

/* ---------- 新闻 ---------- */
.xd-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.xd-news-card { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: all .25s var(--ease); display: block; }
.xd-news-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.xd-news-img { display: block; }
.xd-news-img img { width: 100%; }
.xd-news-body { display: block; padding: 22px 26px 26px; }
.xd-news-meta { font-size: 12.5px; color: var(--mut); margin-bottom: 10px; display: flex; gap: 12px; }
.xd-news-cat { color: var(--red); font-weight: 800; }
.xd-news-body h3 { font-size: 17px; font-weight: 800; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xd-news-body p { font-size: 13px; color: var(--mut); margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA（品牌红带） ---------- */
.xd-cta-band { background: linear-gradient(115deg, #EB0013 0%, #A8000C 100%); color: #fff; position: relative; overflow: hidden; }
.xd-cta-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.xd-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 76px 0; flex-wrap: wrap; position: relative; z-index: 1; }
.xd-cta-in h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; }
.xd-cta-in p { color: rgba(255, 255, 255, .88); margin-top: 12px; font-size: 15.5px; }
.xd-cta-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.xd-cta-tel { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.xd-cta-tel svg { width: 30px; height: 30px; }
.xd-cta-tel b { font-size: 28px; font-weight: 900; letter-spacing: .02em; display: block; line-height: 1.2; }
.xd-cta-tel small { font-size: 12.5px; color: rgba(255, 255, 255, .75); }

/* ---------- 页脚 ---------- */
.xd-footer { background: #131417; color: #A7ABB3; }
.xd-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
.xd-footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.xd-footer-brand img { height: 42px; width: auto; border-radius: 8px; margin-bottom: 16px; }
.xd-footer-brand p { font-size: 13px; line-height: 2; }
.xd-footer-slogan { color: #7D818A; }
.xd-footer-links a { display: block; font-size: 13.5px; padding: 5px 0; color: #A7ABB3; transition: color .15s; }
.xd-footer-links a:hover { color: #fff; }
.xd-footer-contact p { font-size: 13.5px; padding: 5px 0; }
.xd-footer-contact .tel-big { color: #fff; font-size: 24px; font-weight: 900; display: block; margin: 8px 0 2px; }
.xd-footer-cta { display: inline-block; margin-top: 14px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 800; padding: 10px 22px; border-radius: 999px; transition: background .2s; }
.xd-footer-cta:hover { background: var(--red-dk); }
.xd-footer-icp { border-top: 1px solid #24262B; padding: 20px 0; font-size: 12.5px; color: #6E727A; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.xd-footer-icp a { color: #6E727A; }
.xd-footer-icp a:hover { color: #A7ABB3; }

/* ---------- 悬浮工具条 ---------- */
.xd-dock { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.xd-dock-item-wrap { position: relative; }
.xd-dock-item-wrap > a, .xd-dock > button {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  box-shadow: var(--sh-sm); transition: all .2s var(--ease);
}
.xd-dock-item-wrap > a:hover, .xd-dock > button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.xd-dock-item-wrap svg, .xd-dock > button svg { width: 21px; height: 21px; }
.xd-dock-tip {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12.5px; padding: 7px 13px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.xd-dock-item-wrap:hover .xd-dock-tip { opacity: 1; }
.xd-dock-qr {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  box-shadow: var(--sh-md); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.xd-dock-item-wrap.has-qr:hover .xd-dock-qr { opacity: 1; }
#xdToTop { border-radius: 12px; }

/* ---------- 入场动效 ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s; }
.rv-d2 { transition-delay: .12s; }
.rv-d3 { transition-delay: .18s; }
.rv-d4 { transition-delay: .24s; }

/* 旧类名兼容（内页控制器沿用 v4 写法，映射到 v5 样式） */
.xd-sec-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--red); margin-bottom: 14px; }
.xd-sec-kicker::before { content: ""; width: 30px; height: 3px; background: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .xd-svc-grid, .xd-pro-grid, .xd-eq-grid { grid-template-columns: repeat(2, 1fr); }
  .xd-why-grid { grid-template-columns: repeat(2, 1fr); }
  .xd-steps { grid-template-columns: repeat(2, 1fr); }
  .xd-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --xd-header-h: 62px; }
  .xd-container { padding: 0 20px; }
  .xd-nav .xd-nav-links {
    display: none; position: absolute; top: var(--xd-header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(22, 23, 27, .1);
  }
  .xd-nav.open .xd-nav-links { display: flex; }
  .xd-nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .xd-nav-links a:hover, .xd-nav-links a.active { border-bottom-color: var(--line); color: var(--red); }
  a.xd-nav-cta { margin-top: 12px; text-align: center; }
  .xd-burger { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); margin-left: 0; }
  .xd-hero { min-height: 560px; }
  .xd-core-grid { grid-template-columns: 1fr; }
  .xd-stats-in { grid-template-columns: repeat(2, 1fr); }
  .xd-stat:nth-child(2) { border-right: 0; }
  .xd-stat:nth-child(1), .xd-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .xd-section { padding: 64px 0; }
  .xd-dock { display: none; }
}
@media (max-width: 620px) {
  .xd-svc-grid, .xd-pro-grid, .xd-eq-grid, .xd-why-grid, .xd-steps, .xd-news-grid { grid-template-columns: 1fr; }
  .xd-footer-in { grid-template-columns: 1fr; gap: 28px; }
  .xd-cta-in { padding: 56px 0; }
  .xd-hero h1 { font-size: 36px; }
}
