/**
 * 专利详情页 · 页面骨架（2026-11-20 重构）
 * ---------------------------------------------------------------------------
 * 版式：左「毛玻璃承托 + 整张证书（不裁切）」｜右「交易卡（吸顶）」｜下「模块区」。
 *
 * 颜色纪律：
 *   - 页面底色走全站 #f6f8fa，⛔ 不要在这里再上米色/纸色；只有 .pcert 有纸面；
 *   - 三型色（发明红/实用新型绿/外观蓝）只出现在证书线条与类型标签上，
 *     页面其余部分一律用品牌色 #423dff 与中性灰，避免「一张皮」。
 *
 * 依赖：patent-cert.css（纸面）在前，本文件在后。
 */

.pdetail {
    position: relative;
    padding: 18px 0 44px;
}

/* 只在半屏内铺两团极淡色晕，毛玻璃才有东西可「磨」 */
.pdetail::before {
    content: "";
    position: absolute;
    inset: -80px 0 auto;
    height: 420px;
    background:
        radial-gradient(48% 100% at 16% 0, rgba(66, 61, 255, .10), transparent 70%),
        radial-gradient(44% 100% at 84% 6%, rgba(29, 158, 117, .08), transparent 72%);
    pointer-events: none;
}

.pdetail__inner {
    position: relative;
    max-width: var(--container-max, 1250px);
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- 面包屑 ---------- */
.pcert-crumb {
    font-size: 12px;
    color: #9AA1B1;
    margin: 0 2px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pcert-crumb a { color: #9AA1B1; text-decoration: none; }
.pcert-crumb a:hover { color: #423DFF; }
.pcert-crumb span.sep { margin: 0 6px; opacity: .5; }
.pcert-crumb .cur { color: #5A6472; }

/* ---------- 两栏 ---------- */
.pdetail__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    grid-template-areas: "data cert buy";
    gap: 20px;
    align-items: start;
}

/* ---------- 毛玻璃承托 ---------- */
.pdetail__stage {
    position: relative;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .44));
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 22px 44px -26px rgba(23, 29, 56, .30),
        0 6px 16px -12px rgba(23, 29, 56, .12);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

/* 三列：左数据 / 中证书 / 右交易 */
.pdetail__media { grid-area: cert; min-width: 0; }
.pdetail__side {
    grid-area: data;
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
}

/* 装裱衬：白色内衬 + 细边框，证书居中；玻璃退回成底色 */
.pdetail__mat {
    max-width: 690px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(31, 35, 41, .07);
    border-radius: 8px;
    box-shadow: 0 14px 28px -20px rgba(23, 29, 56, .38);
}

.pdetail__mat .pcert {
    box-shadow: none;
    border-radius: 0;
}

.pdetail__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 10px;
}
.pdetail__bar-label { font-size: 12px; color: #5A6472; letter-spacing: .04em; }
.pdetail__bar-badge {
    font-size: 11px;
    color: #423DFF;
    background: rgba(66, 61, 255, .09);
    border: 1px solid rgba(66, 61, 255, .16);
    border-radius: 20px;
    padding: 2px 9px;
}

/* 参数速览：不读完整张纸也能扫到关键项 */
.pspec {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(31, 35, 41, .07);
    border-radius: 12px;
}
.pspec span {
    font-size: 12px;
    color: #9AA1B1;
    padding: 0 12px;
    border-right: 1px solid rgba(31, 35, 41, .08);
}
.pspec span + span b { margin-left: 3px; }
.pspec span:first-child { padding-left: 0; }
.pspec span:last-child { border-right: 0; padding-right: 0; }
.pspec b { font-weight: 400; color: #1F2329; }

/* 展示声明在新版页面里改为中性色（原暖色调随纸面一起退场） */
.pdetail .pcert-note {
    border-left-color: #C9CEDA;
    color: #7A8494;
}

/* ---------- 交易卡 ---------- */
.pdeal {
    grid-area: buy;
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1px solid rgba(31, 35, 41, .07);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 36px -26px rgba(23, 29, 56, .28);
}

.pdeal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pdeal__tag { font-size: 11px; line-height: 1.7; padding: 1px 8px; border-radius: 5px; }
.pdeal__tag--sale { color: #fff; background: #423DFF; }
.pdeal__tag--sale.is-off { color: #6B7280; background: #EEF0F4; }
.pdeal__tag--type { color: #A6241C; background: rgba(166, 36, 28, .07); border: 1px solid rgba(166, 36, 28, .20); }
.pdeal__tag--type[data-ptype="2"] { color: #2F6B4A; background: rgba(47, 107, 74, .07); border-color: rgba(47, 107, 74, .22); }
.pdeal__tag--type[data-ptype="3"] { color: #2A5C99; background: rgba(42, 92, 153, .07); border-color: rgba(42, 92, 153, .22); }
.pdeal__tag--ok { color: #1D9E75; background: rgba(29, 158, 117, .09); border: 1px solid rgba(29, 158, 117, .22); }

.pdeal__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #1F2329;
    margin: 0 0 12px;
}

.pdeal__priceline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(31, 35, 41, .07);
}
.pdeal__price {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    color: #D50032;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
.pdeal__price--text { font-size: 20px; color: #5A6472; }
.pdeal__pricetip { font-size: 11px; color: #9AA1B1; }

.pdeal__kv { margin: 10px 0 0; padding: 0; }
.pdeal__kv > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dotted rgba(31, 35, 41, .10);
    font-size: 13px;
}
.pdeal__kv dt { color: #9AA1B1; flex: 0 0 auto; }
.pdeal__kv dd { margin: 0; color: #1F2329; text-align: right; }

.pdeal__buy {
    display: block;
    margin-top: 14px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #6B66FF, #423DFF);
    box-shadow: 0 10px 20px -12px rgba(66, 61, 255, .75);
    transition: opacity .15s ease;
}
.pdeal__buy:hover { opacity: .93; }
.pdeal__buy.is-disabled {
    background: #EEF0F4;
    color: #9AA1B1;
    box-shadow: none;
    cursor: not-allowed;
}

.pdeal__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    margin-top: 8px;
}
.pdeal__bag { margin: 0; display: flex; }
.pdeal__ghost {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(66, 61, 255, .28);
    background: #fff;
    color: #423DFF;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.pdeal__ghost:hover { border-color: rgba(66, 61, 255, .55); }
.pdeal__ghost:disabled { color: #9AA1B1; border-color: rgba(31, 35, 41, .10); cursor: not-allowed; }

/* 收藏控件在交易卡里按钮化（形态仍由 .ip-card__fav 决定） */
.pdeal .ip-card__fav {
    width: 100%;
    height: 38px;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(31, 35, 41, .10);
    border-radius: 10px;
    background: #fff;
}
.pdeal .ip-card__fav:hover { background: #F7F8FA; }

.pdeal__gua {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(31, 35, 41, .07);
    list-style: none;
}
.pdeal__gua li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5A6472;
}
.pdeal__gua li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1D9E75;
    flex: 0 0 5px;
}

.pdeal__seller {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 35, 41, .07);
}
.pdeal__avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 61, 255, .10);
    color: #423DFF;
    font-size: 12px;
}
.pdeal__sm { flex: 1; min-width: 0; }
.pdeal__sm b { display: block; font-size: 12.5px; font-weight: 500; color: #1F2329; }
.pdeal__sm span { font-size: 11px; color: #9AA1B1; }
.pdeal__ask {
    font-size: 12px;
    color: #423DFF;
    text-decoration: none;
    border: 1px solid rgba(66, 61, 255, .28);
    border-radius: 8px;
    padding: 5px 11px;
    white-space: nowrap;
}
.pdeal__ask:hover { border-color: rgba(66, 61, 255, .55); }

/* ---------- 模块区 ---------- */
/* 下方：主栏（FAQ）+ 侧栏（同类在售） */
.pdetail__mods {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}
.pdetail__mods-main,
.pdetail__mods-side { min-width: 0; }

.pmod {
    background: linear-gradient(155deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .66));
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 18px 36px -28px rgba(23, 29, 56, .30);
}

.pmod__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.pmod__h h3 { margin: 0; font-size: 14px; font-weight: 500; color: #1F2329; }
.pmod__h span { font-size: 11px; color: #9AA1B1; }

.pmod__kv { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; }
.pmod__kv span { color: #9AA1B1; }
.pmod__kv b { font-weight: 400; color: #1F2329; }
.pmod__hi { color: #423DFF !important; }

.pmod__track {
    height: 6px;
    border-radius: 4px;
    background: #E7EBF2;
    overflow: hidden;
    margin: 9px 0 5px;
}
.pmod__track i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6B66FF, #423DFF);
}
.pmod__scale { display: flex; justify-content: space-between; font-size: 11px; color: #9AA1B1; }

.pmod__split {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 35, 41, .07);
}
.pmod__split span { color: #9AA1B1; }
.pmod__split b { font-weight: 400; color: #1F2329; }

.pmod__hint { margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: #9AA1B1; }

/* 核验清单 */
.pmod__check { list-style: none; margin: 0; padding: 0; }
.pmod__check li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: #374151;
}
.pmod__check i {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-style: normal;
}
.pmod__check li.is-ok i { background: rgba(29, 158, 117, .12); color: #1D9E75; }
.pmod__check li.is-off i { background: rgba(192, 57, 43, .12); color: #C0392B; }
.pmod__check-label { flex: 0 0 auto; }
.pmod__check-val {
    margin-left: auto;
    color: #9AA1B1;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 交易流程 */
.pflow { list-style: none; margin: 0; padding: 0; display: grid; }
.pflow__item { position: relative; padding: 0 0 14px 32px; }
.pflow__item::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 26px;
    bottom: 0;
    width: 1px;
    background: rgba(66, 61, 255, .20);
}
.pflow__item:last-child { padding-bottom: 0; }
.pflow__item:last-child::after { display: none; }
.pflow__num {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(66, 61, 255, .35);
    color: #423DFF;
    font-size: 11px;
}
.pflow__item b { display: block; font-size: 12px; font-weight: 500; color: #1F2329; margin-bottom: 3px; }
.pflow__item p { margin: 0; font-size: 11px; line-height: 1.6; color: #9AA1B1; }

/* 同类在售 */
.prel { display: grid; grid-template-columns: 1fr; gap: 8px; }
.prel__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px;
    background: #fff;
    border: 1px solid rgba(31, 35, 41, .07);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 22px -20px rgba(23, 29, 56, .40);
    transition: border-color .15s ease;
}
.prel__card:hover { border-color: rgba(66, 61, 255, .30); }
.prel__title { font-size: 12px; line-height: 1.5; color: #1F2329; height: 36px; overflow: hidden; }
.prel__price { font-size: 13px; color: #D50032; }
.prel__price.is-text { color: #5A6472; }
.prel__meta { font-size: 10px; color: #9AA1B1; }

/* FAQ（原生 details） */
.pfaq__item { border-bottom: 1px solid rgba(31, 35, 41, .07); }
.pfaq__item:last-child { border-bottom: 0; }
.pfaq__item summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    font-size: 12px;
    color: #1F2329;
    cursor: pointer;
    list-style: none;
}
.pfaq__item summary::-webkit-details-marker { display: none; }
.pfaq__item summary::after { content: "+"; color: #9AA1B1; }
.pfaq__item[open] summary::after { content: "–"; }
.pfaq__item p { margin: 0 0 10px; font-size: 11px; line-height: 1.75; color: #5A6472; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    /* 两列：凭证 + 交易；数据栏整行落到下方，横向三张 */
    .pdetail__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas: "cert buy" "data data";
        row-gap: 16px;
    }
    .pdetail__side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pdetail__mods { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 899px) {
    /* 单列：交易卡 → 证书 → 数据（价格与 CTA 必须在首屏） */
    .pdetail__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "buy" "cert" "data";
        row-gap: 16px;
    }
    .pdeal { position: static; }
    .pdetail__side { grid-template-columns: 1fr; }
    .pdetail__mods { grid-template-columns: 1fr; }
    .pdetail__mat { max-width: none; }
}

@media (max-width: 720px) {
    .pdetail__stage { padding: 10px; border-radius: 16px; }
    .pdetail__mods { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .pdeal__buy,
    .pdeal__ghost,
    .prel__card { transition: none; }
}

/* ---------- 打印：只留证书 ---------- */
@media print {
    .pdetail { padding: 0; }
    .pdetail::before,
    .pcert-crumb,
    .pdetail__bar,
    .pdeal,
    .pdetail .pcert-note,
    .pdetail__mods { display: none; }
    .pdetail__grid { display: block; }
    .pdetail__stage {
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
