:root {
    --primary-dark: #0a0c15;
    --card-bg: rgba(18, 22, 35, 0.92);
    --accent-gold: #e6b422;
    --text-dim: #cbd5e6;
    --text-bright: #f2f0f0;
    --star-glow: #f0a65a;
    --number-glow: #7c6fe6;
    --bazi-glow: #4bc0a5;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}
body {
    background: linear-gradient(145deg, #1e2a3a 0%, #0e1a2a 100%);
    min-height: 100vh;
    padding: 1rem;
    color: var(--text-dim);
}
.disclaimer-banner {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #ddd0a8;
    border: 1px solid rgba(230, 180, 34, 0.3);
}
.close-disclaimer {
    cursor: pointer;
    font-weight: bold;
    background: rgba(0,0,0,0.4);
    padding: 0 8px;
    border-radius: 30px;
}
.close-disclaimer:hover {
    background: var(--accent-gold);
    color: #000;
}
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 3rem;
}
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}
.icon-badge {
    background: radial-gradient(circle, #f5d742, #c29b2e);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(230,180,34,0.4);
}
.icon-badge span {
    font-size: 8.4rem;
    line-height: 1;
    transform: translateY(-8px);
    display: inline-block;
    color: #2c1e0f;
}
h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #f7e5b3, #e6b422);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 6px;
}
.divider {
    height: 3px;
    width: 70px;
    background: var(--accent-gold);
    margin: 18px auto 0;
    border-radius: 4px;
}
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 36px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(230, 180, 34, 0.3);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}
.input-group {
    margin-bottom: 1.8rem;
}
.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}
.datetime-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
#birthDate, #birthHour {
    background: #111625;
    border: 1px solid #2d3448;
    padding: 12px 18px;
    border-radius: 50px;
    color: var(--text-bright);
    font-size: 1rem;
}
#birthDate { flex: 2; }
#birthHour { flex: 1; }
.input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
#mobileInput {
    flex: 3;
    background: #111625;
    border: 1px solid #2d3448;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--text-bright);
}
#mobileInput:focus, #birthDate:focus, #birthHour:focus {
    border-color: var(--accent-gold);
    outline: none;
    box-shadow: 0 0 8px rgba(230,180,34,0.4);
}
.btn-glow {
    background: linear-gradient(95deg, #e6b422, #f3ce6b);
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: bold;
    font-size: 1rem;
    color: #1e2a2f;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: 0.2s;
}
.btn-glow:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: 0 8px 18px rgba(230,180,34,0.3);
}
.input-tip {
    margin-top: 8px;
    font-size: 0.7rem;
    opacity: 0.7;
}
.card-header {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid;
    padding-left: 16px;
}
.bazi-header { border-left-color: var(--bazi-glow); color: var(--bazi-glow); }
.star-header { border-left-color: var(--star-glow); color: var(--star-glow); }
.number-header { border-left-color: var(--number-glow); color: var(--number-glow); }
.match-header { border-left-color: #5f9ea0; color: #5f9ea0; }
.final-header { border-left-color: var(--accent-gold); color: var(--accent-gold); }
.bazi-content, .star-content, .number-content, .match-content, .final-summary {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 15px;
}
.bazi-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}
.bazi-item {
    text-align: center;
    background: #1a1f2e;
    border-radius: 60px;
    padding: 10px 20px;
    min-width: 85px;
}
.wuxing-bazi {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 15px;
    font-size: 0.9rem;
}
.star-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
}
.star-item {
    background: #1e233b;
    border-radius: 60px;
    padding: 8px 20px;
    text-align: center;
    min-width: 120px;
    font-weight: bold;
}
.star-item.good { border-left: 4px solid #2ecc71; color: #8fddb0; }
.star-item.bad { border-left: 4px solid #e74c3c; color: #f5a08a; }
.star-item.neutral { border-left: 4px solid #f39c12; color: #f8d28c; }
.star-score {
    text-align: center;
    font-size: 1.2rem;
    background: #00000040;
    border-radius: 40px;
    padding: 12px;
}
.number-badge {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--number-glow);
    text-align: center;
}
.match-result p {
    margin: 8px 0;
}
.final-summary p {
    margin: 10px 0;
    line-height: 1.5;
}
.advice-box {
    background: #1e233b;
    border-radius: 40px;
    padding: 12px 22px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px dashed var(--accent-gold);
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    visibility: hidden;
    opacity: 0;
}
.loading-overlay.active {
    visibility: visible;
    opacity: 1;
}
.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid rgba(230,180,34,0.2);
    border-top: 6px solid #e6b422;
    border-radius: 50%;
    animation: spin 1s infinite;
}
@keyframes spin {
    0% { transform: rotate(0);}
    100% { transform: rotate(360deg);}
}
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f2e;
    border-left: 6px solid var(--accent-gold);
    padding: 12px 24px;
    border-radius: 40px;
    color: #f0eef7;
    z-index: 1100;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
}
.toast-message.show {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 650px) {
    .card { padding: 1rem; }
    .btn-glow { width: 100%; justify-content: center; }
    .datetime-wrapper { flex-direction: column; }
    .bazi-grid { flex-direction: column; align-items: center; }
    .toast-message { white-space: normal; max-width: 90%; }
}