/* 预测页面专用样式 - 简洁现代设计 */

/* 预测区域基础样式 */
.prediction-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* 动态背景元素 */
.prediction-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* 神秘光球效果 */
.mystical-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 100%);
    animation: mysticalFloat 8s ease-in-out infinite;
    filter: blur(1px);
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(124, 58, 237, 0.2) 50%, transparent 100%);
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.3) 0%, rgba(196, 181, 253, 0.1) 50%, transparent 100%);
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, rgba(167, 139, 250, 0.1) 50%, transparent 100%);
}

/* 神秘粒子效果 */
.mystical-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(124, 58, 237, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(196, 181, 253, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(167, 139, 250, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(124, 58, 237, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(196, 181, 253, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
}

/* 动画关键帧 */
@keyframes mysticalFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* 容器样式 */
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e0e7ff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 20px rgba(196, 181, 253, 0.5);
}

.section-title i {
    color: #7c3aed;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.6));
    animation: crystalGlow 3s ease-in-out infinite;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #c4b5fd;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes crystalGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.6));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.8));
        transform: scale(1.05);
    }
}

/* 预测卡片样式 */
.prediction-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 卡片光晕效果 */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: cardGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* 时间选择区域样式 */
.time-selection-section {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.time-selection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6, #a855f7, #7c3aed);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.time-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.time-section-header h3 {
    color: #e0e7ff;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.time-section-header h3 i {
    color: #7c3aed;
    font-size: 1.1rem;
}

.time-description {
    color: #c4b5fd;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* 白天主题时间选择区域 */
[data-theme="day"] .time-selection-section {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .time-selection-section::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd, #3b82f6);
}

[data-theme="day"] .time-section-header h3 {
    color: #1e40af;
}

[data-theme="day"] .time-section-header h3 i {
    color: #3b82f6;
}

[data-theme="day"] .time-description {
    color: rgba(30, 64, 175, 0.8);
}

.time-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.time-form-row .form-group {
    margin-bottom: 0;
}

.time-form-row .form-group label {
    position: relative;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.time-form-row .form-group label .required {
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
}

.time-form-row .form-group label .optional {
    color: #10b981;
    margin-left: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.field-hint {
    font-size: 0.75rem;
    color: #a78bfa;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

.time-selection-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    margin: 20px 0;
    color: #e0e7ff;
    font-size: 0.95rem;
}

.time-selection-tip i {
    color: #7c3aed;
    font-size: 1.1rem;
}

.time-selection-tip strong {
    color: #c4b5fd;
    font-weight: 600;
}

.time-explanation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.explanation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(30, 30, 46, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.explanation-item:hover {
    background: rgba(30, 30, 46, 0.6);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.explanation-item i {
    color: #7c3aed;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.explanation-item div {
    color: #e0e7ff;
    font-size: 0.85rem;
    line-height: 1.4;
}

.explanation-item strong {
    color: #c4b5fd;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e7ff;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-group label i {
    color: #7c3aed;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.5));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: rgba(30, 30, 46, 0.8);
    box-shadow: 
        0 0 0 3px rgba(124, 58, 237, 0.2),
        0 0 20px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(196, 181, 253, 0.6);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1e1e2e;
    color: #e0e7ff;
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* 性别选择样式 */
.gender-selection {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gender-option:hover {
    background: rgba(30, 30, 46, 0.8);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-option input[type="radio"]:checked + .gender-label {
    color: #7c3aed;
    font-weight: 700;
}

.gender-option input[type="radio"]:checked ~ .gender-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
    border-radius: 12px;
    z-index: -1;
}

.gender-option:has(input[type="radio"]:checked) {
    border-color: #7c3aed;
    background: rgba(30, 30, 46, 0.8);
    box-shadow: 
        0 0 0 2px rgba(124, 58, 237, 0.2),
        0 4px 15px rgba(124, 58, 237, 0.3);
}

.gender-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e7ff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gender-label i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gender-option:hover .gender-label i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* 女性选项特殊样式 */
.gender-option:has(input[value="0"]:checked) .gender-label i {
    color: #ec4899;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

/* 男性选项特殊样式 */
.gender-option:has(input[value="1"]:checked) .gender-label i {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* 预测按钮样式 */
.prediction-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    box-shadow: 
        0 8px 25px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(124, 58, 237, 0.1);
}

.prediction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(124, 58, 237, 0.4),
        0 0 60px rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.prediction-btn:active {
    transform: translateY(-1px);
}

.prediction-btn i {
    font-size: 1.2rem;
    animation: magicSpin 2s linear infinite;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.prediction-btn .btn-glow {
    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.5s ease;
}

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

/* 免责声明样式 */
.form-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: #c4b5fd;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
}

.form-disclaimer i {
    color: #7c3aed;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .prediction-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .prediction-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .time-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .time-explanation {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .time-explanation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .explanation-item {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .prediction-btn {
        padding: 15px 25px;
        font-size: 1rem;
        margin-top: 25px;
    }
    
    .mystical-orb {
        opacity: 0.5;
    }
    
    .orb-1 { width: 150px; height: 150px; }
    .orb-2 { width: 100px; height: 100px; }
    .orb-3 { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
    .prediction-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .prediction-card {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .prediction-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .form-disclaimer {
        font-size: 0.8rem;
        padding: 12px 15px;
    }
}

/* 白天主题适配 */
[data-theme="day"] .prediction-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 50%, #81d4fa 100%);
}

[data-theme="day"] .section-title {
    color: #1e40af;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

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

[data-theme="day"] .section-subtitle {
    color: rgba(30, 64, 175, 0.8);
}

[data-theme="day"] .prediction-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.15),
        0 0 60px rgba(59, 130, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="day"] .card-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

[data-theme="day"] .form-group label {
    color: #1e40af;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

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

[data-theme="day"] .form-group input,
[data-theme="day"] .form-group select,
[data-theme="day"] .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

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

[data-theme="day"] .form-group input::placeholder,
[data-theme="day"] .form-group textarea::placeholder {
    color: rgba(30, 64, 175, 0.6);
}

[data-theme="day"] .form-group select option {
    background: #ffffff;
    color: #1e40af;
}

/* 白天主题性别选择样式 */
[data-theme="day"] .gender-option {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

[data-theme="day"] .gender-option:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .gender-option:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 2px rgba(59, 130, 246, 0.2),
        0 4px 15px rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .gender-option input[type="radio"]:checked ~ .gender-label::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
}

[data-theme="day"] .gender-label {
    color: #1e40af;
}

[data-theme="day"] .gender-option input[type="radio"]:checked + .gender-label {
    color: #3b82f6;
}

[data-theme="day"] .gender-option:hover .gender-label i {
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* 白天主题女性选项特殊样式 */
[data-theme="day"] .gender-option:has(input[value="0"]:checked) .gender-label i {
    color: #ec4899;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6));
}

/* 白天主题男性选项特殊样式 */
[data-theme="day"] .gender-option:has(input[value="1"]:checked) .gender-label i {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

[data-theme="day"] .prediction-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .prediction-btn:hover {
    box-shadow: 
        0 12px 35px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

[data-theme="day"] .form-disclaimer {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(30, 64, 175, 0.8);
}

[data-theme="day"] .form-disclaimer i {
    color: #3b82f6;
}

[data-theme="day"] .selection-result {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="day"] .selection-info {
    color: #059669;
}

[data-theme="day"] .selection-info i {
    color: #059669;
}

[data-theme="day"] .mystical-orb {
    opacity: 0.3;
}

[data-theme="day"] .orb-1 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
}

[data-theme="day"] .orb-2 {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, rgba(96, 165, 250, 0.1) 50%, transparent 100%);
}

[data-theme="day"] .orb-3 {
    background: radial-gradient(circle, rgba(147, 197, 253, 0.3) 0%, rgba(147, 197, 253, 0.1) 50%, transparent 100%);
}

[data-theme="day"] .mystical-particles {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(96, 165, 250, 0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(147, 197, 253, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(96, 165, 250, 0.2), transparent);
}

/* 预测结果模态框样式 */
.prediction-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.prediction-result-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* 全屏模式 */
.prediction-result-modal.fullscreen .modal-content {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.98);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 普通模式 */
.prediction-result-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(124, 58, 237, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.prediction-result-modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.prediction-result-modal.fullscreen.show .modal-content {
    transform: none;
}

.prediction-result-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(196, 181, 253, 0.8) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

/* 全屏模式下的头部 */
.prediction-result-modal.fullscreen .modal-header {
    padding: 20px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 显示模式切换按钮 */
.display-mode-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
}

.display-mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.display-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.display-mode-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.prediction-result-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.prediction-result-modal .modal-header h3 i {
    font-size: 22px;
    opacity: 0.9;
}

.prediction-result-modal .modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.prediction-result-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.prediction-result-modal .modal-body {
    padding: 30px;
    text-align: center;
    flex: 1;
    overflow-y: auto;
}

/* 全屏模式下的主体 */
.prediction-result-modal.fullscreen .modal-body {
    padding: 20px 30px;
    text-align: left;
}

/* 分页标签页样式 */
.result-tabs {
    display: flex;
    background: rgba(30, 30, 46, 0.4);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    overflow-x: auto;
}

.result-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #c4b5fd;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.result-tab:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #ffffff;
}

.result-tab.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(196, 181, 253, 0.8) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.result-tab i {
    font-size: 1rem;
}

/* 标签页内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* 全屏模式下的网格布局 */
.prediction-result-modal.fullscreen .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.prediction-result-modal.fullscreen .result-section {
    background: rgba(30, 30, 46, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.prediction-result-modal.fullscreen .result-section h4 {
    margin: 0 0 15px 0;
    color: #c4b5fd;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prediction-result-modal.fullscreen .result-section h4 i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.prediction-result-modal .result-icon {
    margin-bottom: 25px;
}

.prediction-result-modal .result-icon i {
    font-size: 4rem;
    color: #7c3aed;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.6));
    animation: crystalGlow 3s ease-in-out infinite;
}

.prediction-result-modal .time-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.prediction-result-modal .time-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #e0e7ff;
    font-size: 0.9rem;
}

.prediction-result-modal .time-info-item i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.prediction-result-modal .time-info-item span {
    font-weight: 500;
    text-align: center;
}

.prediction-result-modal .prediction-type {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
    font-weight: 600;
    font-size: 1rem;
}

.prediction-result-modal .prediction-type i {
    color: #7c3aed;
    font-size: 1.1rem;
}

.prediction-result-modal .question-info {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(30, 30, 46, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.prediction-result-modal .question-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #e0e7ff;
    font-size: 0.95rem;
    text-align: left;
}

.prediction-result-modal .question-info-item:last-child {
    margin-bottom: 0;
}

.prediction-result-modal .question-info-item i {
    color: #7c3aed;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.prediction-result-modal .question-info-item span {
    flex: 1;
    line-height: 1.5;
}

.prediction-result-modal .question-content span {
    word-break: break-word;
    white-space: pre-wrap;
}

.prediction-result-modal .result-text {
    color: #c4b5fd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.prediction-result-modal .result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.prediction-result-modal .btn-download,
.prediction-result-modal .btn-close {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prediction-result-modal .btn-download {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.prediction-result-modal .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
}

.prediction-result-modal .btn-close {
    background: rgba(30, 30, 46, 0.6);
    color: #e0e7ff;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.prediction-result-modal .btn-close:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

/* 白天主题预测结果模态框 */
[data-theme="day"] .prediction-result-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.2),
        0 0 100px rgba(59, 130, 246, 0.1);
}

/* 白天主题全屏模式 */
[data-theme="day"] .prediction-result-modal.fullscreen .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 0 50px rgba(59, 130, 246, 0.05);
}

[data-theme="day"] .prediction-result-modal .modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(96, 165, 250, 0.8) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .prediction-result-modal .modal-header h3 {
    color: #ffffff;
}

[data-theme="day"] .prediction-result-modal .modal-header h3 i {
    color: #ffffff;
    opacity: 0.9;
}

[data-theme="day"] .prediction-result-modal .modal-close {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="day"] .prediction-result-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

[data-theme="day"] .prediction-result-modal .result-icon i {
    color: #3b82f6;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

[data-theme="day"] .prediction-result-modal .time-info {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .prediction-result-modal .time-info-item {
    color: #1e40af;
}

[data-theme="day"] .prediction-result-modal .time-info-item i {
    color: #3b82f6;
}

[data-theme="day"] .prediction-result-modal .prediction-type {
    color: rgba(30, 64, 175, 0.8);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .prediction-result-modal .prediction-type i {
    color: #3b82f6;
}

[data-theme="day"] .prediction-result-modal .question-info {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .prediction-result-modal .question-info-item {
    color: #1e40af;
}

[data-theme="day"] .prediction-result-modal .question-info-item i {
    color: #3b82f6;
}

[data-theme="day"] .prediction-result-modal .result-text {
    color: rgba(30, 64, 175, 0.8);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .prediction-result-modal .btn-download {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .prediction-result-modal .btn-download:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

[data-theme="day"] .prediction-result-modal .btn-close {
    background: rgba(255, 255, 255, 0.6);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .prediction-result-modal .btn-close:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

/* 白天主题标签页样式 */
[data-theme="day"] .result-tabs {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
}

[data-theme="day"] .result-tab {
    background: transparent;
    color: rgba(30, 64, 175, 0.7);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

[data-theme="day"] .result-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .result-tab.active {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .result-tab i {
    color: #3b82f6;
}

[data-theme="day"] .result-tab.active i {
    color: #1e40af;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
}

/* 白天主题全屏模式下的网格布局 */
[data-theme="day"] .prediction-result-modal.fullscreen .result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

[data-theme="day"] .prediction-result-modal.fullscreen .result-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .prediction-result-modal.fullscreen .result-section h4 {
    margin: 0 0 15px 0;
    color: #1e40af;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="day"] .prediction-result-modal.fullscreen .result-section h4 i {
    color: #3b82f6;
    font-size: 1.2rem;
}

/* 白天主题显示模式切换按钮 */
[data-theme="day"] .display-mode-toggle {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 15px;
}

[data-theme="day"] .display-mode-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="day"] .display-mode-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    color: #1e40af;
}

[data-theme="day"] .display-mode-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .display-mode-btn i {
    color: #3b82f6;
}

/* 白天主题其他组件样式 */
[data-theme="day"] .fortune-display {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

[data-theme="day"] .fortune-level {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

[data-theme="day"] .fortune-description {
    color: rgba(30, 64, 175, 0.8);
    font-size: 0.9rem;
}

[data-theme="day"] .analysis-list {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
}

[data-theme="day"] .analysis-item {
    color: rgba(30, 64, 175, 0.8);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

[data-theme="day"] .analysis-item i {
    color: #3b82f6;
    font-size: 0.8rem;
    margin-top: 6px;
    flex-shrink: 0;
}

[data-theme="day"] .qimen-items {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
}

[data-theme="day"] .qimen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .qimen-item:last-child {
    border-bottom: none;
}

[data-theme="day"] .qimen-label {
    color: rgba(30, 64, 175, 0.7);
    font-weight: 500;
}

[data-theme="day"] .qimen-value {
    color: #1e40af;
    font-weight: 600;
}

[data-theme="day"] .lucky-items {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
}

[data-theme="day"] .lucky-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .lucky-item:last-child {
    border-bottom: none;
}

[data-theme="day"] .lucky-label {
    color: rgba(30, 64, 175, 0.7);
    font-weight: 500;
}

[data-theme="day"] .lucky-value {
    color: #1e40af;
    font-weight: 600;
}

[data-theme="day"] .pan-mian-items {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

[data-theme="day"] .pan-mian-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .pan-mian-label {
    color: rgba(30, 64, 175, 0.7);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

[data-theme="day"] .pan-mian-value {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 奇门排盘白天主题样式 */
[data-theme="day"] .pan-mian-info {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

[data-theme="day"] .pan-mian-info h4 {
    color: #1e40af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="day"] .pan-mian-info h4 i {
    color: #3b82f6;
}

[data-theme="day"] .pan-mian-grid {
    display: grid;
    gap: 15px;
}

[data-theme="day"] .pan-mian-section {
    background: rgba(59, 130, 246, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

[data-theme="day"] .pan-mian-section h5 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

[data-theme="day"] .pan-mian-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

[data-theme="day"] .pan-item {
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.9rem;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-theme="day"] .pan-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* 宫位详情白天主题样式 */
[data-theme="day"] .gong-wei-detail {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

[data-theme="day"] .gong-wei-detail h4 {
    color: #1e40af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="day"] .gong-wei-detail h4 i {
    color: #3b82f6;
}

[data-theme="day"] .gong-wei-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

[data-theme="day"] .gong-wei-item {
    background: rgba(59, 130, 246, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

[data-theme="day"] .gong-wei-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

[data-theme="day"] .gong-wei-item.kong-wang {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="day"] .gong-wei-item.yi-ma {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

[data-theme="day"] .gong-name {
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    text-align: center;
}

[data-theme="day"] .gong-details {
    color: rgba(30, 64, 175, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 预测结果模态框响应式设计 */
@media (max-width: 768px) {
    .prediction-result-modal .modal-content {
        width: 95%;
        max-width: 500px;
    }
    
    .prediction-result-modal .modal-header {
        padding: 20px 25px;
    }
    
    .prediction-result-modal .modal-body {
        padding: 25px;
    }
    
    .prediction-result-modal .time-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .prediction-result-modal .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .prediction-result-modal .btn-download,
    .prediction-result-modal .btn-close {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    /* 移动端全屏模式优化 */
    .prediction-result-modal.fullscreen .modal-body {
        padding: 15px 20px;
    }
    
    .prediction-result-modal.fullscreen .result-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 移动端白天主题优化 */
    [data-theme="day"] .prediction-result-modal.fullscreen .result-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    [data-theme="day"] .pan-mian-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    [data-theme="day"] .display-mode-toggle {
        flex-direction: column;
        gap: 4px;
    }
    
    [data-theme="day"] .display-mode-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .result-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .result-tab {
        min-width: auto;
        padding: 10px 12px;
    }
    
    .display-mode-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .display-mode-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .prediction-result-modal .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }
    
    .prediction-result-modal .modal-header {
        padding: 15px 20px;
    }
    
    .prediction-result-modal .modal-body {
        padding: 20px;
    }
    
    .prediction-result-modal.fullscreen .modal-body {
        padding: 10px 15px;
    }
    
    .result-tab {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* 小屏幕白天主题优化 */
    [data-theme="day"] .prediction-result-modal.fullscreen .modal-body {
        padding: 10px 15px;
    }
    
    [data-theme="day"] .pan-mian-items {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    [data-theme="day"] .result-section {
        padding: 15px;
    }
    
    [data-theme="day"] .result-section h4 {
        font-size: 1rem;
    }
    
    .result-tab i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .prediction-result-modal .modal-content {
        width: 98%;
    }
    
    .prediction-result-modal .modal-header {
        padding: 15px 20px;
    }
    
    .prediction-result-modal .modal-body {
        padding: 20px;
    }
    
    .prediction-result-modal .time-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .prediction-result-modal .result-icon i {
        font-size: 3rem;
    }
}

/* 预测类型选择样式 */
.prediction-type-selection {
    background: rgba(30, 30, 46, 0.6);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.prediction-type-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
    animation: shimmer 2s ease-in-out infinite;
}

.prediction-type-selection h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.prediction-type-selection h3 i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.type-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.type-option {
    background: rgba(30, 30, 46, 0.4);
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    min-width: 140px;
    justify-content: center;
}

.type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.type-option:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.type-option.active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.type-option i {
    font-size: 1.2rem;
    color: #7c3aed;
    transition: all 0.3s ease;
}

.type-option.active i {
    color: #ffffff;
}

.type-option span {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 白天主题预测类型选择区域 */
[data-theme="day"] .prediction-type-selection {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .prediction-type-selection::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}

[data-theme="day"] .prediction-type-selection h3 {
    color: #1e40af;
}

[data-theme="day"] .prediction-type-selection h3 i {
    color: #3b82f6;
}

[data-theme="day"] .type-option {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: rgba(30, 64, 175, 0.8);
}

[data-theme="day"] .type-option::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

[data-theme="day"] .type-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .type-option.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .type-option i {
    color: #3b82f6;
}

[data-theme="day"] .type-option.active i {
    color: #1e40af;
}

/* 时间选择区域样式 */
.time-selection {
    background: rgba(30, 30, 46, 0.6);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    visibility: hidden; /* 使用visibility而不是display */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.time-selection.show {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* 日历选择器容器样式 */
.calendar-picker-container {
    margin-top: 20px;
}

/* 选择结果显示样式 */
.selection-result {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: fadeInUp 0.5s ease;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 500;
}

.selection-info i {
    color: #10b981;
    font-size: 1rem;
}

.time-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
    animation: shimmer 2s ease-in-out infinite;
}

.time-selection h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.time-selection h3 i {
    color: #7c3aed;
    font-size: 1.2rem;
}

.time-fields {
    animation: fadeInUp 0.5s ease;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 问题类型触发器样式 */
.question-type-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 56px;
    margin-bottom: 20px;
}

.question-type-trigger:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(30, 30, 46, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(196, 181, 253, 0.8);
    font-size: 0.95rem;
    flex: 1;
}

.trigger-content i {
    color: #7c3aed;
    font-size: 0.9rem;
}

.trigger-arrow {
    color: #7c3aed;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.question-type-trigger:hover .trigger-arrow {
    transform: translateX(3px);
}

/* 白天主题问题类型触发器 */
[data-theme="day"] .question-type-trigger {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .question-type-trigger:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .trigger-content {
    color: rgba(30, 64, 175, 0.8);
}

[data-theme="day"] .trigger-content i {
    color: #3b82f6;
}

[data-theme="day"] .trigger-arrow {
    color: #3b82f6;
}

/* 弹框模态框样式 */
.question-type-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.question-type-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(124, 58, 237, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.question-type-modal.show .modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(196, 181, 253, 0.8) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.modal-header h3 i {
    font-size: 22px;
    opacity: 0.9;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    padding: 0;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.search-container {
    position: sticky;
    top: 0;
    padding: 25px 30px;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 10;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: rgba(30, 30, 46, 0.8);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-input::placeholder {
    color: rgba(196, 181, 253, 0.6);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(196, 181, 253, 0.6);
    font-size: 16px;
}

.question-categories {
    padding: 25px 30px;
}

.question-category {
    margin-bottom: 30px;
}

.question-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    color: rgba(196, 181, 253, 0.9);
    font-size: 18px;
    font-weight: 600;
}

.category-header i {
    color: #7c3aed;
    font-size: 20px;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.question-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(30, 30, 46, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(196, 181, 253, 0.8);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.question-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.question-option:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2);
}

.question-option.selected {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(196, 181, 253, 0.3) 100%);
    border-color: #7c3aed;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.question-option i {
    color: #7c3aed;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.question-option:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.question-option.selected i {
    opacity: 1;
    transform: scale(1.1);
}

.question-option span {
    font-weight: 500;
    transition: color 0.3s ease;
}

.question-option.selected span {
    color: #ffffff;
    font-weight: 600;
}

/* 白天主题弹框样式 */
[data-theme="day"] .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="day"] .modal-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.2),
        0 0 100px rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(96, 165, 250, 0.8) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .modal-header h3 {
    color: #ffffff;
}

[data-theme="day"] .modal-close {
    color: #ffffff;
}

[data-theme="day"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="day"] .search-container {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .search-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #1e40af;
}

[data-theme="day"] .search-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="day"] .search-input::placeholder {
    color: rgba(30, 64, 175, 0.6);
}

[data-theme="day"] .search-icon {
    color: rgba(30, 64, 175, 0.6);
}

[data-theme="day"] .question-categories {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="day"] .category-header {
    color: rgba(30, 64, 175, 0.9);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .category-header i {
    color: #3b82f6;
}

[data-theme="day"] .question-option {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(30, 64, 175, 0.8);
}

[data-theme="day"] .question-option::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

[data-theme="day"] .question-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

[data-theme="day"] .question-option.selected {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.3) 100%);
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

[data-theme="day"] .question-option i {
    color: #3b82f6;
}

[data-theme="day"] .question-option:hover i {
    color: #ffffff;
}

[data-theme="day"] .question-option.selected i {
    color: #ffffff;
}

[data-theme="day"] .question-option.selected span {
    color: #ffffff;
}

/* 无结果消息 */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(196, 181, 253, 0.6);
}

.no-results-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results-message p {
    font-size: 16px;
    margin-bottom: 8px;
}

.no-results-message small {
    font-size: 14px;
    opacity: 0.7;
}

/* 白天主题无结果消息 */
[data-theme="day"] .no-results-message {
    color: rgba(30, 64, 175, 0.6);
}

[data-theme="day"] .no-results-message i {
    color: #3b82f6;
    opacity: 0.5;
}

/* 搜索过滤效果 */
.question-option.hidden {
    display: none;
}

.question-category.hidden {
    display: none;
}

/* 弹框响应式设计 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .search-container {
        padding: 20px 25px;
    }
    
    .question-categories {
        padding: 20px 25px;
    }
    
    .category-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .question-option {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .category-header {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 98%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .search-container {
        padding: 15px 20px;
    }
    
    .question-categories {
        padding: 15px 20px;
    }
}

/* 响应式设计更新 */
@media (max-width: 768px) {
    .type-options {
        flex-direction: column;
        align-items: center;
    }
    
    .type-option {
        padding: 12px 20px;
        min-width: 120px;
    }
    
    .selector-dropdown {
        max-height: 300px;
    }
    
    .category-options {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .question-option {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .category-header {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .dropdown-search {
        padding: 12px;
    }
    
    .dropdown-search input {
        padding: 8px 12px 8px 35px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .selector-header {
        padding: 12px 15px;
        min-height: 50px;
    }
    
    .selector-placeholder {
        font-size: 0.9rem;
    }
    
    .selector-dropdown {
        max-height: 250px;
    }
    
    .question-option {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .question-option i {
        font-size: 0.8rem;
    }
}
