
/* ============================================================
   单人测算表单组件样式（SingleCalcForm）
   ============================================================ */

.single-calc-form {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.scf-title {
    font-size: 19px;
    font-weight: 700;
    color: #a07648;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.scf-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.scf-label {
    width: 92px;
    flex-shrink: 0;
    font-size: 14px;
    color: #5a5047;
    padding-top: 6px;
    white-space: nowrap;
    line-height: 1.3;
}

.scf-input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    font-size: 14px;
    color: #3d362f;
    border: 1px solid #d8cfc0;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    background-color: #fffdf9;
}

.scf-input:focus {
    border-color: #a07648;
}

.scf-inline {
    flex: 1;
    display: flex;
    gap: 8px;
}

.scf-inline .scf-input {
    flex: 1;
    min-width: 0;
}

/* 昵称 + 性别 同行：性别用分段按钮 */
.scf-row-name-sex {
    align-items: center;
}
.scf-row-name-sex .scf-label {
    padding-top: 0;
}
.scf-required {
    color: #e53935;
    margin-right: 3px;
    font-weight: 700;
}
.scf-sex-group {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}
.scf-sex-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 52px;
    height: 36px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #3d362f;
    background-color: #ffffff;
    border: 1px solid #d8cfc0;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s, color .15s, background-color .15s, box-shadow .15s;
}
.scf-sex-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.scf-sex-btn:hover {
    border-color: #a07648;
}
/* 选中态：背景色高亮 + 白色对勾图标（性别、真太阳时等分段按钮通用） */
.scf-sex-btn:has(input:checked),
.scf-sex-btn.active {
    color: #ffffff;
    background-color: #a07648;
    border-color: #a07648;
    box-shadow: 0 2px 8px rgba(160, 118, 72, .25);
}
.scf-sex-btn:has(input:checked)::before,
.scf-sex-btn.active::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.scf-row-check {
    align-items: center;
}

.scf-check {
    width: 16px;
    height: 16px;
    margin-top: 6px;
}

.scf-submit {
    width: 100%;
    margin-top: 6px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #a07648;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.scf-submit:hover {
    background-color: #8a6440;
}

/* 小尺寸模式（section 固定约 350px 时启用） */
.single-calc-compact .single-calc-form {
    padding: 14px;
    border-radius: 8px;
}
.single-calc-compact .scf-title {
    font-size: 17px;
    margin: 0 0 12px;
    padding-bottom: 8px;
}
.single-calc-compact .scf-row {
    margin-bottom: 8px;
}
.single-calc-compact .scf-label {
    width: 76px;
    font-size: 13px;
    padding-top: 4px;
}
.single-calc-compact .scf-input {
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 5px;
}
.single-calc-compact .scf-sex-btn {
    min-width: 36px;
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 5px;
}
.single-calc-compact .scf-sex-group {
    margin-left: 6px;
    gap: 6px;
}
.single-calc-compact .scf-submit {
    padding: 8px 0;
    font-size: 14px;
}

.scf-picker-btn {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 14px;
    color: #a07648;
    background-color: #fffdf9;
    border: 1px solid #a07648;
    border-radius: 6px;
    cursor: pointer;
}

.scf-picker-btn:hover {
    background-color: #a07648;
    color: #ffffff;
}

/* ---------- 出生时间选择弹窗（iOS 滚轮风格） ---------- */
.bday-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bday-picker-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.bday-picker-box {
    position: relative;
    width: 600px;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

/* 顶部工具栏：左侧历法切换 tab + 右侧确定按钮 */
.bday-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.bday-picker-tabs {
    display: inline-flex;
    background: #f3f3f3;
    border-radius: 8px;
    padding: 3px;
}

.bday-picker-tab {
    padding: 8px 22px;
    font-size: 15px;
    color: #666666;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
    transition: background-color .15s, color .15s;
}

.bday-picker-tab.active {
    background: #ffd400;
    color: #1a1a1a;
    font-weight: 700;
}

.bday-picker-ok {
    padding: 8px 28px;
    font-size: 15px;
    color: #ffffff;
    background: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color .15s;
}

.bday-picker-ok:hover {
    background: #000000;
}

/* 5 列联动滚轮区域 */
.bday-picker-wheels {
    display: flex;
    height: 240px;
    padding: 0 8px;
    background: #ffffff;
    position: relative;
}

.bday-picker-wheel {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 6;
    touch-action: none;
    /* 上下淡出效果：让滚轮首尾的项目看起来透明 */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 28%, black 72%, transparent 100%);
}

.bday-picker-wheel::-webkit-scrollbar {
    display: none;
}

.bday-picker-wheel-spacer {
    height: 96px; /* (240 - 48) / 2，让首项和末项可滚到中心 */
    width: 100%;
}

