/* ===== 全局重置 ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    display: flex;
    flex-direction: column;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background-color: #f3ede7;
    background-image: url("images/beijing.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px 24px;
    transition: padding-right 0.3s ease;
}

/* ===== 页头 ===== */
.page-title {
    width: 100%;
    max-width: 378px;          /* 与卡片同宽，左对齐到卡片左边缘 */
    margin: 0 auto 14px;
    padding: 0 4px;
    text-align: left;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #111;
    font-family: "Songti SC", "Times New Roman", serif;
    line-height: 1.1;
    text-shadow: none;
    transition: color 0.35s ease;
}
.page-title b {
    flex: none;                /* 空间不足时不许压缩，「哲思」保持左右排列 */
    white-space: nowrap;
    font-weight: 900;
    font-size: 30px;
    letter-spacing: 1px;
    color: #111;
    font-family: "Songti SC", "Times New Roman", serif;
}

/* ===== 标题副文案跑马灯（仅首页带 .pt-marquee 的标题生效，不影响其他页面） ===== */
.page-title:has(.pt-marquee) {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.page-title .pt-sep {
    flex: none;
    white-space: nowrap;
    font-weight: 900;
    font-size: 17px;
    transform: translateY(-1px);
}
.pt-marquee {
    display: block;            /* 老内核无 :has 时退化为单独一行 */
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 15.5px;
    line-height: 1.4;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    animation: ptEnter 2.4s cubic-bezier(.22, .61, .36, 1) both;   /* 开场：从右侧滑入，由无到有 */
}
.pt-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: ptScroll 30s linear infinite;   /* 从右向左连续无缝轮播 */
}
.pt-copy {
    display: inline-block;
    padding-right: 4em;        /* 两份文案之间的呼吸空隙 */
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #666;               /* 比主标题浅一档的灰 */
}
@keyframes ptScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes ptEnter {
    from { transform: translateX(55%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-marquee { animation: none; }
    .pt-track { animation: none; }
}

/* ===== 舞台外层 ===== */
.stage-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    padding: 0 12px;
}

.stage {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 378px;          /* 放大 5%（原 360px） */
    min-height: 460px;
    position: relative;
    perspective: 1400px;
    perspective-origin: center center;
}

/* ===== 左右切换箭头 ===== */
.nav-arrow {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(184, 164, 140, 0.35);
    background: rgba(255, 252, 248, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    padding-bottom: 6px;
    color: #8a7660;
    font-family: "Times New Roman", Georgia, serif;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.nav-arrow:hover {
    background: #b8a48c;
    border-color: #b8a48c;
    color: #fff;
    transform: scale(1.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.nav-arrow:active { transform: scale(0.94); }

/* ===== 卡片 ===== */
.card {
    width: 100%;
    max-width: 378px;         /* 放大 5%（原 360px） */
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    padding: 20px 18px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 3px solid #ffffff;
    box-shadow:
        0 0 0 1px rgba(180, 155, 120, 0.25),
        0 0 22px 5px rgba(255, 255, 255, 0.40),
        0 3px 6px rgba(60, 45, 30, 0.12),
        0 14px 36px rgba(60, 45, 30, 0.18),
        0 36px 72px rgba(60, 45, 30, 0.10);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(180, 155, 120, 0.45),
        0 0 30px 8px rgba(255, 255, 255, 0.55),
        0 6px 12px rgba(60, 45, 30, 0.15),
        0 22px 52px rgba(60, 45, 30, 0.24),
        0 52px 96px rgba(60, 45, 30, 0.14);
}
.stage .card { cursor: pointer; }

.card::before {
    content: '';
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(180, 155, 120, 0.55);
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(180, 155, 120, 0.18);
    background:
        radial-gradient(circle at 0 0,      rgba(180,155,120,0.7) 2.5px, transparent 3px),
        radial-gradient(circle at 100% 0,   rgba(180,155,120,0.7) 2.5px, transparent 3px),
        radial-gradient(circle at 0 100%,   rgba(180,155,120,0.7) 2.5px, transparent 3px),
        radial-gradient(circle at 100% 100%,rgba(180,155,120,0.7) 2.5px, transparent 3px);
    background-size: 100% 100%;
}
.card:hover::before { border-color: rgba(180, 155, 120, 0.8); }

.card::after {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 64px;
    opacity: 0.08;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.card:hover::after { opacity: 0.16; }

.bg-scene-1::after  { content: '⛰️'; }
.bg-scene-2::after  { content: '🏔️'; }
.bg-scene-3::after  { content: '🍁'; }
.bg-scene-4::after  { content: '🌧️'; }
.bg-scene-5::after  { content: '🌸'; }
.bg-scene-6::after  { content: '❄️'; }
.bg-scene-7::after  { content: '🌅'; }
.bg-scene-8::after  { content: '🌙'; }
.bg-scene-9::after  { content: '🎋'; }
.bg-scene-10::after { content: '🪷'; }
.bg-scene-11::after { content: '🏜️'; }
.bg-scene-12::after { content: '🌺'; }

/* ============================================================
   ===== 12 种背景 =====
   ============================================================ */
.bg-scene-1  { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.65) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #d58cde 80%, #d58cde 100%); }
.bg-scene-2  { background: radial-gradient(ellipse at 20% 0%, rgba(120,175,140,0.20) 0%, transparent 55%), linear-gradient(160deg, #26332b 0%, #1c2620 60%, #131a16 100%); }
.bg-scene-3  { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.5) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #e5e098 80%, #e5e098 100%); }
.bg-scene-4  { background: radial-gradient(ellipse at 20% 0%, rgba(140,165,190,0.20) 0%, transparent 55%), linear-gradient(160deg, #262c33 0%, #1b2026 60%, #12161a 100%); }
.bg-scene-5  { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.6) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #d9a397 80%, #d9a397 100%); }
.bg-scene-6  { background: radial-gradient(ellipse at 20% 0%, rgba(130,165,205,0.22) 0%, transparent 55%), linear-gradient(160deg, #232b38 0%, #1a212b 60%, #11161d 100%); }
.bg-scene-7  { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.5) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #acd089 80%, #acd089 100%); }
.bg-scene-8  { background: radial-gradient(ellipse at 20% 0%, rgba(120,140,180,0.22) 0%, transparent 55%), linear-gradient(160deg, #2a3040 0%, #1f2532 60%, #141820 100%); }
.bg-scene-9  { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.55) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #d2dcc2 60%, #aebc98 100%); }
.bg-scene-10 { background: radial-gradient(ellipse at 20% 0%, rgba(165,145,205,0.22) 0%, transparent 55%), linear-gradient(160deg, #2b2735 0%, #201d28 60%, #15131b 100%); }
.bg-scene-11 { background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.5) 0%, transparent 55%), linear-gradient(160deg, #f6f2ea 0%, #9484da 80%, #9484da 100%); }
.bg-scene-12 { background: radial-gradient(ellipse at 20% 0%, rgba(205,135,145,0.20) 0%, transparent 55%), linear-gradient(160deg, #33262a 0%, #261c20 60%, #1a1215 100%); }

/* 四角金色星星 */
.card .corner-deco {
    position: absolute;
    z-index: 2;
    font-size: 14px;
    opacity: 0.9;
    pointer-events: none;
    font-family: "Times New Roman", serif;
    color: rgba(180, 155, 120, 0.85);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
    line-height: 1;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}
.card:hover .corner-deco { opacity: 1; color: rgba(180, 155, 120, 1); transform: scale(1.25); }
.card .corner-deco.tl { top: 14px; left: 14px; }
.card .corner-deco.tr { top: 14px; right: 14px; }
.card .corner-deco.bl { bottom: 14px; left: 14px; }
.card .corner-deco.br { bottom: 14px; right: 14px; }

/* 红色印章 */
.card .seal {
    position: absolute;
    z-index: 3;
    font-size: 14px;
    font-family: "KaiTi", "楷体", serif;
    color: #8b1a1a;
    opacity: 0.60;
    pointer-events: none;
    border: 1.5px solid rgba(181,59,59,0.15);
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(181,59,59,0.02);
    top: 16px;
    right: 18px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    letter-spacing: 1px;
    transform: rotate(-3deg);
}
.card:hover .seal { transform: scale(1.06) rotate(-1deg); }

/* 暗色卡片印章 */
.bg-scene-2  .seal,
.bg-scene-4  .seal,
.bg-scene-6  .seal,
.bg-scene-8  .seal,
.bg-scene-10 .seal,
.bg-scene-12 .seal {
    color: #fbf6ee;
    opacity: 0.96;
    border-color: rgba(255, 248, 240, 0.60);
    background: rgba(255, 248, 240, 0.14);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 8px rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 10px rgba(255, 248, 240, 0.20), inset 0 0 6px rgba(255, 248, 240, 0.12);
}

.avatar-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.08;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    border-radius: inherit;
    transition: opacity 0.4s ease;
}
.card:hover .avatar-bg { opacity: 0.12; }

.avatar-section {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-bottom: 14px;
}
.avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(180, 155, 120, 0.35),
        0 0 0 5px rgba(255, 255, 255, 0.12),
        0 6px 18px rgba(60, 45, 30, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.card:hover .avatar {
    box-shadow:
        0 0 0 1px rgba(180, 155, 120, 0.55),
        0 0 0 6px rgba(255, 255, 255, 0.18),
        0 8px 24px rgba(60, 45, 30, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: scale(1.04);
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .avatar img { transform: scale(1.03); }

.name-box { flex: 1; text-align: left; position: relative; z-index: 2; }
.name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1008;
    line-height: 1.25;
    letter-spacing: 3px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.55);
    font-family: "Songti SC", "Times New Roman", serif;
}
.job {
    font-size: 12px;
    color: #6b5b4e;
    line-height: 1.7;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(255,255,255,0.06);
    font-style: italic;
    font-family: "KaiTi", "楷体", serif;
}

.bg-scene-2  .name,
.bg-scene-4  .name,
.bg-scene-6  .name,
.bg-scene-8  .name,
.bg-scene-10 .name,
.bg-scene-12 .name { color: #ece8e0; text-shadow: 0 2px 12px rgba(0,0,0,0.20); }

.bg-scene-2  .job,
.bg-scene-4  .job,
.bg-scene-6  .job,
.bg-scene-8  .job,
.bg-scene-10 .job,
.bg-scene-12 .job { color: #c8c0b8; }

.divider-line {
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,248,240,0.25), transparent);
    margin: 2px auto 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.divider-line::after {
    content: '◆';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 8px;
    color: rgba(255,248,240,0.20);
}

.bg-scene-2  .divider-line,
.bg-scene-4  .divider-line,
.bg-scene-6  .divider-line,
.bg-scene-8  .divider-line,
.bg-scene-10 .divider-line,
.bg-scene-12 .divider-line {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
.bg-scene-2  .divider-line::after,
.bg-scene-4  .divider-line::after,
.bg-scene-6  .divider-line::after,
.bg-scene-8  .divider-line::after,
.bg-scene-10 .divider-line::after,
.bg-scene-12 .divider-line::after { color: rgba(255,255,255,0.12); }

.divider-line.art-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60,50,40,0.25), transparent);
    margin: -4px auto 16px;
    position: relative;
    z-index: 2;
}
.divider-line.art-divider::after {
    content: '✦';
    font-size: 10px;
    color: rgba(60,50,40,0.2);
    padding: 0 12px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    position: absolute;
}

.bg-scene-2  .divider-line.art-divider,
.bg-scene-4  .divider-line.art-divider,
.bg-scene-6  .divider-line.art-divider,
.bg-scene-8  .divider-line.art-divider,
.bg-scene-10 .divider-line.art-divider,
.bg-scene-12 .divider-line.art-divider {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.bg-scene-2  .divider-line.art-divider::after,
.bg-scene-4  .divider-line.art-divider::after,
.bg-scene-6  .divider-line.art-divider::after,
.bg-scene-8  .divider-line.art-divider::after,
.bg-scene-10 .divider-line.art-divider::after,
.bg-scene-12 .divider-line.art-divider::after { color: rgba(255,255,255,0.1); }

.quote-wrapper {
    width: 100%;
    flex: 0 1 auto;
    background: rgba(255, 253, 250, 0.78);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    border-radius: 22px 22px 22px 10px;
    padding: 18px 16px 28px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 4px 18px rgba(60, 45, 30, 0.06),
        0 12px 32px rgba(60, 45, 30, 0.05);
    position: relative;
    z-index: 2;
    min-height: 130px;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.card:hover .quote-wrapper {
    background: rgba(255, 253, 250, 0.88);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 6px 24px rgba(60, 45, 30, 0.08),
        0 16px 40px rgba(60, 45, 30, 0.06);
}

.bg-scene-2  .quote-wrapper,
.bg-scene-4  .quote-wrapper,
.bg-scene-6  .quote-wrapper,
.bg-scene-8  .quote-wrapper,
.bg-scene-10 .quote-wrapper,
.bg-scene-12 .quote-wrapper {
    background: rgba(255,252,248,0.92);
    border-color: rgba(255,248,240,0.25);
}
.card.bg-scene-2:hover  .quote-wrapper,
.card.bg-scene-4:hover  .quote-wrapper,
.card.bg-scene-6:hover  .quote-wrapper,
.card.bg-scene-8:hover  .quote-wrapper,
.card.bg-scene-10:hover .quote-wrapper,
.card.bg-scene-12:hover .quote-wrapper { background: rgba(255,252,248,0.96); }

.quote-wrapper::before,
.quote-wrapper::after {
    font-family: "Times New Roman", "SimHei", serif;
    font-size: 68px;
    line-height: 1;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    position: absolute;
}
.quote-wrapper::before { content: "“"; top: 6px; left: 8px; }
.quote-wrapper::after  { content: "”"; bottom: 2px; right: 8px; }

.bg-scene-1  .quote-wrapper::before, .bg-scene-1  .quote-wrapper::after { color: rgba(60,50,40,0.55); }
.bg-scene-2  .quote-wrapper::before, .bg-scene-2  .quote-wrapper::after { color: rgba(30,70,50,0.60); }
.bg-scene-3  .quote-wrapper::before, .bg-scene-3  .quote-wrapper::after { color: rgba(120,60,25,0.60); }
.bg-scene-4  .quote-wrapper::before, .bg-scene-4  .quote-wrapper::after { color: rgba(40,55,70,0.55); }
.bg-scene-5  .quote-wrapper::before, .bg-scene-5  .quote-wrapper::after { color: rgba(100,50,70,0.50); }
.bg-scene-6  .quote-wrapper::before, .bg-scene-6  .quote-wrapper::after { color: rgba(50,65,80,0.55); }
.bg-scene-7  .quote-wrapper::before, .bg-scene-7  .quote-wrapper::after { color: rgba(110,70,25,0.60); }
.bg-scene-8  .quote-wrapper::before, .bg-scene-8  .quote-wrapper::after { color: rgba(60,50,40,0.55); }
.bg-scene-9  .quote-wrapper::before, .bg-scene-9  .quote-wrapper::after { color: rgba(30,70,40,0.55); }
.bg-scene-10 .quote-wrapper::before, .bg-scene-10 .quote-wrapper::after { color: rgba(70,50,90,0.50); }
.bg-scene-11 .quote-wrapper::before, .bg-scene-11 .quote-wrapper::after { color: rgba(80,65,40,0.55); }
.bg-scene-12 .quote-wrapper::before, .bg-scene-12 .quote-wrapper::after { color: rgba(110,40,50,0.55); }

.bg-scene-2  .quote-wrapper::before, .bg-scene-2  .quote-wrapper::after,
.bg-scene-4  .quote-wrapper::before, .bg-scene-4  .quote-wrapper::after,
.bg-scene-6  .quote-wrapper::before, .bg-scene-6  .quote-wrapper::after,
.bg-scene-8  .quote-wrapper::before, .bg-scene-8  .quote-wrapper::after,
.bg-scene-10 .quote-wrapper::before, .bg-scene-10 .quote-wrapper::after,
.bg-scene-12 .quote-wrapper::before, .bg-scene-12 .quote-wrapper::after { color: rgba(60,50,40,0.55); }

.quote-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1.9;
    color: #0f1416;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: center;
    padding: 14px 18px 10px;
    word-break: break-word;
    min-height: 70px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(255,255,255,0.85), 0 0 8px rgba(255,255,255,0.5);
}

.bg-scene-2  .quote-text,
.bg-scene-4  .quote-text,
.bg-scene-6  .quote-text,
.bg-scene-8  .quote-text,
.bg-scene-10 .quote-text,
.bg-scene-12 .quote-text {
    color: #0f1416;
    text-shadow: 0 1px 3px rgba(255,255,255,0.85), 0 0 8px rgba(255,255,255,0.5);
}

.quote-author-signature {
    position: absolute;
    bottom: 6px;
    right: 16px;
    font-size: 13px;
    font-family: "KaiTi", "楷体", serif;
    color: #3a2f24;
    background: rgba(255,248,240,0.85);
    padding: 2px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255,248,240,0.10);
    backdrop-filter: blur(4px);
    font-style: italic;
    font-weight: 600;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 3;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}
.card:hover .quote-author-signature { background: rgba(255,248,240,0.95); }

.bg-scene-2  .quote-author-signature,
.bg-scene-4  .quote-author-signature,
.bg-scene-6  .quote-author-signature,
.bg-scene-8  .quote-author-signature,
.bg-scene-10 .quote-author-signature,
.bg-scene-12 .quote-author-signature {
    color: #3a2f24;
    background: rgba(255,248,240,0.85);
}

.external-avatar-small { display: none !important; }
/* 卡片池只作为「源」使用，不能让它影响页面布局：
   用绝对定位 + 0 尺寸，避免它的高度把页面撑长、多出可滚动区域 */
#cardPool {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ===== 关灯按钮 ===== */
/* ===== 关灯按钮 =====
   在新首页里它嵌在「随机一张」按钮内部（.btn-random > .lamp-toggle），
   作为按钮右半部分出现；用分隔竖线把「随机一张」和月亮分成两段。 */
.lamp-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 64px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(60, 50, 40, 0.10);
    background: rgba(255, 253, 250, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 12px rgba(60, 45, 30, 0.08);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
                transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 嵌在「随机一张」按钮里的样式
   位置：贴到按钮右侧，落在右边 1/3 以内（文字占满左边，把月亮推到右边） */
.btn-random .lamp-toggle,
.btn-dark .lamp-toggle {
    width: auto;
    min-width: 0;
    height: auto;
    align-self: stretch;
    margin: -6px 0 -6px 2px;      /* 上下略微外扩，占满按钮高度 */
    padding: 0 2px 0 20px;        /* 左边留出给分隔线的空间 */
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* 「随机一张」文字：占满左侧剩余宽度并居中，把关灯推到右侧 1/3 一带
   （用 flex:1 而非把文字顶到最左，避免中间出现大片空白） */
.btn-random > span:not(.lamp-toggle):not(.btn-icon),
.btn-dark > span:not(.lamp-toggle):not(.btn-icon) {
    flex: 1 1 auto;
    text-align: center;
}
/* 分隔竖线：画在左侧，把两段功能分开 */
.btn-random .lamp-toggle .lamp-line,
.btn-dark .lamp-toggle .lamp-line {
    left: 3px;
    height: 16px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 1px;
}
.btn-random .lamp-toggle .lamp-icon,
.btn-dark .lamp-toggle .lamp-icon { font-size: 19px; }

.btn-random .lamp-toggle:hover,
.btn-dark .lamp-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: none;
    box-shadow: none;
}
.btn-random .lamp-toggle:active,
.btn-dark .lamp-toggle:active { transform: scale(0.94); }

/* 独立的关灯按钮（原首页 index1.html 仍这样用） */
.lamp-toggle:not(.btn-random *) { margin: 10px auto 0; }
.lamp-toggle:not(.btn-random *):hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 6px 18px rgba(60, 45, 30, 0.14);
}
.lamp-toggle:not(.btn-random *):active { transform: translateY(0) scale(0.96); }
.lamp-toggle .lamp-line {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(60, 50, 40, 0.18);
    border-radius: 1px;
    transition: background 0.35s ease;
}
.lamp-toggle .lamp-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lamp-toggle:not(.btn-random *):hover .lamp-icon { transform: rotate(20deg) scale(1.1); }
/* 嵌在按钮里时，鼠标悬停让月亮转一下作为反馈 */
.btn-random .lamp-toggle:hover .lamp-icon { transform: rotate(20deg) scale(1.06); }

/* ===== 控制区 ===== */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    width: 100%;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 404px;   /* 容纳「上箭头 + 随机一张(含关灯) + 下箭头」一行放完 */
}

.btn-random {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    padding: 16px 24px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 6px;
    color: #fff;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #c56cf0 0%, #8b5cf6 50%, #6366f1 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.35),
        0 1px 3px rgba(60, 45, 30, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background-position 0.5s ease,
                transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s ease;
}
.btn-random:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(139, 92, 246, 0.45),
        0 2px 6px rgba(60, 45, 30, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn-random:active { transform: translateY(0) scale(0.98); }
.btn-icon { font-size: 18px; letter-spacing: 0; }

/* 黑底白字的随机按钮（新首页使用） */
.btn-random.btn-dark {
    background: #1c1c1e;
    background-image: linear-gradient(90deg, #1c1c1e 0%, #2b2b30 50%, #1c1c1e 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #fff;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.btn-random.btn-dark:hover {
    background-position: 100% 0%;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-random.btn-dark:active { transform: translateY(0) scale(0.98); }

.btn-same {
    background: linear-gradient(90deg, #d17be8 0%, #9b6af0 50%, #7c7cf5 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    letter-spacing: 3px;
}
.btn-same:hover {
    background-position: 100% 0%;
    box-shadow:
        0 10px 28px rgba(155, 106, 240, 0.45),
        0 2px 6px rgba(60, 45, 30, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn-same:disabled {
    background: linear-gradient(90deg, #d8cec0 0%, #c9bcae 100%);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(60, 45, 30, 0.06);
}
.btn-same .btn-label {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.counter {
    font-size: 13px;
    letter-spacing: 2px;
    color: #9a8a7a;
    font-family: "KaiTi", "楷体", serif;
    font-style: italic;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: none;
    transition: color 0.35s ease;
}

.card .counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0;
    padding: 0;
    border: none;
    background: none;

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1.5px;
    font-family: "Songti SC", "Times New Roman", serif;
    font-style: normal;
    line-height: 1.4;

    color: #1a1008;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);

    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.bg-scene-2  .counter,
.bg-scene-4  .counter,
.bg-scene-6  .counter,
.bg-scene-8  .counter,
.bg-scene-10 .counter,
.bg-scene-12 .counter {
    color: rgba(235, 225, 210, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* ===== 动画 ===== */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes cardLeave {
    0%   { opacity: 1; transform: rotateY(0deg) rotateZ(0deg) translateZ(0) scale(1); filter: blur(0) brightness(1); }
    100% { opacity: 0; transform: rotateY(-80deg) rotateZ(-8deg) translateZ(-120px) scale(0.85); filter: blur(10px) brightness(1.3); }
}
@keyframes cardArrive {
    0%   { opacity: 0; transform: rotateY(80deg) rotateZ(8deg) translateZ(-120px) scale(0.85); filter: blur(10px) brightness(1.3); }
    55%  { opacity: 1; filter: blur(0) brightness(1); }
    100% { opacity: 1; transform: rotateY(0deg) rotateZ(0deg) translateZ(0) scale(1); filter: blur(0) brightness(1); }
}

/* ===== 卡片左右平移切换动画 ===== */
@keyframes cardSlideOutLeft {
    0%   { opacity: 1; transform: translateX(0)     scale(1);   }
    100% { opacity: 0; transform: translateX(-115%) scale(0.88); }
}
@keyframes cardSlideInRight {
    0%   { opacity: 0; transform: translateX(115%)  scale(0.88); }
    100% { opacity: 1; transform: translateX(0)     scale(1);   }
}
@keyframes cardSlideOutRight {
    0%   { opacity: 1; transform: translateX(0)     scale(1);   }
    100% { opacity: 0; transform: translateX(115%)  scale(0.88); }
}
@keyframes cardSlideInLeft {
    0%   { opacity: 0; transform: translateX(-115%) scale(0.88); }
    100% { opacity: 1; transform: translateX(0)     scale(1);   }
}

.stage::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    z-index: 20;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(197, 108, 240, 0.35) 42%,
        rgba(160, 120, 255, 0.85) 50%,
        rgba(99, 102, 241, 0.35) 58%,
        transparent 70%);
    background-size: 250% 100%;
    background-position: -150% 0;
    opacity: 0;
    mix-blend-mode: screen;
}
.stage.shuffle-flash::after { animation: shineSweep 0.85s ease-out; }
@keyframes shineSweep {
    0%   { opacity: 0; background-position: -150% 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; background-position: 250% 0; }
}

/* ============================================================
   🌙 暗色模式
   ============================================================ */
body.dark-mode {
    background-color: #12141c;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(80, 100, 160, 0.18) 0%, transparent 60%),
        url("images/beijing.png");
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}
body.dark-mode .page-title,
body.dark-mode .page-title b { color: #e8e0d4; }
body.dark-mode .pt-copy { color: #a89f92; }

body.dark-mode .lamp-toggle:not(.btn-random *) {
    background: rgba(38, 42, 58, 0.85);
    border-color: rgba(120, 130, 180, 0.28);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.dark-mode .lamp-toggle:not(.btn-random *):hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 28px rgba(0, 0, 0, 0.5);
}
body.dark-mode .lamp-toggle .lamp-line { background: rgba(200, 210, 240, 0.25); }

/* 嵌在按钮里时保持透明，只留分隔线与月亮（必须放在上面的通用规则之后） */
body.dark-mode .btn-random .lamp-toggle {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.dark-mode .btn-random .lamp-toggle .lamp-line { background: rgba(255, 255, 255, 0.42); }
body.dark-mode .nav-arrow {
    background: rgba(38, 42, 58, 0.85);
    border-color: rgba(120, 130, 180, 0.25);
    color: #b8c0d8;
}
body.dark-mode .nav-arrow:hover { background: #4a5578; border-color: #4a5578; color: #fff; }
body.dark-mode .hero-nav {
    background: rgba(28, 32, 46, 0.75);
    border-color: rgba(120, 130, 180, 0.22);
}
body.dark-mode .hero-nav-item img { border-color: rgba(180, 190, 220, 0.5); }
body.dark-mode .hero-tooltip { background: rgba(28, 32, 46, 0.96); }
body.dark-mode .hero-tooltip::after { border-left-color: rgba(28, 32, 46, 0.96); }

.bg-scene-2::before,
.bg-scene-4::before,
.bg-scene-6::before,
.bg-scene-8::before,
.bg-scene-10::before,
.bg-scene-12::before {
    border-color: rgba(220, 195, 150, 0.55);
    box-shadow: inset 0 0 0 1px rgba(220, 195, 150, 0.2);
    background:
        radial-gradient(circle at 0 0,      rgba(220,195,150,0.8) 2.5px, transparent 3px),
        radial-gradient(circle at 100% 0,   rgba(220,195,150,0.8) 2.5px, transparent 3px),
        radial-gradient(circle at 0 100%,   rgba(220,195,150,0.8) 2.5px, transparent 3px),
        radial-gradient(circle at 100% 100%,rgba(220,195,150,0.8) 2.5px, transparent 3px);
    background-size: 100% 100%;
}
.bg-scene-2:hover::before,
.bg-scene-4:hover::before,
.bg-scene-6:hover::before,
.bg-scene-8:hover::before,
.bg-scene-10:hover::before,
.bg-scene-12:hover::before { border-color: rgba(220, 195, 150, 0.75); }

.bg-scene-2  .corner-deco,
.bg-scene-4  .corner-deco,
.bg-scene-6  .corner-deco,
.bg-scene-8  .corner-deco,
.bg-scene-10 .corner-deco,
.bg-scene-12 .corner-deco { color: rgba(220, 195, 150, 0.9); }

.bg-scene-2:hover  .corner-deco,
.bg-scene-4:hover  .corner-deco,
.bg-scene-6:hover  .corner-deco,
.bg-scene-8:hover  .corner-deco,
.bg-scene-10:hover .corner-deco,
.bg-scene-12:hover .corner-deco { color: rgba(220, 195, 150, 1); }

/* ============================================================
   🧭 名人索引栏（基础样式）
   ============================================================ */
.hero-nav {
    position: fixed;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    z-index: 999;
    display: none;
    grid-template-columns: repeat(2, 42px);
    gap: 8px;
    justify-content: center;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 10px;
    border-radius: 52px;
    background: rgba(255, 252, 248, 0.70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(184, 164, 140, 0.28);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 164, 140, 0.45) transparent;
    transition: background 0.35s ease, border-color 0.35s ease;
}
.hero-nav::-webkit-scrollbar { width: 4px; }
.hero-nav::-webkit-scrollbar-thumb { background: rgba(184, 164, 140, 0.45); border-radius: 4px; }
.hero-nav::-webkit-scrollbar-track { background: transparent; }

.hero-nav-item {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    border: 2px solid rgba(255, 248, 240, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-nav-item:hover { transform: scale(1.15); z-index: 3; }
.hero-nav-item:hover img {
    border-color: #b8a48c;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}
.hero-nav-item.active img {
    border-color: #b53b3b;
    box-shadow: 0 0 0 2px rgba(181, 59, 59, 0.22), 0 4px 14px rgba(0, 0, 0, 0.14);
}

.hero-tooltip {
    position: fixed;
    z-index: 1001;
    transform: translate(-100%, -50%) translateX(-10px);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: "KaiTi", "楷体", "Songti SC", serif;
    color: #fdf8f2;
    background: rgba(61, 51, 40, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-width: 240px;
    white-space: normal;
    line-height: 1.6;
}
.hero-tooltip-title {
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 248, 240, 0.18);
    white-space: nowrap;
}
.hero-tooltip-bio {
    font-family: "KaiTi", "楷体", serif;
    font-size: 12px;
    line-height: 1.7;
    color: #e0d6c8;
    letter-spacing: 0.5px;
    font-style: italic;
}
.hero-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(61, 51, 40, 0.94);
}
.hero-tooltip.show { opacity: 1; transform: translate(-100%, -50%) translateX(0); }

@media (min-width: 1280px) {
    .hero-nav { display: grid; }
}

@media (max-width: 1279px) {
    .hero-nav {
        position: static;
        transform: none;
        top: auto;
        right: auto;

        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        grid-template-columns: none;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;

        width: 100%;
        max-width: 420px;
        max-height: none;
        margin: 18px auto 0;
        padding: 10px 12px;
        border-radius: 18px;
        box-sizing: border-box;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hero-nav::-webkit-scrollbar { display: none; }

    .hero-nav-item { flex: 0 0 auto; width: 38px; height: 38px; }
    .hero-nav-item img { border-width: 1.5px; }
    .hero-nav-item:hover { transform: none; }
    .hero-nav-item:hover img {
        border-color: rgba(255, 248, 240, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .hero-tooltip { display: none; }
}

/* ============================================================
   📱 手机端布局优化
   ============================================================ */
@media (max-width: 700px) {
    body {
        padding: 16px 12px 20px;
        justify-content: flex-start;
    }

    .page-title {
        font-size: 18px;
        letter-spacing: 0.5px;
        margin-bottom: 12px;
        text-align: left;
        width: 90%;
        max-width: 376px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 4px;
    }
    .page-title b {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    .pt-marquee { font-size: 13px; }
    .page-title .pt-sep { font-size: 14px; }

    .stage-wrap {
        gap: 0;
        padding: 0;
        flex-direction: column;
    }
    .stage {
        flex: 0 1 auto;
        width: 100%;
        min-height: auto;
        padding: 0;
    }
    .card {
        width: 94vw;
        max-width: 420px;       /* 放大 5%（原 400px） */
        aspect-ratio: 3 / 4.6;
        padding: 16px 14px 20px;
        border-radius: 24px;
        border-width: 2px;
    }
    .card::before { inset: 9px; border-radius: 15px; }
    .card::after { font-size: 48px; bottom: 10px; right: 14px; }

    .avatar-section { gap: 10px; margin-bottom: 10px; }
    .avatar { width: 56px; height: 56px; border-width: 2px; }
    .name { font-size: 18px; letter-spacing: 2px; }
    .job { font-size: 10px; }
    .divider-line.art-divider { margin: -2px auto 12px; }
    .quote-wrapper {
        border-radius: 18px 18px 18px 8px;
        padding: 14px 12px 24px 12px;
        min-height: 110px;
    }
    .quote-wrapper::before,
    .quote-wrapper::after { font-size: 52px; }
      .quote-text {
        font-size: clamp(20px, 6.2vw, 25px);
        line-height: 1.75;
        letter-spacing: 1px;
        padding: 14px 14px 10px;
    }
    .quote-author-signature {
        font-size: 11px;
        padding: 2px 12px;
        bottom: 4px;
        right: 10px;
    }
    .card .corner-deco { font-size: 12px; top: 10px; left: 10px; }
    .card .seal { font-size: 11px; padding: 1px 6px; top: 12px; right: 14px; }

    .controls { gap: 12px; margin-top: 16px; }

    .main-action-row {
        max-width: 100%;
        gap: 10px;
        padding: 0 6px;
    }
    .nav-arrow {
        width: 46px;
        height: 46px;
        font-size: 26px;
        padding-bottom: 4px;
        border-width: 1px;
    }
    .btn-random {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 15px;
        letter-spacing: 4px;
        border-radius: 12px;
    }
    .btn-icon { font-size: 16px; }

    .btn-row:not(.main-action-row) { padding: 0 6px; }
    .btn-all, .btn-same {
        width: 100%;
        max-width: 340px;
        min-width: 0;
        padding: 14px 20px;
        font-size: 14px;
        letter-spacing: 3px;
    }

    .counter { font-size: 12px; padding: 5px 16px; margin-top: 4px; }
    .lamp-toggle { margin-top: 12px; }

    .hero-nav {
        gap: 6px;
        padding: 8px 10px;
        border-radius: 14px;
        margin-top: 14px;
    }
    .hero-nav-item { width: 34px; height: 34px; }
}

/* ============================================================
   📱 新首页手机端：整体缩小约 10%
   （只作用于加了 body.pc-compact 的页面，index1.html 不受影响）
   ============================================================ */
@media (max-width: 700px) {
    body.pc-compact .card {
        width: 89vw;            /* 放大 5%（原 85vw） */
        max-width: 376px;       /* 放大 5%（原 358px） */
        aspect-ratio: 3 / 4.15;
        padding: 14px 13px 18px;
        border-radius: 22px;
    }
    body.pc-compact .card::before { inset: 8px; border-radius: 14px; }
    body.pc-compact .card::after { font-size: 43px; }

    body.pc-compact .avatar-section { gap: 9px; margin-bottom: 9px; }
    body.pc-compact .avatar { width: 50px; height: 50px; }
    body.pc-compact .name { font-size: 16px; letter-spacing: 1.6px; }
    body.pc-compact .job { font-size: 9.5px; }
    body.pc-compact .divider-line.art-divider { margin: -3px auto 10px; }

    body.pc-compact .quote-wrapper {
        border-radius: 16px 16px 16px 8px;
        padding: 12px 11px 21px 11px;
        min-height: 96px;
    }
    body.pc-compact .quote-wrapper::before,
    body.pc-compact .quote-wrapper::after { font-size: 46px; }
    body.pc-compact .quote-text {
        font-size: clamp(17px, 5vw, 21px);
        line-height: 1.7;
        letter-spacing: 0.8px;
        padding: 12px 12px 8px;
    }
    body.pc-compact .quote-author-signature { font-size: 10px; padding: 1px 10px; }
    body.pc-compact .card .corner-deco { font-size: 11px; top: 9px; left: 9px; }
    body.pc-compact .card .seal { font-size: 10px; padding: 1px 5px; top: 11px; right: 12px; }

    /* 卡片变小后，周边控件也一起收一点，比例才协调 */
    body.pc-compact .controls { gap: 11px; margin-top: 14px; }
    body.pc-compact .nav-arrow { width: 42px; height: 42px; font-size: 24px; }
    body.pc-compact .btn-random { padding: 13px 15px; font-size: 14px; letter-spacing: 3.5px; }
    body.pc-compact .btn-all,
    body.pc-compact .btn-same { padding: 13px 18px; font-size: 13px; max-width: 320px; }
    body.pc-compact .counter { font-size: 11px; }
    body.pc-compact .hero-nav-item { width: 31px; height: 31px; }
    body.pc-compact .page-title { font-size: 17px; letter-spacing: 0.5px; margin-bottom: 12px; }
    body.pc-compact .page-title b { font-size: 23px; }
    body.pc-compact .pt-marquee { font-size: 12.5px; }
}

/* ============================================================
   🎲 骰子跳跃动画
   ============================================================ */
.dice-layer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.dice-anchor {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    perspective: 900px;
}

.dice-glow {
    position: absolute;
    left: -80px;
    top: -80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(197, 108, 240, 0.60) 0%,
        rgba(139, 92, 246, 0.30) 36%,
        rgba(99, 102, 241, 0.10) 58%,
        transparent 72%);
    opacity: 0;
    will-change: transform, opacity;
    animation: diceGlowJump 1s linear forwards;
}

.dice-spin {
    position: absolute;
    left: -34px;
    top: -34px;
    width: 68px;
    height: 68px;
    transform-style: preserve-3d;
    opacity: 0;
    will-change: transform, opacity;
    animation: diceJump 1s linear forwards;
}

.dice-cube {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.dice-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(150deg, #fffdf9 0%, #fdf6ea 45%, #ecdfc9 100%);
    border: 1px solid rgba(180, 155, 120, 0.45);
    box-shadow:
        inset 0 0 12px rgba(180, 155, 120, 0.22),
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(180, 155, 120, 0.18);
}
.dice-face.f-front  { transform: translateZ(34px); }
.dice-face.f-back   { transform: rotateY(180deg) translateZ(34px); }
.dice-face.f-right  { transform: rotateY(90deg)  translateZ(34px); }
.dice-face.f-left   { transform: rotateY(-90deg) translateZ(34px); }
.dice-face.f-top    { transform: rotateX(90deg)  translateZ(34px); }
.dice-face.f-bottom { transform: rotateX(-90deg) translateZ(34px); }

.dice-face .pip {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #e05555 0%, #b53b3b 45%, #7e1e1e 100%);
    box-shadow:
        0 0 6px rgba(181, 59, 59, 0.50),
        inset 0 -1px 1px rgba(0, 0, 0, 0.35);
}

@keyframes diceJump {
    0% {
        transform: translateY(58vh) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.5);
        opacity: 0;
        animation-timing-function: cubic-bezier(.18, .75, .40, 1);
    }
    8% { opacity: 1; }
    50% {
        transform: translateY(-38vh) rotateX(680deg) rotateY(480deg) rotateZ(160deg) scale(1.18);
        opacity: 1;
        animation-timing-function: cubic-bezier(.55, 0, .90, .50);
    }
    92% { opacity: 1; }
    100% {
        transform: translateY(58vh) rotateX(1360deg) rotateY(960deg) rotateZ(320deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes diceGlowJump {
    0% {
        transform: translateY(58vh) scale(0.45);
        opacity: 0;
        animation-timing-function: cubic-bezier(.18, .75, .40, 1);
    }
    12% { opacity: 0.85; }
    50% {
        transform: translateY(-38vh) scale(1.15);
        opacity: 0.95;
        animation-timing-function: cubic-bezier(.55, 0, .90, .50);
    }
    92% { opacity: 0.7; }
    100% {
        transform: translateY(58vh) scale(0.5);
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .dice-spin { left: -30px; top: -30px; width: 60px; height: 60px; }
    .dice-face { border-radius: 12px; }
    .dice-face.f-front  { transform: translateZ(30px); }
    .dice-face.f-back   { transform: rotateY(180deg) translateZ(30px); }
    .dice-face.f-right  { transform: rotateY(90deg)  translateZ(30px); }
    .dice-face.f-left   { transform: rotateY(-90deg) translateZ(30px); }
    .dice-face.f-top    { transform: rotateX(90deg)  translateZ(30px); }
    .dice-face.f-bottom { transform: rotateX(-90deg) translateZ(30px); }
    .dice-face .pip { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
    .dice-glow { left: -70px; top: -70px; width: 140px; height: 140px; }
}