/* 八字命理精批 - V20 简洁版样式（三级地区选择版）*/

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
}

.serif { 
    font-family: 'Noto Serif SC', serif; 
}

.float-anim {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.glow-effect {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* ==================== 表单卡片 ==================== */
.form-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-row:hover {
    background: rgba(251, 191, 36, 0.05);
}

.form-label {
    color: #fbbf24;
    font-size: 15px;
    font-weight: 500;
    width: 90px;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.form-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.form-value-link {
    color: #e2e8f0;
    font-size: 15px;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}

/* ==================== 输入框样式 ==================== */
.form-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 15px;
    text-align: right;
    outline: none;
}

.form-input::placeholder {
    color: #64748b;
}

/* ==================== 性别单选 ==================== */
.gender-inline {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gender-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 15px;
    transition: color 0.3s;
}

.gender-radio input {
    display: none;
}

.radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #64748b;
    position: relative;
    transition: all 0.3s;
}

.radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    transition: transform 0.3s;
}

.gender-radio input:checked + .radio-dot {
    border-color: #fbbf24;
}

.gender-radio input:checked + .radio-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

.gender-radio input:checked ~ span {
    color: #fbbf24;
}

.gender-radio:hover {
    color: #fbbf24;
}

/* ==================== 真太阳时预览 ==================== */
.true-solar-box {
    background: rgba(251, 191, 36, 0.08);
    border-left: 3px solid #fbbf24;
    padding: 12px 20px;
    margin: 0;
}

.true-solar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.true-solar-label {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 500;
}

.true-solar-time {
    color: #fbbf24;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}

.true-solar-tag {
    color: #64748b;
    font-size: 12px;
    margin-left: auto;
}

.true-solar-desc {
    color: #94a3b8;
    font-size: 12px;
    padding-left: 0;
}

/* ==================== 输入卡片 ==================== */
.input-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.input-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}

.input-label {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 1px;
}

.input-field {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: #e2e8f0;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.input-field::placeholder {
    color: #64748b;
}

/* ==================== 底部弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1000 !important;
    display: none; 
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.modal-overlay.show {
    display: flex !important;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.modal-overlay.show .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-height: 70vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    pointer-events: auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

/* ==================== 顶部操作栏 ==================== */
.modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    background: rgba(15, 23, 42, 0.5);
}

.modal-action-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.modal-action-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.modal-action-btn.confirm {
    color: #fbbf24;
    font-weight: 600;
}

.modal-title-center {
    color: #fbbf24;
    font-size: 16px;
    font-weight: 600;
}

