/* ==========================================================================
   南朝印刷 · Nanchao Printing — 商务简约 / 留白高级感
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --ink: #141414;
  --ink-soft: #6b6b66;
  --ink-faint: #9a9a94;
  --accent: #b38b4d;
  --accent-deep: #97733c;
  --line: #eae8e2;
  --font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ==========================================================================
   顶部导航
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* 导航链接 */
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { background: var(--bg-soft); color: var(--ink); }

/* 关于我们 — 下拉菜单 */
.has-dropdown { position: relative; }

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.has-dropdown:hover > .nav-link::after { transform: translateY(1px) rotate(225deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(20, 20, 20, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown li a {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover { background: var(--bg-soft); color: var(--ink); }

/* 右侧操作区 */
.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20, 20, 20, 0.1); }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   Hero — 宣传图 + Slogan
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.jpg") center / cover no-repeat;
  background-color: #1d1d1b;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.55) 0%, rgba(20, 20, 20, 0.35) 55%, rgba(20, 20, 20, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e7ddcd;
  margin-bottom: 24px;
}

.hero-slogan {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  max-width: 18ch;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ==========================================================================
   通用 Section
   ========================================================================== */

.section { padding: 128px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 72px;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ==========================================================================
   我们的优势
   ========================================================================== */

.advantages { background: var(--bg); }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.adv-card {
  padding: 40px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.16);
}

.adv-icon {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 28px;
}

.adv-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.35;
}

.adv-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ==========================================================================
   主推产品
   ========================================================================== */

.products { background: var(--bg-soft); }

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

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.16);
}

.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1efea;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img { transform: scale(1.05); }

.product-card .product-caption {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 28px 30px;
}

.product-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   客户
   ========================================================================== */

.clients { background: #fff; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.client-item {
  display: grid;
  place-items: center;
  height: 120px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--ink-faint);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.client-item:hover { color: var(--ink); border-color: #d7d3cb; }

/* ==========================================================================
   联系信息
   ========================================================================== */

.contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}

a.contact-value:hover { color: var(--accent-deep); }

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer-brand-block { display: flex; flex-direction: column; gap: 8px; }

.footer-brand { font-weight: 600; color: #fff; font-size: 16px; }
.footer-tagline { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 420px;
  text-align: right;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-rights { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 720px) {
  .footer-contact { text-align: left; }
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 48px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 8px; }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .has-dropdown:hover .dropdown { transform: none; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .header-inner { height: 72px; }
  .nav { top: 72px; }

  .brand-tagline { display: none; }
  .lang-switch { gap: 0; }
  .lang-btn { padding: 6px 10px; font-size: 12px; }

  .advantages-grid,
  .products-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content { padding-top: 100px; }
}

/* ==========================================================================
   子页面 / 目录册 / 详情 / 弹窗
   ========================================================================== */

.nav-link.is-current { color: var(--ink); background: var(--bg-soft); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; transform: translateY(-2px); }

/* 页面头部 */
.page-head {
  padding: 176px 0 0;
  background: var(--bg);
}

.page-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-subtitle {
  max-width: 60ch;
  font-size: 16px;
  color: var(--ink-soft);
}

.catalog { padding-top: 72px; }

.catalog-empty { color: var(--ink-faint); text-align: center; padding: 40px 0; }

/* 目录卡片脚 */
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-price { font-weight: 600; color: var(--accent-deep); }

.product-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.product-card:hover .product-more { color: var(--ink); }

/* 详情页 */
.detail { padding-top: 152px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.back-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.back-link:hover { color: var(--ink); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.detail-gallery { position: sticky; top: 120px; }

.detail-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1efea;
  border: 1px solid var(--line);
}

.detail-main img { width: 100%; height: 100%; object-fit: cover; }

.detail-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f1efea;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--ink); }

.detail-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}

.detail-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 36px; }

.detail-block { margin-bottom: 36px; }

.detail-block-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.process-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.process-list li {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pricing-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pricing-table td:last-child { text-align: right; font-weight: 600; color: var(--accent-deep); }

.pricing-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

.detail .btn-dark { margin-top: 8px; }

/* 弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.55);
}

.modal-backdrop[hidden] { display: none !important; }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 40px 90px -30px rgba(20, 20, 20, 0.4);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--ink-soft);
}

.modal-close:hover { background: #ecebe7; color: var(--ink); }

.modal-title { font-size: 24px; font-weight: 600; margin-bottom: 10px; }

.modal-intro { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }

.modal-product-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--bg-soft);
  border-radius: 12px;
}

.modal-product-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.modal-product-name { font-size: 15px; font-weight: 600; }

.field { display: block; margin-bottom: 16px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.06);
}

.field textarea { resize: vertical; }

.btn-block { width: 100%; text-align: center; }

.form-error { color: #b3403a; font-size: 13.5px; margin-bottom: 12px; }
.form-success { color: #3a7d4f; font-size: 13.5px; margin-bottom: 12px; }

/* 详情响应式 */
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-gallery { position: static; }
  .detail { padding-top: 128px; }
  .page-head { padding-top: 140px; }
}

