/* 梅花易数页面样式 */
.meihua-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.meihua-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.meihua-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.meihua-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 决策表单样式 */
.decision-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-title {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.form-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* 问题输入 */
.question-input-section {
    margin-bottom: 30px;
}

.question-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.question-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.question-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 起卦方式选择 */
.divination-method-section {
    margin-bottom: 30px;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.method-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.inline-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

.method-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.method-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.method-option input[type="radio"] {
    margin: 0;
}

.method-label {
    color: #333;
    font-weight: 500;
}

/* 数字输入框 */
.number-inputs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.number-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    min-width: 120px;
}

.divination-btn {
    min-width: 140px !important;
}

.rules-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.rules-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.divination-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.divination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.divination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 起卦结果 */
.divination-result {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.result-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.hexagram-info {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hexagram-display {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px;
   
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    
    position: relative;
    overflow: hidden;
}

.hexagram-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* 卦象装饰元素 */
.hexagram-display::after {
    content: '⚡';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

.hexagram-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.upper-hexagram, .lower-hexagram {
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.hexagram-line {
    font-size: 1.8rem;
    margin: 15px 0;
    color: #764ba2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(118, 75, 162, 0.3);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}

.hexagram-details {
    flex: 2;
    min-width: 250px;
}

.hexagram-details p {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

.hexagram-details strong {
    color: #667eea;
    font-weight: 600;
}

/* 起卦问题显示 */
.question-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.question-display h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.question-text {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.calculation-details {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.calculation-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 15px 15px 0 0;
}

.calculation-details h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.calculation-details h5:first-child {
    margin-top: 0;
}

.calculation-details p {
    margin: 8px 0;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.calculation-details .calc-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 10px 0;
}

.calculation-details .calc-row p {
    flex: 1;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(102, 126, 234, 0.05) 100%);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculation-details .calc-row p:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.calculation-details .calc-row p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.calculation-details .calc-row p:hover::before {
    left: 100%;
}

.interpretation, .advice {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.interpretation h4, .advice h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.interpretation p, .advice p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 17px;
}

/* AI辅助观察 */
.ai-observation {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.section-title {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.section-description {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.observation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.observation-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.observation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.observation-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.observation-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 常见问题 */
.faq-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.faq-list {
    display: grid;
    gap: 20px;
}

.faq-item {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    background: rgba(102, 126, 234, 0.02);
    padding: 20px;
    border-radius: 8px;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.rule-section {
    margin-bottom: 20px;
}

.rule-section h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.rule-section p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .meihua-container {
        padding: 15px;
    }

    .meihua-header {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .meihua-title {
        font-size: 2rem;
    }

    .decision-form {
        padding: 20px;
    }

    .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .method-options {
        flex-direction: column;
        gap: 10px;
    }

    .number-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 200px;
    }

    .hexagram-info {
        flex-direction: column;
        gap: 20px;
    }

    .calculation-details .calc-row {
        flex-direction: column;
        gap: 8px;
    }

    .calculation-details .calc-row p {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .observation-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    /* VIP相关移动端适配 */
    .vip-benefits {
        gap: 15px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .upgrade-btn, .cancel-btn {
        width: 100%;
        max-width: none;
    }
}

/* VIP解读区域 */
.vip-interpretation {
    margin-top: 25px;
}

/* VIP提示 */
.vip-prompt {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vip-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 50%, #ff5722 100%);
}

.vip-content h4 {
    color: #f57c00;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.vip-content p {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.vip-upgrade-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.vip-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* 解读区域 */
.interpretation-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 25px;
}

.interpretation-prompt {
    text-align: center;
    margin-bottom: 20px;
}

.interpretation-prompt p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.interpretation-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.interpretation-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.interpretation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 解读结果 */
.interpretation-content {
    animation: fadeInUp 0.5s ease-out;
}

.interpretation, .advice {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.interpretation h4, .advice h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.interpretation p, .advice p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

/* VIP弹窗 */
.vip-upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

.vip-upgrade-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.modal-body {
    padding: 25px 30px;
}

.vip-benefits {
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.benefit-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.2);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 150px;
}

.cancel-btn:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.4);
}

/* 起卦倒计时弹层样式 */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.countdown-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.countdown-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.hexagram-symbol {
    font-size: 2.5rem;
    color: #667eea;
    z-index: 2;
    position: relative;
}

.countdown-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.countdown-timer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.timer-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.countdown-message {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.countdown-progress {
    width: 100%;
    height: 6px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 1s linear;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 数字起卦结果样式 */
.number-hexagram-info {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.number-hexagram-display {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.number-hexagram-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hexagram-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.number-gua-visual {
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.main-gua-visual {
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    margin: 0;
    line-height: 1.2;
    white-space: pre;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
}

.gua-info {
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.main-gua-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.gua-symbols {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gua-symbol {
    font-size: 2rem;
    opacity: 0.8;
}

.number-hexagram-details {
    flex: 2;
    min-width: 250px;
}

.number-info, .time-info, .gua-analysis {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.number-info h5, .time-info h5, .gua-analysis h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.number-info p, .time-info p {
    margin: 8px 0;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.gua-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gua-type {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.gua-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.gua-type h6 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
}

.gua-type p {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.gua-type small {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .number-hexagram-info {
        flex-direction: column;
        gap: 20px;
    }

    .number-hexagram-display {
        min-width: auto;
    }

    .number-hexagram-details {
        min-width: auto;
    }

    .gua-types {
        grid-template-columns: 1fr;
    }

    .main-gua-visual {
        font-size: 1.4rem;
        padding: 10px;
    }
}

/* 随机数起卦样式 */
.random-hexagram-info {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.random-hexagram-display {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.random-hexagram-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.random-gua-visual {
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.random-hexagram-details {
    flex: 2;
    min-width: 250px;
}

.random-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.08) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.random-info h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid #ffc107;
    display: inline-block;
}

.random-numbers {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.number-item {
    text-align: center;
}

.number-label {
    display: block;
    color: #ff9800;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    animation: bounceIn 0.6s ease-out;
}

.number-desc {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.random-desc {
    text-align: center;
    color: #ff9800;
    font-weight: 500;
    font-style: italic;
    margin-top: 10px;
}

/* 随机数动画 */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .random-hexagram-info {
        flex-direction: column;
        gap: 20px;
    }

    .random-hexagram-display {
        min-width: auto;
    }

    .random-hexagram-details {
        min-width: auto;
    }

    .random-numbers {
        flex-direction: column;
        gap: 20px;
    }

    .number-circle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* 问答功能样式 */
.qa-section {
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.08) 0%, rgba(103, 58, 183, 0.08) 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(156, 39, 176, 0.2);
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.1);
}

.qa-content h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.reference-questions {
    margin-bottom: 25px;
}

.ref-title {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.question-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-btn:hover {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.5);
    color: #9c27b0;
    transform: translateY(-1px);
}

.question-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qa-input-section {
    margin-bottom: 20px;
}

.qa-input-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(156, 39, 176, 0.2);
}

.qa-textarea {
    width: 100%;
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.qa-textarea:focus {
    outline: none;
    border-color: #9c27b0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.qa-textarea:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.qa-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qa-submit-btn, .qa-copy-btn, .qa-reset-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qa-submit-btn {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.qa-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

.qa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.qa-copy-btn {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.qa-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.qa-reset-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.qa-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.qa-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(156, 39, 176, 0.3);
    margin-top: 20px;
}

.qa-answer, .qa-followup {
    margin-bottom: 20px;
}

.qa-answer:last-child, .qa-followup:last-child {
    margin-bottom: 0;
}

.qa-answer h5, .qa-followup h5 {
    margin: 0 0 10px 0;
    color: #9c27b0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qa-answer p, .qa-followup p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qa-section {
        padding: 20px;
        margin-top: 20px;
    }

    .questions-grid {
        grid-template-columns: 1fr;
    }

    .question-btn {
        white-space: normal;
        text-align: center;
        padding: 12px 15px;
    }

    .qa-actions {
        flex-direction: column;
    }

    .qa-submit-btn, .qa-copy-btn, .qa-reset-btn {
        width: 100%;
        justify-content: center;
    }

    .qa-textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

