/* CSS Variables - 更亮的配色方案 */
:root {
    --bg-primary: #1e3a5f;
    --bg-secondary: #2a4a6f;
    --bg-card: #345580;
    --bg-input: #264060;
    
    --gold-primary: #ffd700;
    --gold-light: #ffed4a;
    --gold-dark: #e6b800;
    --gold-glow: rgba(255, 215, 0, 0.6);
    
    --accent-red: #ff6b6b;
    --accent-blue: #4ecdc4;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    
    --text-primary: #ffffff;
    --text-secondary: #d0e0f0;
    --text-muted: #a0b8d0;
    
    --border-color: rgba(255, 215, 0, 0.4);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.5);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffed4a, #ffd700);
    --gradient-bg: linear-gradient(180deg, #1e3a5f 0%, #2a4a6f 50%, #1e3a5f 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    overflow-x: hidden;
}

/* 顶部滚动字幕（跑马灯） */
.top-marquee {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(10, 20, 40, 0.55);
    border-bottom: 1px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-marquee-inner {
    max-width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.top-marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeLeft 28s linear infinite;
    color: rgba(255, 244, 179, 0.95);
    font-size: 12px;
    letter-spacing: 0.3px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* 给主内容留出一点视觉呼吸（避免贴着跑马灯） */
.container {
    padding-top: 10px;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%; height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,215,0,0.4), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,215,0,0.5), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: twinkle 3s ease-in-out infinite;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.3), transparent);
    top: -150px; right: -150px;
    animation: float 8s ease-in-out infinite;
}