.bday-picker-wheel-item {
    position: relative;
    z-index: 6;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 16px;
    color: #c8c8c8;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color .12s, font-weight .12s, font-size .12s;
}

.bday-picker-wheel-item.selected {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 18px;
}

/* 中心高亮背景（覆盖在滚轮上，标出当前选中行） */
.bday-picker-wheel-highlight {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    background-color: #f5f5f5;
    border-radius: 6px;
    pointer-events: none;
    z-index: 5;
}

/* ---------- 公历/农历双面板 ---------- */
.bday-picker-pane {
    display: none;
    position: relative; /* 让中心高亮线相对面板居中 */
}

.bday-picker-pane.active {
    display: block;
}

/* 公历面板：Picker.js 内联样式适配（去掉自带半透明黑底与边框） */
.bday-picker-pane-solar .picker {
    background-color: transparent;
}

/* ---------- 出生地区选择弹窗（省/市/区 三列联动） ---------- */
.region-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.region-picker-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.region-picker-box {
    position: relative;
    width: 600px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.region-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.region-picker-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.region-picker-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.region-picker-clear,
.region-picker-ok {
    padding: 8px 28px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color .15s;
}

.region-picker-clear {
    color: #1a1a1a;
    background: #f5f5f5;
}

.region-picker-clear:hover {
    background: #ebebeb;
}

.region-picker-ok {
    color: #ffffff;
    background: #1a1a1a;
}

.region-picker-ok:hover {
    background: #000000;
}

.region-picker-labels {
    display: flex;
    padding: 10px 24px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
}

.region-picker-labels span {
    flex: 1;
    text-align: center;
}

.region-picker-body {
    position: relative; /* 让中心高亮线相对此容器垂直居中 */
    background: #ffffff;
}

/* 三列滚轮直接复用生日选择器的 .bday-picker-wheel / .bday-picker-wheel-highlight 样式，保持交互一致 */

.bday-picker-pane-solar .picker-dialog {
    border: none;
}

.bday-picker-pane-solar .picker-picked {
    color: #1a1a1a;
    font-weight: 700;
}

.bday-picker-pane-solar .picker-item {
    cursor: pointer;
}

/* ---------- 真太阳时说明弹窗 ---------- */
.ts-hint-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-hint-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.ts-hint-box {
    position: relative;
    width: 420px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.ts-hint-title {
    padding: 16px 20px 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

.ts-hint-body {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.ts-hint-body b {
    color: #1a1a1a;
}

.ts-hint-ok {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    color: #ffffff;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color .15s;
}

/* 合盘场景下隐藏性别行等（调用方已写死性别时使用） */
.scf-hidden {
    display: none !important;
}

.ts-hint-ok:hover {
    background: #000000;
}

/* ---------- 表单补充类（模板渲染共用） ---------- */
.scf-city-row {
    align-items: center;
}

.scf-actions {
    margin: 12px 0 0 92px;
}

.scf-error {
    color: #e4393c;
    font-size: 13px;
    min-height: 18px;
    margin: 0 0 6px 96px;
}

.scf-true-solar {
    min-height: 42px;
    line-height: 1.6;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    word-break: break-all;
}

.scf-feedback {
    margin: 12px 0 0 92px;
    font-size: 14px;
}

/* 提交确认弹窗（与生辰选择器 .bday-picker-box 风格统一） */
.scf-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: scf-fade-in .18s ease-out;
}

.scf-modal {
    width: 560px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 28px 22px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .08);
    font-family: inherit;
    animation: scf-pop-in .22s cubic-bezier(.2, .9, .3, 1.2);
    border: 1px solid rgba(160, 118, 72, .12);
}

.scf-modal h4 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: none;
    letter-spacing: .5px;
}

.scf-modal p {
    margin: 6px 0;
    font-size: 15px;
    color: #555;
    word-break: break-all;
    line-height: 1.7;
}

.scf-modal .scf-submit {
    margin-top: 16px;
}

/* ---------- 通用弹窗美化：图标 + 标题 + 副文 + 按钮 ---------- */
.scf-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbf3e6 0%, #f5e6cc 100%);
    color: #a07648;
    box-shadow: inset 0 0 0 1px rgba(160, 118, 72, .15);
}

.scf-modal--tip .scf-modal-icon {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe2b8 100%);
    color: #b87a2a;
}

