/* ============================================================
   donkiz-ca.com 全站共享基础样式 base.css
   风格：保鲜膜极简风（透明白 + 浅灰 + 纯白）
   职责：重置 / 变量 / 排版 / 顶栏 / 固定导航 / 页脚 / 悬浮联系 /
         按钮 / 区块标题 / 滚动渐入动画 / 面包屑 / 表单 / 响应式
   说明：各分组页面独有样式写在各分组 css 中，类名带分组前缀，
         禁止修改本文件，禁止内联 style/script
   ============================================================ */

/* ---------- 1. 重置与全局 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.75; color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.35; font-weight: 700; }
::selection { background: var(--ink); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d3d6da; border-radius: 8px; border: 2px solid #fff; }
::-webkit-scrollbar-track { background: #f4f5f7; }

/* ---------- 2. 设计变量（保鲜膜极简：透明白/浅灰/纯白） ---------- */
:root {
  --white: #ffffff;                 /* 纯白 */
  --mist: rgba(255, 255, 255, 0.82);/* 透明白（毛玻璃） */
  --mist-strong: rgba(255, 255, 255, 0.94);
  --bg-soft: #f4f5f7;               /* 浅灰底 */
  --bg-faint: #f9fafb;              /* 更浅的灰 */
  --line: #e6e8ea;                  /* 分隔线 */
  --line-strong: #d8dbde;
  --ink: #17191d;                   /* 近黑主文字 */
  --ink-2: #4a515c;                 /* 正文灰 */
  --ink-3: #8b929c;                 /* 弱化灰 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(23, 25, 29, 0.06);
  --shadow-md: 0 10px 34px rgba(23, 25, 29, 0.10);
  --shadow-lg: 0 24px 60px rgba(23, 25, 29, 0.14);
  --head-h: 76px;
  --topbar-h: 40px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 布局容器 ---------- */
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }

/* 区块标题（共享骨架，各页面可自定义细化） */
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.18em; font-weight: 600;
  color: var(--ink-3); text-transform: uppercase;
}
.sec-kicker::before { content: ""; width: 26px; height: 2px; background: var(--ink); }
.sec-head.center .sec-kicker::after { content: ""; width: 26px; height: 2px; background: var(--ink); }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); margin: 14px 0 14px; letter-spacing: 0.02em; }
.sec-desc { color: var(--ink-3); font-size: 15.5px; }

/* ---------- 4. 顶部联系条（全站显眼展示联系方式） ---------- */
.topbar { height: var(--topbar-h); background: var(--ink); color: rgba(255,255,255,.86); font-size: 13px; }
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-tip { color: rgba(255,255,255,.62); letter-spacing: .04em; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; transition: color .25s var(--ease); }
.topbar-link svg { opacity: .8; }
.topbar-link:hover { color: #fff; }
.topbar-wx { cursor: default; }

/* ---------- 5. 固定导航（滚动变色 + 毛玻璃） ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.site-head .topbar { transition: height .35s var(--ease), padding .35s var(--ease); overflow: hidden; }
.site-nav { height: var(--head-h); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 118px; height: auto; transition: opacity .25s; }
.brand:hover img { opacity: .82; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  position: relative; padding: 10px 12px; font-size: 15px; color: var(--ink-2);
  font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-tel {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap;
}
.nav-tel svg { color: var(--ink-3); }
/* 滚动后状态 */
.site-head.scrolled .topbar { height: 0; }
.site-head.scrolled .site-nav { background: var(--mist-strong); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(23,25,29,.07); }
body { padding-top: calc(var(--topbar-h) + var(--head-h)); }

/* 汉堡按钮 */
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  letter-spacing: .02em; color: #fff; background: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-nav { flex: 0 0 auto; padding: 10px 20px; font-size: 14px; }
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

/* ---------- 7. 页脚 ---------- */
.site-footer { background: #f0f1f3; border-top: 1px solid var(--line); color: var(--ink-3); }
.footer-grid {
  display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 40px;
  padding: 72px 0 56px;
}
.fcol-brand p { font-size: 14px; color: var(--ink-3); margin: 18px 0 22px; max-width: 380px; }
.footer-logo img { width: 124px; height: auto; }
.fcol h4 { font-size: 15px; color: var(--ink); margin-bottom: 20px; letter-spacing: .06em; }
.fcol a, .footer-contact span { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-3); transition: color .25s, padding-left .25s var(--ease); }
.fcol a:hover { color: var(--ink); padding-left: 6px; }
.footer-contact { margin-top: 6px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { padding-left: 0; }
.footer-contact svg { color: var(--ink-3); flex: 0 0 auto; }
.footer-bottom { border-top: 1px solid var(--line); background: #eceef0; }
.fb-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: 13px; flex-wrap: wrap; }
.fb-in a { color: var(--ink-3); }
.fb-in a:hover { color: var(--ink); }
.icp-line { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 8. 悬浮联系组件（右缘） ---------- */
.side-contact { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.sc-item {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.sc-item:hover { transform: translateX(-4px) scale(1.05); box-shadow: var(--shadow-md); background: var(--ink); color: #fff; }
.sc-item .sc-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px;
  padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.sc-item:hover .sc-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- 9. 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.rv-left { transform: translateX(-34px); }
.reveal.rv-right { transform: translateX(34px); }
.reveal.rv-zoom { transform: scale(.94); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 页面加载淡入 */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: pageIn .5s var(--ease); }

/* 首页 hero 文字逐词上浮动画（index 使用） */
@keyframes wordUp {
  from { opacity: 0; transform: translateY(38px) skewY(2deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
.hero-word { display: inline-block; opacity: 0; animation: wordUp .85s var(--ease) forwards; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-y { animation: floatY 5s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.pulse-dot { animation: pulseDot 1.6s ease-in-out infinite; }

/* ---------- 10. 面包屑（内页头部通用） ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); transition: color .25s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

/* ---------- 11. 通用小部件 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: 13px; color: var(--ink-2);
}
.tag { display: inline-block; padding: 4px 10px; font-size: 12px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-3); letter-spacing: .04em; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* 表单（在线咨询 / 联系我们使用） */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-field .req { color: #b6bcc4; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23,25,29,.06);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.form-note { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin-top: 14px; }

/* ---------- 12. 响应式 ---------- */
/* 中宽屏：收紧导航间距，保证 9 个链接单行不折行 */
@media (max-width: 1280px) {
  .nav-in { gap: 16px; }
  .brand img { width: 104px; height: auto; }
  .nav-links a { padding: 10px 9px; font-size: 13.5px; }
  .nav-tel { font-size: 13.5px; }
  .btn-nav { padding: 9px 14px; font-size: 13px; }
}
/* 窄桌面：隐藏重复 CTA 释放空间，电话保持显眼；顶栏口号让位给联系方式 */
@media (max-width: 1080px) {
  .nav-in { gap: 12px; }
  .brand img { width: 92px; height: auto; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 8px; font-size: 13px; }
  .nav-tel { font-size: 13px; }
  .btn-nav { display: none; }
  .topbar-tip { display: none; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .topbar { display: none; }
  body { padding-top: var(--head-h); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 18px 28px 40px; overflow-y: auto; z-index: 110;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 17px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-tel { display: none; }
  .btn-nav { display: none; }
  .section { padding: 68px 0; }
  .sec-head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 56px 0 44px; }
  .fcol-brand { grid-column: 1 / -1; }
  .fb-in { justify-content: center; text-align: center; }
  .side-contact { right: 12px; }
  .sc-item { width: 42px; height: 42px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { padding-inline: 20px; }
}
