/* 排盘页面样式 */

/* 容器 */
.paipan-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f0;
    position: relative;
}

/* 表单样式 */
.paipan-form {
    padding: 20px 16px;
}

/* 表单行 */
.form-row {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    position: relative;
}

/* 表单标签 */
.form-label {
    width: 90px;
    font-size: 16px;
    color: #333;
}

/* 表单字段 */
.form-field {
    flex: 1;
    position: relative;
}

/* 表单输入框 */
.form-input {
    width: 100%;
    border: none;
    font-size: 16px;
    background-color: transparent;
    color: #999;
    padding: 0;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    outline: none;
}

/* 单选框样式 */
.gender-field {
    display: flex;
    gap: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    position: relative;
}

.radio-custom.checked {
    border-color: #b1301e;
}

.radio-custom.checked::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #b1301e;
    position: absolute;
}

.radio-text {
    font-size: 16px;
    color: #333;
}

input[type="radio"] {
    display: none;
}

/* 日期时间字段 */
.datetime-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.datetime-text {
    font-size: 16px;
    color: #333;
}

/* 地区字段 */
.location-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.location-text {
    font-size: 16px;
    color: #333;
}

/* 真太阳时字段 */
.solar-time-text {
    font-size: 16px;
    color: #333;
}

/* 八字反查按钮 */
.bazi-reverse {
    position: absolute;
    right: 0;
    top: -25px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
}

/* 提交按钮 */
.submit-btn-wrapper {
    padding: 30px 0;
}

.submit-btn {
    width: 100%;
    background-color: #b1301e;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
}

/* 日期时间选择器 */
.datetime-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    z-index: 1000;
    display: none; /* 默认隐藏 */
}

.datetime-picker.active {
    display: block;
}

/* 选择器头部 */
.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.picker-action {
    font-size: 16px;
    color: #333;
}

.picker-action.confirm {
    color: #b1301e;
}

.picker-tabs {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.picker-tab {
    padding: 6px 20px;
    font-size: 14px;
    color: #333;
}

.picker-tab.active {
    background-color: #b1301e;
    color: white;
}

/* 选择器内容 */
.picker-body {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.picker-columns {
    display: flex;
    height: 100%;
}

.picker-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.column-items {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s;
}

.column-item {
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 18px;
    color: #999;
}

.column-item.selected {
    color: #333;
    font-size: 22px;
    font-weight: 500;
}

.column-suffix {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
}

/* 选择器蒙版 */
.picker-mask {
    position: absolute;
    left: 0;
    right: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
}

.top-mask {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
}

.bottom-mask {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
}

/* 选择器指示器 */
.picker-indicator {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    pointer-events: none;
} 
/* 登录提示样式 */
.login-notice {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 6px;
    padding: 10px 15px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-notice .notice-text {
    color: #d97706;
    font-size: 14px;
}
.login-notice .login-btn {
    background-color: #c0392b;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 真太阳时开关样式 */
.toggle-wrapper {
    display: flex;
    align-items: center;
}
.toggle-switch {
    position: relative;
    width: 46px;
    height: 24px;
    margin-right: 10px;
}
.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.toggle-label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-input:checked + .toggle-label {
    background-color: #c0392b;
}
.toggle-input:checked + .toggle-label:before {
    transform: translateX(22px);
}
.solar-time-text {
    font-size: 14px;
}

/* 地区选择器样式 */
.location-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* 默认隐藏 */
    animation: slideUp 0.3s ease-out;
}

.location-picker.active {
    display: block;
}

.location-columns {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 30px;
    overflow-x: auto;
}

/* 城市选择器样式 */
#citySelector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 35px;
}

/* 下拉框样式 */
.location-select {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 8px 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    height: 40px;
    margin: 0 5px;
    flex: 1;
}

/* 日期选择器和地区选择器共享样式 */
.datetime-picker, .location-picker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* 默认隐藏 */
}

.datetime-picker.active, .location-picker.active {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.picker-action {
    color: #c0392b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.picker-title {
    font-size: 16px;
    font-weight: 500;
}

.picker-body {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* 添加日期时间选择器的样式 */
.datetime-columns {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    padding-top: 35px;
}

.datetime-select {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 8px 10px;
    background-color: #f9f9f9;
    font-size: 14px;
    height: 40px;
    margin: 0 5px;
    flex: 1;
}

/* 确保日期时间选择器和地点选择器风格一致 */
#dateTimeSelector .location-select {
    margin: 0 3px;
}

/* 添加后缀标签 */
#dateTimeSelector {
    position: relative;
}

.select-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}