/* ==========================================================================
   关于我们长页面
   ========================================================================== */

.about-section {
  padding: 112px 0;
  scroll-margin-top: 96px;
}

.about-alt { background: var(--bg-soft); }

.about-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  max-width: 22ch;
}

.about-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  white-space: pre-line;
  max-width: 68ch;
  margin-bottom: 40px;
}

/* 公司介绍 图文两栏 */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 工厂 图集 */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1efea;
}

.about-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* 机器 */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.machine-item {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

/* 工艺 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.process-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, 0.16);
}

.process-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 4px;
}

.process-name { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.process-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* 客户（关于页复用主页 clients-grid） */

@media (max-width: 860px) {
  .about-section { padding: 80px 0; }
  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .about-gallery,
  .machine-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   联系信息：地图链接
   ========================================================================== */

.contact-map { margin-top: 44px; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map-link:hover { background: var(--bg-soft); border-color: #d7d3cb; }

.map-link::after {
  content: "\2197";
  font-size: 14px;
  color: var(--ink-faint);
}

/* ==========================================================================
   联系我们独立页面
   ========================================================================== */

.contact-page { padding-top: 72px; }

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-page-info { display: flex; flex-direction: column; gap: 16px; }

.contact-page-info .contact-map { margin-top: 12px; }

.contact-page-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 26px;
}

.contact-page-form .btn-dark { margin-top: 8px; }

@media (max-width: 860px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   荣誉资质 / 认证 / 询价
   ========================================================================== */

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}

.credential-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.credential-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price-status {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .about-credentials { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
}

/* ==========================================================================
   主题升级：墨蓝低饱和配色 + 品牌细节
   ========================================================================== */

:root {
  --ink: #18232e;
  --ink-soft: #55616c;
  --ink-faint: #87919b;
  --bg-soft: #f4f6f8;
  --line: #e4e9ee;
  --navy: #22425f;
  --navy-deep: #1a3450;
  --navy-soft: #e8eef4;
}

/* 主标题用墨蓝 */
.section-title,
.page-title,
.about-title,
.detail-title,
.contact-form-title { color: var(--navy); }

/* 品牌标识与页眉 Slogan */
.brand-mark { background: var(--navy); }

.brand-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--navy);
}

.nav-link:hover { background: var(--navy-soft); color: var(--navy); }
.nav-link.is-current { color: var(--navy); background: var(--navy-soft); }
.lang-btn.is-active { color: var(--navy); }

.dropdown li a:hover { background: var(--navy-soft); color: var(--navy); }

/* 按钮与强调色 */
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: var(--navy-deep); }

.adv-icon,
.process-num { color: var(--navy); }

.price-status,
.product-price { color: var(--navy-deep); }

.map-link { color: var(--navy); border-color: #d7e0e8; }
.map-link:hover { background: var(--navy-soft); border-color: #c2d0dc; }

/* 页脚 */
.site-footer { background: var(--navy-deep); }

/* 主页客户 Logo 卡片 */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.client-logo-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.client-logo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 35, 47, 0.18);
}

.client-logo {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
}

.client-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.client-logo-fallback {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.3;
  padding: 6px;
}

.client-logo-item .client-name { font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; }

/* 关于页客户文字对比度 */
.client-item { color: var(--ink); }
.client-item:hover { color: var(--navy); border-color: #c9d3dd; }

/* 主页联系我们：收紧留白 */
.contact { padding: 96px 0; }
.contact-map { margin-top: 28px; }

@media (max-width: 860px) {
  .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .client-logo-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   页眉 Logo 位
   ========================================================================== */

.brand-logo {
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* 机器照片网格 */
.machine-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.machine-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.machine-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.machine-photo figcaption {
  padding: 14px 18px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .machine-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .machine-photo-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   首页顶部：页眉覆盖首屏照片 → 文字白色、Logo 反白；下滑后恢复现有颜色
   ========================================================================== */

.brand-name,
.brand-tagline,
.lang-btn,
.menu-toggle span { transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease; }

.brand-logo img { transition: filter 0.3s ease; }

.site-header--over-hero:not(.is-scrolled) .brand-name {
  color: #d6dbe0;
}

.site-header--over-hero:not(.is-scrolled) .brand-tagline { color: rgba(214, 219, 224, 0.72); }

@media (min-width: 861px) {
  .site-header--over-hero:not(.is-scrolled) .nav-link,
  .site-header--over-hero:not(.is-scrolled) .nav-link.is-current,
  .site-header--over-hero:not(.is-scrolled) .nav-link:hover {
    color: #d6dbe0;
  }
  .site-header--over-hero:not(.is-scrolled) .nav-link:hover,
  .site-header--over-hero:not(.is-scrolled) .nav-link.is-current {
    background: rgba(255, 255, 255, 0.16);
  }
}

.site-header--over-hero:not(.is-scrolled) .brand-logo img {
  filter: brightness(0) invert(0.84);
}

.site-header--over-hero:not(.is-scrolled) .lang-switch { background: rgba(255, 255, 255, 0.18); }
.site-header--over-hero:not(.is-scrolled) .lang-btn { color: rgba(214, 219, 224, 0.75); }
.site-header--over-hero:not(.is-scrolled) .lang-btn.is-active { background: #d6dbe0; color: var(--navy); }

.site-header--over-hero:not(.is-scrolled) .menu-toggle span { background: #d6dbe0; }

/* 关于页客户：一排 4 个 */
.client-logo-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .client-logo-grid--four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .client-logo-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .client-logo-grid--four { grid-template-columns: 1fr; } }

/* ==========================================================================
   主页产品画廊（横向滚动）
   ========================================================================== */

.gallery-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

.gallery-viewport::-webkit-scrollbar { height: 6px; }
.gallery-viewport::-webkit-scrollbar-track { background: transparent; }
.gallery-viewport::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.gallery-track { display: flex; gap: 24px; }

.gallery-item {
  flex: 0 0 360px;
  scroll-snap-align: start;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(20, 35, 47, 0.18);
}

.gallery-media { aspect-ratio: 4 / 3; background: #f1efea; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .gallery-media img { transform: scale(1.05); }

.gallery-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 20px;
}

.gallery-cap h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.gallery-item:hover .gallery-cap h3 { color: var(--navy); }

.gallery-cap::after {
  content: "\2197";
  font-size: 15px;
  color: var(--ink-faint);
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.gallery-cta::after { content: "\2192"; transition: transform 0.2s ease; }
.gallery-cta:hover { color: var(--navy-deep); }
.gallery-cta:hover::after { transform: translateX(4px); }

.gallery-arrows { display: flex; gap: 10px; }

.gallery-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-arrow:hover { background: var(--navy-soft); border-color: #c9d5e0; }

@media (max-width: 560px) {
  .gallery-item { flex-basis: 82%; }
  .gallery-footer { flex-direction: column; align-items: flex-start; }
}

/* 保证 hidden 属性始终生效（避免 display 规则覆盖，如弹窗/隐藏卡片） */
[hidden] { display: none !important; }

/* ==========================================================================
   关于我们：信息密度提升（缩小留白/照片）
   ========================================================================== */

.about-section { padding: 72px 0; }
.about-title { margin-bottom: 16px; }
.about-body { margin-bottom: 22px; line-height: 1.75; }
.about-credentials { margin-top: 36px; gap: 36px; }
.about-gallery { gap: 14px; }
.about-gallery-item { aspect-ratio: 3 / 2; }

@media (min-width: 861px) {
  .about-split { gap: 40px; grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 860px) {
  .about-section { padding: 52px 0; }
}

/* 机器分组：印刷机 / 产线 */
.machine-group-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 6px 0 18px;
}

.press-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 720px;
  margin-bottom: 18px;
}

.press-gallery .machine-photo img { aspect-ratio: 4 / 3; }

.press-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
  margin-bottom: 44px;
}

.press-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.press-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.line-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.line-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  flex: none;
}

.line-card figcaption {
  height: 66px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 8px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  overflow: hidden;
}

@media (max-width: 1080px) { .line-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .line-grid { grid-template-columns: repeat(2, 1fr); }
  .press-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .line-grid { grid-template-columns: 1fr; }
}

/* 首页 Hero 副标题避免单字换行（孤字）*/
.hero-subtitle {
  text-wrap: balance;
  text-wrap: pretty;
}

/* 我们的产品副标题：按两行展示 */
#products .section-subtitle { white-space: pre-line; }
.page-subtitle { white-space: pre-line; }

/* ==========================================================================
   关于我们：公司架构 / 工厂照片 / 设备子标题
   ========================================================================== */

.about-org { margin-top: 44px; }

.arch-img {
  display: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
html[lang="zh"] .arch-img--zh { display: block; }
html[lang="en"] .arch-img--en { display: block; }
html[lang="fr"] .arch-img--fr { display: block; }

.factory-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.factory-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.factory-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.factory-photo figcaption { padding: 16px 20px 20px; }

.factory-photo h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.factory-photo p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

.machine-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 10px 0 14px;
}

@media (max-width: 860px) {
  .factory-photos { grid-template-columns: 1fr; }
}

/* 产品配文：两行 + 稍大字号 */
#products .section-head { max-width: 100%; }
.products-lead {
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-line;
  max-width: none;
}

/* 页脚邮箱链接 */
.footer-contact a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.footer-contact a:hover { color: #ffffff; }

/* ==========================================================================
   页脚目录导航
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
}

.footer-nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #ffffff; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-contact { text-align: left; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
