/* ===== 背景光斑（与首页一致） ===== */
:root {
    --glow-top: #16204a;
    --blob-opacity: 0.55;
}

/* 浅色主题：跟随首页的主题开关（本页不提供切换按钮） */
[data-theme="light"] {
    --glow-top: #dbe6ff;
    --blob-opacity: 0.35;
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--glow-top) 0%, var(--bg) 60%);
    overflow: hidden;
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size);
    height: var(--size);
    margin-top: calc(var(--size) / -2);
    margin-left: calc(var(--size) / -2);
    border-radius: 50%;
    /* 模糊半径也跟着视口缩：光斑小、模糊也小，光才不会糊满整个小屏 */
    filter: blur(clamp(44px, 6.2vw, 90px));
    opacity: var(--blob-opacity);
    will-change: transform;
    animation: roam-a 44s ease-in-out infinite;
}

/* 四颗光斑各走一条环游全屏的轨迹，相位错开；尺寸用 clamp 随视口缩放——
   手机上保持屏幕宽度的三到五成，背景才留得住暗色，宽屏则维持原来的大小 */
.blob-1 { --size: clamp(190px, 30vw, 420px); background: #2563eb; animation-duration: 44s; }
.blob-2 { --size: clamp(160px, 26vw, 360px); background: #06b6d4; animation-name: roam-b; animation-duration: 52s; animation-delay: -10s; }
.blob-3 { --size: clamp(200px, 33vw, 460px); background: #7c3aed; animation-name: roam-c; animation-duration: 48s; animation-delay: -20s; }
.blob-4 { --size: clamp(120px, 19vw, 260px); background: #db2777; opacity: 0.35; animation-name: roam-d; animation-duration: 58s; animation-delay: -30s; }

/* 小屏上光斑尺寸已被 clamp 压小，再整体降一档透明度，背景才留得住暗色 */
@media (max-width: 640px) {
    :root { --blob-opacity: 0.42; }
}

/* 环游轨迹：以屏幕中心为原点，用 vw/vh 位移跑遍整屏，首尾一致无跳变 */
@keyframes roam-a {
    0%, 100% { transform: translate(-32vw, -34vh) scale(1); }
    25%      { transform: translate(30vw, -24vh) scale(1.12); }
    50%      { transform: translate(26vw, 30vh) scale(0.92); }
    75%      { transform: translate(-28vw, 26vh) scale(1.06); }
}
@keyframes roam-b {
    0%, 100% { transform: translate(-38vw, 22vh) scale(1); }
    25%      { transform: translate(-26vw, -30vh) scale(1.1); }
    50%      { transform: translate(24vw, -34vh) scale(0.94); }
    75%      { transform: translate(36vw, 18vh) scale(1.08); }
}
@keyframes roam-c {
    0%, 100% { transform: translate(20vw, -36vh) scale(1); }
    25%      { transform: translate(34vw, 10vh) scale(1.14); }
    55%      { transform: translate(-10vw, 34vh) scale(0.9); }
    80%      { transform: translate(-36vw, -6vh) scale(1.06); }
}
@keyframes roam-d {
    0%, 100% { transform: translate(-30vw, 34vh) scale(1); }
    30%      { transform: translate(22vw, 30vh) scale(1.12); }
    60%      { transform: translate(30vw, -26vh) scale(0.94); }
    85%      { transform: translate(-24vw, -32vh) scale(1.08); }
}

.container {
    width: min(860px, 92%);
    margin: 0 auto;
}

.page-head {
    text-align: center;
    margin: 24px 0 38px;
}

.page-head h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.page-head .subtitle {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.98rem;
}

.buy-list {
    display: grid;
    gap: 20px;
}

.buy-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.buy-card:hover {
    transform: translateY(-3px);
    border-color: var(--stroke-strong);
    background: var(--glass-strong);
}

.buy-icon {
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.buy-body {
    flex: 1 1 auto;
    min-width: 0;
}

.buy-title {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
}

.buy-desc {
    display: block;
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.buy-arrow {
    flex: none;
    color: var(--text-faint);
    transition: transform 0.25s ease, color 0.25s ease;
}

.buy-card:hover .buy-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .page-head {
        margin: 12px 0 28px;
    }
    .page-head h1 {
        font-size: 1.6rem;
    }
    .buy-card {
        padding: 20px 18px;
        gap: 14px;
    }
    .buy-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        border-radius: 14px;
    }
    .buy-title {
        font-size: 1rem;
    }
    .buy-desc {
        font-size: 0.84rem;
    }
    .buy-arrow {
        display: none;
    }
}
