/* ===========================================================
   Dafen Art Hub — unified site chrome (nav + resource footer)
   Loaded on every page so navigation looks identical site-wide.
   Class names are hub-* prefixed to avoid clashing with page CSS.
   =========================================================== */
:root{
  --hub-ink:#1c1a17;
  --hub-ivory:#f7f3ec;
  --hub-paper:#fffdf8;
  --hub-gold:#b08d4f;
  --hub-gold-dark:#8f6f38;
  --hub-line:#e5ddcf;
  --hub-muted:#6f675a;
}

/* ---------- top navigation ---------- */
.hubnav{
  position:sticky;top:0;z-index:120;
  background:rgba(255,253,248,.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hub-line);
  font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  line-height:1.5;
}
.hubnav .hubwrap{
  max-width:1360px;margin:0 auto;padding:0 20px;
  display:flex;align-items:center;justify-content:space-between;
  height:66px;gap:12px;position:relative;
}
.hubnav .hublogo{
  font-family:Georgia,"Times New Roman",serif;font-size:19px;
  letter-spacing:.03em;color:var(--hub-ink);white-space:nowrap;display:block;
}
.hubnav .hublogo b{color:var(--hub-gold-dark)}
.hubnav .hublogo small{
  display:block;font-family:"Segoe UI",Arial,sans-serif;font-size:9px;
  letter-spacing:.18em;text-transform:uppercase;color:var(--hub-muted);margin-top:-3px;
}
.hubnav .hublinks{
  display:flex;align-items:center;gap:11px;font-size:13px;
  color:var(--hub-muted);flex-wrap:nowrap;letter-spacing:0;
}
.hubnav .hublinks>a,.hubnav .hubgrp>a{color:var(--hub-muted);white-space:nowrap}
.hubnav .hublinks>a:hover,.hubnav .hubgrp>a:hover{color:var(--hub-ink)}
.hubnav .hublinks>a.is-active,.hubnav .hubgrp>a.is-active{color:var(--hub-gold-dark);font-weight:600}
.hubgrp{position:relative}
.hubgrp>a{cursor:pointer;display:inline-block}
.hubgrp>a i{font-style:normal;font-size:9px;margin-left:5px;opacity:.55}
.hubdrop{
  position:absolute;top:100%;left:-16px;min-width:250px;
  background:var(--hub-paper);border:1px solid var(--hub-line);
  box-shadow:0 20px 44px rgba(28,26,23,.14);padding:8px 0;display:none;z-index:130;
}
.hubgrp:hover .hubdrop,.hubgrp:focus-within .hubdrop{display:block}
.hubgrp:nth-last-child(-n+2) .hubdrop{left:auto;right:-8px}
.hubdrop a{display:block;padding:9px 20px;font-size:13.5px;color:var(--hub-muted);white-space:nowrap}
.hubdrop a:hover{background:var(--hub-ivory);color:var(--hub-ink)}
.hubdrop .hublabel{
  display:block;padding:9px 20px 5px;font-size:10px;letter-spacing:.18em;
  text-transform:uppercase;color:var(--hub-gold-dark);
}
.hubnav .hubcta{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:9px 15px;background:var(--hub-ink);color:#fff;
  font-size:13px;letter-spacing:.05em;border:1px solid var(--hub-ink);
  transition:.2s;white-space:nowrap;
}
.hubnav .hubcta:hover{background:var(--hub-gold-dark);border-color:var(--hub-gold-dark);color:#fff}
.hubburger{
  display:none;background:transparent;border:1px solid var(--hub-line);
  color:var(--hub-ink);font-size:17px;line-height:1;cursor:pointer;
  min-width:44px;min-height:44px;
}

@media(max-width:1320px){
  .hubnav .hublinks{
    display:none;position:absolute;top:66px;left:0;right:0;
    background:var(--hub-paper);border-bottom:1px solid var(--hub-line);
    flex-direction:column;align-items:stretch;gap:0;padding:6px 24px 20px;
    max-height:calc(100vh - 66px);overflow-y:auto;
    box-shadow:0 18px 40px rgba(28,26,23,.12);
  }
  .hubnav .hublinks.is-open{display:flex}
  .hubnav .hublinks>a,.hubnav .hubgrp>a{
    padding:12px 0;width:100%;border-bottom:1px dashed var(--hub-line);text-align:left;
  }
  .hubgrp{width:100%}
  .hubdrop{
    position:static;display:none;box-shadow:none;border:none;
    border-left:2px solid var(--hub-line);margin:0 0 8px 10px;min-width:0;padding:4px 0;
  }
  .hubgrp.is-open .hubdrop{display:block}
  .hubdrop a{padding:8px 14px;font-size:13px;white-space:normal}
  .hubburger{display:block}
  .hubnav .hubcta{display:none}
  .hubnav .hublogo small{display:none}
}

/* ---------- unified resource footer band ---------- */
.hubres{
  background:var(--hub-ink);color:#cfc7b8;
  padding:56px 0 40px;font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
}
.hubres .hubwrap{max-width:1120px;margin:0 auto;padding:0 24px}
.hubres .hubres-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:22px;margin-bottom:28px;
}
.hubres .hubres-head h2{
  font-family:Georgia,"Times New Roman",serif;font-size:26px;font-weight:400;color:#fff;margin:8px 0 0;
}
.hubres .hubres-kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--hub-gold)}
.hubres .hubres-head p{font-size:14px;color:#a79f90;max-width:460px;margin:0}
.hubres-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 30px}
.hubres-col{margin-bottom:22px}
.hubres-col h3{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--hub-gold);margin-bottom:12px;font-weight:600;
}
.hubres-col a{
  display:block;font-size:14px;color:#ded7c9;padding:5px 0;text-decoration:none;transition:.15s;
}
.hubres-col a:hover{color:#fff;transform:translateX(2px)}
.hubres-col span{font-size:13.5px;color:#8e8778;display:block;padding:2px 0}
.hubres-foot{
  border-top:1px solid rgba(255,255,255,.14);margin-top:10px;padding-top:20px;
  font-size:13px;color:#8e8778;display:flex;gap:10px 26px;flex-wrap:wrap;align-items:center;
}
.hubres-foot a{color:#cfc7b8;text-decoration:underline}
.hubres-foot a:hover{color:#fff}
@media(max-width:860px){.hubres-grid{grid-template-columns:repeat(2,1fr);gap:0 20px}}
@media(max-width:520px){.hubres-grid{grid-template-columns:1fr}}

/* ===========================================================
   Frame try-on  (2026-10-10)
   Click a moulding -> the painting on the page wears that frame.
   Used on every master-work page and on /frames.html.
   =========================================================== */
.fr-stage{display:flex;justify-content:center;padding:4px 0 0}
.fr-box{
  position:relative;display:inline-block;max-width:100%;line-height:0;
  --pad:24px;--mat:3px;--matbg:rgba(0,0,0,.38);
  --bg:linear-gradient(135deg,#e3c88a,#b08d4f 22%,#8f6f38 40%,#e8d3a0 54%,#a9853f 72%,#7d5f2c 88%,#d8bd83);
  padding:var(--pad);background:var(--bg);
  box-shadow:0 22px 46px rgba(28,26,23,.24),inset 0 0 0 1px rgba(0,0,0,.22);
  transition:padding .22s ease,background .22s ease,box-shadow .22s ease;
}
.fr-mat{display:block;padding:var(--mat);background:var(--matbg);transition:padding .22s ease,background .22s ease}
.fr-box .fr-mat img{display:block;width:100%;height:auto;border-radius:0!important;box-shadow:none!important;border:0!important}
/* 价格表里的「对标挂牌价」列 */
.price-table td.was-price{color:#8a8578;text-decoration:line-through;white-space:nowrap}
/* 5 列的价格表在手机上会撑出横向滚动，小屏只留「尺寸(in) / 我们的价 / 挂牌价」 */
@media(max-width:700px){
  .price-table{font-size:13px}
  .price-table th,.price-table td{padding:8px 7px}
  .price-table th:nth-child(2),.price-table td:nth-child(2),
  .price-table th:nth-child(5),.price-table td:nth-child(5){display:none}
}
/* frame profiles */
.fr-none{--pad:0px;--mat:0px;--matbg:transparent;--bg:linear-gradient(135deg,#faf7f1,#e6dfd1);
  box-shadow:0 16px 34px rgba(28,26,23,.18),inset 0 0 0 1px rgba(0,0,0,.14)}
.fr-gold{background:linear-gradient(135deg,#e3c88a,#b08d4f 22%,#8f6f38 40%,#e8d3a0 54%,#a9853f 72%,#7d5f2c 88%,#d8bd83)}
.fr-wood{--pad:20px;background:linear-gradient(90deg,#2e2115,#5a4326 14%,#3a2a1a 32%,#6b4f2c 58%,#33240f 80%,#5a4326)}
.fr-champ{--pad:18px;background:linear-gradient(135deg,#f2eade,#c9b48a 26%,#a8916a 44%,#e8dfca 60%,#b8a37c 80%,#94805c)}
.fr-black{--pad:18px;background:linear-gradient(135deg,#2c2825,#111 46%,#33302c 68%,#0d0c0b)}
.fr-white{--pad:20px;background:linear-gradient(135deg,#ffffff,#e9e3d7 52%,#fff)}
.fr-natural{--pad:18px;background:linear-gradient(90deg,#c9a978,#e0c79b 16%,#b8965f 42%,#d9bd8c 68%,#a8863f)}
.fr-float{--pad:9px;--mat:12px;--matbg:#f7f4ee;background:#1c1a17}
/* swatch row */
.fr-opts{display:flex;flex-wrap:wrap;gap:12px 10px;justify-content:center;margin:20px 0 2px}
.fr-sw{display:flex;flex-direction:column;align-items:center;gap:7px;width:76px;padding:0;border:0;
  background:none;cursor:pointer;font:inherit;font-size:11px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted,#6b6358);-webkit-appearance:none;appearance:none}
/* 色板方块直接吃 .fr-{key} 的 background（.fr-sw i 里的 var(--bg) 在 i 上无定义，不能用） */
.fr-sw i{display:block;width:46px;height:46px;border-radius:3px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.12);transition:box-shadow .2s ease,transform .2s ease}
.fr-sw i.fr-none{background:linear-gradient(135deg,#faf7f1,#e6dfd1)}
.fr-sw i.fr-float{background:#f7f4ee;box-shadow:inset 0 0 0 6px #1c1a17,0 2px 6px rgba(0,0,0,.12)}
.fr-sw i.fr-black,.fr-sw i.fr-wood{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 6px rgba(0,0,0,.12)}
.fr-sw:hover i{transform:translateY(-2px)}
.fr-sw[aria-pressed="true"]{color:var(--ink,#222)}
.fr-sw[aria-pressed="true"] i{box-shadow:inset 0 0 0 2px #a87234,0 6px 14px rgba(168,114,52,.35)}
.fr-cap{text-align:center;margin:14px auto 2px;max-width:600px;font-size:14px;color:var(--muted,#6b6358)}
.fr-cap b{color:var(--ink,#222);font-weight:600}
.fr-hint{text-align:center;margin:10px auto 0;max-width:600px;font-size:12.5px;color:var(--muted,#6b6358);opacity:.85}
@media(max-width:560px){.fr-box{--pad:14px}.fr-wood,.fr-black,.fr-champ,.fr-white,.fr-natural{--pad:12px}.fr-sw{width:66px}.fr-sw i{width:40px;height:40px}}

/* public-domain / religious-respect note under a hub page intro */
.srcnote{margin-top:12px;padding:11px 14px;border-left:2px solid #b08d4f;
  background:rgba(176,141,79,.07);font-size:14px;line-height:1.65;color:var(--muted,#6b6358)}

/* 事实卡片：给 AI 搜索一个能整块摘录的结构化区块 */
.factcard{margin:22px 0;padding:14px 16px;border:1px solid var(--line,#e3ddd1);
  border-radius:10px;background:rgba(176,141,79,.045)}
.factcard table{margin:0;border:0}
.factcard th{width:38%;text-align:left;font-weight:600;
  background:transparent;border:0;padding:6px 10px 6px 0;vertical-align:top}
.factcard td{border:0;padding:6px 0;vertical-align:top}
@media(max-width:560px){.factcard{padding:12px}.factcard th{width:46%}}

/* ---------- product card grid (home hub rows + style pages) ----------
   NOTE: this class pair was used by ~84 cards per page with NO matching CSS,
   so every image rendered full-width and pages scrolled for tens of thousands
   of pixels. Keep these rules here — hub.css is loaded wherever cmp-* is used. */
.cmp-pgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px 16px;margin:0 0 10px}
.cmp-pcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#e5ddcf);
  transition:transform .22s ease,box-shadow .22s ease;overflow:hidden}
.cmp-pcard:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(28,26,23,.09)}
.cmp-pcard img{width:100%;aspect-ratio:4/5;height:auto;object-fit:cover;display:block;
  background:var(--ivory,#f7f3ec)}
.cmp-pbody{padding:10px 11px 12px;display:flex;flex-direction:column;gap:2px}
.cmp-ptitle{font-family:Georgia,"Times New Roman",serif;font-size:14.5px;line-height:1.35;
  color:var(--ink,#1c1a17);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;min-height:2.7em}
.cmp-partist{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-dark,#8f6f38)}
.cmp-tagline{font-size:11.5px;color:var(--muted,#6f675a)}
@media(max-width:1080px){.cmp-pgrid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:860px){.cmp-pgrid{grid-template-columns:repeat(3,1fr);gap:16px 12px}}
@media(max-width:560px){.cmp-pgrid{grid-template-columns:repeat(2,1fr);gap:12px 10px}
  .cmp-ptitle{font-size:13px}.cmp-partist,.cmp-tagline{font-size:10.5px}}

/* ---------- customer voices strip (compact, 3-up) ----------
   Used on trust.html under the #proof section and reusable on any page.
   Kept deliberately small: one line of quote + thumbnail + name, ~150px tall.
   Content rule: quotes may only be published when the customer has agreed and
   Jade has supplied the exact wording. Never generate them. */
.voices-strip{margin:24px 0 0;padding:18px 0 0;border-top:1px solid var(--line,#e5ddcf)}
.voices-head{margin:0 0 12px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gold-dark,#8f6f38)}
.voices-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.voice{margin:0;display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:start;
  background:#fff;border:1px solid var(--line,#e5ddcf);border-radius:8px;padding:12px}
.voice img{width:64px;height:64px;object-fit:cover;border-radius:6px;display:block;
  background:var(--ivory,#f7f3ec)}
.voice blockquote{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:13.5px;
  line-height:1.55;color:var(--ink,#1c1a17)}
.voice figcaption{margin-top:7px;font-size:11.5px;color:var(--muted,#6f675a)}
@media(max-width:860px){.voices-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.voices-row{grid-template-columns:1fr}}

/* ===== wall-mockup module (product pages & blog inserts, 2026-11-03) ===== */
.wall-mock{margin:36px 0 8px}
.wall-mock__head{font-size:1.05rem;font-weight:600;margin:0 0 4px;letter-spacing:.01em}
.wall-mock__sub{font-size:.875rem;opacity:.62;margin:0 0 18px}
.wall-mock__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.wall-mock__grid img{width:100%;height:auto;display:block;border-radius:6px}
.wall-mock__grid figcaption{font-size:.82rem;opacity:.7;margin-top:8px;line-height:1.45}
.wall-mock__note{font-size:.78rem;opacity:.55;line-height:1.6;margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.09)}
.wall-mock--dark .wall-mock__note{border-top-color:rgba(255,255,255,.14)}

/* ===== customer review wall (/reviews.html, 2026-11-04) =====
   Content rule (same as .voices-strip above): every card here must trace to a
   real order and a customer who agreed to be quoted. Never invent a name, a
   country, a date or a quote. If there is no artwork photo, use the product
   image — never a stock photo of a different painting. */
.rv-hero{padding:64px 0 40px;background:var(--hub-ivory,#f7f3ec);border-bottom:1px solid var(--hub-line,#e5ddcf)}
.rv-hero .rv-wrap{max-width:900px;margin:0 auto;padding:0 20px}
.rv-eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--hub-gold-dark,#8f6f38);margin:0 0 14px}
.rv-hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:42px;line-height:1.2;
  color:var(--hub-ink,#1c1a17);margin:0 0 18px;letter-spacing:-.01em}
.rv-hero p{font-size:16.5px;line-height:1.65;color:var(--hub-muted,#6f675a);margin:0;max-width:680px}
.rv-bartop{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.rv-chip{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--hub-line,#e5ddcf);
  border-radius:100px;padding:7px 14px;font-size:12.5px;color:var(--hub-ink,#1c1a17)}
.rv-chip b{font-family:Georgia,serif;color:var(--hub-gold-dark,#8f6f38)}

.rv-section{padding:56px 0}
.rv-section--alt{background:#fffdf8;border-top:1px solid var(--hub-line,#e5ddcf);border-bottom:1px solid var(--hub-line,#e5ddcf)}
.rv-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.rv-h2{font-family:Georgia,serif;font-weight:400;font-size:29px;line-height:1.25;color:var(--hub-ink,#1c1a17);margin:0 0 10px}
.rv-lead{font-size:15.5px;line-height:1.65;color:var(--hub-muted,#6f675a);margin:0 0 30px;max-width:660px}

.rv-grid{display:grid;grid-template-columns:1fr;gap:22px}
.rv-card{display:grid;grid-template-columns:300px 1fr;gap:0;background:#fff;border:1px solid var(--hub-line,#e5ddcf);
  border-radius:10px;overflow:hidden}
.rv-card__media{margin:0;position:relative;background:var(--hub-ivory,#f7f3ec)}
.rv-card__media img{width:100%;height:100%;min-height:240px;object-fit:cover;display:block}
.rv-card__media figcaption{position:absolute;left:0;right:0;bottom:0;padding:8px 12px;font-size:10.5px;
  letter-spacing:.05em;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.62))}
.rv-card__body{padding:26px 28px;display:flex;flex-direction:column;gap:12px}
.rv-stars{color:var(--hub-gold,#b08d4f);font-size:14px;letter-spacing:.14em;line-height:1}
.rv-quote{font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.62;color:var(--hub-ink,#1c1a17);
  margin:0;font-style:italic}
.rv-quote::before{content:"\201C";color:var(--hub-gold,#b08d4f);margin-right:2px}
.rv-quote::after{content:"\201D";color:var(--hub-gold,#b08d4f);margin-left:2px}
.rv-who{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;font-size:13px;color:var(--hub-ink,#1c1a17);margin-top:auto}
.rv-who b{font-weight:600}
.rv-who .rv-dot{color:var(--hub-line,#e5ddcf)}
.rv-badge{display:inline-flex;align-items:center;gap:5px;background:#eef6ee;color:#2f6b3a;border:1px solid #cfe4d1;
  border-radius:100px;padding:2px 9px;font-size:11px;letter-spacing:.03em}
.rv-order{font-size:11.5px;color:var(--hub-muted,#6f675a);line-height:1.55;
  border-top:1px dashed var(--hub-line,#e5ddcf);padding-top:11px}
.rv-order a{color:var(--hub-gold-dark,#8f6f38);text-decoration:underline}

.rv-rules{display:grid;grid-template-columns:repeat(2,1fr);gap:24px 32px;margin-top:8px}
.rv-rule{border-left:2px solid var(--hub-gold,#b08d4f);padding-left:16px}
.rv-rule h3{font-size:14.5px;font-weight:600;margin:0 0 6px;color:var(--hub-ink,#1c1a17)}
.rv-rule p{font-size:13.8px;line-height:1.6;color:var(--hub-muted,#6f675a);margin:0}

.rv-cta{background:var(--hub-ink,#1c1a17);color:#f7f3ec;padding:56px 0;text-align:center}
.rv-cta h2{font-family:Georgia,serif;font-weight:400;font-size:30px;margin:0 0 12px;color:#f7f3ec}
.rv-cta p{font-size:15px;line-height:1.65;color:rgba(247,243,236,.76);max-width:580px;margin:0 auto 26px}
.rv-btn{display:inline-block;background:var(--hub-gold,#b08d4f);color:#fff;text-decoration:none;
  padding:14px 30px;border-radius:6px;font-size:14.5px;font-weight:600;letter-spacing:.02em}
.rv-btn:hover{background:#a07d42}
.rv-cta small{display:block;margin-top:16px;font-size:11.5px;color:rgba(247,243,236,.5)}

.rv-empty{text-align:center;padding:34px 20px;border:1px dashed var(--hub-line,#e5ddcf);border-radius:10px;
  color:var(--hub-muted,#6f675a);font-size:14px;line-height:1.6;background:#fff}

@media(max-width:820px){
  .rv-card{grid-template-columns:1fr}
  .rv-card__media img{min-height:200px;aspect-ratio:4/3;height:auto}
  .rv-rules{grid-template-columns:1fr}
  .rv-hero h1{font-size:31px}
  .rv-h2{font-size:24px}
  .rv-hero{padding:44px 0 30px}
  .rv-section{padding:40px 0}
}
