/* 天机 v31 - COSMOS 全局主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== COSMOS 配色 ===== */
:root {
    --void: #020408;
    --void-surface: #050d18;
    --void-card: #0a1525;
    --gold: #c9a84c;
    --gold-light: #f0d080;
    --cyan: #00d4ff;
    --purple: #7b4fa6;
    --rose: #e05c8a;
    --free: #50c878;
    --paid: #c9a84c;
    --text: #d4c8b0;
    --text-dim: #8a7e6b;
    --white: #f0ece0;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(201,168,76,0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', Roboto, sans-serif;
    background: var(--void);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    color: var(--text);
}

/* 主容器 */
.container {
    max-width: 1300px;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    overflow-x: hidden;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 1;
}

/* 页面 */
.page { display: none; padding: 0 40px 80px; min-height: 500px; position: relative; z-index: 1; }
.page.active { display: block; }

/* 顶部渐变条 - cosmos style */
.header {
    background: transparent;
    padding: 40px 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
/* 顶部装饰光晕 - cosmos radial */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: radial-gradient(circle at center, rgba(201,168,76,1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 罗盘装饰 - simplified */
.header-compass {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    margin-top: -60px; margin-left: -60px;
    border: 2px solid rgba(201, 168, 76, 0.12);
    border-radius: 50%;
    animation: compassRotate 40s linear infinite;
    opacity: 0.2;
}
.header-compass::before {
    content: '';
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1.5px solid rgba(0, 212, 255, 0.08);
    border-radius: 50%;
}
.header-compass::after {
    content: '';
    position: absolute;
    top: 30px; left: 30px; right: 30px; bottom: 30px;
    border: 1px solid rgba(201, 168, 76, 0.06);
    border-radius: 50%;
}

@keyframes compassRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header h1 {
    font-size: 26px;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    color: var(--white);
    letter-spacing: 0.1em;
}
.header h1 .gold-text { color: var(--gold); }
.header .subtitle {
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.3em;
    position: relative;
    z-index: 3;
    margin-top: 4px;
}

.header p {
    font-size: 14px;
    opacity: 0.92;
    position: relative;
    z-index: 3;
    color: var(--text);
}

/* 个人资料卡片 */
.profile-card {
    background: rgba(5, 13, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: none;
}

.profile-card h3 { margin-bottom: 15px; font-size: 18px; color: var(--white); }

.profile-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    border: 1px solid var(--border);
}

/* 个人资料条 - 首页精简顶部 */
.profile-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(5, 13, 24, 0.8);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}
.profile-bar-text {
    font-size: 14px;
    color: var(--text);
}
.profile-bar-edit {
    font-size: 14px;
    color: var(--void);
    cursor: pointer;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.profile-bar-edit:hover {
    filter: brightness(1.1);
}

/* 进度条 */
.profile-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}
.profile-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 0.5s ease;
}
.profile-progress-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
    text-align: right;
}

/* 表单 */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group { margin-bottom: 15px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 500; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px; font-size: 16px;
    background: rgba(20, 32, 48, 0.95) !important;
    color: #fff !important;
    transition: all 0.3s;
}
.form-control::placeholder { color: rgba(138, 126, 107, 0.8); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12); background: rgba(25, 40, 55, 0.98) !important; }

/* 日期选择器修复 - Chrome/Edge 默认白底灰字 */
input[type="date"], input[type="date"].form-control {
    background: rgba(20, 32, 48, 0.95) !important;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"].form-control::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

/* 性别选择 */
.gender-row { display: flex; gap: 10px; }
.gender-btn {
    flex: 1; padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px; text-align: center;
    cursor: pointer; transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-size: 15px;
}
.gender-btn:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.05); }
.gender-btn.selected { border-color: var(--gold); background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05)); color: var(--gold); box-shadow: 0 4px 12px rgba(201, 168, 76, 0.15); }

/* 按钮 - 统一样式 */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--void); border: none; border-radius: 12px;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; text-decoration: none;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
    text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: linear-gradient(135deg, #3a4556, #4a5568); color: var(--text); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.btn-payment { background: linear-gradient(135deg, var(--rose), var(--purple)); color: var(--white); box-shadow: 0 4px 15px rgba(224, 92, 138, 0.25); }

.quick-fill button {
    padding: 10px; font-size: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 8px;
    cursor: pointer; flex: 1;
    transition: all 0.3s;
}
.quick-fill button:hover { background: rgba(201, 168, 76, 0.08); border-color: var(--gold); color: var(--text); }
.quick-fill { display: flex; gap: 10px; margin: 15px 0; }

/* 功能卡片 - 3列网格 */
.function-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }

