/* =============================================================================
 * 实验室订阅门禁样式（lab.phyclub.cn）
 * -----------------------------------------------------------------------------
 * 只在目录页与付费墙上用，类名统一 lab- 前缀，不去动站点现有的 .physics-catalog-*。
 * 配色跟随物理邪会外壳：深空底 / 金色能量 / 青橙强调，与浅色画布是两套口径。
 * ========================================================================== */

/* ── 卡片右上角「订阅」角标 ─────────────────────────────────────────────── */
.lab-pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 3px 9px;
    border-radius: 999px;
    font: 900 11px/1.5 -apple-system, "PingFang SC", system-ui, sans-serif;
    letter-spacing: 0.08em;
    color: #0b0f18;
    background: linear-gradient(135deg, #ffd98a, #e8c86a 55%, #c99a3d);
    box-shadow: 0 4px 14px rgba(232, 200, 106, 0.32);
    pointer-events: none;
    white-space: nowrap;
}

/* 卡片 media 区需要 relative 才能定位角标 —— 站点已设过就不重复 */
.physics-catalog-card__media { position: relative; }

/* ── 右下角登录 / 订阅浮标 ──────────────────────────────────────────────── */
.lab-dock {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 9px 15px;
    border-radius: 13px;
    text-decoration: none;
    background: rgba(10, 15, 26, 0.9);
    border: 1px solid rgba(232, 200, 106, 0.34);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.lab-dock:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 200, 106, 0.68);
}

.lab-dock b {
    font: 900 13px/1.35 -apple-system, "PingFang SC", system-ui, sans-serif;
    color: #e8c86a;
    letter-spacing: 0.02em;
}

.lab-dock span {
    font: 600 11px/1.4 -apple-system, "PingFang SC", system-ui, sans-serif;
    color: rgba(226, 232, 240, 0.66);
}

.lab-dock.is-active {
    border-color: rgba(74, 157, 143, 0.56);
}

.lab-dock.is-active b { color: #6fe0c6; }

@media (max-width: 720px) {
    .lab-dock { right: 12px; bottom: 12px; padding: 8px 12px; }
    .lab-dock b { font-size: 12px; }
}

/* ── 订阅墙 ─────────────────────────────────────────────────────────────── */
.lab-wall {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 13, 0.76);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lab-wall.is-open { display: flex; }

.lab-wall__card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 26px 26px 22px;
    border-radius: 20px;
    background: linear-gradient(168deg, #111a2c, #0a0f18 70%);
    border: 1px solid rgba(232, 200, 106, 0.24);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.62);
    animation: labWallIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes labWallIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.lab-wall__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font: 400 20px/1 sans-serif;
    color: rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.lab-wall__close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.lab-wall__eyebrow {
    font: 900 10.5px/1.6 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e8c86a;
}

.lab-wall__title {
    margin: 6px 0 8px;
    font: 900 21px/1.35 -apple-system, "PingFang SC", sans-serif;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.lab-wall__desc {
    margin: 0 0 18px;
    font: 500 13px/1.75 -apple-system, "PingFang SC", sans-serif;
    color: rgba(203, 213, 225, 0.72);
}

.lab-wall__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.lab-wall__plan {
    position: relative;
    padding: 13px 13px 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.lab-wall__plan.is-best {
    background: rgba(232, 200, 106, 0.07);
    border-color: rgba(232, 200, 106, 0.42);
}

.lab-wall__plan i {
    position: absolute;
    top: -8px;
    right: 9px;
    padding: 1px 7px;
    border-radius: 999px;
    font: 900 9.5px/1.7 -apple-system, "PingFang SC", sans-serif;
    font-style: normal;
    letter-spacing: 0.06em;
    color: #14100a;
    background: linear-gradient(135deg, #ffd98a, #e8c86a);
}

.lab-wall__plan-name {
    font: 700 12px/1.5 -apple-system, "PingFang SC", sans-serif;
    color: rgba(203, 213, 225, 0.8);
}

.lab-wall__plan-price {
    margin-top: 3px;
    font: 900 22px/1.2 -apple-system, "PingFang SC", sans-serif;
    color: #e8c86a;
}

.lab-wall__plan-price s {
    margin-left: 6px;
    font: 600 11px/1 sans-serif;
    color: rgba(148, 163, 184, 0.6);
}

.lab-wall__plan-note {
    margin-top: 6px;
    font: 500 10.5px/1.6 -apple-system, "PingFang SC", sans-serif;
    color: rgba(148, 163, 184, 0.62);
}

.lab-wall__loading {
    grid-column: 1 / -1;
    font: 600 12px/1.6 -apple-system, "PingFang SC", sans-serif;
    color: rgba(148, 163, 184, 0.7);
}

/* 登录墙里的三条说明：横排一行图标太挤，改成竖排「名字 + 一句解释」 */
.lab-wall__points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.lab-wall__point {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.lab-wall__point b {
    flex: 0 0 auto;
    min-width: 56px;
    font: 900 12px/1.5 -apple-system, "PingFang SC", sans-serif;
    color: #e8c86a;
}

.lab-wall__point span {
    font: 500 11.5px/1.6 -apple-system, "PingFang SC", sans-serif;
    color: rgba(203, 213, 225, 0.72);
}

.lab-wall__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lab-wall__primary {
    flex: 1 1 auto;
    min-width: 170px;
    padding: 11px 18px;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    font: 900 13px/1.4 -apple-system, "PingFang SC", sans-serif;
    letter-spacing: 0.02em;
    color: #0b0f18;
    background: linear-gradient(135deg, #ffd98a, #e8c86a 55%, #d3a94f);
    box-shadow: 0 10px 26px rgba(232, 200, 106, 0.24);
}

.lab-wall__primary:hover { filter: brightness(1.05); }

.lab-wall__hint {
    flex: 1 1 100%;
    font: 500 11px/1.5 -apple-system, "PingFang SC", sans-serif;
    color: rgba(148, 163, 184, 0.6);
}

@media (max-width: 480px) {
    .lab-wall__card { padding: 22px 18px 18px; }
    .lab-wall__title { font-size: 18px; }
    .lab-wall__plans { grid-template-columns: 1fr; }
}