.orb2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168,85,247,0.25), transparent);
    bottom: 10%; left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes twinkle { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* 头部 */
.hero-section {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(180deg, transparent, rgba(52, 85, 128, 0.6), transparent);
    border-radius: 20px;
    margin-top: 20px;
}

.badge {
    display: inline-block;
    background: var(--gradient-gold);
    color: #1a1a2e;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--shadow-gold);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255,215,0,0.5); } 50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(255,215,0,0.7); } }

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.title-decoration {
    width: 60px; height: 60px;
    color: var(--gold-primary);
    opacity: 0.7;
    animation: spin 20s linear infinite;
}
.title-decoration.right { animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.main-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 52px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.title-char {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 15px var(--gold-glow));
    animation: glow 2s ease-in-out infinite alternate;
}
.title-char:nth-child(odd) { animation-delay: 0.3s; }
@keyframes glow { from { filter: drop-shadow(0 0 10px var(--gold-glow)); } to { filter: drop-shadow(0 0 30px var(--gold-glow)); } }

.subtitle {
    color: var(--gold-light);
    font-size: 18px;
    margin: 15px 0;
    letter-spacing: 5px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 10px 22px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.08);
}

.nav-tab:hover, .nav-tab.active {
    background: rgba(255, 215, 0, 0.25);
    border-color: var(--gold-primary);
    color: var(--gold-light);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.description { color: var(--text-secondary); font-size: 15px; margin-top: 15px; }
.description .highlight { color: var(--gold-primary); font-weight: 700; }

/* ==================== 八卦罗盘 ==================== */
.compass-section {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.bagua-compass {
    position: relative;
    width: 220px;
    height: 220px;
}

.compass-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: compassSpin 25s linear infinite;
}

@keyframes compassSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.compass-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.ring1 {
    width: 100%; height: 100%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 20px rgba(255,215,0,0.1);
}

.ring2 {
    width: 80%; height: 80%;
    border: 2px dashed var(--gold-light);
    opacity: 0.7;
}

.ring3 {
    width: 60%; height: 60%;
    border: 2px solid var(--gold-primary);
    opacity: 0.5;
}

.compass-inner {
    position: absolute;
    width: 70px; height: 70px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.yin-yang {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(to right, #fff 50%, #1a1a2e 50%);
    position: relative;
    animation: yinYangSpin 8s linear infinite reverse;
    box-shadow: 0 0 25px var(--gold-glow);
    border: 2px solid var(--gold-primary);
}

@keyframes yinYangSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.yang, .yin {
    position: absolute;
    width: 50%; height: 50%;
    border-radius: 50%;
}

.yang { background: #1a1a2e; top: 0; left: 25%; }
.yin { background: #fff; bottom: 0; left: 25%; }

.yin-yang .dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}
.yin-yang .dot.white { background: #fff; top: 14%; }
.yin-yang .dot.black { background: #1a1a2e; bottom: 14%; }

.trigrams {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    animation: trigramsSpin 15s linear infinite reverse;
}

@keyframes trigramsSpin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.trigram {
    position: absolute;
    font-size: 22px;
    color: var(--gold-primary);
    text-shadow: 0 0 15px var(--gold-glow);
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigram:nth-child(1) { top: -5px; left: 50%; transform: translateX(-50%); }
.trigram:nth-child(2) { top: 15%; right: 5%; }
.trigram:nth-child(3) { top: 50%; right: -10px; transform: translateY(-50%); }
.trigram:nth-child(4) { bottom: 15%; right: 5%; }
.trigram:nth-child(5) { bottom: -5px; left: 50%; transform: translateX(-50%); }
.trigram:nth-child(6) { bottom: 15%; left: 5%; }
.trigram:nth-child(7) { top: 50%; left: -10px; transform: translateY(-50%); }
.trigram:nth-child(8) { top: 15%; left: 5%; }

/* ==================== 用户评价滚动 ==================== */
.social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(52, 85, 128, 0.7) !important;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
}

.reviews-scroll {
    flex: 1;
    overflow: hidden;
    height: 60px;
}

.reviews-track {
    animation: scrollUp 10s linear infinite;
}

@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

.review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.review-text {
    min-width: 0; /* 允许在flex容器内正常换行/截断 */
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.15;
}
.review-text strong { color: var(--gold-primary); }

.review-line1 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-time {
    color: rgba(208, 224, 240, 0.85);
    font-size: 12px;
}

.review-line2 {
    color: var(--text-secondary);
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.stats-box {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    height: 60px; /* 与左侧滚动高度一致 */
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    border: 2px solid var(--gold-primary);
    flex-shrink: 0;
}

.stats-icon { font-size: 22px; grid-row: 1 / 3; align-self: center; justify-self: center; }
.stats-text { font-size: 12px; color: var(--text-secondary); line-height: 1.1; }
.stats-text strong { color: var(--gold-primary); font-size: 18px; }
.stats-label { font-size: 11px; color: var(--text-muted); line-height: 1.1; }

/* ==================== 出生日期（自定义占卜主题选择器） ==================== */
.date-picker {
    position: relative;
}

.date-picker .date-input {
    padding-right: 58px;
    cursor: pointer;
}

.date-picker-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
}

.date-picker-btn:hover {
    background: rgba(255, 215, 0, 0.22);
    border-color: var(--gold-primary);
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.date-picker-icon {
    font-size: 18px;
}

/* 日期弹窗 */
.date-modal-content {
    max-width: 420px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.45);
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.10), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.12), transparent 55%),
                linear-gradient(180deg, rgba(52, 85, 128, 0.95), rgba(30, 58, 95, 0.95));
}

.date-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.date-nav {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: rgba(255, 215, 0, 0.10);
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.date-nav:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
    transform: translateY(-1px);
}

.date-selectors {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.date-select {
    appearance: none;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: rgba(30, 58, 95, 0.55);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.25s ease;
}

.date-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-weight: 700;
    text-align: center;
    opacity: 0.95;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.date-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 2px solid rgba(255, 215, 0, 0.18);
    background: rgba(30, 58, 95, 0.55);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.06);
}

.date-cell:hover {
    border-color: rgba(255, 215, 0, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.date-cell.weekend {
    border-color: rgba(168, 85, 247, 0.25);
}

.date-cell.today {
    outline: 2px solid rgba(78, 205, 196, 0.65);
    outline-offset: 2px;
}

.date-cell.selected {
    background: var(--gradient-gold);
    border-color: var(--gold-primary);
    color: #1a1a2e;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.55);
}

.date-cell.blank {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.date-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.date-action {
    flex: 1;
    padding: 12px 14px;
    border-radius: 14px;
    border: none;
    background: var(--gradient-gold);
    color: #1a1a2e;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 26px rgba(255, 215, 0, 0.35);
}

.date-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(255, 215, 0, 0.5);
}

.date-action.secondary {
    background: rgba(255, 215, 0, 0.14);
    border: 2px solid var(--border-color);
    color: var(--gold-light);
    box-shadow: none;
}

.date-action.secondary:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.date-hint {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* ==================== 表单 ==================== */
.form-section {
    background: var(--bg-card) !important;
    border-radius: 20px;
    padding: 30px 20px;
    border: 2px solid var(--border-color) !important;
    box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.form-input::placeholder { color: var(--text-muted); }
.date-input::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.gender-selector { display: flex; gap: 15px; }

.gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-option:hover { border-color: var(--gold-primary); }
.gender-option input { display: none; }

.gender-option:has(input:checked) {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.gender-option:has(input:checked) .gender-icon { color: var(--gold-primary); }
.gender-icon { font-size: 22px; color: var(--text-muted); transition: color 0.3s; }

/* ==================== 动态按钮 ==================== */
.submit-btn {
    width: 100%;
    padding: 22px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 15px;
    box-shadow: 0 8px 40px rgba(255, 215, 0, 0.6);
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 40px rgba(255, 215, 0, 0.5); transform: scale(1); }
    50% { box-shadow: 0 12px 50px rgba(255, 215, 0, 0.8); transform: scale(1.02); }
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.7) !important;
}

.submit-btn:active { transform: scale(0.98) !important; }

.btn-bg {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-icon {
    font-size: 30px;
    animation: iconBounce 0.8s ease-in-out infinite;
}

@keyframes iconBounce { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.3) rotate(15deg); } }

.btn-shine {
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine { 0%, 60% { left: -50%; } 100% { left: 150%; } }

.btn-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.btn-particles i {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0;
    animation: particle 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--gold-light);
}

.btn-particles i:nth-child(1) { left: 15%; animation-delay: 0s; }
.btn-particles i:nth-child(2) { left: 35%; animation-delay: 0.4s; }
.btn-particles i:nth-child(3) { left: 50%; animation-delay: 0.2s; }
.btn-particles i:nth-child(4) { left: 65%; animation-delay: 0.6s; }
.btn-particles i:nth-child(5) { left: 85%; animation-delay: 0.3s; }

@keyframes particle {
    0% { bottom: 20%; opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(1); }
    100% { bottom: 110%; opacity: 0; transform: scale(0.5); }
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-wrapper input { accent-color: var(--gold-primary); width: 18px; height: 18px; }
.checkbox-wrapper a { color: var(--gold-primary); text-decoration: none; }
.query-link { color: var(--gold-primary); text-decoration: none; }
.query-link:hover { text-decoration: underline; }

/* ==================== 通用Section ==================== */
section {
    margin: 30px 0;
    padding: 25px 20px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header h2 { color: var(--gold-light); font-size: 17px; text-align: center; }

.header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    max-width: 60px;
}

/* 专家卡片 */
.expert-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(30, 58, 95, 0.6);
    border-radius: 15px;
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.expert-info h3 { color: var(--gold-light); font-size: 16px; margin-bottom: 5px; }
.expert-title { color: var(--gold-primary); font-size: 12px; margin-bottom: 10px; }
.expert-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.8; }

.highlight-text {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-radius: 12px;
    border: 2px dashed var(--gold-primary);
}

.highlight-text p { color: var(--gold-light); font-size: 16px; margin: 5px 0; }

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-primary), var(--accent-purple), var(--gold-primary));
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.timeline-icon {
    position: absolute;
    left: -22px;
    width: 46px; height: 46px;
    background: var(--bg-card);
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.timeline-content h3 { color: var(--gold-light); font-size: 16px; margin-bottom: 5px; }
.timeline-content p { color: var(--text-secondary); font-size: 13px; }

.stage-footer {
    text-align: center;
    color: var(--gold-primary);
    font-size: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 运势轮盘 */
.direction-wheel {
    position: relative;
    width: 280px; height: 280px;
    margin: 30px auto;
}

.wheel-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90px; height: 90px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 13px;
    z-index: 2;
    box-shadow: var(--shadow-gold);
}

.wheel-item {
    position: absolute;
    width: 65px; height: 65px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    top: 50%; left: 50%;
}

.wheel-item span { font-size: 20px; margin-bottom: 2px; }

.wheel-item:hover {
    border-color: var(--gold-primary);
    transform: scale(1.15) !important;
    z-index: 3;
    box-shadow: var(--shadow-gold);
}

.wheel-item:nth-child(2) { transform: translate(-50%, -50%) translate(0, -100px); }
.wheel-item:nth-child(3) { transform: translate(-50%, -50%) translate(70px, -70px); }
.wheel-item:nth-child(4) { transform: translate(-50%, -50%) translate(100px, 0); }
.wheel-item:nth-child(5) { transform: translate(-50%, -50%) translate(70px, 70px); }
.wheel-item:nth-child(6) { transform: translate(-50%, -50%) translate(0, 100px); }
.wheel-item:nth-child(7) { transform: translate(-50%, -50%) translate(-70px, 70px); }
.wheel-item:nth-child(8) { transform: translate(-50%, -50%) translate(-100px, 0); }
.wheel-item:nth-child(9) { transform: translate(-50%, -50%) translate(-70px, -70px); }

/* 目标人群 */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.audience-card {
    background: rgba(30, 58, 95, 0.6);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.audience-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25);
}

.audience-image { font-size: 42px; margin-bottom: 10px; }
.audience-card h3 { color: var(--gold-light); font-size: 15px; margin-bottom: 5px; }
.audience-card p { color: var(--text-muted); font-size: 12px; }

/* CTA */
.cta-section { text-align: center; background: transparent !important; border: none !important; padding: 20px; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    font-family: inherit;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 25px rgba(255,215,0,0.5); } 50% { box-shadow: 0 0 45px rgba(255,215,0,0.8); } }
.cta-btn:hover { transform: scale(1.05); }
.cta-icon { font-size: 24px; }

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted);
    font-size: 12px;
}
.disclaimer { margin-top: 10px; opacity: 0.7; }

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 60px var(--gold-glow);
}