.function-card {
    background: rgba(5, 13, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.function-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.15);
}

/* 图标盒子 - 48x48 渐变方块 */
.function-card h3 {
    position: relative;
}
.function-card h3 .card-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    font-size: 24px;
}

/* 各卡片主题色 */

/* 八字 - 玫红 gradient(135deg, #be185d, #e11d48) */
.function-card:nth-child(1) h3 .card-emoji { background: linear-gradient(135deg, #be185d, #e11d48); color: white; }
.function-card:nth-child(1) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(1) p { color: var(--text-dim); font-size: 12px; }

/* 紫微 - 紫色 gradient(135deg, #4c1d95, #7c3aed) */
.function-card:nth-child(2) h3 .card-emoji { background: linear-gradient(135deg, #4c1d95, #7c3aed); color: white; }
.function-card:nth-child(2) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(2) p { color: var(--text-dim); font-size: 12px; }

/* 合婚 - 青色 gradient(135deg, #0891b2, #06b6d4) */
.function-card:nth-child(3) h3 .card-emoji { background: linear-gradient(135deg, #0891b2, #06b6d4); color: white; }
.function-card:nth-child(3) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(3) p { color: var(--text-dim); font-size: 12px; }

/* 星座 - 靛蓝 gradient(135deg, #4338ca, #6366f1) */
.function-card:nth-child(4) h3 .card-emoji { background: linear-gradient(135deg, #4338ca, #6366f1); color: white; }
.function-card:nth-child(4) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(4) p { color: var(--text-dim); font-size: 12px; }

/* 黄历 - 橙色 gradient(135deg, #7c2d12, #ea580c) */
.function-card:nth-child(5) h3 .card-emoji { background: linear-gradient(135deg, #7c2d12, #ea580c); color: white; }
.function-card:nth-child(5) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(5) p { color: var(--text-dim); font-size: 12px; }

/* 抽签 - 绿色 gradient(135deg, #15803d, #22c55e) */
.function-card:nth-child(6) h3 .card-emoji { background: linear-gradient(135deg, #15803d, #22c55e); color: white; }
.function-card:nth-child(6) h3 { color: var(--white); font-size: 18px; }
.function-card:nth-child(6) p { color: var(--text-dim); font-size: 12px; }

/* 兼容 class 选择器 */
.function-card.hehun h3 .card-emoji { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.function-card.xingzuo h3 .card-emoji { background: linear-gradient(135deg, #4338ca, #6366f1); }
.function-card.almanac h3 .card-emoji { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.function-card.lottery h3 .card-emoji { background: linear-gradient(135deg, #15803d, #22c55e); }

/* 页面标题 */
.page-title {
    font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 20px;
    display: flex; align-items: center;
}
.back-btn { margin-right: 10px; cursor: pointer; font-size: 24px; color: var(--gold); }

/* 宫位 */
.palaces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.palace-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px; border-radius: 8px; text-align: center;
    border: 1px solid var(--border);
    color: var(--text);
}

.minggong-display {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px; border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid var(--gold);
}
.minggong-display h4 { color: var(--gold); margin-bottom: 10px; font-size: 15px; }

.interpretation-content { line-height: 1.8; color: var(--text); font-size: 14px; }
.interpretation-content p { margin-bottom: 15px; }
.interpretation-content .highlight {
    background: rgba(201, 168, 76, 0.08);
    padding: 15px; border-radius: 8px;
    border-left: 3px solid var(--gold);
    margin: 15px 0; color: var(--text);
}

/* 底部导航 */
.bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 1300px;
    background: rgba(5, 13, 24, 0.95);
    border-top: 1px solid var(--border);
    padding: 6px 0; z-index: 999;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}
/* 底部导航顶部渐变线 */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3) 30%, rgba(0,212,255,0.3) 50%, rgba(123,79,166,0.3) 70%, transparent);
}
.bottom-nav-item { flex: 1; text-align: center; padding: 4px 1px; cursor: pointer; font-size: 10px; color: var(--text-dim); transition: all 0.3s; }
.bottom-nav-item:hover { color: var(--text); }
.bottom-nav-item.active {
    color: var(--gold); font-weight: bold;
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
}
.bottom-nav-icon { font-size: 20px; display: block; margin-bottom: 3px; }

/* 核心展示 */
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.core-item {
    background: rgba(10, 21, 37, 0.8);
    border: 1px solid var(--border);
    color: white; padding: 20px; border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.core-item-label { font-size: 13px; opacity: 0.8; margin-bottom: 8px; color: var(--text-dim); }
.core-item-value { font-size: 24px; font-weight: bold; color: var(--gold); }

/* 宫位网格 */
.palace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.palace-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 10px; border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center; position: relative;
    color: var(--text);
}
.palace-item.main {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.15);
}
.palace-item.shen { border-color: var(--cyan); }
.palace-badge { position: absolute; top: 5px; right: 5px; font-size: 10px; padding: 2px 5px; border-radius: 5px; background: var(--rose); color: white; }
.palace-name { font-size: 13px; font-weight: bold; color: var(--white); margin-bottom: 8px; }
.palace-stars { font-size: 14px; color: var(--gold); font-weight: bold; margin-bottom: 5px; }
.palace-gan { font-size: 11px; color: var(--text-dim); }

.sizhu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; margin-bottom: 20px; }
.wuxing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; text-align: center; font-size: 12px; margin-bottom: 20px; }

/* 分数 */
.score-box {
    text-align: center; padding: 20px;
    background: rgba(224, 92, 138, 0.1);
    border: 1px solid rgba(224, 92, 138, 0.2);
    color: white; border-radius: 15px; margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(224, 92, 138, 0.1);
}
.score-num { font-size: 48px; font-weight: bold; margin: 10px 0; color: var(--rose); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.compare-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px; border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
}

/* 星座 */
.zodiac-result {
    text-align: center; padding: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: white; border-radius: 15px; margin-top: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}
.zodiac-icon { font-size: 60px; margin-bottom: 15px; }
.zodiac-name { font-size: 24px; font-weight: bold; margin-bottom: 10px; color: var(--white); }
.zodiac-date { font-size: 14px; opacity: 0.92; color: var(--text); }

/* 方案卡片 */
.plan-card {
    background: rgba(10, 21, 37, 0.8);
    padding: 20px; border-radius: 12px;
    border: 2px solid var(--border);
    cursor: pointer; transition: all 0.3s;
    position: relative;
}
.plan-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.hidden { display: none; }
.plan-card h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.plan-price { font-size: 24px; color: var(--rose); font-weight: 700; }
.plan-old { font-size: 14px; color: var(--text-dim); text-decoration: line-through; margin-left: 10px; }
.plan-features { list-style: none; margin: 15px 0; }
.plan-features li { padding: 8px 0; color: var(--text); border-bottom: 1px solid var(--border); font-size: 13px; }
.plan-features li:last-child { border-bottom: none; }
.plan-header { text-align: center; padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 15px; }
.plan-name { font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.plan-price-box { display: flex; align-items: center; justify-content: center; gap: 10px; }
.plan-card.recommended { border-color: var(--rose); background: rgba(224, 92, 138, 0.08); box-shadow: 0 2px 8px rgba(224, 92, 138, 0.1); }
.plan-card.recommended::before { content: "🔥 最受欢迎"; position: absolute; top: -10px; right: 15px; background: var(--rose); color: white; padding: 3px 10px; border-radius: 10px; font-size: 12px; }
.plan-card.active { border-color: var(--rose); background: rgba(224, 92, 138, 0.08); }
.plan-value-text { font-size: 12px; color: var(--free); font-weight: 600; text-align: center; margin-top: 8px; }

/* 倒计时横幅 */
.countdown-banner {
    background: rgba(224, 92, 138, 0.08);
    border: 1px solid rgba(224, 92, 138, 0.2);
    color: var(--rose); padding: 15px; border-radius: 12px;
    margin: 15px; font-size: 16px; font-weight: bold;
    text-align: center;
}
.countdown-banner span {
    background: rgba(224, 92, 138, 0.15);
    color: var(--rose); padding: 4px 8px; border-radius: 6px;
    margin: 0 2px; font-family: monospace; font-size: 18px;
}

.btn-large {
    padding: 18px; font-size: 18px; margin: 15px;
    width: calc(100% - 30px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
    transition: all 0.3s;
}
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3); }

/* 解锁 */
.unlocked-header {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: white; padding: 20px; border-radius: 12px;
    margin-bottom: 20px; text-align: center;
}
.unlocked-header h2 { font-size: 20px; color: var(--gold); }

.dimension-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px; border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
}
.dimension-section h3 { color: var(--gold); margin-bottom: 15px; font-size: 16px; }

/* 解读样式 */
.interpret-card {
    padding: 15px;
    background: rgba(10, 21, 37, 0.6);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.interpret-title { color: var(--gold); margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 16px; }
.interpret-tier { font-size: 12px; color: var(--text-dim); }
.interpret-note { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.interpret-block { margin-bottom: 15px; font-size: 14px; line-height: 1.7; color: var(--text); }
.interpret-suggestion {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px; padding: 15px;
    margin-top: 15px; border: 1px solid rgba(0, 212, 255, 0.1);
}
.interpret-suggestion b { color: var(--cyan); }
.content-section { margin-bottom: 15px; }
.content-title { font-size: 15px; color: var(--white); }
.content-body { color: var(--text); line-height: 1.7; margin-top: 5px; font-size: 14px; }
.content-para { margin-top: 10px; }
.upgrade-hint {
    margin-top: 15px; padding: 10px;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 8px; text-align: center;
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.15);
}
.plan-inline { font-size: 13px; font-weight: bold; color: var(--rose); }
.unlock-btn { background: linear-gradient(135deg, var(--rose), var(--purple)); margin-top: 15px; width: 100%; }
.upgrade-btn { background: linear-gradient(135deg, #a84d7a, var(--rose)); margin-top: 15px; width: 100%; }
.unlocked-ok {
    margin-top: 20px; padding: 10px;
    background: rgba(80, 200, 120, 0.08);
    border-radius: 8px; text-align: center;
    color: var(--free);
    border: 1px solid rgba(80, 200, 120, 0.15);
}
.no-data { padding: 15px; color: var(--text-dim); text-align: center; }
.error-msg { padding: 15px; color: #ef4444; }
.loading-center { text-align: center; padding: 20px; color: var(--text-dim); }

.sizhu-grid-render { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.sizhu-label { color: var(--text-dim); font-size: 12px; }
.sizhu-value { font-size: 20px; font-weight: bold; color: var(--gold); }
.wuxing-grid-render { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; text-align: center; font-size: 12px; }
.wuxing-cell {
    padding: 8px; background: rgba(255, 255, 255, 0.03);
    border-radius: 5px; color: var(--text); border: 1px solid var(--border);
}

.daxian-section { margin-top: 20px; }
.section-title { color: var(--gold); margin-bottom: 15px; font-size: 16px; }
.daxian-item {
    margin-bottom: 15px; padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px; border: 1px solid var(--border);
}
.daxian-name { color: var(--gold); }
.daxian-meta { font-size: 12px; color: var(--text-dim); }
.daxian-body { margin-top: 10px; }

.palaces-section { margin-top: 20px; }
.palace-detail {
    margin-bottom: 15px; padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px; border: 1px solid var(--border);
}
.palace-detail-name { color: var(--gold); }
.palace-star-content { margin-bottom: 10px; }
.result-card-inner {
    padding: 15px;
    background: rgba(10, 21, 37, 0.6);
    border-radius: 10px; border: 1px solid var(--border);
    color: var(--text);
}
.result-text { margin-top: 5px; color: var(--text); }

/* 法律声明 */
.legal-disclaimer {
    margin-top: 20px; padding: 15px;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    transition: all 0.3s;
}
.legal-disclaimer h4 { font-size: 14px; color: var(--gold-light); margin-bottom: 8px; cursor: pointer; user-select: none; }
.legal-disclaimer p { font-size: 12px; color: var(--text-dim); line-height: 1.8; }
.legal-disclaimer.collapsed p { display: none; }
.legal-disclaimer.collapsed h4 { margin-bottom: 0; }

/* 黄历宜忌 */
#almanac-yi li, #almanac-ji li {
    color: var(--text) !important;
    font-size: 13px;
    line-height: 2;
}
#almanac-yi li::marker { color: var(--free); }
#almanac-ji li::marker { color: #ef4444; }

/* ========== 灵签抽签样式 ========== */

/* 签种卡片 */
.lot-type-card {
    background: rgba(201, 168, 76, 0.06);
    border: 2px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.lot-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
}
.lot-type-icon { font-size: 36px; margin-bottom: 8px; }
.lot-type-name { font-size: 16px; font-weight: bold; color: var(--gold-light); margin-bottom: 4px; }
.lot-type-count { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.lot-type-desc { font-size: 11px; color: var(--text-dim); }

/* 事项选择按钮 */
.lot-topic-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
    font-size: 15px;
}
.lot-topic-btn:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
    color: var(--gold-light);
}

/* 签筒 */
.lot-lot-container {
    width: 100px;
    height: 140px;
    margin: 30px auto;
    position: relative;
}
.lot-lot-body {
    width: 80px;
    height: 120px;
    background: linear-gradient(180deg, #1a1008, #0d0a05, #050302);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 5px 5px 20px 20px;
    margin: 20px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lot-lot-body::before {
    content: '';
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 20px;
    background: linear-gradient(180deg, #2a1a0a, #1a1008);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 10px 10px 0 0;
}
.lot-lot-top {
    position: absolute;
    top: -25px; left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
}
.lot-lot-barrel {
    color: var(--gold);
    font-size: 16px;
    font-weight: bold;
}

/* 摇签动画 */
.lot-lot-container.shaking .lot-lot-body {
    animation: shakeLot 0.15s ease-in-out infinite alternate;
}
@keyframes shakeLot {
    0% { transform: rotate(-8deg); }
    25% { transform: rotate(8deg); }
    50% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
    100% { transform: rotate(-3deg); }
}

/* 灵签结果样式 */
.lot-result-poem {
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}
.lot-result-poem p {
    color: var(--gold-light);
    font-size: 15px;
    line-height: 2;
}
.lot-result-fortune {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    color: var(--gold);
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
}
.lot-result-allusion {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 15px;
}
.lot-free-content {
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}
.lot-free-content::before {
    content: '📖 白话解';
    display: block;
    font-weight: bold;
    color: var(--cyan);
    margin-bottom: 8px;
}

/* 锁屏样式 */
.lot-lock-overlay {
    background: rgba(5, 13, 24, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}
.lot-lock-overlay h4 {
    color: var(--rose);
    margin-bottom: 15px;
}

/* 付费内容卡片 */
.lot-paid-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--gold);
}
.lot-paid-card .card-title-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.lot-paid-card .card-body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .page { padding: 0 20px 80px; }
    .function-grid { grid-template-columns: 1fr; }
    .header { padding: 30px 20px 15px; }
    .header h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
    html, body { overflow-x: hidden !important; }
    .container { overflow-x: hidden; max-width: 100%; }
    .page { padding: 0 12px 80px; overflow-x: hidden; }
    .header { overflow-x: hidden; padding: 25px 15px 12px; }
    .header h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }
    .header .subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 11px;
        letter-spacing: 0.2em;
    }
    .form-row { grid-template-columns: 1fr; }
    .function-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .function-card { padding: 12px 4px; overflow: hidden; }
    .function-card h3 { font-size: 12px; white-space: nowrap; }
    .function-card h3 .card-emoji { width: 40px; height: 40px; font-size: 18px; }
    .function-card p { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .profile-summary-bar { flex-wrap: wrap; padding: 8px 12px; }
    .profile-bar-text { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .profile-bar-edit { font-size: 12px; }
    .palace-grid { grid-template-columns: repeat(3, 1fr); }
    .palace-item { padding: 10px 5px; }
    .palace-name { font-size: 11px; }
    .palace-stars { font-size: 12px; }
    .palace-gan { font-size: 10px; }
    .core-grid { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .compare-item { margin-bottom: 15px; border-left: 4px solid var(--rose); }
    .compare-item:nth-child(2) { border-left-color: var(--rose); }
    .header-compass { width: 80px; height: 80px; }
    .legal-disclaimer { padding: 15px 12px; }
    .legal-disclaimer p { font-size: 11px; }
}

@media (min-width: 768px) {
    .palace-grid { grid-template-columns: repeat(4, 1fr); }
}