.scf-modal-title {
    margin: 0 0 6px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.scf-modal-sub {
    margin: 0 0 6px !important;
    font-size: 14px !important;
    color: #777 !important;
    line-height: 1.7 !important;
}

.scf-modal-mask--tip .scf-modal {
    width: 420px;
    max-width: 90vw;
    padding: 30px 28px 24px;
}

@keyframes scf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scf-pop-in {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.scf-link {
    color: #a07648;
    font-weight: 600;
    text-decoration: none;
}

.scf-link:hover {
    text-decoration: underline;
}

/* ---------- 八字确认弹窗（提交前核对） ---------- */
.scf-bazi-info {
    margin: 0 0 18px;
    font-size: 15px;
    color: #5a5047;
    line-height: 1.7;
    word-break: break-all;
}

/* 真太阳时启用提示条 */
.scf-bazi-tshint {
    margin: 0 0 18px;
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: #8a6440;
    background-color: #fbf3e6;
    border: 1px solid #e7cfa6;
    border-left: 4px solid #a07648;
    border-radius: 4px;
    word-break: break-all;
}

.scf-bazi-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
}

.scf-bazi-group {
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 18px 20px;
    background: #fafafa;
}

.scf-bazi-person {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.scf-bazi {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 12px 20px;
}

.scf-bazi-zhu {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.scf-bazi-title {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
    font-weight: 600;
}

.scf-bazi-gan,
.scf-bazi-zhi {
    width: auto;
    min-width: 40px;
    height: auto;
    line-height: 1.1;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    border: none;
    background: none;
}

.scf-bazi-zhi {
    margin-top: 8px;
    color: #a07648;
}

.scf-bazi-qk {
    width: 100%;
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #5a5047;
    text-align: center;
}

.scf-bazi-tip {
    margin: 10px 0 2px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* 排盘时间：单独一行，红色醒目 */
.scf-bazi-time {
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #d4232a;
    background-color: #fdf0f0;
    border: 1px solid #f3c4c4;
    border-radius: 4px;
    text-align: center;
    word-break: break-all;
}

.scf-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.scf-modal-actions .scf-submit,
.scf-modal-actions .scf-btn {
    flex: 1;
    margin-top: 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    height: 44px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    letter-spacing: .5px;
}

.scf-modal-actions .scf-submit:hover,
.scf-modal-actions .scf-btn:hover {
    transform: translateY(-1px);
}

.scf-modal-actions .scf-submit:active,
.scf-modal-actions .scf-btn:active {
    transform: translateY(0);
}

/* 取消：白底黑字描边（与 .bday-picker / .region-picker 取消一致） */
.scf-modal-cancel {
    background-color: #ffffff;
    color: #555;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.scf-modal-cancel:hover {
    background-color: #fafafa;
    border-color: #bfbfbf;
    color: #1a1a1a;
}

/* 确认：黑底白字（与选择器"确定"按钮一致） */
.scf-modal-ok {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.scf-modal-ok:hover {
    background-color: #000000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

/* 未登录提示弹窗里的"去登录"按钮：主品牌色渐变，更醒目 */
.scf-modal--tip .scf-modal-login {
    background: linear-gradient(135deg, #a07648 0%, #b87a2a 100%);
    color: #ffffff;
    border: 1px solid #8a6440;
    box-shadow: 0 4px 14px rgba(160, 118, 72, .35);
}

.scf-modal--tip .scf-modal-login:hover {
    background: linear-gradient(135deg, #8a6440 0%, #a0662a 100%);
    box-shadow: 0 6px 20px rgba(160, 118, 72, .45);
}

/* ============================================================
   垂直布局（scf-vertical）：标签置顶、信息密度更高，解决主表单空旷感
   ============================================================ */

.scf-form.scf-vertical {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.scf-form.scf-vertical .scf-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e6d8;
}

.scf-form.scf-vertical .scf-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 22px;
    color: #a07648;
    background: #fbf3e6;
    border-radius: 12px;
}

.scf-form.scf-vertical .scf-header-body {
    flex: 1;
    min-width: 0;
}

.scf-form.scf-vertical .scf-title {
    margin: 0 0 4px;
    padding: 0;
    border: none;
    font-size: 20px;
    color: #8a6440;
}

.scf-form.scf-vertical .scf-subtitle {
    margin: 0;
    font-size: 13px;
    color: #8a8077;
    line-height: 1.5;
}

.scf-form.scf-vertical .scf-tips {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 14px;
    font-size: 13px;
    color: #8a6440;
    line-height: 1.5;
    background: #fbf3e6;
    border: 1px solid #e7cfa6;
    border-radius: 8px;
}

.scf-form.scf-vertical .scf-tips > .icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #a07648;
}

.scf-form.scf-vertical .scf-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
}

/* 两列网格：一行两个字段 */
.scf-form.scf-vertical .scf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}

.scf-form.scf-vertical .scf-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 18px;
}

.scf-form.scf-vertical .scf-field .scf-label {
    width: auto;
    padding-top: 0;
    margin-bottom: 6px;
    font-weight: 600;
}

.scf-form.scf-vertical .scf-field .scf-input {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
}

/* 性别 / 真太阳时按钮组在字段中撑满整列 */
.scf-form.scf-vertical .scf-field .scf-sex-group {
    display: flex;
    width: 100%;
    margin-left: 0;
    flex-shrink: 1;
}

.scf-form.scf-vertical .scf-field .scf-sex-btn {
    flex: 1;
    height: 40px;
    padding: 0;
}

/* 真太阳时换算结果显示框 */
.scf-form.scf-vertical .scf-true-solar {
    min-height: 40px;
    line-height: 1.6;
    padding: 8px 10px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    word-break: break-all;
    box-sizing: border-box;
}

.scf-form.scf-vertical .scf-actions {
    margin-left: 0;
}

.scf-form.scf-vertical .scf-submit {
    margin-top: 12px;
    padding: 12px 0;
}

.scf-form.scf-vertical .scf-error {
    margin-left: 0;
}

.scf-form.scf-vertical .scf-feedback {
    margin-left: 0;
}

/* 紧凑模式下的垂直布局微调 */
.single-calc-compact .scf-form.scf-vertical .scf-header {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.single-calc-compact .scf-form.scf-vertical .scf-header-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
}

.single-calc-compact .scf-form.scf-vertical .scf-title {
    font-size: 16px;
}

.single-calc-compact .scf-form.scf-vertical .scf-subtitle {
    font-size: 12px;
}

.single-calc-compact .scf-form.scf-vertical .scf-tips {
    display: none;
}

.single-calc-compact .scf-form.scf-vertical .scf-field {
    margin-bottom: 10px;
}

.single-calc-compact .scf-form.scf-vertical .scf-grid {
    column-gap: 10px;
}

.single-calc-compact .scf-form.scf-vertical .scf-input {
    padding: 7px 10px;
}

.single-calc-compact .scf-form.scf-vertical .scf-sex-btn {
    height: 34px;
    padding: 0;
    font-size: 14px;
}

.single-calc-compact .scf-form.scf-vertical .scf-submit {
    margin-top: 8px;
    padding: 10px 0;
    font-size: 14px;
}

/* ============================================================
   双人合盘测算表单（HePanCalcForm）：甲方 / 乙方 两张档案卡片
   通用 .scf-* 样式复用上方定义，此处仅保留合盘专属布局
   ============================================================ */

/* 两个档案卡片在同一行横向排列 */
.he-pan-cols {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: stretch;
    flex-wrap: wrap;
}

.he-pan-col {
    flex: 1 1 0;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.he-pan-col .scf-card-head {
    margin: 0;
    padding: 14px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #fffbe6;
    border-bottom: 2px solid #ffd400;
}

.he-pan-col .scf-card-body {
    padding: 22px 22px 20px;
}

/* 卡片内字段行：标签在上、输入框在下（与 SingleCalcForm 垂直布局保持一致） */
.he-pan-col .scf-row {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
    gap: 6px;
}

.he-pan-col .scf-row:last-child {
    margin-bottom: 0;
}

.he-pan-col .scf-label {
    width: auto;
    text-align: left;
    padding: 0;
    font-weight: 600;
}

.he-pan-col .scf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 2px;
}

/* 昵称行：输入框与性别选择组在同一行 */
.he-pan-col .scf-row-name-sex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.he-pan-col .scf-row-name-sex .scf-label {
    width: 100%;
}

.he-pan-col .scf-row-name-sex .scf-input {
    flex: 1;
    min-width: 0;
}

.he-pan-col .scf-row-name-sex .scf-sex-group {
    margin-left: 0;
    flex-shrink: 0;
}

.he-pan-col .scf-sex-group {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
}

/* 独占一行的按钮组（如真太阳时）：撑满卡片宽度，与输入框视觉宽度一致 */
.he-pan-col .scf-row:not(.scf-row-name-sex) .scf-sex-group {
    display: flex;
}

.he-pan-col .scf-row:not(.scf-row-name-sex) .scf-sex-btn {
    flex: 1;
}

.he-pan-col .scf-sex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 42px;
    padding: 0 16px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.he-pan-col .scf-sex-btn:hover {
    color: #a67c52;
    border-color: #a67c52;
}

.he-pan-col .scf-sex-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.he-pan-col .scf-sex-btn:has(input:checked),
.he-pan-col .scf-sex-btn.active {
    color: #fff;
    background: #a67c52;
    border-color: #a67c52;
    box-shadow: 0 2px 8px rgba(166, 124, 82, .25);
}

.he-pan-col .scf-sex-btn:has(input:checked)::before,
.he-pan-col .scf-sex-btn.active::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.he-pan-col .scf-sex-btn:has(input:checked):hover,
.he-pan-col .scf-sex-btn.active:hover {
    background: #8f6944;
    border-color: #8f6944;
}
