/* 德夫国际石材官网
   色彩：德夫红取自 logo；石色系取冷调中性灰，避免暖米色。
   字体：标题用自托管的 Noto Serif SC 子集（碑刻感的重宋），正文用系统黑体。
   唯一的视觉记号：工程标注线（尺寸线 + 红色箭头），只用于真实的尺寸数据。 */

@font-face { font-family: "DF Serif"; src: url("/assets/fonts/df-serif-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DF Serif"; src: url("/assets/fonts/df-serif-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --red: #AF1E23;
  --red-deep: #8E171B;
  --ink: #26292B;
  --ink-soft: #3A3E41;
  --muted: #62676A;
  --stone-50: #F6F6F4;
  --stone-100: #ECEBE7;
  --stone-300: #D3D1CB;
  --white: #FFFFFF;
  --serif: "DF Serif", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone-50); color: var(--ink); font: 16px/1.8 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-weight: 900; font-size: clamp(32px, 5.2vw, 56px); letter-spacing: .01em; }
h2 { font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-weight: 600; font-size: 21px; }
h4 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section.wrap { margin-top: clamp(56px, 8vw, 104px); }
.muted { color: var(--muted); font-size: 14px; }
.lead { font-size: 18px; max-width: 40em; color: var(--ink-soft); }
.section-lead { max-width: 40em; color: var(--ink-soft); }
.kicker { font-family: var(--serif); font-weight: 600; color: var(--red); margin-bottom: .4em; }

/* ---------- 页头 ---------- */
.site-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter); background: rgba(246, 246, 244, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone-300); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .logo { width: 30px; height: 28px; color: var(--red); flex: none; }
.brand-cn { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.brand-en { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.site-head nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover { color: var(--red); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-wide { display: flex; gap: 28px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-wide { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--ink); font-size: 15px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle nav { position: absolute; right: 0; top: calc(100% + 13px); display: flex; flex-direction: column; min-width: 180px;
    background: var(--stone-50); border: 1px solid var(--stone-300); padding: 8px 20px; }
  .nav-toggle nav a { padding: 10px 0; border-bottom: 1px solid var(--stone-100); }
  .brand-en { display: none; }
}

/* ---------- 首屏 ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 24, 25, .82) 0%, rgba(22, 24, 25, .35) 45%, rgba(22, 24, 25, 0) 70%); }
.hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vw, 88px); }
.hero h1 { color: var(--white); word-break: keep-all; font-size: clamp(40px, 11vw, 136px); line-height: 1.05; letter-spacing: .02em; margin-bottom: .3em; }
.hero p { max-width: 34em; font-size: 17px; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 26px; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }
.btn-line { border-color: rgba(255, 255, 255, .75); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- 首页介绍与时间线 ---------- */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.text-link { font-weight: 600; }
.text-link.light { color: var(--white); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -1px; top: 18px; width: 16px; border-top: 1px solid var(--ink); }
.timeline li::after { content: ""; position: absolute; left: -4px; top: 15px; width: 7px; height: 7px; background: var(--red); }
.timeline .year { display: block; font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.1; color: var(--red); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 4px 0; }
.timeline p { margin: 0; color: var(--ink-soft); }
.timeline.wide { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--ink); }
.timeline.wide li { padding: 28px 24px 0 0; }
.timeline.wide li::before { left: 0; top: -1px; width: 0; height: 16px; border-top: 0; border-left: 1px solid var(--ink); }
.timeline.wide li::after { left: -3px; top: -4px; }

/* ---------- 品牌列表 ---------- */
.brand-group { display: grid; grid-template-columns: 200px 1fr; gap: 24px 48px; padding: 32px 0; border-top: 1px solid var(--ink); }
.brand-group h3 { font-weight: 900; font-size: 30px; margin: 0 0 12px; }
.group-note { color: var(--muted); font-size: 14px; margin: 0; }
.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-row + .brand-row { border-top: 1px solid var(--stone-300); }
.brand-row a { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 18px 0; color: var(--ink); text-decoration: none; }
.brand-row .brand-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.brand-row h3, .brand-row h4 { margin: 0 0 4px; }
.brand-row p { margin: 0; }
.brand-row a:hover h3, .brand-row a:hover h4 { color: var(--red); }
.brand-list.big .brand-row a { grid-template-columns: 340px 1fr; }

/* ---------- 深色区与图示 ---------- */
.dark { background: var(--ink); color: rgba(255, 255, 255, .88); margin-top: clamp(56px, 8vw, 104px); padding: clamp(56px, 8vw, 96px) 0; }
.dark h2 { color: var(--white); }
.standard { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.drawing { margin: 0; }
.drawing svg { width: 100%; height: auto; display: block; }
.drawing figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.drawing .dim line, .drawing .leader { stroke: currentColor; stroke-width: 1; }
.drawing .arrow { fill: none; stroke: var(--red); stroke-width: 1.5; }
.drawing .dim-label { font-family: var(--serif); font-weight: 600; font-size: 16px; fill: currentColor; }
.drawing .note { font-size: 12px; fill: currentColor; opacity: .6; }
.seam { color: rgba(255, 255, 255, .92); }
.seam .slab { fill: #4A4F52; stroke: rgba(255, 255, 255, .7); stroke-width: 1; }
.seam .hatch { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.seam .glue { fill: var(--red); }
.seam .dim-label { font-size: 18px; }

.yanmi { color: var(--ink); max-width: 760px; margin: 24px 0 32px; }
.yanmi .seg { stroke: var(--ink); stroke-width: 1; }
.yanmi .seg0 { fill: var(--stone-100); }
.yanmi .seg1 { fill: var(--red); }
.yanmi .seg2 { fill: #C9C6BF; }
.yanmi .seg3 { fill: var(--muted); }
.yanmi .seg-label { font-family: var(--serif); font-weight: 600; font-size: 16px; fill: var(--ink); }
.yanmi .seg-note { font-size: 14px; fill: var(--ink); }

.sizes { margin-bottom: 24px; }
.size-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 24px; }
.size-cell { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.size-cell svg { max-width: 100%; height: auto; }
.size-cell .size { fill: var(--stone-100); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.size-cell span { font-family: var(--serif); font-weight: 600; font-size: 14px; }

/* ---------- 服务步骤 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 20px 20px 8px 0; position: relative; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--stone-300); }
.step-n { display: block; font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--red); }
.steps strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 2px 0 6px; }
.steps p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 问题列表与文章列表 ---------- */
.q-list { list-style: none; margin: 0 0 20px; padding: 0; max-width: 820px; }
.q-list li { border-top: 1px solid var(--stone-300); }
.q-list li:last-child { border-bottom: 1px solid var(--stone-300); }
.q-list a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-size: 17px; }
.q-list a:hover { color: var(--red); }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.article-list li { border-top: 1px solid var(--stone-300); }
.article-list a { display: block; padding: 18px 0; color: var(--ink); text-decoration: none; }
.article-list strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.article-list span { font-size: 14px; color: var(--muted); }
.article-list a:hover strong { color: var(--red); }

/* ---------- 到店 ---------- */
.visit { background: var(--stone-100); margin-top: clamp(56px, 8vw, 104px); padding: clamp(48px, 7vw, 88px) 0; }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { display: grid; grid-template-columns: 5em 1fr; gap: 10px 16px; margin: 20px 0; }
.facts dt { font-family: var(--serif); font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }
.facts.big dd { font-size: 18px; }

/* ---------- 内页 ---------- */
.page-head { padding-top: clamp(32px, 5vw, 64px); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.tall-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 6px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tags li { border: 1px solid var(--ink); padding: 2px 12px; font-size: 15px; }
.photo-stack { display: grid; gap: 20px; }
.photo-stack figure, .gallery figure { margin: 0; }
.photo-stack img, .gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery.four { grid-template-columns: repeat(4, 1fr); }
.gallery.four img { aspect-ratio: 3 / 4; }
.brand-gallery { display: grid; gap: 16px; margin-top: 32px; }
.brand-gallery.n2 { grid-template-columns: 1.6fr 1fr; }
.brand-gallery.n3 { grid-template-columns: 1.6fr 1fr 1fr; }
.brand-gallery figure { margin: 0; }
.brand-gallery img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }
.img-credit { margin-top: 8px; }
.qa { border-top: 1px solid var(--stone-300); padding: 16px 0 4px; max-width: 820px; }
.qa h3 { font-size: 18px; margin-bottom: 6px; }
.cta-line p { font-size: 17px; border-left: 3px solid var(--red); padding-left: 16px; max-width: 46em; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.table-wrap.narrow { max-width: 420px; }
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--stone-300); vertical-align: top; }
thead th { font-family: var(--serif); font-weight: 600; border-bottom: 1px solid var(--ink); }
.spec th { width: 7.5em; font-weight: 400; color: var(--muted); }
.spec td { font-family: var(--serif); font-weight: 600; }

/* ---------- 文章 ---------- */
.article { max-width: 820px; padding-top: clamp(32px, 5vw, 64px); }
.article h1 { font-size: clamp(28px, 4.2vw, 44px); }
.byline { color: var(--muted); font-size: 14px; }
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose strong { color: var(--ink); }
.prose table { font-size: 14px; min-width: 560px; }
.prose li { margin-bottom: 4px; }
.about-box { margin-top: 48px; padding: 24px 28px; background: var(--stone-100); border-left: 3px solid var(--red); font-size: 15px; }
.about-h { font-family: var(--serif); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.related { margin-top: 40px; }

/* ---------- 页脚 ---------- */
.site-foot { margin-top: clamp(64px, 9vw, 120px); background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 14px; padding: 56px var(--gutter) 28px; }
.site-foot a { color: rgba(255, 255, 255, .92); }
.foot-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; }
.foot-name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--white); }
.foot-name .logo { width: 26px; height: 24px; color: var(--white); }
.foot-h { font-family: var(--serif); font-weight: 600; color: var(--white); margin-bottom: 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 4px; }
.foot-legal { max-width: var(--wrap); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .intro, .standard, .visit-grid, .two-col { grid-template-columns: 1fr; }
  .brand-group { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 14px 0 6px 0; border-left: 0; border-top: 1px solid var(--stone-300); }
  .timeline.wide { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); }
  .timeline.wide li { padding: 0 0 28px 28px; }
  .timeline.wide li::before { left: -1px; top: 18px; width: 16px; height: 0; border-left: 0; border-top: 1px solid var(--ink); }
  .timeline.wide li::after { left: -4px; top: 15px; }
  .article-list { grid-template-columns: 1fr; }
  .gallery.four { grid-template-columns: repeat(2, 1fr); }
  .brand-gallery.n2, .brand-gallery.n3 { grid-template-columns: 1fr 1fr; }
  .brand-gallery figure:first-child { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .brand-row a, .brand-list.big .brand-row a { grid-template-columns: 112px 1fr; gap: 16px; }
  .brand-row p.muted { display: none; }
  .lead { font-size: 16px; }
  .prose { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
