/* ============================================================
   DINZ 设计系统换肤 —— 纯 CSS，不改任何 HTML/DOM/文字/meta
   设计基因：黑白灰、大留白、hairline、编辑感栅格、黑色页脚
   ============================================================ */

@font-face {
  font-family: "DINZ Clarendon Roman";
  src: url("../fonts/Clarendon BT Roman.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F;
}
@font-face {
  font-family: "DINZ Clarendon Light";
  src: url("../fonts/Clarendon Lt BT Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F;
}

:root {
  --bg: #fff;
  --ink: #050505;
  --muted: #9a9a9a;
  --line: #e7e7e7;
  --panel: #111;
  --font-en: "DINZ Clarendon Roman", serif;
  --font-en-light: "DINZ Clarendon Light", serif;
  --font-zh: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --sans: var(--font-zh);
  --serif: var(--font-en), var(--font-zh), serif;
  --type-micro: 11px;
}

/* 覆盖 PHP 注入的内联主题色（蓝/金/深蓝/红 → DINZ 黑白灰） */
:root:root {
  --primary: #050505;
  --accent: #050505;
  --dark: #050505;
  --brand: #050505;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-zh);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
}
.topbar-brand { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.topbar-phone { font-family: var(--font-en); font-weight: 400; letter-spacing: 0.06em; }
.topbar-switch { display: inline-flex; align-items: center; gap: 8px; }
.topbar-switch select {
  margin-left: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  font-size: 12px;
  color: var(--ink);
  outline: none;
}

/* ---------- 页头 ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-zh);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 14px;
  color: #555;
  padding: 8px 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero：黑色编辑感 ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 10vw, 148px) 0 clamp(64px, 9vw, 128px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -18%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 46% 54% 62% 38% / 54% 40% 60% 46%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  margin-bottom: 34px;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 18em;
}
.hero-title span { color: #9a9a9a; font-weight: 400; letter-spacing: -0.02em; }
.hero-sub {
  font-size: clamp(18px, 2vw, 26px);
  color: #d2d2d2;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  font-weight: 300;
}
.hero-desc {
  max-width: 720px;
  color: #8b8b8b;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 30px;
}
.hero-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero-features span {
  font-size: 12px;
  color: #c4c4c4;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  letter-spacing: 0.04em;
}
.hero-call {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 34px;
  border: 1px solid #fff;
  transition: background .2s ease, color .2s ease;
}
.hero-call:hover { background: transparent; color: #fff; }

/* ---------- 通用区块 ---------- */
section { padding: clamp(64px, 8vw, 128px) 0; }
.section-title {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: left;
  margin-bottom: 16px;
}
.section-sub { text-align: left; color: var(--muted); margin-bottom: 48px; font-size: 15px; }

/* ---------- 关于 ---------- */
.about { background: var(--bg); border-top: 1px solid var(--line); }
.about p {
  margin-bottom: 18px;
  color: #333;
  font-size: 16px;
  line-height: 1.9;
  max-width: 900px;
}
.about-call { margin-top: 28px; font-size: 16px; }
.about-call a { color: var(--ink); font-family: var(--font-en); font-size: 22px; font-weight: 400; letter-spacing: 0.01em; border-bottom: 1px solid currentColor; }
.about-update { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- 产品 / 案例栅格 ---------- */
.series { margin-bottom: clamp(56px, 7vw, 96px); }
.series-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.series-icon {
  font-size: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
}
.series-head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.series-head em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-left: auto; }
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.product-card {
  display: block;
  background: transparent;
  transition: opacity .3s ease;
}
.product-card:hover .product-img img { transform: scale(1.03); }
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  border-radius: 0;
  overflow: hidden;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.product-img-ph { font-size: 44px; color: #ccc; }
.product-name {
  font-family: var(--font-zh);
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25;
}
.product-cat { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq-list { max-width: 900px; margin: 0; }
.faq-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.faq-q::before { content: "+  "; color: var(--muted); font-weight: 300; }
.faq-a { font-size: 14px; color: #555; line-height: 1.85; }

/* ---------- 友情链接 ---------- */
.links { background: #fafafa; border-top: 1px solid var(--line); }
.link-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.link-group h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  padding-left: 0;
  border-left: none;
}
.link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a {
  font-size: 13px;
  color: #555;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 7px 14px;
  border-radius: 0;
  transition: color .2s ease, border-color .2s ease;
}
.link-list a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 页脚：黑 ---------- */
.site-footer {
  background: var(--ink);
  color: #d2d2d2;
  text-align: left;
  padding: clamp(56px, 7vw, 88px) 0 40px;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-brand { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 10px; }
.footer-phone a { color: #fff; font-family: var(--font-en); font-size: 20px; font-weight: 400; letter-spacing: 0.02em; }
.footer-copy { font-size: 12px; margin-top: 14px; color: #9a9a9a; letter-spacing: 0.04em; }
.footer-ops { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; }
.footer-ops a { color: #9a9a9a; letter-spacing: 0.04em; }
.footer-ops a:hover { color: #fff; }

/* ---------- 底部浮动条（移动端） ---------- */
.float-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; text-align: center; z-index: 40; display: none; }
.float-bar a { display: block; padding: 14px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: #fff; }

/* ---------- 弹窗表单 ---------- */
.modal { display: none; position: fixed; inset: 0; background: rgba(5, 5, 5, .6); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--bg); border-radius: 0; width: 100%; max-width: 440px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.modal-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.modal-form { padding: 26px 22px; }
.modal-tip { font-size: 15px; font-weight: 600; color: var(--ink); }
.modal-sub { font-size: 13px; color: var(--muted); margin: 8px 0 20px; }
.modal-form label { display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.04em; color: #555; }
.modal-form input, .modal-form select, .modal-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #bbb;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
}
.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { outline: none; border-bottom-color: var(--ink); }
.btn {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 0;
  z-index: 200;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: opacity .6s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .topbar-inner { height: auto; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
  .topbar-switch { order: 3; width: 100%; }
  .topbar-switch select { flex: 1; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px;
    gap: 0;
    z-index: 60;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav.open a:last-child { border-bottom: none; }
  .nav.open a.active { color: var(--ink); border-left: none; padding-left: 0; }
  .header-inner { height: 64px; }
  .logo { font-size: 20px; }
  .logo small { font-size: 10px; }

  .hero { padding: 56px 0 64px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-desc { font-size: 14px; }

  section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .section-sub { margin-bottom: 28px; font-size: 14px; }

  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-img { aspect-ratio: 1 / 1; }
  .product-name { font-size: 14px; }
  .product-cat { font-size: 11px; }

  .link-groups { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 28px; }

  .float-bar { display: block; }
  body { padding-bottom: 52px; }
}
