/* ==========================================================================
   登普陶瓷 / DENGPU CERAMICS — 主样式
   ========================================================================== */

:root {
  --paper: #f7f3ed;
  --paper-2: #efe9df;
  --paper-3: #e6ded1;
  --ink: #191715;
  --ink-2: #3b3631;
  --muted: #7d746a;
  --line: #ddd4c6;
  --line-soft: #e9e2d7;
  --accent: #a1543a;
  --dark: #171512;
  --dark-2: #211e1a;

  --serif: Georgia, "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1360px;
  --ease: cubic-bezier(.22, .68, .24, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 18px;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- 通用排版 ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 10px 2px; }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(28px, 4vw, 52px);
}
.section-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.18; }
.section-note { color: var(--muted); max-width: 46ch; margin-top: 14px; font-size: 14.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .08em; white-space: nowrap;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  font-size: 13px; letter-spacing: .1em;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 243, 237, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: 15px; letter-spacing: .04em;
}
.brand-name { display: block; font-family: var(--serif); font-size: 16px; letter-spacing: .26em; line-height: 1.1; }
.brand-sub { display: block; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 13.5px; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button {
  padding: 5px 11px; font-size: 11px; letter-spacing: .1em;
  background: transparent; border: 0; cursor: pointer; color: var(--muted);
  transition: background .3s, color .3s;
}
.lang button.on { background: var(--ink); color: var(--paper); }
.lang button:not(.on):hover { color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- 首页 hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.hero-copy { display: flex; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy-inner {
  max-width: 560px;
  margin-right: auto;
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-right: clamp(24px, 4vw, 56px);
}
.hero-title { font-size: clamp(40px, 5.2vw, 74px); line-height: 1.1; letter-spacing: -.02em; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 26px; color: var(--ink-2); font-size: 15.5px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.hero-media { position: relative; min-height: clamp(420px, 62vh, 760px); background: var(--paper-2); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero-tag {
  position: absolute; left: 26px; bottom: 26px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: rgba(247, 243, 237, .9);
  padding: 8px 14px;
}

/* ---------- 产品卡片 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 50px) clamp(16px, 2vw, 28px);
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; }
.card-link { display: block; }
.card-media {
  position: relative; overflow: hidden; background: var(--paper-2);
  aspect-ratio: 3 / 4;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(25, 23, 21, .07);
  pointer-events: none;
}
.card-link:hover .card-media img { transform: scale(1.045); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(247, 243, 237, .92); color: var(--ink);
  padding: 5px 10px;
}
.card-body { padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.card-type { font-size: 12.5px; color: var(--muted); }
.card-dims { margin-top: 3px; font-size: 12px; color: var(--muted); letter-spacing: .01em; }

/* ---------- 关于 ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-media { background: var(--paper-2); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.18; margin-bottom: 26px; }
.about-copy p { color: var(--ink-2); margin-bottom: 16px; max-width: 52ch; }
.about-list { margin-top: 30px; border-top: 1px solid var(--line); }
.about-list li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.about-list li span:first-child { color: var(--muted); }

/* ---------- 联系 ---------- */

.contact { background: var(--dark); color: var(--paper); padding-block: clamp(64px, 8vw, 108px); }
.contact .eyebrow { color: rgba(247, 243, 237, .55); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.15; color: var(--paper); }
.contact-lead { color: rgba(247, 243, 237, .68); margin-top: 22px; max-width: 40ch; }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.contact .btn { border-color: rgba(247, 243, 237, .5); color: var(--paper); }
.contact .btn:hover { background: var(--paper); color: var(--ink); }
.contact .btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact .btn-accent:hover { background: #fff; color: var(--ink); border-color: #fff; }

.contact-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.info-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 243, 237, .45); margin-bottom: 10px; }
.info-value { font-size: 15px; line-height: 1.6; color: var(--paper); word-break: break-word; }
.info-value a:hover { color: var(--accent); }
.qr { width: 132px; height: 132px; background: #fff; padding: 8px; position: relative; }
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-missing {
  position: absolute; inset: 8px; display: grid; place-items: center; text-align: center;
  font-size: 10.5px; line-height: 1.5; color: var(--muted); background: var(--paper-2);
}

/* ---------- 页脚 ---------- */

.site-footer { background: var(--dark); color: rgba(247, 243, 237, .6); border-top: 1px solid rgba(247, 243, 237, .12); padding-block: 32px; font-size: 12.5px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--serif); letter-spacing: .22em; color: var(--paper); font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--paper); }

/* ---------- 列表页 ---------- */

.page-head { padding-block: clamp(40px, 6vw, 78px) clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.1; }
.page-head .lede { color: var(--muted); margin-top: 16px; max-width: 56ch; }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 18px 0 22px; border-top: 1px solid var(--line);
  position: sticky; top: 76px; z-index: 40;
  background: var(--paper);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.with-divider { padding-left: 14px; border-left: 1px solid var(--line); }
.chip {
  padding: 8px 16px; font-size: 12.5px; letter-spacing: .02em;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
  color: var(--ink-2);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .n { opacity: .5; margin-left: 7px; font-family: var(--mono); font-size: 11px; }

.filter-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 6px 2px;
}
.search input {
  border: 0; background: transparent; outline: none; width: 180px;
  font: inherit; font-size: 13px; color: var(--ink);
}
.search input::placeholder { color: #a89e92; }
.search svg { flex: none; opacity: .45; }

.result-line { font-size: 12px; color: var(--muted); letter-spacing: .04em; padding-bottom: 18px; }

.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- 详情页 ---------- */

.crumbs { font-size: 12px; color: var(--muted); padding: 26px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 88px);
  padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px);
  align-items: start;
}
.gallery-main { background: var(--paper-2); position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-main.is-spec { background: #fff; border: 1px solid var(--line-soft); }
.gallery-main.is-spec img { aspect-ratio: auto; height: auto; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 74px; height: 92px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[data-kind="scene"] img { object-fit: cover; }
.thumb.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.p-info { position: sticky; top: 104px; }
.p-code { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.p-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; margin-top: 10px; }
.p-sub { color: var(--muted); margin-top: 10px; font-size: 14px; }

.spec { margin-top: 36px; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec-row dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.spec-row dt b { font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--ink); border: 1px solid var(--line); padding: 1px 5px; }
.spec-row dd { margin: 0; font-variant-numeric: tabular-nums; }

.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.p-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); line-height: 1.7; }

.p-wechat { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.p-wechat .qr { width: 92px; height: 92px; background: #fff; border: 1px solid var(--line); }
.p-wechat .qr-missing { background: var(--paper-2); color: var(--muted); font-size: 9.5px; }

.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; }
.pager a { display: inline-flex; align-items: center; gap: 8px; }
.pager a:hover { color: var(--accent); }
.pager .dir { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; display: block; }

.related { padding-bottom: clamp(56px, 7vw, 96px); }

/* ---------- 动效 ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 56vh; order: -1; }
  .hero-copy-inner { margin-inline: auto; padding-inline: var(--gutter); max-width: 720px; }
  .product-layout { grid-template-columns: 1fr; }
  .p-info { position: static; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
  }
  .nav.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle {
    display: grid; place-items: center; width: 38px; height: 38px;
    background: transparent; border: 1px solid var(--line); cursor: pointer;
  }
  .header-inner { gap: 14px; }
  .brand-sub { display: none; }
  .filters { position: static; }
  .filter-right { margin-left: 0; width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .header-tools .btn { display: none; }
  .grid { gap: 26px 14px; }
  .contact-info { grid-template-columns: 1fr; gap: 26px; }
  .hero-facts { gap: 6px 14px; font-size: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .card-body { flex-direction: column; gap: 2px; }
  .thumbs { flex-wrap: wrap; }
}
