/* ============================================================
   文创产品展示台 · 前台样式（暗金偏黄 · 深色高级感）
   深色底 + 金黄点缀 / 大字排版 / 大留白 / 毛玻璃导航
   ============================================================ */
:root {
    --bg:        #0d0a06;
    --bg-2:      #14100a;
    --panel:     #191309;
    --panel-2:   #1f180c;
    --line:      rgba(222,184,96,.16);
    --gold:      #dcb75f;   /* 主金（偏黄） */
    --gold-lite: #f2d78e;
    --gold-deep: #9c7c36;
    --gold-grad: linear-gradient(135deg, #eccd7c 0%, #cfa64b 100%);
    --text:      #f5ecd8;
    --muted:     #b3a483;
    --radius:    18px;
    --shadow-sm: 0 2px 18px rgba(0,0,0,.4);
    --shadow-lg: 0 18px 52px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 50% -8%, #1e1608 0%, transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--gold-lite); }

img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

::selection { background: rgba(220,183,95,.32); }

/* ---------- 顶部导航（毛玻璃） ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13,10,6,.72);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid rgba(222,184,96,.12);
}
.site-header .inner {
    max-width: 1180px; margin: 0 auto; padding: 0 28px;
    height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.brand a {
    display: flex; align-items: baseline; gap: 10px;
    color: var(--gold-lite); font-size: 17px; font-weight: 600; letter-spacing: .5px;
}
.brand .tagline {
    font-size: 11px; letter-spacing: 2px; color: var(--muted);
    border-left: 1px solid var(--line); padding-left: 10px;
}
.site-nav { display: flex; gap: 30px; font-size: 13.5px; }
.site-nav a { color: var(--muted); letter-spacing: .5px; }
.site-nav a:hover, .site-nav a.active { color: var(--gold-lite); }

/* ---------- 首页 Banner（大字排版） ---------- */
.hero {
    text-align: center;
    padding: 110px 28px 84px;
    background:
        radial-gradient(820px 400px at 50% -6%, rgba(220,183,95,.13), transparent 64%),
        transparent;
}
.hero .kicker {
    font-size: 13px; letter-spacing: 5px; color: var(--gold);
    text-transform: uppercase; margin-bottom: 22px; font-weight: 600;
}
.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 80px);
    font-weight: 700; letter-spacing: -.02em; line-height: 1.08;
    background: linear-gradient(120deg, #f6e3ae 15%, #dcb75f 55%, #a5823a 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
    margin: 0 auto; max-width: 640px;
    color: var(--muted); font-size: clamp(17px, 2.2vw, 21px);
    letter-spacing: .5px; line-height: 1.6; font-weight: 400;
}
.hero .divider {
    width: 1px; height: 56px; margin: 44px auto 0;
    background: linear-gradient(180deg, var(--gold), transparent);
}

/* ---------- 区块标题 ---------- */
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 20px; margin: 72px 0 32px; flex-wrap: wrap;
}
.section-head h2 {
    margin: 0; font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700; letter-spacing: -.015em; color: var(--text); line-height: 1.15;
}
.section-head .count { color: var(--muted); font-size: 14px; }

