/* 生辰八字分析样式 - 宇宙大爆炸主题 */

/* 八字分析区域 */
.bazi-section {
    position: relative;
    padding: var(--space-20) 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    overflow: hidden;
    min-height: 100vh;
}

.bazi-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    /* 性能优化 */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    /* 宇宙背景 */
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.01) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.01) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.01) 0%, transparent 40%);
}

/* SVG宇宙大爆炸背景 */
.cosmic-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 宇宙背景 - 增强可见性 */
.cosmic-bg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* 大爆炸中心点SVG */
.big-bang-center-svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* 爆炸波纹SVG */
.explosion-wave-1,
.explosion-wave-2,
.explosion-wave-3 {
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}

/* 宇宙粒子SVG */
.cosmic-particles-svg {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* 能量爆发SVG */
.energy-burst-svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.energy-core {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.energy-spark-1,
.energy-spark-2,
.energy-spark-3,
.energy-spark-4 {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

/* 宇宙尘埃SVG */
.cosmic-dust {
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4));
}

/* 性能优化：减少重绘 */
.bazi-background * {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* 性能优化：减少动画在低性能设备上的复杂度 */
@media (prefers-reduced-motion: reduce) {
    .bazi-background * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 性能优化：在移动设备上简化动画 */
@media (max-width: 768px) {
    .big-bang-center {
        width: 2px;
        height: 2px;
    }
    
    .explosion-waves {
        width: 50px;
        height: 50px;
    }
    
    .explosion-waves::before {
        width: 100px;
        height: 100px;
    }
    
    .explosion-waves::after {
    width: 150px;
    height: 150px;
    }
    
    .cosmic-particles {
        background-size: 200px 200px, 150px 150px, 100px 100px, 180px 180px, 120px 120px,
                         100px 100px, 125px 125px, 90px 90px, 110px 110px, 140px 140px;
    filter: blur(0.5px);
    }
    
    .energy-burst {
        width: 1px;
        height: 1px;
    }
}

/* 移除旧的CSS选择器引用 */

/* SVG宇宙大爆炸交互效果 */
.bazi-section:hover .cosmic-bg {
    opacity: 0.8;
}

.bazi-section:hover .big-bang-center-svg {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

.bazi-section:hover .explosion-wave-1,
.bazi-section:hover .explosion-wave-2,
.bazi-section:hover .explosion-wave-3 {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

.bazi-section:hover .cosmic-particles-svg {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.bazi-section:hover .energy-burst-svg {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

/* 表单交互时的背景响应 */
.bazi-form:focus-within ~ .bazi-background .cosmic-bg {
    opacity: 0.9;
}

.bazi-form:focus-within ~ .bazi-background .big-bang-center-svg {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
}

.bazi-form:focus-within ~ .bazi-background .explosion-wave-1,
.bazi-form:focus-within ~ .bazi-background .explosion-wave-2,
.bazi-form:focus-within ~ .bazi-background .explosion-wave-3 {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
}

/* 白天主题适配 - SVG宇宙大爆炸 */
[data-theme="day"] .bazi-section {
    background: 
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
}

[data-theme="day"] .bazi-background {
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.03) 0%, transparent 40%);
}

[data-theme="day"] .cosmic-bg {
    opacity: 0.4;
}

[data-theme="day"] .big-bang-center-svg {
    fill: #3b82f6;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.8));
}

[data-theme="day"] .explosion-wave-1,
[data-theme="day"] .explosion-wave-2,
[data-theme="day"] .explosion-wave-3 {
    stroke: rgba(59, 130, 246, 0.3);
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.4));
}

[data-theme="day"] .cosmic-particles-svg circle {
    fill: rgba(59, 130, 246, 0.6);
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
}

[data-theme="day"] .energy-burst-svg circle {
    fill: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

[data-theme="day"] .cosmic-dust circle {
    fill: rgba(59, 130, 246, 0.4);
    filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.3));
}

/* 夜晚主题 - SVG宇宙大爆炸 */
[data-theme="night"] .bazi-section {
    background: 
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
}

[data-theme="night"] .bazi-background {
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.01) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.01) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.01) 0%, transparent 40%);
}

