/* 前台主题皮肤：由后台“首页设计 → 前端主题皮肤”选择，发布静态前台后生效。
   每套主题同时包含配色、圆角、字体气质、首屏构图、产品网格、故事区、新闻区与表单形态。 */

/* ========== 暖砂 · 经典编辑式（默认主题，不覆盖主样式） ========== */

/* ========== 墨夜 · 暗色画廊 ========== */
body[data-site-theme="midnight"] {
  --canvas:#100f0e; --surface:#1a1815; --surface-grey:#23201c; --silver:#4a443d;
  --ink:#f1eae0; --stone:#cbc2b6; --ash:#93897c; --mute:#8a8176; --hairline:#382f27;
  --clay:#d0a06b; --gold:#d8b36c; --primary:#9c6738; --ink-band:#080807;
  --radius-card:0px; --radius-media:0px; --radius-pill:0px; --container:1460px;
  --shadow-soft:0 28px 80px rgba(0,0,0,.45);
}
body[data-site-theme="midnight"] .announcement { color:#cbbfa9; border-bottom-color:#2a241e; background:#080807; }
body[data-site-theme="midnight"] .site-header { background:rgba(16,15,14,.95); }
body[data-site-theme="midnight"] .site-header.scrolled { box-shadow:0 8px 30px rgba(0,0,0,.28); }
body[data-site-theme="midnight"] .desktop-nav a.active { color:var(--gold); }
body[data-site-theme="midnight"] .section { padding:118px 0; }
body[data-site-theme="midnight"] .hero { padding:0; }
body[data-site-theme="midnight"] .hero .container { width:100%; }
body[data-site-theme="midnight"] .hero-grid {
  min-height:780px; grid-template-columns:46% 54%; gap:0;
  border-radius:0; background:#171411;
}
body[data-site-theme="midnight"] .hero-copy {
  order:2; padding:84px clamp(44px,6vw,116px);
  background:linear-gradient(135deg,#1b1815 0%,#100f0e 100%);
}
body[data-site-theme="midnight"] .hero-media { order:1; min-height:100%; }
body[data-site-theme="midnight"] .hero-media:after {
  background:linear-gradient(90deg,rgba(0,0,0,.28),transparent 42%),
             linear-gradient(180deg,transparent 52%,rgba(0,0,0,.68));
}
body[data-site-theme="midnight"] .hero-title { font-size:clamp(60px,5.4vw,96px); line-height:1.03; letter-spacing:-.045em; }
body[data-site-theme="midnight"] .hero-title em { color:var(--gold); }
body[data-site-theme="midnight"] .hero-copy .lead { color:var(--stone); }
body[data-site-theme="midnight"] .values { padding:32px clamp(24px,5vw,80px); }
body[data-site-theme="midnight"] .product-section .container { max-width:1000px; }
body[data-site-theme="midnight"] .product-grid { gap:46px 26px; }
body[data-site-theme="midnight"] .product-image { aspect-ratio:1; }
body[data-site-theme="midnight"] .product-index { border-radius:0; color:var(--gold); background:rgba(16,15,14,.82); }
body[data-site-theme="midnight"] .product-arrow { border-radius:0; color:#15120f; background:var(--gold); box-shadow:none; }
body[data-site-theme="midnight"] .story-grid { grid-template-columns:.95fr 1.05fr; min-height:720px; }
body[data-site-theme="midnight"] .story-image { order:2; }
body[data-site-theme="midnight"] .story-copy {
  order:1; padding:80px max(48px,calc((100vw - var(--container)) / 2));
  color:var(--ink); background:#171411; border-right:1px solid #2c261f;
}
body[data-site-theme="midnight"] .story-copy p { color:var(--stone); }
body[data-site-theme="midnight"] .story-copy .text-link { color:var(--gold); }
body[data-site-theme="midnight"] .story-quote { color:var(--gold); }
body[data-site-theme="midnight"] .news-section { background:#080807; }
body[data-site-theme="midnight"] .news-grid { grid-template-columns:1.35fr .825fr .825fr; gap:20px; }
body[data-site-theme="midnight"] .news-card { color:var(--ink); background:#16130f; }
body[data-site-theme="midnight"] .news-content { padding:22px; }
body[data-site-theme="midnight"] .news-content h3 { font-size:22px; }
body[data-site-theme="midnight"] .news-footer { color:var(--stone); }
body[data-site-theme="midnight"] .contact-form { border-color:#332c24; background:#171411; }
body[data-site-theme="midnight"] .field input,
body[data-site-theme="midnight"] .field select,
body[data-site-theme="midnight"] .field textarea { border-color:#342d26; border-radius:0; background:#100f0e; }
body[data-site-theme="midnight"] .detail-media,
body[data-site-theme="midnight"] .article-cover,
body[data-site-theme="midnight"] .featured-media { border-radius:0; }
body[data-site-theme="midnight"] .btn-primary:hover { background:#b98b56; }
body[data-site-theme="midnight"] .btn-outline { color:var(--gold); border-color:var(--gold); }
body[data-site-theme="midnight"] .btn-outline:hover { color:#15120f; background:var(--gold); }
body[data-site-theme="midnight"] .site-footer { background:#080807; }

/* ========== 青瓷 · 博物馆式留白 ========== */
body[data-site-theme="jade"] {
  --canvas:#eef2ea; --surface:#fbfdf9; --surface-grey:#dfe8da; --silver:#c7d3c2;
  --ink:#1f2d24; --stone:#3f5747; --ash:#6b7c6d; --mute:#a3b2a5; --hairline:#d2dfcd;
  --clay:#4d6d57; --gold:#9b7a41; --primary:#3e5f4b; --ink-band:#15251a;
  --radius-card:3px; --radius-media:3px; --radius-pill:3px; --container:1270px;
  --shadow-soft:0 18px 50px rgba(35,58,43,.08);
}
body[data-site-theme="jade"] .site-header { background:rgba(238,242,234,.95); }
body[data-site-theme="jade"] .nav-wrap { height:90px; }
body[data-site-theme="jade"] .announcement { background:transparent; }
body[data-site-theme="jade"] .section { padding:102px 0; }
body[data-site-theme="jade"] .hero { padding:42px 0 0; }
body[data-site-theme="jade"] .hero-grid {
  min-height:640px; grid-template-columns:48% 52%;
  border:1px solid var(--hairline); border-radius:4px; background:var(--surface);
}
body[data-site-theme="jade"] .hero-copy { padding:64px 4.5vw; }
body[data-site-theme="jade"] .hero-title { font-size:clamp(58px,5.7vw,88px); letter-spacing:-.045em; }
body[data-site-theme="jade"] .hero-media { min-height:0; margin:18px; border-radius:2px; }
body[data-site-theme="jade"] .values { padding:30px 0; }
body[data-site-theme="jade"] .product-section .container { max-width:1000px; }
body[data-site-theme="jade"] .product-grid { gap:46px 26px; }
body[data-site-theme="jade"] .product-image { aspect-ratio:1; border-radius:2px; background:var(--surface-grey); }
body[data-site-theme="jade"] .product-meta { padding-top:14px; border-top:1px solid var(--hairline); }
body[data-site-theme="jade"] .product-arrow { border:1px solid var(--hairline); border-radius:0; background:var(--surface); box-shadow:none; }
body[data-site-theme="jade"] .story-section { padding:102px 0; }
body[data-site-theme="jade"] .story-grid {
  width:min(var(--container),calc(100% - 80px)); min-height:0; margin:0 auto;
  grid-template-columns:.9fr 1.1fr; gap:6vw;
}
body[data-site-theme="jade"] .story-image { height:620px; border-radius:2px; overflow:hidden; }
body[data-site-theme="jade"] .story-copy {
  padding:36px 0; color:var(--ink); background:transparent;
}
body[data-site-theme="jade"] .story-copy p { color:var(--stone); }
body[data-site-theme="jade"] .story-copy .text-link { color:var(--ink); }
body[data-site-theme="jade"] .story-quote { color:var(--primary); }
body[data-site-theme="jade"] .news-grid { grid-template-columns:repeat(2,1fr); gap:24px; }
body[data-site-theme="jade"] .news-card { background:var(--surface); }
body[data-site-theme="jade"] .news-card:last-child { display:grid; grid-column:1/-1; grid-template-columns:1.25fr .75fr; }
body[data-site-theme="jade"] .news-card:last-child .news-image { height:100%; aspect-ratio:1.9; }
body[data-site-theme="jade"] .news-card:last-child .news-content { align-self:center; padding:34px 36px; }
body[data-site-theme="jade"] .contact-form { border-radius:2px; background:var(--surface); }
body[data-site-theme="jade"] .field input,
body[data-site-theme="jade"] .field select,
body[data-site-theme="jade"] .field textarea { border-radius:2px; background:var(--canvas); }
body[data-site-theme="jade"] .detail-media,
body[data-site-theme="jade"] .article-cover,
body[data-site-theme="jade"] .featured-media { border-radius:2px; }
body[data-site-theme="jade"] .site-footer { background:#15251a; }

/* ========== 胭脂 · 拱形沙龙 ========== */
body[data-site-theme="rose"] {
  --canvas:#f7eae6; --surface:#fffaf9; --surface-grey:#f0dfd8; --silver:#dbc8c2;
  --ink:#2f2221; --stone:#5f4644; --ash:#8b736d; --mute:#b6a49e; --hairline:#e6d3cd;
  --clay:#84424d; --gold:#b47b4a; --primary:#743642; --ink-band:#25181a;
  --radius-card:22px; --radius-media:160px; --radius-pill:9999px; --container:1320px;
  --shadow-soft:0 20px 60px rgba(82,43,48,.10);
}
body[data-site-theme="rose"] .site-header { background:rgba(247,234,230,.95); }
body[data-site-theme="rose"] .section { padding:104px 0; }
body[data-site-theme="rose"] .hero { padding:26px 0 0; }
body[data-site-theme="rose"] .hero-grid {
  min-height:700px; grid-template-columns:46% 54%; gap:20px;
  overflow:visible; border-radius:0; background:transparent;
}
body[data-site-theme="rose"] .hero-copy {
  order:2; padding:72px 5vw; border-radius:0 0 26px 26px; background:var(--surface);
}
body[data-site-theme="rose"] .hero-media { order:1; min-height:700px; border-radius:170px 26px 26px 26px; }
body[data-site-theme="rose"] .hero-title em { color:var(--primary); font-style:italic; }
body[data-site-theme="rose"] .values { padding:32px 0; }
body[data-site-theme="rose"] .product-section .container { max-width:1000px; }
body[data-site-theme="rose"] .product-grid { gap:46px 26px; }
body[data-site-theme="rose"] .product-image { aspect-ratio:1; border-radius:62px 62px 14px 14px; }
body[data-site-theme="rose"] .product-index { width:30px; height:30px; top:12px; left:12px; font-size:9px; background:var(--surface); }
body[data-site-theme="rose"] .product-arrow { background:var(--surface); }
body[data-site-theme="rose"] .product-meta { display:block; padding-top:16px; text-align:center; }
body[data-site-theme="rose"] .product-meta h3 { font-size:24px; }
body[data-site-theme="rose"] .product-tag { padding-top:3px; text-align:center; }
body[data-site-theme="rose"] .story-grid { min-height:680px; grid-template-columns:1fr 1fr; background:var(--surface); }
body[data-site-theme="rose"] .story-image { overflow:hidden; border-radius:0 180px 0 0; }
body[data-site-theme="rose"] .story-copy {
  padding:76px max(40px,5vw); color:var(--ink); background:var(--surface);
}
body[data-site-theme="rose"] .story-copy p { color:var(--stone); }
body[data-site-theme="rose"] .story-copy .text-link { color:var(--primary); }
body[data-site-theme="rose"] .story-quote { color:var(--primary); }
body[data-site-theme="rose"] .news-grid { grid-template-columns:repeat(3,1fr); gap:24px; }
body[data-site-theme="rose"] .news-card { border-radius:0 0 24px 24px; background:var(--surface); }
body[data-site-theme="rose"] .news-image { overflow:hidden; border-radius:120px 120px 0 0; }
body[data-site-theme="rose"] .contact-form { border-radius:30px 30px 6px 6px; background:var(--surface); }
body[data-site-theme="rose"] .field input,
body[data-site-theme="rose"] .field select,
body[data-site-theme="rose"] .field textarea { border-radius:12px; background:var(--canvas); }
body[data-site-theme="rose"] .detail-media { border-radius:180px 180px 24px 24px; }
body[data-site-theme="rose"] .article-cover { border-radius:36px; }
body[data-site-theme="rose"] .site-footer { background:#25181a; }

/* ========== 主题布局的响应式收口 ========== */
@media (max-width:960px) {
  body[data-site-theme="midnight"] .hero-grid { grid-template-columns:1fr; min-height:0; }
  body[data-site-theme="midnight"] .hero-copy { order:1; padding:58px 34px; }
  body[data-site-theme="midnight"] .hero-media { order:2; min-height:540px; }
  body[data-site-theme="midnight"] .hero .container { width:100%; }
  body[data-site-theme="midnight"] .story-grid { grid-template-columns:1fr; }
  body[data-site-theme="midnight"] .story-image { order:1; }
  body[data-site-theme="midnight"] .story-copy { order:2; padding:64px 48px; border-right:0; }
  body[data-site-theme="midnight"] .news-grid { grid-template-columns:1fr 1fr; }
  body[data-site-theme="midnight"] .news-card:last-child { grid-column:1/-1; }

  body[data-site-theme="jade"] .hero-grid { grid-template-columns:1fr; }
  body[data-site-theme="jade"] .hero-media { min-height:520px; margin:0 14px 14px; }
  body[data-site-theme="jade"] .story-section { padding:80px 0; }
  body[data-site-theme="jade"] .story-grid { width:calc(100% - 48px); grid-template-columns:1fr; gap:34px; }
  body[data-site-theme="jade"] .story-image { height:560px; }
  body[data-site-theme="jade"] .news-card:last-child { display:block; }
  body[data-site-theme="jade"] .news-card:last-child .news-image { aspect-ratio:1.6; }
  body[data-site-theme="jade"] .news-card:last-child .news-content { padding:26px; }

  body[data-site-theme="rose"] .hero-grid { grid-template-columns:1fr; gap:0; min-height:0; }
  body[data-site-theme="rose"] .hero-copy { order:1; padding:54px 32px; }
  body[data-site-theme="rose"] .hero-media { order:2; min-height:520px; border-radius:0 0 26px 26px; }
  body[data-site-theme="rose"] .story-grid { grid-template-columns:1fr; }
  body[data-site-theme="rose"] .story-image { border-radius:0; height:520px; }
}

@media (max-width:640px) {
  body[data-site-theme="midnight"] .hero-copy { padding:44px 24px; }
  body[data-site-theme="midnight"] .hero-media { min-height:430px; }
  body[data-site-theme="midnight"] .story-copy { padding:52px 24px; }
  body[data-site-theme="midnight"] .news-grid { grid-template-columns:1fr; }
  body[data-site-theme="midnight"] .news-card:last-child { grid-column:auto; }
  body[data-site-theme="midnight"] .product-grid { grid-template-columns:repeat(2,1fr); gap:30px 16px; }
  body[data-site-theme="midnight"] .product-image { aspect-ratio:1; }
  body[data-site-theme="jade"] .product-grid { grid-template-columns:repeat(2,1fr); gap:30px 16px; }
  body[data-site-theme="jade"] .product-image { aspect-ratio:1; }
  body[data-site-theme="rose"] .product-grid { grid-template-columns:repeat(2,1fr); gap:30px 16px; }
  body[data-site-theme="rose"] .product-image { aspect-ratio:1; border-radius:40px 40px 10px 10px; }
  body[data-site-theme="rose"] .product-index { width:26px; height:26px; top:10px; left:10px; font-size:8px; }
  body[data-site-theme="midnight"] .product-meta h3,
  body[data-site-theme="jade"] .product-meta h3,
  body[data-site-theme="rose"] .product-meta h3 { font-size:20px; }
  body[data-site-theme="midnight"] .section { padding:82px 0; }

  body[data-site-theme="jade"] .hero { padding-top:14px; }
  body[data-site-theme="jade"] .hero-grid { border-radius:2px; }
  body[data-site-theme="jade"] .hero-copy { padding:44px 24px; }
  body[data-site-theme="jade"] .hero-media { min-height:420px; margin:0 10px 10px; }
  body[data-site-theme="jade"] .story-grid { width:calc(100% - 36px); }
  body[data-site-theme="jade"] .story-image { height:460px; }
  body[data-site-theme="jade"] .news-grid { grid-template-columns:1fr; }
  body[data-site-theme="jade"] .news-card:last-child { grid-column:auto; }
  body[data-site-theme="jade"] .section { padding:74px 0; }

  body[data-site-theme="rose"] .hero { padding-top:14px; }
  body[data-site-theme="rose"] .hero-copy { padding:44px 24px; }
  body[data-site-theme="rose"] .hero-media { min-height:420px; }
  body[data-site-theme="rose"] .story-image { height:440px; }
  body[data-site-theme="rose"] .story-copy { padding:52px 24px; }
  body[data-site-theme="rose"] .product-image { border-radius:40px 40px 10px 10px; }
  body[data-site-theme="rose"] .news-grid { grid-template-columns:1fr; }
  body[data-site-theme="rose"] .section { padding:74px 0; }
}
@media (max-width:360px) {
  body[data-site-theme="midnight"] .product-grid,
  body[data-site-theme="jade"] .product-grid,
  body[data-site-theme="rose"] .product-grid,
  body[data-site-theme="warmstone"] .product-grid { grid-template-columns:1fr; }
  body[data-site-theme="rose"] .product-image { border-radius:32px 32px 8px 8px; }
  body[data-site-theme="rose"] .product-index { width:24px; height:24px; top:9px; left:9px; font-size:8px; }
}

/* ========== 暖岩 · 暖纸编辑式 ========== */
body[data-site-theme="warmstone"] {
  --canvas:#f7f1e8; --surface:#fffdf8; --surface-grey:#ece7de; --silver:#d8cfc1;
  --ink:#1c1b1a; --stone:#4a4741; --ash:#838280; --mute:#a8a5a0; --hairline:#e1dcd3;
  --clay:#6b443d; --gold:#af751b; --olive:#5c6f5d; --ink-band:#39221e; --primary:#6b443d;
  --radius-card:28px; --radius-media:36px; --radius-pill:9999px; --container:1320px;
  --shadow-soft:0 18px 50px rgba(57,34,30,.08);
  --wp-canvas-deep:#f1e8da; --wp-surface:#fffdf8; --wp-espresso:#39221e;
  --wp-ochre:#bc924c; --wp-sage:#849671;
}
body[data-site-theme="warmstone"] .announcement {
  color:var(--stone); border-bottom-color:var(--hairline); background:var(--canvas);
  font-size:10px; letter-spacing:.18em;
}
body[data-site-theme="warmstone"] .site-header { background:rgba(247,241,232,.92); }
body[data-site-theme="warmstone"] .nav-wrap { height:88px; }
body[data-site-theme="warmstone"] .brand-main { font-size:25px; letter-spacing:.19em; }
body[data-site-theme="warmstone"] .brand-sub { color:var(--stone); font-size:9px; letter-spacing:.46em; }
body[data-site-theme="warmstone"] .desktop-nav a { font-size:13px; letter-spacing:.05em; }
body[data-site-theme="warmstone"] .desktop-nav a:after { background:var(--clay); }
body[data-site-theme="warmstone"] .desktop-nav a.active { color:var(--clay); }
body[data-site-theme="warmstone"] .menu-toggle { border-color:var(--hairline); }

/* 首屏：一张暖纸卡片，左侧编辑式标题，右侧摄影 */
body[data-site-theme="warmstone"] .hero { padding:32px 0 0; }
body[data-site-theme="warmstone"] .hero .container {
  overflow:hidden; border-radius:var(--radius-media); background:var(--wp-canvas-deep);
}
body[data-site-theme="warmstone"] .hero-grid {
  min-height:650px; grid-template-columns:47% 53%; gap:0;
  overflow:visible; border-radius:0; background:transparent;
}
body[data-site-theme="warmstone"] .hero-copy {
  padding:76px 5vw 68px 58px; background:var(--wp-canvas-deep);
}
body[data-site-theme="warmstone"] .hero-title {
  margin-bottom:28px; font-size:clamp(58px,6.1vw,94px); line-height:1.03; letter-spacing:-.055em;
}
body[data-site-theme="warmstone"] .hero-title em { color:var(--clay); font-style:italic; }
body[data-site-theme="warmstone"] .hero-copy .lead {
  max-width:430px; margin-bottom:34px; color:var(--stone); font-size:16px; line-height:1.9;
}
body[data-site-theme="warmstone"] .hero-actions { gap:24px; }
body[data-site-theme="warmstone"] .hero-media { min-height:650px; background:#6c5644; }
body[data-site-theme="warmstone"] .hero-media img { filter:saturate(.92) sepia(.05); object-position:50% 38%; }
body[data-site-theme="warmstone"] .hero-media:after {
  background:linear-gradient(180deg,transparent 50%,rgba(57,34,30,.55));
}
body[data-site-theme="warmstone"] .hero-media-caption { right:32px; bottom:28px; left:32px; }
body[data-site-theme="warmstone"] .hero-media-caption strong { font-size:26px; }
body[data-site-theme="warmstone"] .hero-media-caption small { color:#eadfd1; letter-spacing:.16em; }
body[data-site-theme="warmstone"] .hero-number { color:#efdcc2; font-size:36px; }
body[data-site-theme="warmstone"] .values {
  padding:28px 32px; border-top:1px solid var(--hairline); border-bottom:0; background:var(--wp-surface);
}
body[data-site-theme="warmstone"] .value { color:var(--stone); font-size:12px; letter-spacing:.02em; }
body[data-site-theme="warmstone"] .value+.value { border-left-color:var(--hairline); }

/* 产品：白卡承载摄影，土色只在标签与编号上点缀 */
body[data-site-theme="warmstone"] .section { padding:100px 0; }
body[data-site-theme="warmstone"] .product-section { background:var(--canvas); }
body[data-site-theme="warmstone"] .section-heading p { color:var(--stone); }
body[data-site-theme="warmstone"] .product-grid { gap:48px 24px; }
body[data-site-theme="warmstone"] .product-card {
  padding:14px 14px 20px; border:1px solid var(--hairline); border-radius:5px;
  background:var(--wp-surface); transition:transform .3s ease,box-shadow .3s ease;
}
body[data-site-theme="warmstone"] .product-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-soft); }
body[data-site-theme="warmstone"] .product-image {
  margin-bottom:0; border-radius:5px; aspect-ratio:.86; background:var(--surface-grey);
}
body[data-site-theme="warmstone"] .product-index {
  top:14px; left:14px; width:34px; height:34px; color:var(--wp-espresso);
  background:rgba(247,241,232,.92); font-size:9px;
}
body[data-site-theme="warmstone"] .product-arrow {
  right:14px; bottom:14px; width:42px; height:42px; color:var(--clay);
  background:var(--wp-surface); box-shadow:0 8px 24px rgba(57,34,30,.12);
}
body[data-site-theme="warmstone"] .product-meta { display:block; padding:18px 8px 0; text-align:left; }
body[data-site-theme="warmstone"] .product-meta h3 { margin-bottom:4px; font-size:24px; }
body[data-site-theme="warmstone"] .product-meta p { color:var(--ash); font-size:12px; line-height:1.6; }
body[data-site-theme="warmstone"] .product-tag {
  display:inline-block; margin-top:9px; padding-top:0; color:var(--clay);
  font-size:9px; letter-spacing:.14em; text-transform:uppercase;
}

/* 品牌故事：暖纸面上的白色编辑卡片 */
body[data-site-theme="warmstone"] .story-section { padding:0 0 100px; background:var(--canvas); }
body[data-site-theme="warmstone"] .story-grid {
  width:min(var(--container),calc(100% - 80px)); min-height:620px; margin:0 auto;
  grid-template-columns:.92fr 1.08fr; border-radius:var(--radius-media);
  overflow:hidden; background:var(--wp-surface);
}
body[data-site-theme="warmstone"] .story-image { order:0; height:auto; min-height:620px; overflow:hidden; }
body[data-site-theme="warmstone"] .story-image img {
  height:100%; object-position:center 30%; filter:saturate(.9) sepia(.04);
}
body[data-site-theme="warmstone"] .story-copy {
  order:0; padding:70px 6vw; color:var(--ink); background:var(--wp-surface); border:0;
}
body[data-site-theme="warmstone"] .story-copy p { color:var(--stone); font-size:15px; line-height:1.9; }
body[data-site-theme="warmstone"] .story-quote { margin:26px 0 30px; color:var(--clay); font-size:24px; line-height:1.5; }
body[data-site-theme="warmstone"] .story-copy .text-link { color:var(--clay); }

/* 工艺：深咖色画廊带，和暖纸面形成一次安静的换气 */
body[data-site-theme="warmstone"] [data-typo-section="craft"] {
  padding:104px 0; color:var(--wp-surface); background:var(--wp-espresso);
}
body[data-site-theme="warmstone"] [data-typo-section="craft"] .eyebrow { color:var(--wp-ochre); }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .section-title { color:var(--wp-surface); }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .lead { color:#d8cdbf; }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-grid { gap:7vw; }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-media-main {
  aspect-ratio:1.05; border-radius:32px;
}
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-media-small {
  right:-26px; bottom:-26px; border:8px solid var(--wp-espresso); border-radius:20px;
}
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-step { border-color:rgba(188,146,76,.35); }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-step h3 { color:var(--wp-surface); }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-step p { color:#bdb2a5; }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-step .number { color:var(--wp-ochre); }
body[data-site-theme="warmstone"] [data-typo-section="craft"] .btn-secondary {
  color:var(--wp-ochre); border-color:var(--wp-ochre); background:transparent;
}
body[data-site-theme="warmstone"] [data-typo-section="craft"] .btn-secondary:hover {
  color:var(--wp-espresso); background:var(--wp-ochre);
}

/* 新闻：从暗色带回到奶油纸面，像一本内页杂志 */
body[data-site-theme="warmstone"] .news-section { color:var(--ink); background:var(--wp-surface); }
body[data-site-theme="warmstone"] .news-section .eyebrow { color:var(--clay); }
body[data-site-theme="warmstone"] .news-section .section-title { color:var(--ink); }
body[data-site-theme="warmstone"] .news-section .section-heading p { color:var(--stone); }
body[data-site-theme="warmstone"] .news-grid { grid-template-columns:repeat(3,1fr); gap:24px; }
body[data-site-theme="warmstone"] .news-card {
  border:1px solid var(--hairline); border-radius:var(--radius-card); background:var(--canvas);
  box-shadow:none;
}
body[data-site-theme="warmstone"] .news-image { aspect-ratio:1.45; }
body[data-site-theme="warmstone"] .news-content { padding:24px; }
body[data-site-theme="warmstone"] .news-meta { color:var(--ash); font-size:10px; letter-spacing:.1em; }
body[data-site-theme="warmstone"] .news-content h3 { margin-bottom:18px; font-size:24px; line-height:1.35; }
body[data-site-theme="warmstone"] .news-footer { color:var(--clay); }
body[data-site-theme="warmstone"] .news-section .text-link { color:var(--clay); }

/* 联系区与表单 */
body[data-site-theme="warmstone"] main > .section[data-typo-section="contact"] {
  padding:92px 0; border-top:1px solid var(--hairline); background:var(--wp-canvas-deep);
}
body[data-site-theme="warmstone"] .contact-form {
  border-color:var(--hairline); border-radius:var(--radius-card); background:var(--wp-surface);
}
body[data-site-theme="warmstone"] .field input,
body[data-site-theme="warmstone"] .field select,
body[data-site-theme="warmstone"] .field textarea {
  border-color:var(--hairline); border-radius:12px; background:var(--canvas);
}
body[data-site-theme="warmstone"] .field input:focus,
body[data-site-theme="warmstone"] .field select:focus,
body[data-site-theme="warmstone"] .field textarea:focus {
  border-color:var(--clay); box-shadow:0 0 0 3px rgba(107,68,61,.08);
}
body[data-site-theme="warmstone"] .contact-item { border-bottom-color:var(--hairline); }

/* 内页与全局组件 */
body[data-site-theme="warmstone"] .page-hero { padding:92px 0 66px; border-bottom-color:var(--hairline); }
body[data-site-theme="warmstone"] .filter-sub { border-color:var(--hairline); background:var(--surface-grey); }
body[data-site-theme="warmstone"] .filter-btn { border-color:var(--silver); }
body[data-site-theme="warmstone"] .filter-btn.active,
body[data-site-theme="warmstone"] .filter-btn:hover { border-color:var(--clay); background:var(--clay); }
body[data-site-theme="warmstone"] .detail-media,
body[data-site-theme="warmstone"] .article-cover,
body[data-site-theme="warmstone"] .featured-media { border-radius:var(--radius-media); }
body[data-site-theme="warmstone"] .story-quote,
body[data-site-theme="warmstone"] .rich-content h2,
body[data-site-theme="warmstone"] .rich-content h3 { color:var(--clay); }
body[data-site-theme="warmstone"] .timeline-item { border-color:var(--hairline); }
body[data-site-theme="warmstone"] .site-footer { background:var(--wp-espresso); }
body[data-site-theme="warmstone"] .footer-brand p { color:#bdb2a5; }
body[data-site-theme="warmstone"] .footer-brand .brand-sub { color:#c9bdb0; }
body[data-site-theme="warmstone"] .footer-col h3 { color:#bdb2a5; }
body[data-site-theme="warmstone"] .footer-col a { color:#e7ded3; }
body[data-site-theme="warmstone"] .footer-col a:hover { color:var(--wp-ochre); }
body[data-site-theme="warmstone"] .footer-bottom { border-top-color:rgba(255,255,255,.15); color:#92887d; }
body[data-site-theme="warmstone"] .mobile-menu { background:var(--wp-espresso); }
body[data-site-theme="warmstone"] .mobile-menu .brand-sub { color:#bdb2a5; }
body[data-site-theme="warmstone"] .mobile-links a { border-bottom-color:rgba(255,255,255,.14); }
body[data-site-theme="warmstone"] .mobile-links a span { color:var(--wp-ochre); }
body[data-site-theme="warmstone"] .btn-primary { background:var(--clay); }
body[data-site-theme="warmstone"] .btn-primary:hover { background:var(--clay-deep,#57342e); }
body[data-site-theme="warmstone"] .btn-outline { color:var(--stone); border-color:var(--stone); }
body[data-site-theme="warmstone"] .btn-outline:hover { color:var(--wp-surface); background:var(--stone); }

@media (max-width:960px) {
  body[data-site-theme="warmstone"] .hero .container { border-radius:30px; }
  body[data-site-theme="warmstone"] .hero-grid { grid-template-columns:1fr; min-height:0; }
  body[data-site-theme="warmstone"] .hero-copy { order:2; padding:50px 36px 42px; }
  body[data-site-theme="warmstone"] .hero-media { order:1; min-height:520px; }
  body[data-site-theme="warmstone"] .values { grid-template-columns:repeat(2,1fr); gap:22px 0; padding:24px 28px; }
  body[data-site-theme="warmstone"] .value:nth-child(3) { border-left:0; }
  body[data-site-theme="warmstone"] .product-grid { grid-template-columns:repeat(2,1fr); }
  body[data-site-theme="warmstone"] .story-section { padding-bottom:78px; }
  body[data-site-theme="warmstone"] .story-grid {
    width:calc(100% - 48px); grid-template-columns:1fr; min-height:0; border-radius:30px;
  }
  body[data-site-theme="warmstone"] .story-image { height:520px; min-height:0; }
  body[data-site-theme="warmstone"] .story-copy { padding:52px 38px; }
  body[data-site-theme="warmstone"] [data-typo-section="craft"] { padding:84px 0; }
  body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-grid { gap:56px; }
  body[data-site-theme="warmstone"] .news-grid { grid-template-columns:1fr 1fr; }
  body[data-site-theme="warmstone"] .news-card:last-child { grid-column:1/-1; }
}

@media (max-width:640px) {
  body[data-site-theme="warmstone"] .hero { padding-top:16px; }
  body[data-site-theme="warmstone"] .hero .container { border-radius:26px; }
  body[data-site-theme="warmstone"] .hero-copy { padding:38px 24px 32px; }
  body[data-site-theme="warmstone"] .hero-title { font-size:clamp(44px,13vw,62px); line-height:1.05; }
  body[data-site-theme="warmstone"] .hero .lead { font-size:14px; }
  body[data-site-theme="warmstone"] .hero-media { min-height:410px; }
  body[data-site-theme="warmstone"] .hero-media-caption { right:20px; bottom:20px; left:20px; }
  body[data-site-theme="warmstone"] .hero-media-caption strong { font-size:22px; }
  body[data-site-theme="warmstone"] .hero-number { font-size:28px; }
  body[data-site-theme="warmstone"] .values { padding:22px 20px; }
  body[data-site-theme="warmstone"] .value { font-size:11px; }
  body[data-site-theme="warmstone"] .section { padding:68px 0; }
  body[data-site-theme="warmstone"] .product-card { padding:10px 10px 16px; }
  body[data-site-theme="warmstone"] .product-image { border-radius:5px; }
  body[data-site-theme="warmstone"] .product-meta { padding:14px 5px 0; }
  body[data-site-theme="warmstone"] .story-section { padding-bottom:64px; }
  body[data-site-theme="warmstone"] .story-grid { width:calc(100% - 32px); border-radius:26px; }
  body[data-site-theme="warmstone"] .story-image { height:380px; }
  body[data-site-theme="warmstone"] .story-copy { padding:38px 24px; }
  body[data-site-theme="warmstone"] .story-quote { font-size:22px; }
  body[data-site-theme="warmstone"] [data-typo-section="craft"] { padding:72px 0; }
  body[data-site-theme="warmstone"] [data-typo-section="craft"] .craft-media-small { right:-14px; bottom:-24px; border-width:6px; }
  body[data-site-theme="warmstone"] .news-grid { grid-template-columns:1fr; }
  body[data-site-theme="warmstone"] .news-card:last-child { grid-column:auto; }
  body[data-site-theme="warmstone"] main > .section[data-typo-section="contact"] { padding:68px 0; }
  body[data-site-theme="warmstone"] .page-hero { padding:68px 0 48px; }
}

/* 产品尺寸设置：对墨夜、青瓷、胭脂、暖岩四套主题统一生效 */
body[data-product-size="small"] {
  --theme-product-gap: 34px 20px;
  --theme-product-title: 21px;
  --theme-product-attrs: 11px;
  --theme-product-tag: 10px;
  --theme-product-index: 10px;
}
body[data-product-size="medium"] {
  --theme-product-gap: 46px 26px;
  --theme-product-title: 25px;
  --theme-product-attrs: 13px;
  --theme-product-tag: 12px;
  --theme-product-index: 11px;
}
body[data-product-size="large"] {
  --theme-product-gap: 56px 32px;
  --theme-product-title: 29px;
  --theme-product-attrs: 14px;
  --theme-product-tag: 13px;
  --theme-product-index: 12px;
}
body[data-site-theme="midnight"] .product-grid,
body[data-site-theme="jade"] .product-grid,
body[data-site-theme="rose"] .product-grid,
body[data-site-theme="warmstone"] .product-grid {
  grid-template-columns: repeat(var(--product-cols,4),1fr);
  gap: var(--theme-product-gap, 46px 26px);
}
body[data-site-theme="midnight"] .product-meta h3,
body[data-site-theme="jade"] .product-meta h3,
body[data-site-theme="rose"] .product-meta h3,
body[data-site-theme="warmstone"] .product-meta h3 { font-size: var(--theme-product-title, 25px); }
body[data-site-theme="midnight"] .product-meta p,
body[data-site-theme="jade"] .product-meta p,
body[data-site-theme="rose"] .product-meta p,
body[data-site-theme="warmstone"] .product-meta p { font-size: var(--theme-product-attrs, 13px); }
body[data-site-theme="midnight"] .product-tag,
body[data-site-theme="jade"] .product-tag,
body[data-site-theme="rose"] .product-tag,
body[data-site-theme="warmstone"] .product-tag { font-size: var(--theme-product-tag, 12px); }
body[data-site-theme="midnight"] .product-index,
body[data-site-theme="jade"] .product-index,
body[data-site-theme="rose"] .product-index,
body[data-site-theme="warmstone"] .product-index { font-size: var(--theme-product-index, 11px); }

@media (max-width:640px) {
  body[data-product-size="small"] {
    --theme-product-gap: 30px 16px;
    --theme-product-title: 19px;
    --theme-product-attrs: 11px;
    --theme-product-tag: 9px;
    --theme-product-index: 10px;
  }
  body[data-product-size="medium"] {
    --theme-product-gap: 30px 16px;
    --theme-product-title: 20px;
    --theme-product-attrs: 12px;
    --theme-product-tag: 10px;
    --theme-product-index: 10px;
  }
  body[data-product-size="large"] {
    --theme-product-gap: 30px 16px;
    --theme-product-title: 22px;
    --theme-product-attrs: 13px;
    --theme-product-tag: 11px;
    --theme-product-index: 12px;
  }
}

/* 主题商品网格的列数必须服从屏幕宽度，不能压过手机/窄屏布局 */
@media (max-width:1180px) {
  body[data-site-theme="midnight"] .product-grid,
  body[data-site-theme="jade"] .product-grid,
  body[data-site-theme="rose"] .product-grid,
  body[data-site-theme="warmstone"] .product-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  body[data-site-theme="midnight"] .product-grid,
  body[data-site-theme="jade"] .product-grid,
  body[data-site-theme="rose"] .product-grid,
  body[data-site-theme="warmstone"] .product-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:360px) {
  body[data-site-theme="midnight"] .product-grid,
  body[data-site-theme="jade"] .product-grid,
  body[data-site-theme="rose"] .product-grid,
  body[data-site-theme="warmstone"] .product-grid { grid-template-columns:1fr; }
}