/* ---------- 产品卡片网格 ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 28px;
}
.card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.6,.2,1), border-color .35s, box-shadow .35s;
    display: flex; flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(220,183,95,.45);
    box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(220,183,95,.12);
}
.card .thumb {
    position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2);
}
.card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb .noimg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: #6d6249; font-size: 13px; letter-spacing: 2px;
    background: repeating-linear-gradient(45deg, #14100a, #14100a 10px, #171208 10px, #171208 20px);
}
.card .thumb .cat {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 13px; border-radius: 980px; font-size: 11.5px; letter-spacing: 1px;
    background: rgba(13,10,6,.78); color: var(--gold-lite); font-weight: 600;
    border: 1px solid rgba(220,183,95,.35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
    margin: 0 0 6px; font-size: 19px; font-weight: 650;
    letter-spacing: -.01em; color: var(--text);
}
.card .sub { margin: 0 0 12px; font-size: 13px; color: var(--gold); letter-spacing: .3px; font-weight: 500; }
.card .desc {
    margin: 0 0 18px; font-size: 14px; color: var(--muted);
    line-height: 1.7; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid rgba(222,184,96,.12);
}
.card .price { color: var(--gold-lite); font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.card .price small { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.card .price.none { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 1px; }

.btn-detail {
    display: inline-block; padding: 7px 18px; border-radius: 980px;
    border: 1px solid rgba(220,183,95,.4); color: var(--gold-lite);
    font-size: 13px; font-weight: 500; letter-spacing: .5px; transition: .25s;
}
.btn-detail:hover {
    background: var(--gold-grad); color: #17110a; border-color: transparent; font-weight: 600;
}

/* ---------- 产品展示页 ---------- */
.breadcrumb {
    padding: 26px 0 0; font-size: 13px; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-lite); }
.breadcrumb span { margin: 0 8px; color: rgba(222,184,96,.25); }