[data-theme="night"] .cosmic-bg {
    opacity: 0.6;
}

[data-theme="night"] .big-bang-center-svg {
    fill: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

[data-theme="night"] .explosion-wave-1,
[data-theme="night"] .explosion-wave-2,
[data-theme="night"] .explosion-wave-3 {
    stroke: rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

[data-theme="night"] .cosmic-particles-svg circle {
    fill: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

[data-theme="night"] .energy-burst-svg circle {
    fill: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

[data-theme="night"] .cosmic-dust circle {
    fill: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

/* 八字卡片 - 透明设计让背景可见 */
.bazi-card {
    position: relative;
    background: rgba(15, 23, 42, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2), 
        0 0 0 1px rgba(124, 58, 237, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(15px);
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    /* 添加渐变边框效果 */
    position: relative;
}

.bazi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1) 0%, 
        rgba(167, 139, 250, 0.05) 50%, 
        rgba(124, 58, 237, 0.1) 100%);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.bazi-card .card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.1;
    animation: glow 3s ease-in-out infinite alternate;
}

/* 表单样式 */
.bazi-form {
    position: relative;
    z-index: 3;
}

/* 表单分组样式 - 透明设计 */
.form-section {
    margin-bottom: var(--space-8);
    background: rgba(30, 30, 46, 0.2);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.form-section:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-section:hover::before {
    left: 100%;
}

.form-section > * {
    position: relative;
    z-index: 2;
}

.section-header {
    padding: var(--space-6) var(--space-8) var(--space-4);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(5px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 255, 255, 0.3);
}

.section-title i {
    color: #a78bfa;
    font-size: var(--font-size-xl);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #a78bfa, transparent);
    margin-top: var(--space-3);
    border-radius: 1px;
}

.form-content {
    padding: var(--space-6) var(--space-8) var(--space-8);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 255, 255, 0.2);
}

.form-label i {
    color: #a78bfa;
    font-size: var(--font-size-base);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .form-section {
        margin-bottom: var(--space-6);
    }
    
    .section-header {
        padding: var(--space-4) var(--space-6) var(--space-3);
    }
    
    .form-content {
        padding: var(--space-4) var(--space-6) var(--space-6);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .gender-selection,
    .date-type-selection {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .gender-label,
    .date-type-label {
        justify-content: center;
        padding: var(--space-4) var(--space-5);
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: var(--space-3) var(--space-4) var(--space-2);
    }
    
    .form-content {
        padding: var(--space-3) var(--space-4) var(--space-4);
    }
    
    .section-title {
        font-size: var(--font-size-base);
    }
    
    .form-label {
        font-size: var(--font-size-xs);
    }
}

.form-row:last-child {
    margin-bottom: 0;
}

/* 性别选择样式 */
.gender-selection {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.gender-option {
    position: relative;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: rgba(30, 30, 46, 0.4);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.gender-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
    transition: left 0.5s ease;
}

.gender-option input[type="radio"]:checked + .gender-label {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff;
    border-color: #a78bfa;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.gender-option input[type="radio"]:checked + .gender-label::before {
    left: 100%;
}

.gender-option:hover .gender-label {
    border-color: #a78bfa;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.gender-option:hover .gender-label::before {
    left: 100%;
}

/* 历法类型选择样式 */
.date-type-selection {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.date-type-option {
    position: relative;
    cursor: pointer;
}

.date-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-type-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: rgba(30, 30, 46, 0.4);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.date-type-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
    transition: left 0.5s ease;
}

.date-type-option input[type="radio"]:checked + .date-type-label {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff;
    border-color: #a78bfa;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.date-type-option input[type="radio"]:checked + .date-type-label::before {
    left: 100%;
}

.date-type-option:hover .date-type-label {
    border-color: #a78bfa;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.date-type-option:hover .date-type-label::before {
    left: 100%;
}

/* 八字按钮样式 */
.bazi-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-5) var(--space-8);
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    margin-top: var(--space-8);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bazi-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.6);
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.bazi-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 按钮加载状态 */
.bazi-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.bazi-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: var(--space-3);
}

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

.bazi-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.bazi-btn:hover .btn-glow {
    left: 100%;
}

/* 表单输入框样式 - 透明设计 */
.bazi-form input,
.bazi-form select,
.bazi-form textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: rgba(30, 30, 46, 0.4);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.bazi-form input:focus,
.bazi-form select:focus,
.bazi-form textarea:focus {
    outline: none;
    border-color: #a78bfa;
    background: rgba(30, 30, 46, 0.6);
    box-shadow: 
        0 0 0 3px rgba(124, 58, 237, 0.2),
        0 0 20px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bazi-form input:hover,
.bazi-form select:hover,
.bazi-form textarea:hover {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.bazi-form input::placeholder,
.bazi-form textarea::placeholder {
    color: rgba(196, 181, 253, 0.6);
    transition: color 0.3s ease;
}

.bazi-form input:focus::placeholder,
.bazi-form textarea:focus::placeholder {
    color: rgba(196, 181, 253, 0.4);
}

.bazi-form select {
    cursor: pointer;
}

.bazi-form select option {
    background: #1e1e2e;
    color: #ffffff;
    padding: var(--space-2);
}

.bazi-form label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bazi-form label i {
    color: #a78bfa;
    font-size: var(--font-size-base);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* 白天主题表单样式优化 */
[data-theme="day"] .bazi-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="day"] .form-section {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="day"] .section-title {
    color: #1e40af;
    text-shadow: none;
}

[data-theme="day"] .section-title i {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

[data-theme="day"] .form-label {
    color: #1e40af;
    text-shadow: none;
}

[data-theme="day"] .form-label i {
    color: #3b82f6;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

[data-theme="day"] .bazi-form input,
[data-theme="day"] .bazi-form select,
[data-theme="day"] .bazi-form textarea {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #374151;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="day"] .bazi-form input:focus,
[data-theme="day"] .bazi-form select:focus,
[data-theme="day"] .bazi-form textarea:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 16px rgba(59, 130, 246, 0.15);
}

[data-theme="day"] .gender-label,
[data-theme="day"] .date-type-label {
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #475569;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="day"] .gender-option input[type="radio"]:checked + .gender-label,
[data-theme="day"] .date-type-option input[type="radio"]:checked + .date-type-label {
    background: rgba(239, 246, 255, 0.9);
    border-color: #3b82f6;
    color: #3b82f6;
}

[data-theme="day"] .bazi-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.25),
        0 2px 4px rgba(59, 130, 246, 0.1);
    text-shadow: none;
}

[data-theme="day"] .bazi-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.35),
        0 4px 8px rgba(59, 130, 246, 0.15);
}

/* 结果展示区域 */
.bazi-result {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bazi-result.show {
    opacity: 1;
    visibility: visible;
}

.result-container {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-2xl);
    max-width: 1000px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.bazi-result.show .result-container {
    transform: scale(1);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border-bottom: 1px solid var(--card-border);
}

.result-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
}

.close-result {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.close-result:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.result-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: var(--space-8);
}

.result-section {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: rgba(30, 30, 46, 0.8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
}

.result-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(124, 58, 237, 0.6);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.result-section h4 i {
    color: #a78bfa;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    background: rgba(49, 46, 129, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(5px);
}

.info-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-value {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 八字显示 */
.bazi-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    width: 100%;
    min-width: 0; /* 允许子元素收缩 */
    grid-auto-flow: column; /* 强制列方向排列 */
    overflow-x: auto; /* 如果内容过宽，允许横向滚动 */
}

.bazi-pillar {
    text-align: center;
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.8), rgba(76, 29, 149, 0.6));
    border-radius: var(--radius-xl);
    border: 2px solid rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 0; /* 允许收缩 */
    width: 100%;
    box-sizing: border-box;
}

.bazi-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.pillar-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* 防止标签换行 */
}

.pillar-ganzhi {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    font-family: 'Noto Sans SC', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* 防止干支文字换行 */
}

.pillar-wuxing {
    font-size: var(--font-size-sm);
    color: #a78bfa;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 五行分析 */
.wuxing-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.wuxing-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(49, 46, 129, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wuxing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--wuxing-color);
}

.wuxing-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wuxing-count {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: var(--space-1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.wuxing-status {
    font-size: var(--font-size-sm);
    color: #c4b5fd;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 十神分析 */
.shishen-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.shishen-item {
    padding: var(--space-4);
    background: rgba(49, 46, 129, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shishen-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shishen-ganzhi {
    font-size: var(--font-size-sm);
    color: #c4b5fd;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 神煞分析 - 改为竖向布局 */
.shensha-analysis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    align-items: start;
    margin-top: var(--space-4);
}

.shensha-item {
    padding: var(--space-3);
    background: rgba(49, 46, 129, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.shensha-name {
    font-size: var(--font-size-md);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding-bottom: var(--space-1);
    border-bottom: 2px solid rgba(124, 58, 237, 0.4);
    text-align: center;
}

.shensha-description {
    font-size: var(--font-size-sm);
    color: #c4b5fd;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: center;
    justify-content: flex-start;
}

/* 神煞竖对齐样式 */
.shensha-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.shensha-vertical .shensha-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-3);
    text-align: center;
    padding: var(--space-2) 0;
    border-bottom: 2px solid rgba(124, 58, 237, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shensha-vertical .shensha-description {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: #c4b5fd;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.shensha-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-1) var(--space-2);
    margin: var(--space-1) 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.4;
    flex-shrink: 0;
    min-width: 0;
}

.shensha-tag:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.3));
    border-color: rgba(167, 139, 250, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 年柱神煞特殊样式 - 优化布局 */
.shensha-year-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 180px;
    justify-content: flex-start;
}

.shensha-year-vertical .shensha-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-3);
    text-align: center;
    padding: var(--space-2) 0;
    border-bottom: 2px solid rgba(124, 58, 237, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.shensha-year-vertical .shensha-description {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    flex: 1;
}

.shensha-year-vertical .shensha-tag {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    margin: var(--space-1) 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(167, 139, 250, 0.3));
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.shensha-year-vertical .shensha-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.shensha-year-vertical .shensha-tag:hover::before {
    left: 100%;
}

.shensha-year-vertical .shensha-tag:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(167, 139, 250, 0.3));
    border-color: rgba(167, 139, 250, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 建议内容 */
.advice-content {
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(49, 46, 129, 0.8), rgba(76, 29, 149, 0.6));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.advice-text {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: var(--space-4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.advice-text:last-child {
    margin-bottom: 0;
}

/* 宇宙大爆炸动画效果 - 性能优化版本 */

/* 减少重绘和回流 */
.bazi-background {
    contain: layout style paint;
    isolation: isolate;
}

/* SVG宇宙大爆炸性能优化 */
.cosmic-svg {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    .cosmic-svg * {
        animation: none !important;
    }
}

/* 低性能设备优化 */
@media (max-width: 768px) and (max-height: 600px) {
    .cosmic-svg {
        opacity: 0.7;
    }
    
    .cosmic-particles-svg circle {
        r: 0.5;
    }
    
    .cosmic-dust circle {
        r: 0.2;
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .cosmic-svg {
        opacity: 0.8;
    }
    
    .big-bang-center-svg {
        r: 3;
    }
    
    .explosion-wave-1,
    .explosion-wave-2,
    .explosion-wave-3 {
        stroke-width: 1;
    }
    
    .cosmic-particles-svg circle {
        r: 0.8;
    }
    
    .energy-burst-svg circle {
        r: 1.5;
    }
    
    .cosmic-dust circle {
        r: 0.3;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .cosmic-svg {
        opacity: 0.6;
    }
    
    .big-bang-center-svg {
        r: 2;
    }
    
    .explosion-wave-1,
    .explosion-wave-2,
    .explosion-wave-3 {
        stroke-width: 0.5;
    }
    
    .cosmic-particles-svg circle {
        r: 0.5;
    }
    
    .energy-burst-svg circle {
        r: 1;
    }
    
    .cosmic-dust circle {
        r: 0.2;
    }
}

/* 加载动画 */
.bazi-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-secondary);
}

.bazi-loading i {
    margin-right: var(--space-3);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 错误提示样式 */
.bazi-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    color: #dc2626;
    text-align: center;
    font-weight: 600;
}

/* 成功提示样式 */
.bazi-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    color: #059669;
    text-align: center;
    font-weight: 600;
}

/* 表单验证错误样式 */
.form-group.error input,
.form-group.error select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: #dc2626;
}

.form-group .error-message {
    color: #dc2626;
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* 结果弹窗动画优化 */
.bazi-result .result-container {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 关闭动画优化 */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

/* 更平滑的关闭动画 */
@keyframes smoothClose {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(15px) scale(0.98);
        filter: blur(0.5px);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(1px);
    }
}

/* 关闭状态样式 */
.bazi-result.closing {
    pointer-events: none;
}

.bazi-result.closing .result-container {
    animation: smoothClose 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 性能优化：使用will-change提升动画性能 */
.bazi-result .result-container {
    will-change: transform, opacity;
}

.bazi-result.closing .result-container {
    will-change: transform, opacity;
}

/* 优化关闭按钮的交互性能 */
.close-result {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 八字柱子的特殊效果 */
.bazi-pillar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.bazi-pillar .pillar-ganzhi {
    position: relative;
    overflow: hidden;
}

.bazi-pillar .pillar-ganzhi::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.bazi-pillar:hover .pillar-ganzhi::before {
    left: 100%;
}

/* 五行项目的特殊效果 */
.wuxing-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wuxing-item .wuxing-count {
    position: relative;
    overflow: hidden;
}

.wuxing-item .wuxing-count::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.wuxing-item:hover .wuxing-count::after {
    transform: translateX(100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bazi-card {
        padding: var(--space-8);
        margin: var(--space-4);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .gender-selection,
    .date-type-selection {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .bazi-display {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
        margin-bottom: var(--space-5);
    }
    
    .pillar-ganzhi {
        font-size: var(--font-size-xl);
        line-height: 1.3;
    }
    
    .bazi-pillar {
        padding: var(--space-3);
        min-height: auto;
    }
    
    .result-container {
        margin: var(--space-4);
        max-height: calc(100vh - 32px);
        max-width: none; /* 移除宽度限制 */
    }
    
    .result-content {
        padding: var(--space-6);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .wuxing-analysis,
    .shishen-analysis,
    .shensha-analysis {
        grid-template-columns: 1fr;
    }
    
    /* 移动端神煞优化 */
    .shensha-analysis {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .shensha-item {
        min-height: 100px;
        padding: var(--space-4);
    }
    
    .shensha-year-vertical {
        min-height: 120px;
        gap: var(--space-2);
    }
    
    .shensha-year-vertical .shensha-tag {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
        margin: 2px 0;
        white-space: normal;
        word-break: break-all;
        line-height: 1.3;
    }
    
    .shensha-tag {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
        min-height: 28px;
        flex-shrink: 1;
    }
    
    .shensha-description {
        gap: var(--space-1);
    }
}

@media (max-width: 480px) {
    .bazi-display {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-1);
        margin-bottom: var(--space-4);
    }
    
    /* 最小屏幕神煞单列显示 */
    .shensha-analysis {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .shensha-item {
        min-height: 60px;
        padding: var(--space-2);
    }
    
    .shensha-name {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-1);
    }
    
    .shensha-tag {
        font-size: var(--font-size-xs);
        padding: 4px 8px;
        margin: 2px 0;
    }
    
    .pillar-ganzhi {
        font-size: var(--font-size-lg);
        line-height: 1.2;
    }
    
    .pillar-label {
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-1);
    }
    
    .bazi-pillar {
        padding: var(--space-2);
        border-radius: var(--radius-lg);
        min-height: auto;
    }
    
    .result-container {
        margin: var(--space-2);
        max-width: calc(100vw - var(--space-4));
    }
    
    .result-content {
        padding: var(--space-4);
    }
}
