.bazi-container {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
    min-height: 100vh;
}

.bazi-container .header {
    background: rgba(139, 69, 19, 0.8);
    backdrop-filter: blur(10px);
}

.bazi-container .header h1 {
    color: #FFD700;
}

.bazi-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.bazi-title {
    text-align: center;
    color: #FFD700;
    margin-bottom: 30px;
}

.bazi-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bazi-title p {
    font-size: 16px;
    opacity: 0.9;
}

.bazi-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-section {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 15px;
}

.gender-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gender-option {
    flex: 1;
    max-width: 150px;
    padding: 20px;
    background: #f9f9f9;
    border: 3px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gender-option.selected {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #8B4513;
}

.gender-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}

.date-selector {
    display: flex;
    gap: 10px;
}

.date-select {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.date-select:focus {
    outline: none;
    border-color: #8B4513;
}

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

.time-option {
    padding: 15px 10px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.time-option:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.time-option.selected {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #8B4513;
    color: #8B4513;
    font-weight: bold;
}

.time-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.time-range {
    display: block;
    font-size: 12px;
    color: #666;
}

.wuxing-display {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.wuxing-display h3 {
    text-align: center;
    color: #8B4513;
    margin-bottom: 20px;
}

.wuxing-elements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wuxing-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wuxing-icon {
    font-size: 24px;
}

.wuxing-name {
    font-weight: bold;
    color: #8B4513;
    min-width: 40px;
}

.wuxing-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow-x: hidden;
    position: relative;
}

.wuxing-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease-out;
    border-radius: 10px;
}

.wuxing-item[data-element="jin"] .wuxing-fill {
    background: linear-gradient(90deg, #C0C0C0 0%, #E8E8E8 100%);
}

.wuxing-item[data-element="mu"] .wuxing-fill {
    background: linear-gradient(90deg, #228B22 0%, #90EE90 100%);
}

.wuxing-item[data-element="shui"] .wuxing-fill {
    background: linear-gradient(90deg, #4169E1 0%, #87CEEB 100%);
}

.wuxing-item[data-element="huo"] .wuxing-fill {
    background: linear-gradient(90deg, #FF4500 0%, #FF6347 100%);
}

.wuxing-item[data-element="tu"] .wuxing-fill {
    background: linear-gradient(90deg, #DAA520 0%, #F0E68C 100%);
}

.bazi-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: #FFD700;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bazi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.4);
}

.bazi-btn.secondary {
    background: linear-gradient(135deg, #888 0%, #555 100%);
    color: white;
}

.result-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.result-section h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.result-section .fortune-result {
    background: #FFF8DC;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.8;
    color: #333;
    border-left: 4px solid #8B4513;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .gender-selector {
        flex-direction: column;
    }

    .gender-option {
        max-width: 100%;
    }

    .time-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.bazi-form, .result-section {
    animation: fadeIn 0.5s ease-out;
}

/* 支付选择样式 */
.payment-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.payment-section h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.payment-subtitle {
    text-align: center;
    color: #7F8C8D;
    margin-bottom: 30px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-option.recommended {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #8B4513;
}

.payment-option.recommended h4,
.payment-option.recommended p {
    color: #8B4513;
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #8B4513;
    color: #FFD700;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.option-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.payment-option h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #8B4513;
}

.payment-option p {
    font-size: 14px;
    color: #7F8C8D;
    margin: 0 0 20px 0;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 20px;
}

.price span {
    font-size: 48px;
}

.bazi-btn.free,
.bazi-btn.paid {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bazi-btn.free {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.bazi-btn.paid {
    background: #8B4513;
    color: #FFD700;
}

@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* 姓名输入样式 */
.name-input-wrapper {
    display: flex;
    justify-content: center;
}

.name-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #FFD700;
    border-radius: 10px;
    background: white;
    color: #8B4513;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s;
}

.name-input:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.name-input::placeholder {
    color: #D2691E;
    opacity: 0.6;
}

.input-hint {
    text-align: center;
    color: #D2691E;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.8;
}

/* 页面免责声明样式 */
.page-disclaimer {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 20px;
    text-align: center;
    color: #FFD700;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    animation: disclaimerGlow 3s ease-in-out infinite;
}

.page-disclaimer .disclaimer-icon {
    font-size: 16px;
}

@keyframes disclaimerGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 193, 7, 0.15);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 193, 7, 0.3);
    }
}

@media (max-width: 768px) {
    .page-disclaimer {
        margin: 10px 15px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .page-disclaimer .disclaimer-icon {
        font-size: 14px;
    }
}