/* ==================== 历法切换（顶部）==================== */
.calendar-toggle-modal {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.calendar-toggle-modal button {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-toggle-modal button.active {
    background: #fbbf24;
    color: #000;
    font-weight: 600;
}

/* ==================== 滚轮容器（三列布局版）==================== */
.wheels-container {
    display: flex;
    height: 280px;
    position: relative;
}

/* 两列布局（时间选择器） */
.wheels-container.two-columns .wheel-column {
    flex: 1;
}

/* 三列布局（地区选择器） */
.wheels-container.three-columns .wheel-column {
    flex: 1;
    min-width: 0; /* 允许列收缩 */
}

.wheels-container.three-columns .wheel-column:nth-child(1) {
    flex: 1.2; /* 省份列稍宽 */
}

.wheels-container.three-columns .wheel-column:nth-child(2) {
    flex: 1; /* 城市列 */
}

.wheels-container.three-columns .wheel-column:nth-child(3) {
    flex: 1.2; /* 区县列稍宽 */
}

.wheel-column {
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid rgba(251, 191, 36, 0.1);
}

.wheel-column:last-child {
    border-right: none;
}

.wheel-label {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 滚动包装器，用于定位高亮条 */
.wheel-scroll-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 高亮条固定在包装器中央，不随滚动移动 */
.wheel-highlight-bar {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 40px;
    margin-top: -20px;
    border-top: 2px solid rgba(251, 191, 36, 0.6);
    border-bottom: 2px solid rgba(251, 191, 36, 0.6);
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    pointer-events: none;
    z-index: 10;
}

.wheel-scroll-area {
    flex: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
}

/* 隐藏滚动条 */
.wheel-scroll-area::-webkit-scrollbar {
    display: none;
}

.wheel-scroll-area:active {
    cursor: grabbing;
}

.wheel-scroll-area {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wheel-scroll {
    padding: 120px 0;
}

.wheel-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel-item.active {
    color: #fbbf24;
    font-size: 17px;
    font-weight: 600;
}

/* ==================== 时间预览条 ==================== */
.time-preview-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(251, 191, 36, 0.08);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    font-size: 15px;
    color: #e2e8f0;
}

.time-preview-bar .time-separator {
    color: #64748b;
}

.time-preview-bar .shichen-text {
    color: #fbbf24;
    font-size: 13px;
}

/* ==================== 其他组件 ==================== */
.promo-card {
    transition: transform 0.3s;
}

.promo-card:hover {
    transform: translateY(-2px);
}

.glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
}

.hidden {
    display: none !important;
}

/* ==================== 评价滚动动画 ==================== */
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.reviews-scroll-wrapper {
    display: flex;
    flex-direction: column;
    animation: scrollUp 30s linear infinite;
}

.review-scroll-item {
    flex-shrink: 0;
    margin-bottom: 12px;
    padding: 0 4px;
}

#dynamicReviews:hover .reviews-scroll-wrapper {
    animation-play-state: paused;
}

#dynamicReviews {
    mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

/* ==================== SweetAlert2 主题 ==================== */
.swal2-popup {
    border-radius: 20px !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

.swal2-confirm {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.swal2-title {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.swal2-container {
    z-index: 9999 !important;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 640px) {
    .wheels-container {
        height: 260px;
    }
    
    .wheels-container.two-columns {
        height: 260px;
    }
    
    .wheels-container.three-columns {
        height: 260px;
    }
    
    .wheel-item {
        font-size: 14px;
        height: 36px;
    }
    
    .wheel-item.active {
        font-size: 16px;
    }
    
    .wheel-highlight-bar {
        height: 36px;
        margin-top: -18px;
    }
    
    .wheel-scroll {
        padding: 110px 0;
    }
    
    .modal-action-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .calendar-toggle-modal button {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .time-preview-bar {
        font-size: 13px;
        padding: 12px;
    }
    
    .form-label {
        width: 80px;
        font-size: 14px;
    }
    
    .form-value {
        font-size: 14px;
    }
    
    /* 三列布局在小屏幕下的优化 */
    .wheels-container.three-columns .wheel-column:nth-child(1),
    .wheels-container.three-columns .wheel-column:nth-child(2),
    .wheels-container.three-columns .wheel-column:nth-child(3) {
        flex: 1;
    }
    
    .wheel-label {
        font-size: 11px;
        padding: 8px 4px;
    }
}

@media (max-width: 380px) {
    .wheel-item {
        font-size: 13px;
        padding: 0 6px;
    }
    
    .wheel-item.active {
        font-size: 15px;
    }
    
    .form-label {
        width: 70px;
    }
    
    .calendar-toggle-modal button {
        padding: 5px 10px;
    }
    
    .wheel-label {
        font-size: 10px;
    }
}

/* ==================== 农历/公历转换显示 ==================== */
.converted-date-box {
    background: rgba(30, 41, 59, 0.4);
    border-left: 3px solid #60a5fa;
    padding: 12px 20px;
    margin: 0;
    border-top: 1px solid rgba(251, 191, 36, 0.05);
}

.converted-date-display {
    color: #94a3b8;
    font-size: 13px;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 0.5px;
}


/* ==================== 性别选中样式 ==================== */
.gender-radio.selected {
    background: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.gender-radio.selected input:checked + .radio-dot {
    border-color: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.gender-radio.selected input:checked ~ span {
    color: #fbbf24;
    font-weight: 600;
}