.product-hero {
    display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px;
    padding: 40px 0 72px; align-items: start;
}
.gallery-main {
    border: 1px solid var(--line);
    border-radius: 24px; overflow: hidden;
    background: var(--bg-2); aspect-ratio: 4/3; position: relative; cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.gallery-main:hover img { transform: scale(1.015); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gallery-thumbs button {
    width: 80px; height: 80px; padding: 0; cursor: pointer; overflow: hidden;
    border: 2px solid transparent; border-radius: 14px; background: var(--bg-2);
    transition: .25s; opacity: .75;
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.on { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 700; letter-spacing: -.02em; line-height: 1.12;
    background: linear-gradient(120deg, #f6e3ae 10%, #dcb75f 60%, #b18c3f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product-info .subtitle {
    margin: 0 0 26px; color: var(--muted); font-size: 17px; letter-spacing: .3px;
}
.product-info .meta {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px;
}
.chip {
    padding: 5px 14px; border-radius: 980px; font-size: 12.5px;
    border: 1px solid var(--line); color: var(--muted); background: rgba(222,184,96,.05);
}
.chip.gold { background: rgba(220,183,95,.14); color: var(--gold-lite); border-color: rgba(220,183,95,.35); font-weight: 500; }
.product-info .summary {
    color: #d9cfae; font-size: 15px; line-height: 1.9;
    padding: 18px 20px;
    background: rgba(222,184,96,.06);
    border-left: 2px solid var(--gold);
    border-radius: 0 12px 12px 0;
    margin-bottom: 30px;
}
.price-block { margin-bottom: 30px; }
.price-block .num {
    font-size: 36px; font-weight: 700; color: var(--gold-lite); letter-spacing: 0;
}
.price-block .num small { font-size: 16px; margin-right: 3px; color: var(--muted); font-weight: 500; }
.price-block .note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
    display: inline-block; padding: 13px 36px; border-radius: 980px;
    background: var(--gold-grad);
    color: #17110a; font-weight: 700; letter-spacing: 1px; font-size: 15px;
    border: 0; transition: .25s;
    box-shadow: 0 6px 24px rgba(207,166,75,.35);
}
.btn-gold:hover { filter: brightness(1.08); color: #17110a; transform: translateY(-1px); }
.btn-line {
    display: inline-block; padding: 13px 32px; border-radius: 980px;
    border: 1px solid rgba(220,183,95,.4); color: var(--gold-lite);
    letter-spacing: 1px; font-size: 14.5px; font-weight: 500; transition: .25s;
}
.btn-line:hover { background: rgba(220,183,95,.1); color: var(--gold-lite); }

/* ---------- 产品详情页（竖屏优先 · 独立单列） ---------- */
.pd-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.pd-breadcrumb { padding: 0; }
.pd-breadcrumb .pd-wrap { padding-top: 22px; }

.pd-hero { padding-top: 18px; }
.pd-gallery {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    border-radius: 22px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-slide {
    flex: 0 0 100%; scroll-snap-align: center;
    border: 1px solid var(--line);
    border-radius: 22px; overflow: hidden; background: var(--bg-2);
    aspect-ratio: 4/5; cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}
.pd-slide img { width: 100%; height: 100%; object-fit: contain; }
.pd-noimg {
    display: flex; align-items: center; justify-content: center;
    color: #6d6249; letter-spacing: 3px; font-size: 14px; cursor: default;
}
.pd-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.pd-dots i {
    width: 7px; height: 7px; border-radius: 50%; background: rgba(222,184,96,.25);
    cursor: pointer; transition: .25s;
}
.pd-dots i.on { background: var(--gold); width: 20px; border-radius: 980px; }

.pd-info { padding: 36px 0 6px; }
.pd-info h1 {
    margin: 16px 0 10px;
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
    background: linear-gradient(120deg, #f6e3ae 10%, #dcb75f 60%, #b18c3f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pd-info .subtitle { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; }
.pd-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-price .num { font-size: 32px; font-weight: 700; color: var(--gold-lite); }
.pd-price .num small { font-size: 15px; color: var(--muted); font-weight: 500; margin-right: 2px; }
.pd-price .note { font-size: 13px; color: var(--muted); }
.pd-summary { margin: 0; color: #d9cfae; font-size: 15px; line-height: 1.9; }

.pd-section { padding: 38px 0 0; }
.pd-sec-title {
    margin: 0 0 24px; font-size: 24px; font-weight: 700;
    letter-spacing: -.015em; color: var(--gold-lite);
}
.pd-sec-title::after {
    content: ''; display: block; width: 40px; height: 3px; border-radius: 2px;
    margin-top: 10px; background: var(--gold-grad);
}
.pd-stack { display: flex; flex-direction: column; gap: 18px; }
.pd-shot {
    margin: 0; border: 1px solid var(--line);
    border-radius: 18px; overflow: hidden;
    background: var(--bg-2); box-shadow: var(--shadow-sm);
}
.pd-shot img { width: 100%; cursor: zoom-in; }
.pd-shot figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); text-align: center; }
.pd-cta { padding: 46px 0 10px; display: flex; gap: 14px; flex-wrap: wrap; }

.pd-subnav {
    position: sticky; top: 52px; z-index: 40;
    background: rgba(13,10,6,.78);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid rgba(222,184,96,.12);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.pd-subnav.on { opacity: 1; transform: none; pointer-events: auto; }
.pd-subnav-in {
    max-width: 720px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.pd-subnav-name {
    font-size: 15px; font-weight: 650; color: var(--gold-lite);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-subnav .btn-detail { flex-shrink: 0; }

/* ---------- 详情正文 ---------- */
.detail-body {
    padding: 56px 0 20px;
}
.detail-body h2.title {
    text-align: center; font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700; letter-spacing: -.015em;
    color: var(--text); margin: 0 0 10px;
}
.detail-body .line {
    width: 48px; height: 3px; margin: 0 auto 40px; border-radius: 2px;
    background: var(--gold-grad);
}
.rich {
    max-width: 780px; margin: 0 auto;
    font-size: 16px; line-height: 2; color: #d9cfae;
}
.rich h3 {
    color: var(--gold-lite); font-size: 22px; margin: 44px 0 16px;
    font-weight: 700; letter-spacing: -.01em;
    padding-left: 16px; border-left: 3px solid var(--gold);
}
.rich h4 { color: var(--gold); font-size: 17px; margin: 30px 0 10px; font-weight: 600; }
.rich p { margin: 0 0 18px; }
.rich ul, .rich ol { padding-left: 26px; margin: 0 0 20px; }
.rich li { margin-bottom: 8px; }
.rich blockquote {
    margin: 28px 0; padding: 18px 26px; color: var(--muted); font-size: 15px;
    border-left: 3px solid var(--gold);
    background: rgba(222,184,96,.06); border-radius: 0 16px 16px 0;
}
.rich img { border-radius: 18px; margin: 24px 0; border: 1px solid var(--line); }
.rich a { border-bottom: 1px dashed var(--gold-deep); }
.rich table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.rich th, .rich td { border-bottom: 1px solid rgba(222,184,96,.14); padding: 12px 16px; text-align: left; }
.rich th { color: var(--gold-lite); font-weight: 600; }
.rich hr { border: 0; border-top: 1px solid rgba(222,184,96,.14); margin: 40px 0; }

/* ---------- 相关推荐 ---------- */
.related { margin-top: 72px; padding-top: 0; }

/* ---------- 空状态 ---------- */
.empty {
    text-align: center; padding: 120px 24px; color: var(--muted);
}
.empty .mark {
    font-size: 40px; color: var(--gold); margin-bottom: 20px; letter-spacing: 8px;
}
.empty h2 { font-size: 24px; color: var(--text); font-weight: 650; margin: 0 0 10px; letter-spacing: -.01em; }

/* ---------- 页脚 ---------- */
.site-footer {
    margin-top: 96px; border-top: 1px solid rgba(222,184,96,.12);
    background: var(--bg-2);
    padding: 44px 0 52px; text-align: center; color: #8d8168; font-size: 13px;
}
.site-footer .fline {
    width: 48px; height: 3px; margin: 0 auto 22px; border-radius: 2px;
    background: var(--gold-grad); opacity: .7;
}
.site-footer a { color: var(--gold-deep); }
.site-footer a:hover { color: var(--gold); }

/* ---------- 灯箱 ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 999; display: none;
    background: rgba(5,4,2,.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    align-items: center; justify-content: center;
}
.lightbox.on { display: flex; }
.lightbox img {
    max-width: 92vw; max-height: 88vh; object-fit: contain;
    border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lightbox .close, .lightbox .prev, .lightbox .next {
    position: absolute; background: rgba(222,184,96,.12); border: 1px solid rgba(222,184,96,.3);
    color: var(--gold-lite); cursor: pointer; border-radius: 50%;
    width: 46px; height: 46px; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.lightbox .close:hover, .lightbox .prev:hover, .lightbox .next:hover { background: rgba(220,183,95,.28); }
.lightbox .close { top: 24px; right: 28px; }
.lightbox .prev  { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox .next  { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox .cap {
    position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
    color: rgba(245,236,216,.65); font-size: 13px; letter-spacing: 1px;
}

/* ---------- 滚动渐显 ---------- */
.reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.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: 900px) {
    .product-hero { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 72px 20px 56px; }
    .container { padding: 0 20px; }
    .site-header .inner { padding: 0 20px; height: 50px; }
    .brand .tagline { display: none; }
    .site-nav { gap: 18px; font-size: 13px; }
    .section-head { margin: 52px 0 24px; }
    .pd-subnav { top: 50px; }
    .related { margin-top: 52px; }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; gap: 20px; }
    .card .body { padding: 18px 18px 20px; }
    .gallery-main { border-radius: 16px; }
    .pd-wrap { padding: 0 16px; }
    .pd-slide { border-radius: 16px; }
    .pd-cta .btn-gold, .pd-cta .btn-line { flex: 1; text-align: center; }
    .pd-subnav-in { padding: 9px 16px; }
}

/* ---------- 产品独立介绍页（溯源卡 · /product/{slug}/{code}） ---------- */
.pv-body {
    min-height: 100vh;          /* 老浏览器回退 */
    min-height: 100svh;         /* 移动端地址栏收起/展开时更准确 */
    display: flex;
    flex-direction: column;     /* 让卡片可自然滚动而不被裁切 */
    padding: 60px 16px 44px;    /* 顶部给返回按钮留出空间 */
    background: var(--bg);
    position: relative;
    /* 注意：不能设 overflow:hidden，否则内容超高时无法滚动 */
}
.pv-bg {
    position: fixed; inset: -48px; z-index: 0;
    background: var(--pv-bg, none) center / cover no-repeat;
    filter: blur(26px) brightness(.38) saturate(1.15);
    transform: scale(1.1);
    pointer-events: none;
}
.pv-back {
    position: fixed; top: 18px; left: 20px; z-index: 3;
    color: rgba(245, 236, 216, .68); font-size: 13px; letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(220, 183, 95, .32); border-radius: 999px;
    padding: 7px 17px;
    background: rgba(20, 14, 6, .45);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: color .2s, border-color .2s;
}
.pv-back:hover { color: var(--gold-lite); border-color: var(--gold); }
.pv-stage {
    position: relative; z-index: 1;
    width: 100%;
    /* margin:auto 是关键：内容不足一屏时在 body 内垂直居中；
       内容超过一屏时，body 高度随内容增长，stage 变为顶部对齐、可整页滚动，
       不会把卡片上下两端裁掉。 */
    margin: auto;
    display: flex; justify-content: center;
    min-width: 0;
}
.pv-card {
    width: min(440px, 96vw);
    background: linear-gradient(165deg, rgba(44, 33, 15, .88), rgba(18, 13, 6, .94));
    border: 1px solid rgba(220, 183, 95, .42);
    border-radius: 20px;
    padding: 38px 32px 34px;
    text-align: center;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(242, 215, 142, .12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pv-kicker {
    font-size: 11px; letter-spacing: 5px;
    color: var(--gold-lite); opacity: .85;
    margin-bottom: 16px;
}
.pv-title {
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    font-size: clamp(26px, 6vw, 34px); font-weight: 700; letter-spacing: 2px;
    margin: 0 0 10px; line-height: 1.3;
    background: linear-gradient(180deg, #f6e3a8, var(--gold) 58%, #a9853e);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pv-sub {
    color: var(--muted); font-size: 14px; letter-spacing: 2px;
    margin: 0 0 26px;
}
/* ===== 溯源卡 · 扇面画廊（左右滑动，中间主图清晰，两侧虚化区分主次） ===== */
.pv-fanwrap {
    position: relative;
    width: min(100%, 360px);
    margin: 0 auto;
}
.pv-fan {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 左右各让出 (100% - 68%)/2 的间距作为"露边"，卡片占满内容区后，第一张在静止时即正对居中 */
    padding: 14px calc((100% - 68%) / 2) 16px;
}
.pv-fan::-webkit-scrollbar { display: none; height: 0; }
.pv-fan-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid rgba(220, 183, 95, .30);
    background:
        radial-gradient(120% 120% at 50% 40%, rgba(220, 183, 95, .10), rgba(10, 7, 2, .30));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
    transform-origin: center center;
    transition: filter .3s ease, opacity .3s ease, box-shadow .3s ease;
    will-change: transform, opacity, filter;
    cursor: grab;
}
.pv-fan-item.cur {
    box-shadow: 0 18px 44px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(242, 215, 142, .22),
        0 0 0 1px rgba(242, 215, 142, .30);
}
.pv-fan-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;   /* 让图片不拦截拖拽 */
}
.pv-fan-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(220, 183, 95, .45);
    background: rgba(13, 10, 6, .55);
    backdrop-filter: blur(6px);
    color: var(--gold-lite);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 2px;
    transition: background .2s, color .2s, border-color .2s;
}
.pv-fan-arrow:hover { background: rgba(220, 183, 95, .2); color: #fff; border-color: var(--gold); }
.pv-fan-arrow.prev { left: -6px; }
.pv-fan-arrow.next { right: -6px; }
.pv-fan-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: -8px 0 22px;
}
.pv-fan-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(220, 183, 95, .28);
    transition: background .25s, transform .25s;
    cursor: pointer;
}
.pv-fan-dots i.on { background: var(--gold); transform: scale(1.3); }
/* 单张：去掉两侧露边，让图片在中间独立展示 */
.pv-fan.solo { justify-content: center; padding-left: 0; padding-right: 0; }
.pv-fan.solo .pv-fan-item { flex-basis: 78%; }
.pv-noimg {
    max-width: 280px; aspect-ratio: 1 / 1;
    margin: 0 auto 26px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); letter-spacing: 4px; font-size: 13px;
    border: 1px dashed rgba(220, 183, 95, .3); border-radius: 12px;
}
.pv-attrs { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; }
.pv-attrs li {
    display: flex; align-items: baseline; gap: 6px;
    border: 1px solid rgba(220, 183, 95, .36);
    background: rgba(220, 183, 95, .07);
    border-radius: 9px;
    padding: 11px 17px; margin-bottom: 9px;
    font-size: 14px; line-height: 1.6;
}
.pv-attrs li:last-child { margin-bottom: 0; }
.pv-attrs .k { color: var(--gold-lite); letter-spacing: 1px; flex: none; }
.pv-attrs .v { color: var(--text); word-break: break-all; }
.pv-intro {
    color: var(--muted); font-size: 14.5px; line-height: 2;
    text-align: justify; margin: 0 0 26px;
}
.pv-btn {
    display: inline-block; margin-top: 24px;
    padding: 13px 52px; border-radius: 999px;
    background: var(--gold-grad); color: #241a06;
    font-weight: 700; font-size: 15px; letter-spacing: 5px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(220, 183, 95, .32);
    transition: transform .2s, box-shadow .2s;
}
.pv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(220, 183, 95, .45);
    color: #241a06;
}
@media (max-width: 480px) {
    .pv-card { padding: 30px 22px 28px; border-radius: 16px; }
    .pv-back { top: 12px; left: 12px; }
}

/* ---------- 溯源卡详情弹窗（pv-modal） ---------- */
.pv-modal {
    position: fixed; inset: 0; z-index: 40;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(8, 6, 3, .68);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}
.pv-modal.on { opacity: 1; visibility: visible; }
.pv-modal-box {
    width: min(680px, 100%);
    max-height: min(82vh, 640px);
    display: flex; flex-direction: column;
    background:
        linear-gradient(165deg, rgba(46, 34, 16, .96), rgba(17, 12, 5, .99));
    border: 1px solid rgba(220, 183, 95, .44);
    border-radius: 18px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(242, 215, 142, .14);
    overflow: hidden;
    transform: translateY(14px) scale(.98);
    transition: transform .24s ease;
}
.pv-modal.on .pv-modal-box { transform: translateY(0) scale(1); }
.pv-modal-head {
    flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid rgba(220, 183, 95, .2);
}
.pv-modal-title {
    font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    font-size: 19px; font-weight: 700; letter-spacing: 1px;
    color: var(--gold-lite);
    margin: 0; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pv-modal-close {
    flex: none; width: 30px; height: 30px; line-height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(220, 183, 95, .4); background: transparent;
    color: var(--gold-lite); font-size: 16px; cursor: pointer;
    transition: background .2s, color .2s;
}
.pv-modal-close:hover { background: rgba(220, 183, 95, .18); }
.pv-modal-body {
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 26px 26px;
    -webkit-overflow-scrolling: touch;
}
.pv-modal-body .rich { color: #ece2c8; }
.pv-modal-empty {
    color: var(--muted); font-size: 14px; text-align: center;
    padding: 40px 10px; letter-spacing: 1px;
}
@media (max-width: 480px) {
    .pv-modal { padding: 10px; align-items: flex-end; }
    .pv-modal-box {
        max-height: 86vh; border-radius: 16px;
        width: 100%; max-width: none;
    }
    .pv-modal-body { padding: 4px 18px 20px; }
}
