/* 出生日期时间五转盘浮层（公历/农历切换） */
.bazi-datetime-wheel-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10200;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
.bazi-datetime-wheel-modal.show { display: flex; }
.bazi-datetime-wheel-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.bazi-datetime-wheel-sheet {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.bazi-datetime-wheel-preview {
    padding: 14px 16px 10px;
    font-size: 15px;
    color: #334155;
    text-align: center;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.4;
}
.bazi-datetime-cal-switch {
    display: flex;
    margin: 12px 16px 8px;
    border: 1.5px solid #26c2ad;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.bazi-datetime-cal-btn {
    flex: 1;
    border: none;
    background: #fff;
    color: #26c2ad;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.bazi-datetime-cal-btn.is-active {
    background: #26c2ad;
    color: #fff;
}
.bazi-datetime-cal-btn:focus-visible {
    outline: 2px solid #26c2ad;
    outline-offset: 2px;
}
.bazi-wheel-datetime {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 4px 8px 8px;
    background: #fff;
    position: relative;
}
.bazi-wheel-datetime::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    background: #f1f5f9;
    border-radius: 6px;
    pointer-events: none;
    z-index: 2;
}
.bazi-wheel-col {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}
.bazi-wheel-col label { display: none; }
.bazi-wheel-scroll {
    width: 100%;
    height: 220px;
    position: relative;
    z-index: 3;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: auto;
    padding-top: 90px;
    padding-bottom: 90px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.bazi-wheel-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.bazi-wheel-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, font-weight 0.15s;
    position: relative;
    z-index: 5;
}
.bazi-wheel-item.selected {
    color: #1e293b;
    font-weight: 700;
    font-size: 18px;
}
.bazi-wheel-highlight { display: none; }
.bazi-wheel-scroll:focus { outline: none; }
.bazi-datetime-wheel-actions {
    display: flex;
    border-top: 1px solid #e2e8f0;
}
.btn-wheel-cancel, .btn-wheel-confirm {
    flex: 1;
    border: none;
    background: #fff;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.btn-wheel-cancel { border-right: 1px solid #e2e8f0; }
.btn-wheel-confirm { color: #26c2ad; }
.btn-wheel-cancel:active, .btn-wheel-confirm:active { background: #f8fafc; }
