* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #0b0710;
    background-image: radial-gradient(circle at 15% 30%, rgba(70, 30, 100, 0.2) 0%, #0b0710 90%);
    font-family: 'Inter', sans-serif;
    color: #f0eef7;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
:root {
    --primary: #b87cff;
    --primary-glow: #9b4dff;
    --secondary: #ffb86b;
    --dark-card: #14101c;
    --border-dim: rgba(184, 124, 255, 0.2);
    --glass: rgba(20, 16, 28, 0.75);
}

/* ========= 流星星空 ========= */
.meteor-sky {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.meteor-sky::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(2px 2px at 20% 30%, #fff, transparent),
            radial-gradient(1px 1px at 70% 20%, #fff, transparent),
            radial-gradient(1.5px 1.5px at 40% 70%, #e2c6ff, transparent),
            radial-gradient(1px 1px at 85% 50%, #fff, transparent),
            radial-gradient(2px 2px at 10% 80%, #b87cff, transparent),
            radial-gradient(1px 1px at 55% 40%, #fff, transparent);
    background-repeat: repeat;
    background-size: 800px 600px;
    opacity: 0.6;
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle {
    from { opacity: 0.35; }
    to   { opacity: 0.85; }
}
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255,255,255,0.85);
    animation: meteor-fall linear infinite;
}
.meteor::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 160px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(184,124,255,0.4), transparent);
    transform: translateX(-160px) rotate(0deg);
}
.meteor:nth-child(1) { top: 5%;  left: 80%; animation-duration: 3.2s; animation-delay: 0s;   }
.meteor:nth-child(2) { top: 15%; left: 60%; animation-duration: 4.5s; animation-delay: 1.2s; }
.meteor:nth-child(3) { top: 8%;  left: 95%; animation-duration: 2.8s; animation-delay: 2.5s; }
.meteor:nth-child(4) { top: 25%; left: 70%; animation-duration: 5.0s; animation-delay: 0.6s; }
.meteor:nth-child(5) { top: 2%;  left: 40%; animation-duration: 3.8s; animation-delay: 3.0s; }
@keyframes meteor-fall {
    0%   { transform: translateX(0)     translateY(0)    rotate(215deg); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateX(-700px) translateY(700px) rotate(215deg); opacity: 0; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* 导航栏 · 横向铺满视口，内容与 container 对齐 */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 20px max(24px, calc((100vw - 1400px) / 2 + 24px));
    border-bottom: 1px solid var(--border-dim);
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    background: rgba(11, 7, 16, 0.85);
    z-index: 100;
}
.logo h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e2c6ff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}
.logo span { font-size: 0.8rem; color: #a58bcb; display: block; letter-spacing: 2px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.nav-links li {
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 60px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links li:hover, .nav-links li.active {
    background: rgba(184, 124, 255, 0.2);
    color: var(--primary);
    box-shadow: 0 0 6px rgba(184,124,255,0.3);
}
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.btn-user-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(200px, 28vw);
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #e2c6ff;
    text-decoration: none;
    border: 1px solid rgba(184, 124, 255, 0.35);
    background: rgba(184, 124, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-user-nav:hover {
    background: rgba(184, 124, 255, 0.22);
    border-color: rgba(184, 124, 255, 0.55);
    color: #f0eef7;
}
.btn-user-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .btn-user-nav-text { display: none; }
    .btn-user-nav { padding: 8px 12px; max-width: none; }
}
.btn-outline, .btn-primary {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    font-size: 0.9rem;
}
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(184,124,255,0.2); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #9a4eff);
    color: white;
    box-shadow: 0 4px 12px rgba(155,77,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* 顶栏与正文无缝衔接；原先 padding-top:40px 会在 navbar 下留出一条空白带 */
.page { display: none; animation: fadeIn 0.4s ease; padding: 0 0 60px; }
.active-page { display: block; }
/* 卡片型页面保留一点与顶栏的距离（由内边距承担，而不是整块空白） */
.page > .glass-card:first-child {
    margin-top: 22px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-dim);
    border-radius: 32px;
    padding: 28px 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
}
.section-title {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 24px;
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}

/* ========= 牌组按钮 ========= */
.spread-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    justify-content: center;
}
.spread-tab {
    background: #1f1a2c;
    border: 1px solid var(--border-dim);
    color: #e2c6ff;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}
.spread-tab:hover { border-color: var(--primary); }
.spread-tab.active {
    background: linear-gradient(135deg, var(--primary), #9a4eff);
    color: #fff;
    box-shadow: 0 0 10px rgba(184,124,255,0.5);
}
.spread-desc {
    background: #1a1526;
    border-left: 3px solid var(--primary);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #d8cfe9;
    font-size: 0.95rem;
}
.spread-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}
.spread-card {
    width: 90px;
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a1f3d, #14101c);
    border: 1px solid rgba(184,124,255,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 18px -6px #000;
    text-align: center;
    padding: 6px;
}
.spread-card:hover {
    transform: translateY(-6px) rotate(-2deg);
    box-shadow: 0 12px 22px -4px rgba(184,124,255,0.5);
}
.spread-card i { font-size: 1.6rem; margin-bottom: 6px; }
.spread-card small { font-size: 0.7rem; color: #a58bcb; margin-top: 4px; }
.spread-card.flipped {
    background: linear-gradient(135deg, #3a2a5a, #1f1530);
    color: #ffd9a8;
}

.tarot-tips {
    margin-top: 22px;
    background: rgba(184,124,255,0.08);
    border: 1px dashed var(--border-dim);
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 0.88rem;
    color: #d4c8eb;
}
.tarot-tips h4 { color: var(--secondary); margin-bottom: 10px; font-size: 1rem; }
.tarot-tips ul { padding-left: 20px; }
.tarot-tips li { margin-bottom: 6px; }

/* 塔罗占卜 */
.tarot-reader { display: flex; flex-wrap: wrap; gap: 32px; }
.tarot-card-area { flex: 2; text-align: center; min-width: 280px; }
.question-input {
    width: 100%;
    background: #201c2c;
    border: 1px solid #3a2f4a;
    border-radius: 60px;
    padding: 14px 20px;
    color: white;
    font-size: 1rem;
    margin: 15px 0;
}
.tarot-sidebar {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 28px;
    padding: 24px;
    min-width: 240px;
}
.tarot-master {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px dashed var(--border-dim);
    padding-bottom: 16px;
}

/* 星座网格 */
.zodiac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.zodiac-item {
    background: #16121f;
    border-radius: 28px;
    padding: 18px;
    text-align: center;
    transition: 0.2s;
    border: 1px solid transparent;
}
.zodiac-item:hover { border-color: var(--primary); transform: translateY(-4px); }

/* 树卡片 */
.tree-card { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tree-icon { font-size: 5rem; filter: drop-shadow(0 0 8px #ffb86b); }
.input-pair { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.input-pair input {
    background: #1f1a2c;
    border: 1px solid #3c2e52;
    padding: 12px 18px;
    border-radius: 48px;
    color: white;
    width: 200px;
}
.fortune-tree-btn {
    background: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}
.result-box {
    background: #00000040;
    border-radius: 28px;
    padding: 16px;
    width: 100%;
    text-align: center;
}

/* 会员 */
.pricing-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.plan {
    background: #120e1a;
    border-radius: 32px;
    padding: 28px 20px;
    width: 280px;
    text-align: center;
    border: 1px solid var(--border-dim);
}
.plan.popular { border: 1px solid var(--primary); box-shadow: 0 0 18px rgba(184,124,255,0.2); }

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #171225;
    border-radius: 40px;
    width: 90%;
    max-width: 440px;
    padding: 32px;
    border: 1px solid var(--primary);
}
.close-modal { float: right; font-size: 26px; cursor: pointer; }
.tab-buttons { display: flex; gap: 16px; margin-bottom: 24px; }
.tab-btn { background: none; border: none; color: #bbb; font-size: 1.2rem; cursor: pointer; }
.tab-btn.active-tab { color: var(--primary); border-bottom: 2px solid var(--primary); }
.form-group { margin-bottom: 18px; }
.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 60px;
    background: #201c2c;
    border: none;
    color: white;
}

/* ========= 页脚 ========= */
.site-footer {
    margin-top: clamp(32px, 5vw, 48px);
    padding: 32px 0 28px;
    border-top: 1px solid rgba(184, 124, 255, 0.16);
    background:
        radial-gradient(ellipse 80% 120% at 50% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, transparent 0%, rgba(8, 4, 14, 0.75) 100%);
}

.site-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.site-footer-brand {
    min-width: 0;
}

.site-footer-copy {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(240, 238, 247, 0.82);
    letter-spacing: 0.03em;
}

.site-footer-tagline {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(165, 139, 203, 0.55);
    letter-spacing: 0.14em;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.site-footer-legal-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(216, 196, 255, 0.88);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(184, 124, 255, 0.22);
    background: rgba(16, 10, 26, 0.55);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.site-footer-legal-link:hover {
    color: #f3e8ff;
    border-color: rgba(196, 181, 253, 0.45);
    background: rgba(124, 58, 237, 0.18);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.15);
}

.site-footer-disclaimer {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 124, 255, 0.1);
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(200, 188, 220, 0.45);
    text-align: center;
    letter-spacing: 0.02em;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 28px 0 24px;
    }

    .site-footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .site-footer-legal {
        justify-content: center;
    }

    .site-footer-disclaimer {
        font-size: 0.68rem;
        text-align: left;
        max-width: none;
    }
}

@media (max-width: 860px) {
    .navbar { flex-direction: column; gap: 16px; }
    .nav-links { justify-content: center; }
    .section-title { font-size: 1.6rem; }
}

.badge { background: #9b4dff30; border-radius: 40px; padding: 4px 12px; font-size: 0.7rem; }
.progress-bar { background: #2a2338; border-radius: 20px; height: 8px; width: 100%; margin-top: 8px; }
.progress-fill { background: var(--primary); width: 70%; height: 8px; border-radius: 20px; }


.nav-links a,
.nav-links a:visited {
    color: #d8c7ff;
    text-decoration: none;
}
.nav-links li.active a {
    color: #fff;
}

/* ===== Auth ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.auth-card {
    width: 100%;
    max-width: 460px;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-form input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 60px;
    background: #201c2c;
    border: 1px solid #3a2f4a;
    color: #fff;
    font-size: 0.95rem;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(184,124,255,.4);
}
.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a58bcb;
    font-size: 0.8rem;
    margin: 24px 0 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-dim);
}
.oauth-list {
    display: flex;
    gap: 14px;
    justify-content: center;
}
.oauth-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: .2s;
}
.oauth-btn.qq      { background: linear-gradient(135deg, #12B7F5, #0a86b3); }
.oauth-btn.wechat  { background: linear-gradient(135deg, #07C160, #04823f); }
.oauth-btn.alipay  { background: linear-gradient(135deg, #1677FF, #0958d9); }
.oauth-btn:hover   { transform: translateY(-2px); filter: brightness(1.1); }
.auth-foot {
    text-align: center;
    margin-top: 22px;
    color: #a58bcb;
    font-size: 0.88rem;
}
.auth-foot a { color: var(--primary); text-decoration: none; }
/* 导航链接：去除默认蓝紫色和下划线 */
.nav-links a,
.nav-links a:link,
.nav-links a:visited {
    display: inline-block;
    padding: 8px 18px;
    color: #d8c7ff;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    transition: background .2s, color .2s;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}
.nav-links li.active a {
    color: #fff;
    background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(236,72,153,.25));
    box-shadow: 0 0 12px rgba(168,85,247,.45);
}

/* 右上角登录/注册按钮 —— 让 <a> 也能套用 btn 样式 */
a.btn-outline,
a.btn-primary {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}
a.btn-outline,
a.btn-outline:visited {
    color: #d8c7ff;
    border: 1px solid #6c4bbf;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
}
a.btn-outline:hover {
    background: rgba(168,85,247,.15);
    color: #fff;
}
a.btn-primary,
a.btn-primary:visited {
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 0 12px rgba(168,85,247,.45);
}
a.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}


/* ============ 仅作用于本页：.ts-scope ============ */
.ts-scope{--p:#9b6dff;--p2:#c9a8ff;--bg:#15101f;--bg2:#1d1530;--gold:#ffd47a;--gold2:#ffb347;}
.ts-scope *{box-sizing:border-box;}

/* ===== Hero ===== */
.ts-scope .ts-hero{
    position:relative;text-align:center;padding:60px 20px 48px;
    background:radial-gradient(ellipse at top,#3a1f6b 0%,#1a1330 60%,#15101f 100%);
    border-radius:20px;margin-bottom:32px;overflow:hidden;
    border:1px solid rgba(155,109,255,.25);
}
.ts-scope .ts-hero::before{
    content:"";position:absolute;inset:0;
    background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><circle cx='10' cy='20' r='1' fill='white' opacity='.5'/><circle cx='40' cy='80' r='.8' fill='white' opacity='.4'/><circle cx='75' cy='35' r='1.2' fill='white' opacity='.6'/><circle cx='90' cy='10' r='.6' fill='white' opacity='.3'/></svg>");
    opacity:.5;animation:tsTwinkle 6s linear infinite;
}
@keyframes tsTwinkle{0%,100%{opacity:.3;}50%{opacity:.7;}}
.ts-scope .ts-hero h1{
    font-size:2.6rem;margin:0 0 14px;position:relative;
    background:linear-gradient(90deg,#ffd47a,#c9a8ff,#9b6dff);
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
    text-shadow:0 0 30px rgba(201,168,255,.3);
}
.ts-scope .ts-hero p{color:#cbb8ff;max-width:680px;margin:0 auto;line-height:1.8;position:relative;}
.ts-scope .ts-hero-tags{margin-top:22px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;position:relative;}
.ts-scope .ts-hero-tags span{background:rgba(155,109,255,.18);color:#e6d8ff;padding:7px 16px;border-radius:20px;font-size:.85rem;border:1px solid rgba(201,168,255,.25);}

/* ===== Section ===== */
.ts-scope .ts-section-head{display:flex;align-items:center;justify-content:space-between;margin:32px 0 18px;}
.ts-scope .ts-section-head h2{font-size:1.5rem;margin:0;color:#eadcff;border:none;padding:0;font-family:inherit;font-weight:600;}
.ts-scope .ts-section-head .ts-hint{color:#9788b8;font-size:.85rem;}

/* ===== 牌阵卡片(含立体迷你牌阵) ===== */
.ts-scope .ts-spread-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px;}
.ts-scope .ts-spread-card{
    width:auto;height:auto;display:block;text-align:left;
    background:linear-gradient(160deg,#231838,#1a1228);
    border:1px solid rgba(155,109,255,.22);
    border-radius:18px;padding:20px;cursor:pointer;
    transition:.3s;position:relative;overflow:hidden;
    color:inherit;box-shadow:none;
}
.ts-scope .ts-spread-card::after{
    content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;
    background:radial-gradient(circle,rgba(201,168,255,.15) 0%,transparent 60%);
    opacity:0;transition:.4s;pointer-events:none;
}
.ts-scope .ts-spread-card:hover{transform:translateY(-6px);border-color:#9b6dff;box-shadow:0 14px 40px rgba(155,109,255,.3);}
.ts-scope .ts-spread-card:hover::after{opacity:1;}

.ts-scope .ts-mini-stage{
    height:180px;position:relative;margin-bottom:14px;
    background:radial-gradient(ellipse at center,#2a1b4a 0%,#15101f 80%);
    border-radius:12px;perspective:600px;overflow:hidden;
    border:1px solid rgba(155,109,255,.15);
}
.ts-scope .ts-mini-card{
    position:absolute;width:32px;height:48px;border-radius:4px;
    background:linear-gradient(160deg,#5b3fa0,#7a52d8);
    border:1px solid #c9a8ff;
    box-shadow:0 4px 10px rgba(0,0,0,.5),inset 0 0 8px rgba(255,255,255,.1);
    transform-style:preserve-3d;transition:.5s;
}
.ts-scope .ts-mini-card::before{
    content:"✦";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
    color:#ffd47a;font-size:14px;text-shadow:0 0 6px #ffd47a;
}
.ts-scope .ts-spread-card:hover .ts-mini-card{box-shadow:0 6px 16px rgba(201,168,255,.5);}

.ts-scope .ts-spread-card h3{margin:0 0 8px;color:#fff;font-size:1.15rem;font-family:inherit;font-weight:600;}
.ts-scope .ts-spread-card .ts-desc{color:#a89cc7;font-size:.88rem;line-height:1.55;min-height:48px;}
.ts-scope .ts-spread-card .ts-meta{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap;}
.ts-scope .ts-spread-card .ts-meta span{font-size:.75rem;background:rgba(255,255,255,.05);color:#cbb8ff;padding:5px 10px;border-radius:12px;}
.ts-scope .level-easy{color:#7ee0a1!important;}
.ts-scope .level-mid{color:#ffd07a!important;}
.ts-scope .level-hard{color:#ff8aa3!important;}

/* ===== Modal 牌阵详情（独立类名，避开全局 .modal） ===== */
.ts-mask{
    position:fixed;inset:0;background:rgba(8,4,20,.85);backdrop-filter:blur(8px);
    z-index:1000;display:none;align-items:center;justify-content:center;padding:20px;
}
.ts-mask.show{display:flex;animation:tsFadeIn .3s;}
@keyframes tsFadeIn{from{opacity:0;}to{opacity:1;}}
.ts-modal-box{
    width:100%;max-width:780px;max-height:90vh;overflow-y:auto;
    background:linear-gradient(160deg,#1d1530,#15101f);
    border:1px solid rgba(201,168,255,.35);border-radius:20px;
    padding:32px 28px 100px;position:relative;
    box-shadow:0 20px 60px rgba(155,109,255,.3);
}
.ts-modal-close{
    position:absolute;top:14px;right:18px;background:none;border:none;
    color:#cbb8ff;font-size:1.6rem;cursor:pointer;z-index:2;
}
.ts-modal-box h2{margin:0 0 6px;color:#fff;font-size:1.6rem;border:none;padding:0;font-family:inherit;}
.ts-modal-box .ts-sub{color:#a89cc7;margin-bottom:20px;}
.ts-detail-stage{
    height:320px;position:relative;background:radial-gradient(ellipse at center,#2a1b4a 0%,#0f0a1a 80%);
    border-radius:14px;border:1px solid rgba(155,109,255,.2);margin-bottom:18px;perspective:1000px;
}
.ts-detail-card{
    position:absolute;width:64px;height:96px;border-radius:6px;
    background:linear-gradient(160deg,#5b3fa0,#7a52d8);
    border:1.5px solid #c9a8ff;
    display:flex;align-items:center;justify-content:center;
    color:#ffd47a;font-size:20px;text-shadow:0 0 8px #ffd47a;
    box-shadow:0 6px 20px rgba(0,0,0,.5);transition:.4s;
}
.ts-detail-card .ts-pos-label{
    position:absolute;bottom:-22px;left:50%;transform:translateX(-50%) rotate(0deg);
    font-size:.7rem;color:#cbb8ff;white-space:nowrap;
}
.ts-intro-block{background:#15101f;border-radius:10px;padding:16px;border-left:3px solid #9b6dff;margin-bottom:14px;}
.ts-intro-block h4{margin:0 0 6px;color:#c9a8ff;font-size:.95rem;}
.ts-intro-block p{margin:0;color:#d8cdf2;font-size:.9rem;line-height:1.7;}
.ts-pos-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-top:10px;}
.ts-pos-list .ts-item{background:rgba(155,109,255,.08);padding:10px 12px;border-radius:8px;font-size:.85rem;color:#e6d8ff;}
.ts-pos-list .ts-item b{color:#ffd47a;display:block;margin-bottom:2px;font-size:.78rem;}

.ts-magic-btn{
    position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
    padding:14px 38px;border-radius:30px;border:none;cursor:pointer;
    background:linear-gradient(90deg,#9b6dff,#ffd47a);
    color:#1a1330;font-weight:bold;font-size:1.05rem;
    box-shadow:0 0 20px rgba(255,212,122,.5),0 0 40px rgba(155,109,255,.4);
    animation:tsMagicPulse 2s ease-in-out infinite;
}
@keyframes tsMagicPulse{
    0%,100%{box-shadow:0 0 20px rgba(255,212,122,.5),0 0 40px rgba(155,109,255,.4);}
    50%{box-shadow:0 0 30px rgba(255,212,122,.8),0 0 60px rgba(155,109,255,.7);transform:translateX(-50%) scale(1.03);}
}

/* ===== 仪式特效 ===== */
.ts-ritual{
    position:fixed;inset:0;background:#000;z-index:2000;display:none;
    align-items:center;justify-content:center;flex-direction:column;overflow:hidden;
}
.ts-ritual.show{display:flex;}
.ts-ritual-bg{
    position:absolute;inset:0;
    background:radial-gradient(ellipse at center,#2a1b4a 0%,#000 70%);
    opacity:0;transition:1.5s;
}
.ts-ritual.lit .ts-ritual-bg{opacity:1;}
.ts-ritual-particles{position:absolute;inset:0;pointer-events:none;}
.ts-particle{
    position:absolute;width:3px;height:3px;border-radius:50%;
    background:#ffd47a;box-shadow:0 0 8px #ffd47a;
    animation:tsFloatUp linear infinite;
}
@keyframes tsFloatUp{
    0%{transform:translateY(100vh) scale(0);opacity:0;}
    20%{opacity:1;}
    100%{transform:translateY(-20vh) scale(1);opacity:0;}
}
.ts-ritual-icon{
    font-size:6rem;color:#ffd47a;text-shadow:0 0 30px #ffd47a,0 0 60px #9b6dff;
    margin-bottom:24px;animation:tsBreath 2.5s ease-in-out infinite;z-index:2;
}
@keyframes tsBreath{0%,100%{transform:scale(1);}50%{transform:scale(1.1);}}
.ts-ritual-text{
    color:#fff;font-size:1.4rem;letter-spacing:4px;z-index:2;
    text-shadow:0 0 12px rgba(255,212,122,.5);
}
.ts-ritual-progress{
    position:absolute;bottom:60px;left:50%;transform:translateX(-50%);
    width:300px;height:3px;background:rgba(255,255,255,.15);border-radius:2px;overflow:hidden;
}
.ts-ritual-progress .ts-fill{
    height:100%;width:0;background:linear-gradient(90deg,#9b6dff,#ffd47a);
    transition:width .3s linear;box-shadow:0 0 10px #ffd47a;
}

/* ===== 抽卡特效 ===== */
.ts-gacha{
    position:fixed;inset:0;background:#000;z-index:2100;display:none;
    align-items:center;justify-content:center;overflow:hidden;
}
.ts-gacha.show{display:flex;}
.ts-gacha-beam{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:6px;height:0;background:linear-gradient(to top,transparent,#ffd47a,transparent);
    box-shadow:0 0 60px 20px #ffd47a;opacity:0;
}
.ts-gacha-beam.fire{animation:tsBeamFire 1.2s ease-out forwards;}
@keyframes tsBeamFire{
    0%{height:0;opacity:0;}
    30%{height:100vh;opacity:1;}
    100%{height:100vh;opacity:0;}
}
.ts-gacha-flash{
    position:absolute;inset:0;background:radial-gradient(circle at center,#fff,transparent 60%);
    opacity:0;pointer-events:none;
}
.ts-gacha-flash.fire{animation:tsFlashFire .6s ease-out;}
@keyframes tsFlashFire{0%{opacity:0;}40%{opacity:1;}100%{opacity:0;}}

.ts-gacha-cards{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;perspective:1200px;padding:20px;max-width:95vw;}
.ts-gacha-card{
    width:130px;height:200px;position:relative;transform-style:preserve-3d;
    transform:rotateY(180deg) scale(.3);opacity:0;
    transition:transform 1s cubic-bezier(.2,1.2,.5,1),opacity .5s;
}
.ts-gacha-card.flipped{transform:rotateY(0) scale(1);opacity:1;}
.ts-gacha-card .ts-face{
    position:absolute;inset:0;border-radius:10px;backface-visibility:hidden;
    display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;
    border:2px solid #c9a8ff;box-shadow:0 10px 30px rgba(155,109,255,.6);
}
.ts-gacha-card .ts-back{
    background:linear-gradient(160deg,#5b3fa0,#7a52d8);transform:rotateY(180deg);
    color:#ffd47a;font-size:32px;text-shadow:0 0 10px #ffd47a;
}
.ts-gacha-card .ts-front{
    background:linear-gradient(160deg,#2a1b4a,#1a1330);color:#fff;text-align:center;
}
.ts-gacha-card .ts-front .ts-star{color:#ffd47a;font-size:14px;margin-bottom:6px;text-shadow:0 0 6px #ffd47a;}
.ts-gacha-card .ts-front .ts-name{font-size:1.1rem;font-weight:bold;margin:6px 0;color:#ffd47a;}
.ts-gacha-card .ts-front .ts-pos{font-size:.7rem;color:#cbb8ff;margin-bottom:6px;}
.ts-gacha-card .ts-front .ts-meaning{font-size:.72rem;color:#d8cdf2;line-height:1.4;}
.ts-gacha-card.legendary .ts-front{background:linear-gradient(160deg,#5a3a00,#1a1330);border-color:#ffd47a;box-shadow:0 0 30px #ffd47a;}

.ts-gacha-tip{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);color:#cbb8ff;font-size:.9rem;}
.ts-gacha-finish{
    position:absolute;bottom:30px;right:30px;padding:10px 22px;border-radius:20px;border:none;cursor:pointer;
    background:linear-gradient(90deg,#9b6dff,#ffd47a);color:#1a1330;font-weight:bold;display:none;
}
.ts-gacha-finish.show{display:block;}

/* ===== 解读弹框 ===== */
.ts-reading{
    position:fixed;inset:0;background:rgba(8,4,20,.9);backdrop-filter:blur(10px);
    z-index:2200;display:none;align-items:center;justify-content:center;padding:20px;
}
.ts-reading.show{display:flex;}
.ts-reading-box{
    max-width:760px;width:100%;max-height:90vh;overflow-y:auto;
    background:linear-gradient(160deg,#1d1530,#15101f);
    border:1px solid rgba(201,168,255,.35);border-radius:20px;padding:30px;position:relative;
}
.ts-reading-box h2{margin:0 0 16px;color:#fff;border:none;padding:0;font-family:inherit;}
.ts-reading-item{
    background:#15101f;border-left:3px solid #9b6dff;border-radius:8px;
    padding:14px 18px;margin-bottom:12px;
}
.ts-reading-item h4{margin:0 0 6px;color:#c9a8ff;font-size:.95rem;}
.ts-reading-item .ts-content{color:#d8cdf2;font-size:.9rem;line-height:1.6;}
/* ===== 每日快速抽卡 ===== */
.ts-scope .ts-daily{
    display:grid;grid-template-columns:1.1fr 1fr;gap:30px;align-items:center;
    background:linear-gradient(135deg,#1f1438 0%,#2a1b4a 50%,#1a1330 100%);
    border:1px solid rgba(201,168,255,.25);border-radius:20px;
    padding:36px 32px;margin-bottom:36px;position:relative;overflow:hidden;
}
.ts-scope .ts-daily::before{
    content:"";position:absolute;inset:0;
    background:radial-gradient(circle at 80% 20%,rgba(255,212,122,.15),transparent 50%),
    radial-gradient(circle at 20% 80%,rgba(155,109,255,.2),transparent 50%);
    pointer-events:none;
}
.ts-scope .ts-daily-info{position:relative;z-index:2;}
.ts-scope .ts-daily-info .ts-tag{
    display:inline-block;padding:5px 14px;border-radius:20px;font-size:.78rem;
    background:rgba(255,212,122,.15);color:#ffd47a;border:1px solid rgba(255,212,122,.35);
    margin-bottom:14px;letter-spacing:1px;
}
.ts-scope .ts-daily-info h2{
    font-size:1.9rem;margin:0 0 12px;color:#fff;border:none;padding:0;font-family:inherit;
    background:linear-gradient(90deg,#ffd47a,#c9a8ff);
    -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.ts-scope .ts-daily-info p{color:#cbb8ff;line-height:1.8;margin:0 0 18px;font-size:.95rem;}
.ts-scope .ts-daily-info .ts-daily-meta{display:flex;gap:12px;flex-wrap:wrap;color:#a89cc7;font-size:.82rem;}
.ts-scope .ts-daily-info .ts-daily-meta span{background:rgba(255,255,255,.05);padding:5px 12px;border-radius:14px;}

.ts-scope .ts-daily-stage{
    position:relative;height:280px;perspective:1200px;
    display:flex;justify-content:center;align-items:center;
}
.ts-scope .ts-daily-card{
    position:absolute;width:120px;height:180px;border-radius:10px;
    transform-style:preserve-3d;transition:transform .8s cubic-bezier(.2,1.2,.5,1),top .3s;
    cursor:pointer;
}
.ts-scope .ts-daily-card:nth-child(1){transform:translateX(-130px) rotate(-12deg);}
.ts-scope .ts-daily-card:nth-child(2){transform:translateX(0) rotate(0deg);z-index:2;}
.ts-scope .ts-daily-card:nth-child(3){transform:translateX(130px) rotate(12deg);}
.ts-scope .ts-daily-card:hover{transform:translateY(-10px) rotate(0deg) scale(1.05);z-index:3;}
.ts-scope .ts-daily-card.flipped:nth-child(1){transform:translateX(-130px) rotate(-8deg) rotateY(180deg);}
.ts-scope .ts-daily-card.flipped:nth-child(2){transform:translateX(0) rotateY(180deg);}
.ts-scope .ts-daily-card.flipped:nth-child(3){transform:translateX(130px) rotate(8deg) rotateY(180deg);}
.ts-scope .ts-daily-card .ts-face{
    position:absolute;inset:0;border-radius:10px;backface-visibility:hidden;
    border:2px solid #c9a8ff;box-shadow:0 10px 25px rgba(0,0,0,.5);
    display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;
}
.ts-scope .ts-daily-card .ts-back{
    background:linear-gradient(160deg,#5b3fa0,#7a52d8);
    color:#ffd47a;font-size:34px;text-shadow:0 0 12px #ffd47a;
}
.ts-scope .ts-daily-card .ts-back::after{
    content:"";position:absolute;inset:8px;border:1px dashed rgba(255,212,122,.5);border-radius:6px;
}
.ts-scope .ts-daily-card .ts-front{
    background:linear-gradient(160deg,#2a1b4a,#1a1330);transform:rotateY(180deg);
    color:#fff;text-align:center;
}
.ts-scope .ts-daily-card .ts-front .ts-name{
    font-size:1.05rem;font-weight:bold;color:#ffd47a;margin:8px 0 4px;
}
.ts-scope .ts-daily-card .ts-front .ts-meaning{font-size:.72rem;color:#d8cdf2;line-height:1.4;}
.ts-scope .ts-daily-card .ts-front .ts-star{color:#ffd47a;font-size:13px;text-shadow:0 0 6px #ffd47a;}

.ts-scope .ts-daily-result{
    grid-column:1/-1;position:relative;z-index:2;display:none;
    margin-top:8px;padding:18px 22px;border-radius:14px;
    background:rgba(15,10,26,.6);border-left:3px solid #ffd47a;
}
.ts-scope .ts-daily-result.show{display:block;animation:tsFadeIn .5s;}
.ts-scope .ts-daily-result h4{margin:0 0 8px;color:#ffd47a;font-size:1rem;}
.ts-scope .ts-daily-result p{margin:0;color:#d8cdf2;font-size:.9rem;line-height:1.7;}

@media(max-width:760px){
    .ts-scope .ts-daily{grid-template-columns:1fr;padding:24px 18px;}
    .ts-scope .ts-daily-stage{height:240px;}
    .ts-scope .ts-daily-card{width:90px;height:135px;}
    .ts-scope .ts-daily-card:nth-child(1){transform:translateX(-95px) rotate(-12deg);}
    .ts-scope .ts-daily-card:nth-child(3){transform:translateX(95px) rotate(12deg);}
}

/* ============================================
   每日一抽 · 星空沉浸版 (还原 tarotqa.com)
   ============================================ */
.ts-daily-v2 {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* ---- 星空背景层 ---- */
.ts-daily-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* 星空画布 (JS动态生成星星) */
.ts-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* 静态星点层 (CSS伪元素 + radial-gradient) */
.ts-daily-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(2px 2px at 15% 20%, rgba(255,255,255,0.9), transparent),
            radial-gradient(1.5px 1.5px at 85% 15%, rgba(255,255,255,0.7), transparent),
            radial-gradient(1px 1px at 30% 45%, rgba(200,180,255,0.8), transparent),
            radial-gradient(2px 2px at 70% 35%, rgba(255,255,255,0.85), transparent),
            radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,0.75), transparent),
            radial-gradient(1px 1px at 10% 70%, rgba(200,180,255,0.7), transparent),
            radial-gradient(2.5px 2.5px at 90% 65%, rgba(255,255,255,0.9), transparent),
            radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
            radial-gradient(1.5px 1.5px at 65% 75%, rgba(200,180,255,0.75), transparent),
            radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.65), transparent);
    background-size: 100% 100%;
    animation: starsTwinkle 4s ease-in-out infinite alternate;
}

@keyframes starsTwinkle {
    0%   { opacity: 0.45; }
    100% { opacity: 0.9; }
}

/* ---- 流星 ---- */
.ts-meteor {
    position: absolute;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(45deg,
    rgba(255,255,255,1) 0%,
    rgba(246,246,246,0.5) 47%,
    rgba(237,237,237,0) 100%);
    animation: meteorFall linear infinite;
    opacity: 0;
}

.ts-meteor.m1 { width: 103px; top: 143px; left: 50%;  transform: rotate(-20deg); animation-duration: 10s; animation-delay: 0s; }
.ts-meteor.m2 { width: 70px;  top: 52px;  left: 114px; transform: rotate(-12deg); animation-duration: 11s; animation-delay: 2.5s; }
.ts-meteor.m3 { width: 121px; top: 124px; right: 264px; transform: rotate(-23deg); animation-duration: 9s; animation-delay: 5s; }
.ts-meteor.m4 { width: 43px;  top: 65px;  right: 264px; transform: rotate(-12deg); animation-duration: 12s; animation-delay: 1.5s; }
.ts-meteor.m5 { width: 51px;  top: 65px;  left: 264px; transform: rotate(-12deg); animation-duration: 10.5s; animation-delay: 7s; }
.ts-meteor.m6 { width: 86px;  top: 65px;  left: 525px; transform: rotate(-21deg); animation-duration: 9.5s; animation-delay: 3.5s; }

@keyframes meteorFall {
    0%   { opacity: 0;   transform: translateX(0)    translateY(0)    rotate(var(--r, -20deg)); }
    5%   { opacity: 0.8; }
    15%  { opacity: 1; }
    100% { opacity: 0;   transform: translateX(-600px) translateY(400px) rotate(var(--r, -20deg)); }
}

/* ---- 内容层 ---- */
.ts-daily-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* ---- 标题 ---- */
.ts-daily-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ts-daily-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    background: rgba(255,212,122,0.12);
    color: #ffd47a;
    border: 1px solid rgba(255,212,122,0.3);
    margin-bottom: 4px;
}

.ts-daily-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.ts-daily-subtitle {
    font-size: 1.6rem;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #c66ccd, #a78bfa, #c66ccd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-daily-subtitle-light {
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.ts-daily-desc {
    color: #b8a9d4;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 4px 0 0;
}

.ts-birthday-btn {
    margin-top: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    background: rgba(147,51,234,0.2);
    color: #d4bfff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}
.ts-birthday-btn:hover {
    background: rgba(147,51,234,0.35);
    color: #fff;
}

/* ---- 卡牌区 ---- */
.ts-daily-card-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* 光束光晕 */
.ts-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,109,255,0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* 三张牌并排 */
.ts-daily-cards-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}

/* 单张牌 */
.ts-daily-card-v2 {
    width: 150px;
    height: 225px;
    cursor: pointer;
    perspective: 800px;
    transition: transform 0.3s;
}
.ts-daily-card-v2:hover {
    transform: translateY(-8px);
}

.ts-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.ts-daily-card-v2.flipped .ts-card-inner {
    transform: rotateY(180deg);
}

.ts-card-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    overflow: hidden;
}

/* 背面 - 星空紫 */
.ts-card-back {
    background: linear-gradient(160deg, #3a1f6b 0%, #1a1330 50%, #2d1b4e 100%);
    border: 2px solid rgba(180,130,255,0.5);
    box-shadow:
            0 0 30px rgba(155,109,255,0.35),
            0 0 60px rgba(155,109,255,0.15),
            inset 0 0 30px rgba(180,130,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-card-back-pattern {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1.5px dashed rgba(200,160,255,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ts-card-back-pattern::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 0.5px solid rgba(200,160,255,0.2);
    border-radius: 6px;
}

.ts-card-star {
    font-size: 2.2rem;
    color: #ffd47a;
    text-shadow: 0 0 16px rgba(255,212,122,0.8), 0 0 32px rgba(255,212,122,0.4);
    animation: starBreath 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes starBreath {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.15); opacity: 1; }
}

/* 正面 - 深色底 */
.ts-card-front {
    background: linear-gradient(160deg, #1a1030, #0d0820);
    border: 2px solid rgba(180,130,255,0.5);
    box-shadow: 0 0 30px rgba(155,109,255,0.35);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ts-card-front-content {
    text-align: center;
    color: #fff;
    width: 100%;
}

.ts-card-front-content .ts-front-star {
    color: #ffd47a;
    font-size: 13px;
    text-shadow: 0 0 8px #ffd47a;
    margin-bottom: 8px;
    display: block;
}

.ts-card-front-content .ts-front-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd47a;
    margin-bottom: 6px;
}

.ts-card-front-content .ts-front-pos {
    font-size: 0.7rem;
    color: #b8a9d4;
    margin-bottom: 8px;
}

.ts-card-front-content .ts-front-meaning {
    font-size: 0.75rem;
    color: #cbb8ff;
    line-height: 1.5;
}

/* ---- 提示按钮 ---- */
.ts-reveal-hint {
    position: relative;
    z-index: 1;
    padding: 12px 32px;
    border-radius: 40px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #a89cc7;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.ts-reveal-hint:not(:disabled) {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: #fff;
    box-shadow: 0 0 20px rgba(147,51,234,0.4);
}
.ts-reveal-hint:not(:disabled):hover {
    box-shadow: 0 0 30px rgba(147,51,234,0.6);
    transform: translateY(-2px);
}
.ts-reveal-hint:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---- 结果展示 ---- */
.ts-daily-result-v2 {
    width: 100%;
    max-width: 500px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(15,10,26,0.7);
    border: 1px solid rgba(180,130,255,0.2);
    border-left: 3px solid #ffd47a;
    display: none;
    animation: resultFadeIn 0.5s ease;
}

.ts-daily-result-v2.show {
    display: block;
}

.ts-daily-result-v2 h4 {
    margin: 0 0 10px;
    color: #ffd47a;
    font-size: 1rem;
}

.ts-daily-result-v2 p {
    margin: 0;
    color: #cbb8ff;
    font-size: 0.9rem;
    line-height: 1.7;
}

@keyframes resultFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
    .ts-daily-card-v2 {
        width: 110px;
        height: 165px;
    }
    .ts-daily-cards-row {
        gap: 10px;
    }
    .ts-daily-title {
        font-size: 2rem;
    }
    .ts-daily-subtitle {
        font-size: 1.3rem;
    }
    .ts-card-glow {
        width: 200px;
        height: 200px;
    }
}

/* ========= Tarot 占卜首页（牌阵选择 · 注意事项 · 步骤） ========= */
.ts-scope .tq-tarot-hero {
    text-align: center;
    padding: 42px 18px 36px;
    margin-bottom: 8px;
    border-radius: 20px;
    background: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(72, 38, 130, 0.55) 0%, rgba(21, 16, 31, 0.92) 52%, #120e1a 100%);
    border: 1px solid rgba(155, 109, 255, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.ts-scope .tq-tarot-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ffd47a, #e8d4ff, #c9a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    padding: 0;
}
.ts-scope .tq-tarot-hero-tags {
    margin: 0 0 18px;
    color: #cbb8ff;
    font-size: 0.92rem;
}
.ts-scope .tq-tarot-hero-tags .tq-dot { margin: 0 8px; opacity: 0.65; color: #ffd47a; }
.ts-scope .tq-tarot-quota {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(40, 22, 72, 0.65);
    border: 1px solid rgba(201, 168, 255, 0.35);
    color: #f5e8ff;
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.ts-scope .tq-tarot-quota strong { color: #ffd47a; font-weight: 800; font-size: 1.05rem; }
.ts-scope .tq-tarot-quota-link {
    color: #ffd47a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.ts-scope .tq-tarot-quota-link:hover { color: #fff2cc; }
.ts-scope .tq-tarot-hero-lead {
    margin: 0 auto;
    max-width: 640px;
    color: #b8a8d4;
    font-size: 0.92rem;
    line-height: 1.75;
}

.ts-scope .tq-tarot-spreads {
    padding-bottom: 8px;
}

.ts-scope .tq-section-title {
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin: 48px 0 22px;
    border: none;
    padding: 0;
    position: relative;
}
.ts-scope .tq-section-title::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

.ts-scope .tq-notice-section {
    padding: 8px 0 28px;
}
.ts-scope .tq-notice-list {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 8px;
}
.ts-scope .tq-notice-item {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(155, 109, 255, 0.2);
    background: rgba(32, 22, 52, 0.55);
}
.ts-scope .tq-notice-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #e8defa;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s;
}
.ts-scope .tq-notice-btn:hover { background: rgba(155, 109, 255, 0.12); }
.ts-scope .tq-notice-ico {
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    color: #c9a8ff;
    font-size: 1.1rem;
}
.ts-scope .tq-notice-panel {
    padding: 0 18px 16px;
    border-top: 1px solid rgba(155, 109, 255, 0.12);
}
.ts-scope .tq-notice-panel p {
    margin: 12px 0 0;
    color: #bdb0dc;
    font-size: 0.88rem;
    line-height: 1.72;
}

.ts-scope .tq-steps-section {
    padding: 12px 0 36px;
}
.ts-scope .tq-steps-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 16px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}
.ts-scope .tq-steps-list .tq-step {
    border-left: 2px solid #9b6dff;
    padding: 6px 0 14px 16px;
    margin-left: 4px;
}
.ts-scope .tq-steps-list .tq-step h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
}
.ts-scope .tq-steps-list .tq-step p {
    margin: 0;
    color: #b8a8d4;
    font-size: 0.86rem;
    line-height: 1.65;
}
.ts-scope .tq-step-visual {
    min-height: 280px;
    border-radius: 16px;
    background: linear-gradient(145deg, #1e1b4b 0%, #4c2d8f 45%, #152238 100%);
    box-shadow: 0 0 48px rgba(155, 109, 255, 0.25);
}

.ts-scope .tq-features-section {
    padding: 12px 0 36px;
}
.ts-scope .tq-features-grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.ts-scope .tq-feature {
    background: rgba(32, 22, 52, 0.55);
    border: 1px solid rgba(155, 109, 255, 0.18);
    border-radius: 14px;
    padding: 18px 16px;
}
.ts-scope .tq-feature h4 {
    margin: 0 0 10px;
    color: #e8d4ff;
    font-size: 0.95rem;
    font-weight: 700;
}
.ts-scope .tq-feature h4::before {
    content: "✦ ";
    color: #ffd47a;
}
.ts-scope .tq-feature p {
    margin: 0;
    color: #b8a8d4;
    font-size: 0.82rem;
    line-height: 1.65;
}

.ts-scope .tq-explore-section {
    padding: 12px 0 56px;
}
.ts-scope .tq-explore-grid {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.ts-scope .tq-explore-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(32, 22, 52, 0.55);
    border: 1px solid rgba(155, 109, 255, 0.2);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ts-scope .tq-explore-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 255, 0.45);
    box-shadow: 0 14px 36px rgba(100, 60, 160, 0.35);
}
.ts-scope .tq-explore-img {
    height: 110px;
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
}
.ts-scope .tq-explore-img.b { background: linear-gradient(135deg, #1e3a8a, #7c3aed); }
.ts-scope .tq-explore-img.c { background: linear-gradient(135deg, #831843, #7c3aed); }
.ts-scope .tq-explore-body {
    padding: 14px 16px 18px;
}
.ts-scope .tq-explore-body h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}
.ts-scope .tq-explore-body p {
    margin: 0;
    color: #b8a8d4;
    font-size: 0.82rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .ts-scope .tq-steps-wrap { grid-template-columns: 1fr; }
    .ts-scope .tq-step-visual { min-height: 200px; order: -1; }
    .ts-scope .tq-features-grid { grid-template-columns: 1fr; }
    .ts-scope .tq-explore-grid { grid-template-columns: 1fr; }
}