/* 隐私协议弹窗 */
.privacy-modal-content {
    max-width: 520px;
}

.privacy-body {
    padding: 0;
}

.privacy-text {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.privacy-text p {
    margin: 0 0 12px 0;
}

.privacy-text strong {
    color: var(--gold-light);
}

.privacy-footer {
    padding: 18px 20px 22px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(30, 58, 95, 0.45);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 { color: var(--gold-light); font-size: 20px; }

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
}
.close-btn:hover { color: var(--gold-primary); }

.modal-body { padding: 20px; }
.result-section { margin-bottom: 25px; }
.result-section h3 {
    color: var(--gold-light);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.bazi-display { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.bazi-pillar {
    text-align: center;
    padding: 15px 10px;
    background: rgba(30, 58, 95, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pillar-title { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.pillar-char { font-size: 26px; color: var(--gold-primary); display: block; margin: 5px 0; font-family: 'Ma Shan Zheng', cursive; }

.wuxing-chart { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; }

.wuxing-item { text-align: center; padding: 12px 15px; border-radius: 10px; min-width: 55px; }
.wuxing-item.wood { background: rgba(34, 197, 94, 0.25); color: #22c55e; }
.wuxing-item.fire { background: rgba(239, 68, 68, 0.25); color: #ef4444; }
.wuxing-item.earth { background: rgba(234, 179, 8, 0.25); color: #eab308; }
.wuxing-item.metal { background: rgba(226, 232, 240, 0.25); color: #e2e8f0; }
.wuxing-item.water { background: rgba(59, 130, 246, 0.25); color: #3b82f6; }

.wuxing-icon { font-size: 24px; display: block; margin-bottom: 5px; }
.wuxing-name { font-size: 14px; display: block; }
.wuxing-count { font-size: 12px; opacity: 0.8; }

.destiny-text { color: var(--text-secondary); font-size: 14px; line-height: 2; text-align: justify; }

.advice-list { list-style: none; }
.advice-list li {
    position: relative;
    padding: 10px 0 10px 25px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px dashed var(--border-color);
}
.advice-list li:last-child { border-bottom: none; }
.advice-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold-primary); }

.modal-footer { padding: 20px; text-align: center; border-top: 1px solid var(--border-color); }

.modal-btn {
    padding: 14px 50px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    font-family: inherit;
}
.modal-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-gold); }

/* 响应式 */
@media (max-width: 480px) {
    .main-title { font-size: 40px; }
    .title-decoration { width: 40px; height: 40px; }
    .bagua-compass { width: 180px; height: 180px; }
    .compass-inner { width: 55px; height: 55px; }
    .trigram { font-size: 18px; }
    .direction-wheel { transform: scale(0.85); }
    .bazi-display { grid-template-columns: repeat(2, 1fr); }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

select.form-input {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}
