/* 
320px - 480px：移动设备
481px - 768px：iPad、平板电脑
769px - 1024px：小屏幕、笔记本电脑
1025px - 1200px：台式电脑、大屏幕
1201px及以上：超大屏幕、电视 
*/
:root {
    --theme-color: #b94132;
    --max-page-width: 100%;
    --jin: #ffa500;
    --shui: #0074e4;
    --mu: #00a879;
    --huo: #ed4d49;
    --tu: #a64b00;
    --html-bg-color: #8a8a8a;
    --app-body-bg-color: #fff;
    --app-tab-bg-color: #fafafaaf;
}
::-webkit-scrollbar {
    display: none;
}
/* 添加过渡效果 */
html,
body {
    transition: transform 0.3s ease;
}

body{
    width:var(--max-page-width);
    height: 100%;
    background-color: var(--html-bg-color);
    margin: 0 auto;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -webkit-text-size-adjust: none !important;
    text-size-adjust: none !important;
}
.app-frame{
    width: var(--max-page-width);
    min-height: 100vh;
    background-color: var(--app-body-bg-color);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    margin: 0 auto;
    box-sizing: border-box;
}
.app-header{
    display: grid;
    grid-template-columns: 40px 40px auto 40px 40px;
    height: 48px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: var(--max-page-width) !important;
    margin: 0 auto;
    z-index: 999;
    box-sizing: border-box !important;
}
ul#paipantabbar > li > div{
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    line-height: 1.3 !important;
}
.app-body{
    display: block;
    position: relative;
    top: 0;
    width: var(--max-page-width) !important;
    /* height: 100%; */
    background-color: var(--app-body-bg-color);
    box-sizing: border-box !important;
}


#paipantabbar{
    width: 100%;
    left: auto !important;
    z-Index: 666;
    position: relative;
    top: 0;
    margin: 0 auto;
    background-color: #e5e5ea !important;
}
#bookstabbar{
    width: 100%;
    left: auto !important;
    z-Index: 666;
    position: relative;
    top: 0;
    margin: 0 auto;
    background-color: #e5e5ea !important;
}



html{
    background-color: var(--html-bg-color);
    /* overscroll-behavior-y: none; */
}

.app-view{
    padding: 0px;
}

/* ========= 结果页统一容器（白色背景） ========= */
.app-view{
    background-color: #fff;
}
/* 结果页内的 layui-card 统一为白底 + 浅灰边框 + 圆角 */
.app-view .layui-card{
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin: 10px;
}
.app-view .layui-card-header{
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px 12px 0 0;
}
/* 结果页表格统一为白底 + 浅灰边框 */
.app-view .layui-table{
    background-color: #fff;
}
.app-view .layui-table td,
.app-view .layui-table th{
    border-color: #f0f0f0;
}
/* 九宫网格边框改为浅灰 */
.qimen-9gong-grid-cell,
.qimendunjia-9gong-grid-cell,
.feixing-9gong-grid-cell,
.da6ren-9gong-grid-cell{
    border: 1px solid #e0e0e0 !important;
}
/* 大运/流年网格底色 */
.paipangrid{
    background-color: #fff !important;
    border: 1px solid #f0f0f0 !important;
}
/* 四柱八字结果页 tab 栏（基本/命盘/详盘）- 固定在标题下方，平均分配，与导航栏统一 */
/* #paipantabbar 就是 ul.layui-tab-title 本身 */
ul#paipantabbar{
    background-color: #e5e5ea !important;
    border-radius: 12px;
    margin: 0 0 14px 0;
    padding: 3px 42px 3px 3px !important;
    width: 100% !important;
    left: auto !important;
    position: sticky !important;
    top: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: none !important;
    height: auto !important;
    list-style: none !important;
    box-sizing: border-box !important;
    overflow: hidden;
}
ul#paipantabbar > li{
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 10px 4px !important;
    text-align: center !important;
    border-radius: 9px;
    transition: all 0.2s ease;
    color: #8e8e93 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}
/* 多功能按钮作为 flex 项，固定在 tab 栏右侧 */
ul#paipantabbar > li.app-params-ctrl{
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex: none !important;
    margin-left: 0 !important;
    min-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: url(../images/params.png) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    background-color: transparent !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer;
    z-index: 2;
}
ul#paipantabbar > li.app-params-ctrl.is-hidden{
    display: none !important;
}
ul#paipantabbar > li.layui-this{
    color: #1c1c1e !important;
    background-color: #fff !important;
    border-radius: 9px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* 去除 layui tab 选中时的红色底部下划线 */
ul#paipantabbar > li.layui-this::after{
    display: none !important;
}

@media (max-width: 480px){
    ul#paipantabbar{
        padding-right: 38px !important;
    }
    ul#paipantabbar > li{
        padding: 9px 2px !important;
        font-size: 13px !important;
    }
    ul#paipantabbar > li > div{
        font-size: 13px !important;
    }
    ul#paipantabbar > li.app-params-ctrl{
        right: 3px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        background-size: 17px 17px !important;
    }
}

.app-title{
    text-align: center;
    vertical-align: middle;
    font-size: 28px;
    font-weight: 900;
    color: #1c1c1e;
    line-height: 48px;
    letter-spacing: 1px;
}
.app-header-button{
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    line-height: 48px;
}
.app-header-button:active{
    background-color: var(--theme-color);
}
.app-header-button-back{
    background-image: url(../images/back.png) ;
    background-repeat: no-repeat;
    background-position:center;
    cursor: pointer;
    filter: brightness(0) opacity(0.8);
}
.app-day-info {
    display: grid;
    grid-template-columns: 50% 12.5% 12.5% 12.5% 12.5%;
    padding: 10px;
    margin: 10px;
    width: auto;
    height: 80px;
    line-height: 18px !important;
    background: #fff;
    color: #000;
    vertical-align: middle;
    border-radius: 18px;
    border: 1px solid #eee;
    box-sizing: border-box;
}
.app-day-info-ymd{
    display: grid;
    grid-template-columns: 35% 65%;
    padding: 0px;
    width: 100%;
    height: 100%;
}
.app-day-num{
    display: grid;
    grid-template-rows: 30% 70%;
    padding: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
}
.app-day-num-title{
    padding: 0px;
    width: 100%;
    height: 20px;
    font-size: 12px;
}
.app-day-num-value{
    padding: 0px;
    width: 100%;
    height: 50px;
    font-size: 45px;
    vertical-align: middle;
    line-height: 50px;
    color: var(--theme-color);
}
.app-day-detail{
    display: grid;
    grid-template-rows: 30% 35% 35%;
    padding: 0px;
    width: 100%;
    height: 100%;
}
.app-day-month{
    padding: 0px;
    width: 100%;
    height: 20px;
    font-size: 12px;
}
.app-day-nongli{
    padding: 0px;
    width: 100%;
    font-size: 15px;
}
.app-day-week{
    padding: 0px;
    width: 100%;
    font-size: 15px;
}
.app-time-btn {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 8px;
    cursor: pointer;
    border-width: 0px;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    background-size: cover;
    background-image: url(../images/time.png) ;
    background-repeat: no-repeat;
    background-position:center;
}
.app-cur-time-btn {
    width: 18px;
    height: 18px;
    display: inline-block;
    cursor: pointer;
    border-width: 0px;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    background-size: cover;
    background-image: url(../images/time.png) ;
    background-repeat: no-repeat;
    background-position:center;
    margin-left: 20px;
}

.app-text-title {
    width:100%;
    height:36px;
    margin-top: 15px;
    line-height: 36px;
    text-align: center;
    font-size: 24px;
    position:relative;
}

.app-time-summertime {
    color:#399773;
    font-size: 12px;
}

.app-shengxiao-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    border-width: 2px;
    border-color: var(--theme-color);
    border-style: solid;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    background-size: cover;
}

.app-params-ctrl{
    background-image: url(../images/params.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.app-chuangong-taisui{
    border-width: 1px;
    border-style: solid;
    border-color: #b7082b;
    border-radius: 5px;
    padding: 2px;
}

.app-toggle-table-max {
    width: 100%;
    height: 6px;
    background: #eee;
    cursor: pointer;
    background-image: url(../images/min.png?123) ;
    background-repeat: no-repeat;
    background-position:center;
}

.app-toggle-table-min {
    width: 100%;
    height: 6px;
    background: #eee;
    cursor: pointer;
    background-image: url(../images/max.png?123) ;
    background-repeat: no-repeat;
    background-position:center;
}

.app-bazi-name {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color: #000;
    font-size: 13px;
    width: 68px;
}

.app-liunian-switch-on {
    cursor: pointer;
    background-image: url(../images/on.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    width: 20px;
    height: 16px;
    text-align: center;
    display: inline-block;
}
.app-liunian-switch-off {
    cursor: pointer;
    background-image: url(../images/off.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    width: 20px;
    height: 16px;
    text-align: center;
    display: inline-block;
}
.app-wuxingwangshuai {
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20%;
    width: 100%;
    /* background-color: var(--theme-color); */
    color: #fff;
    text-align: center;
}

.app-nowtime{
    color: var(--theme-color);
}

.app-button-panel{
    display: block;
    text-align: center;
    margin-top: 20px;
}

.app-button-item{
    display: inline-block;
    width: 70px;
    height: 80px;
    text-align: center;
    vertical-align: top;
    margin: 5px 3px;
    background-color: #eee;
    padding: 3px;
    padding-top: 8px;
    border-radius: 15px;
    cursor: pointer;
}
.app-button-item-icon{
    background-color: var(--theme-color);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding:4px;
}
.app-button-item-text{
    font-size: 14px;
    color: #000;
    margin-top: 5px;
    line-height: 1em;
}

.app-paipan-button{
    width: 40%;
    height: 35px;
    line-height: 35px;
    border-width: 0px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: var(--theme-color);
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin:0px auto;
    margin-top: 10px;
}
.app-paipanlist-button{
    width: 40%;
    height: 35px;
    line-height: 35px;
    border-width: 0px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    border:1px solid var(--theme-color);background-color: #FFF; 
    color:var(--theme-color);
    font-size: 18px;
    text-align: center;
    margin:0px auto;
    margin-top: 10px;
}

.record-list{
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-bottom: 50px;
    padding-top: 50px;
    background-color: #fff;
}
.record-list-item{
    display: grid;
    grid-template-columns: 40px auto 32px;
    border-bottom-width: 1px;
    border-bottom-color: #eee;
    padding-top: 5px
}
.record-list-item:active{
    background-color: #e2e2e2;
}
.record-list-item:hover{
    background-color: #e2e2e2;
}
.record-list-item .record-list-item-logo{
    padding-left: 10px;
}

.record-list-item .record-list-item-date{
    font-size: 12px;
    font-weight: 400;   
    color: #999;
    padding-left: 10px;
    display: block;
}
.record-list-item-check{
    background-image: url(../images/checked.png) ;
    background-repeat: no-repeat;
    background-position:center;
    cursor: pointer;
}
.record-list-item-uncheck{
    background-image: url(../images/unchecked.png) ;
    background-repeat: no-repeat;
    background-position:center;
    cursor: pointer;
}

.record-item-logo{
    width: 32px;
    height: 32px;
    background-size: cover;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
}

.app-form {
    width: 100%;
    margin-top: 15px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}
.app-button-date-group {
    display: grid;
    margin: 5px auto;
    width: 240px;
    grid-template-columns: 80px 80px 80px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--theme-color);
    border-radius: 25px;
}
.app-button-date {
    display: table-cell;
    width: 80px;
    height: 25px;
    font-size: 14px;
    line-height: 25px;
    cursor: pointer;
}
.app-button-date-gongli {
    margin-right: 0px;
    border-radius: 25px;
    border-right: 0px;
}
.app-button-date-nongli {
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 25px;
    border-left: 0px;
    border-right: 0px;
}
.app-button-date-shizhu {
    margin-left: 0px;
    border-radius: 25px;
    border-left: 0px;
}
.app-button-date-active {
    background-color: var(--theme-color);
    color: #fff;
}

#booksbackBtn{
    height: 30px;
    line-height: 30px;
    padding-left: 15px;
    background-color: #eee;
    text-align: center;
    padding-top: 40px;
}
.rolldate-button-date-group {
    display: grid;
    width: 180px;
    grid-template-columns: 60px 60px 60px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--theme-color);
    border-radius: 25px;
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    margin: 0 auto;
}
.rolldate-button-date {
    display: table-cell;
    width: 60px;
    height: 25px;
    font-size: 14px;
    line-height: 25px;
    cursor: pointer;
}
.rolldate-button-date-gongli {
    margin-right: 0px;
    border-radius: 25px;
    border-right: 0px;
}
.rolldate-button-date-nongli {
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 25px;
    border-left: 0px;
    border-right: 0px;
    /* margin-left: 0px;
    border-radius: 25px;
    border-left: 0px; */
}
.rolldate-button-date-shizhu {
    margin-left: 0px;
    border-radius: 25px;
    border-left: 0px;
}
.rolldate-button-date-active {
    background-color: var(--theme-color);
    color: #fff;
}

.rolldate-button-date-group2 {
    height: 22px;
    grid-template-columns: 40px 40px 40px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--theme-color);
    border-radius: 22px;
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0 auto;
}
.rolldate-button-date2 {
    display: inline-block;
    width: 40px;
    height: 22px;
    font-size: 12px;
    text-align: center;
    line-height: 23px;
    cursor: pointer;
}



.app-small-card {
    width: 90%;
    height: 50px;
    margin: 0 0 14px 0;
    line-height: 50px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #eee;
    background-color: #fff;
    padding-left: 15px;
    padding-right: 15px;
    color: #000;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.app-small-card-right{
    float: right;
    cursor:pointer;
    color: var(--theme-color);
}

.app-small-card-gap {
    width: 90%;
    height: 15px;
    line-height: 20px;
    color: #bbb;
    font-size: 12px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 10px;
    padding-left: 15px;
}

/*五行颜色*/
.wxjin {
    color: var(--jin);
}

.wxshui {
    color: var(--shui);
}

.wxmu {
    color: var(--mu);
}

.wxhuo {
    color: var(--huo);
}

.wxtu {
    color: var(--tu);
}

.wxjin_bg {
    background-color: var(--jin);
}

.wxshui_bg {
    background-color: var(--shui);
}

.wxmu_bg {
    background-color: var(--mu);
}

.wxhuo_bg {
    background-color: var(--huo);
}

.wxtu_bg {
    background-color: var(--tu);
}

/*八字干支样式*/
.ganzhiStyle {
    font-size: 23px !important;
    font-weight:900 !important;
}

.app-barchart{
    height:125px;
    width:100%;
    display: grid;
    grid-template-columns: 30px auto 75px;
    grid-column-gap: 10px;
    box-sizing: border-box;
}
.app-barchart-bar{
    width:100%;
    height: 10px;
    background-color: #ccc;
    border-radius: 10px;
    margin-top: 7px;
}
.app-barchart-bar-item{
    height: 10px;
    border-radius: 10px;
}

table{
    width: 100%;
    margin: 0px !important;
}
td {
    font-size: 13px !important;
    word-break: keep-all;
    word-wrap:break-word;
    padding: 3px 1px 3px 1px  !important;
}

.subtitle{
    color: #666;
    font-style: normal !important;
    font-size: 11px !important;
}

/* ========= 首页横向滑动导航栏（与学习课堂一致：灰底胶囊容器） ========= */
.paipan-nav{
    list-style: none;
    margin: 0 0 14px 0;
    padding: 3px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    background-color: #e5e5ea;
    border-radius: 12px;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
    width: 100%;
    box-sizing: border-box;
    /* 固定导航栏高度，防止切换 tab 时高度抖动 */
    height: 50px;
}
.paipan-nav::-webkit-scrollbar{
    display: none;
}
.paipan-nav-item{
    flex: 0 0 25%;
    max-width: 25%;
    padding: 10px 12px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #8e8e93;
    cursor: pointer;
    text-align: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    border-radius: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    /* 固定高度和行高，防止切换时跳动 */
    height: 44px;
    line-height: 1.4;
}
.paipan-nav-item-selected{
    color: var(--theme-color) !important;
    font-weight: 600;
    border: 1px solid rgba(185, 65, 50, 0.7) !important;
    background-color: #fffefb !important;
    box-shadow: none;
}

/* ========= 首页固定表单容器 ========= */
.paipan-forms-container{
    background-color: #fff;
    padding: 12px;
    min-height: 280px;
}
.paipan-form-pane{
    width: 100%;
    text-align: center;
}
/* 覆盖弹窗模式下 popup-xxx-content 的固定高度和 overflow，inline 显示后需自适应 */
.paipan-form-pane [class*="popup-"][class*="-content"],
.paipan-form-pane [class*="popup-"][class*="-box"]{
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    padding: 0 !important;
    position: static !important;
    bottom: auto !important;
}
.paipan-form-pane > div{
    text-align: center;
}
.paipan-form-pane .layui-form-item{
    text-align: left;
}
.paipan-form-pane .layui-form-item{
    margin-bottom: 12px;
}
.paipan-form-pane .layui-form-label{
    width: 90px;
    padding: 9px 8px 9px 0;
    font-size: 14px;
    color: #333;
}
.paipan-form-pane .layui-input-block{
    margin-left: 90px;
}
.paipan-form-pane .layui-input,
.paipan-form-pane input[type="text"],
.paipan-form-pane select{
    height: 38px;
    line-height: 38px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}
.paipan-form-pane .paipan-submit-btn,
.paipan-form-pane .app-paipan-button{
    display: block;
    width: 80%;
    margin: 18px auto 6px auto;
    height: 42px;
    line-height: 42px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--theme-color);
    border-radius: 21px;
    cursor: pointer;
    border: none;
}
.paipan-form-pane .paipan-submit-btn:active{
    opacity: 0.85;
}
.paipan-form-pane .paipan-form-row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.paipan-form-pane .paipan-form-row label{
    flex: 0 0 80px;
    font-size: 14px;
    color: #333;
}
.paipan-form-pane .paipan-form-row select,
.paipan-form-pane .paipan-form-row input[type="text"]{
    flex: 1 1 auto;
    min-width: 120px;
    height: 38px;
    line-height: 38px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 14px;
    background-color: #fff;
}
.paipan-form-pane .paipan-radio-group{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.paipan-form-pane .paipan-radio-group label{
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    background-color: #fff;
    -webkit-tap-highlight-color: transparent;
}
.paipan-form-pane .paipan-radio-group input[type="radio"]{
    display: none;
}
.paipan-form-pane .paipan-radio-group input[type="radio"]:checked + label{
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
.paipan-form-pane .paipan-checkbox-group{
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.paipan-form-pane .paipan-checkbox-group label{
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 16px;
    cursor: pointer;
    background-color: #fff;
}
.paipan-form-pane .paipan-checkbox-group input[type="checkbox"]{
    display: none;
}
.paipan-form-pane .paipan-checkbox-group input[type="checkbox"]:checked + label{
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
}
.paipan-form-pane .paipan-time-btn{
    display: inline-block;
    width: 38px;
    height: 38px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    text-align: center;
    line-height: 38px;
    font-size: 13px;
    color: var(--theme-color);
    cursor: pointer;
    background-color: #fafafa;
    -webkit-tap-highlight-color: transparent;
}
.paipan-form-pane .paipan-time-btn:active{
    opacity: 0.6;
}
.paipan-form-pane .paipan-tip{
    font-size: 12px;
    color: #999;
    margin: 4px 0 12px 0;
    line-height: 1.5;
}

/* ========= 新表单样式（四柱八字/命理奇门/紫微斗数） ========= */
.app-form{
    padding: 0 12px;
}
.app-form-row{
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 52px;
}
.app-form-row:last-child{
    border-bottom: none;
}
.app-form-row-capsules{
    justify-content: space-between;
}
.app-form-label{
    flex: 0 0 90px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    text-align: left;
    padding-left: 4px;
}
.app-form-label .app-form-required{
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-left: 2px;
}
.app-form-input{
    flex: 1;
    height: 36px !important;
    line-height: 36px !important;
    border: none !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #f5f5f5 !important;
    outline: none;
    text-align: center !important;
    border-radius: 10px !important;
    box-sizing: border-box;
}
.app-form-input:focus{
    background: #efefef !important;
}
.app-form-input::placeholder{
    color: #999 !important;
    text-align: center !important;
}
.app-form-tag-optional{
    display: inline-block;
    padding: 2px 12px;
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
    border-radius: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 胶囊组 */
.app-form-capsule-group{
    display: inline-flex;
    align-items: center;
    gap: 0;
    background-color: #f5f5f5;
    border-radius: 18px;
    padding: 2px;
    overflow: hidden;
}
.app-form-capsule-group input[type="radio"]{
    display: none;
}
.app-form-capsule{
    display: inline-block;
    padding: 6px 18px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: center;
}
.app-form-capsule-active{
    color: #fff !important;
    background-color: var(--theme-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.app-form-date-type-group{
    margin-left: auto;
}
.app-form-capsule-sm .app-form-capsule{
    padding: 4px 14px;
    font-size: 13px;
}

/* 可点击行（出生时间/出生城市） */
.app-form-clickable-row{
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.app-form-clickable-row:active{
    background-color: #fafafa;
}
.app-form-clickable-content{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #333;
}
.app-form-clickable-content .app-form-chevron{
    color: #ccc;
    font-size: 18px;
    margin-left: 8px;
    display: none;
}
.app-form-display-text{
    text-align: center;
    color: #333;
    font-size: 15px;
    flex: 1;
    height: 36px;
    line-height: 36px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* 内嵌 select（大六壬出生年份/占事时辰等）居中、去边框，融入外层灰框 */
.app-form-display-text select,
.app-form-display-text .popup-meihua-inputctl{
    width: 100% !important;
    height: auto !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    text-align-last: center !important;
    font-size: 15px !important;
    color: #333 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
}
.app-form-display-text select::-ms-expand{
    display: none !important;
}

/* 出生城市行（与出生时间并排） */
.app-form-realsun-row{
    justify-content: space-between;
}
.app-form-realsun-row .app-form-capsule-group{
    margin-left: auto;
}
/* 胶囊组右对齐工具类：将胶囊推到行最右侧 */
.app-form-row-right .app-form-capsule-group{
    margin-left: auto;
}

/* 真太阳时内联（与八字合婚同行的右端，文字在外，仅是/否在胶囊里） */
.app-form-realsun-inline{
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}
.app-form-realsun-inline-label{
    font-size: 13px;
    color: #333;
    padding-right: 6px;
    white-space: nowrap;
}

/* 八字合婚入口行（八字合婚在左，真太阳时在右） */
.app-form-hehun-row{
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px; /* 强制标准字号，防止父容器（如 popup-shanxiang-content 24px）放大 */
    line-height: normal;
}
#hehun-entry-group{
    margin: 0;
}
.app-form-capsule-hehun{
    padding: 6px 22px !important;
    font-size: 14px !important;
    color: #fff !important;
    background-color: var(--theme-color);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* iOS 风格保存开关：保存文字 + 滑动开关 */
.app-form-save-toggle-wrap{
    display: flex;
    align-items: center;
}
.app-form-save-label{
    font-size: 14px;
    color: #1c1c1e;
    margin-right: 8px;
    user-select: none;
}
.app-form-toggle{
    width: 44px;
    height: 26px;
    background-color: #c7c7cc;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background-color .25s;
    flex-shrink: 0;
}
.app-form-toggle-knob{
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
/* 已保存状态：开关变主题色，圆圈滑到右边 */
.app-form-toggle.on{
    background-color: var(--theme-color);
}
.app-form-toggle.on .app-form-toggle-knob{
    left: 20px;
}

/* ========= 八字合婚弹窗 ========= */
.hehun-picker-content{
    padding: 12px 16px 16px;
}
.hehun-picker-item{
    margin-bottom: 14px;
}
.hehun-picker-label{
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.hehun-picker-input{
    width: 100%;
    height: 40px;
    line-height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    outline: none;
    box-sizing: border-box;
}
.hehun-picker-man .hehun-picker-input{
    border-color: #1890ff;
}
.hehun-picker-woman .hehun-picker-input{
    border-color: #eb2f96;
}

/* ========= 城市选择弹窗 ========= */
.city-picker-skin{
    background: #fff;
    border-radius: 12px 12px 0 0;
}
.city-picker-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.city-picker-cancel{
    font-size: 15px;
    color: var(--theme-color);
    cursor: pointer;
}
.city-picker-title{
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.city-picker-confirm{
    font-size: 15px;
    color: var(--theme-color);
    font-weight: 600;
    cursor: pointer;
}
.city-picker-search{
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.city-picker-search input{
    width: 100%;
    height: 36px;
    line-height: 36px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 0 14px 0 36px;
    font-size: 14px;
    color: #333;
    background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center no-repeat;
    outline: none;
    box-sizing: border-box;
}
.city-picker-search input::placeholder{
    color: #bbb;
}
.city-picker-columns{
    display: flex;
    height: 320px;
    overflow: hidden;
}
.city-picker-col{
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f0f0f0;
    overflow: hidden;
}
.city-picker-col:last-child{
    border-right: none;
}
.city-picker-col-title{
    padding: 10px 12px;
    font-size: 13px;
    color: #999;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}
.city-picker-col-list{
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.city-picker-col-list::-webkit-scrollbar{
    display: none;
}
.city-col-item{
    padding: 12px;
    font-size: 14px;
    color: #333;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #f8f8f8;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
}
.city-col-item:active{
    background-color: #f5f5f5;
}
.city-col-item-selected{
    color: var(--theme-color);
    font-weight: 600;
    background-color: #fff5f5;
}
.city-col-item-empty{
    color: #ccc;
    cursor: default;
}
.city-col-item-empty:active{
    background-color: transparent;
}

.wxyin{
    font-style: italic;
}
.wxyang{
    font-style: normal;
}

.shensha{
    color: #2e4487;
}
._12shen{
    color: #b7082b;
    /* font-weight: bold; */
}
.canggan{
    font-size: 14px !important;
    font-weight: normal;
}
.xShishen{
    /* font-weight: normal; */
    color: #000;
    font-size: 12px;
}
.xxShishen{
    /* font-weight: normal; */
    color: #000;
    font-size: 10px;
}

.nayin{
    font-size:12px !important;
    font-weight: normal;
    cursor: pointer;
}

.dayunYear{
    color: #555;
    font-size: 10px !important;
    font-weight: normal;
    line-height: 14px;
    text-align: center;
    white-space: nowrap;
}
.liunianYear{
    color: #555;
    font-size: 10px !important;
    font-weight: normal;
    line-height: 14px;
    text-align: center;
}
.liuyueMonth{
    color: #555;
    font-size: 10px !important;
    font-weight: normal;
    line-height: 14px;
    text-align: center;
}
.liuriMonth{
    color: #555;
    font-size: 10px !important;
    font-weight: normal;
    line-height: 14px;
    text-align: center;
}

.dayunStyle {
    font-size: 14px !important;
    /* font-weight: normal; */
}

.liunianStyle {
    font-size: 14px !important;
    /* font-weight: normal; */
}
.xliunianStyle {
    font-size: 12px !important;
    /* font-weight: normal; */
}

.liuyueStyle{
    font-size: 14px !important;
    /* font-weight: normal; */
}

.liuriStyle{
    font-size: 14px !important;
    /* font-weight: normal; */
}

.cellActive {
    border-radius: 3px;
    background-color: #e2e2e2 !important;
    font-weight: bold !important;
    /* opacity: 0.6; */
}

.liunian-grid-evenrow-line{
    border-top-width: 1px;
    border-top-style: solid; 
    border-top-color: #eee;
}

.headercell{
    color: #000;
    font-size: 13px !important;
}

.liuyitag_he{
    background-color: #e5fff7;
    border-radius: 10px;
    border-width: 1px;
    border-color: #79efca;
    border-style: solid;
    color:#000;
    font-size: 11px;
    padding: 3px 5px 3px 5px;
    margin-right: 5px;
    line-height: 12px;
    display: inline-block;
}
.liuyitag_hui{
    background-color: #e5fff7;
    border-radius: 10px;
    border-width: 1px;
    border-color: #79efca;
    border-style: solid;
    color:#000;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 5px 3px 5px;
    margin-right: 5px;
    line-height: 12px;
    display: inline-block;
}
.liuyitag_cong{
    background-color: #ffecf5;
    border-width: 1px;
    border-color: #ffacd5;
    border-style: solid;
    border-radius: 10px;
    color:#000;
    font-size: 11px;
    padding: 3px 5px 3px 5px;
    margin-right: 5px;
    line-height: 12px;
    display: inline-block;
}
.liuyitag_xing{
    background-color: #ffecf5;
    border-width: 1px;
    border-color: #ffacd5;
    border-style: solid;
    border-radius: 10px;
    color:#000;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 5px 3px 5px;
    margin-right: 5px;
    line-height: 12px;
    display: inline-block;

}
.qianzhao{
    color:#fc345c;
}
.kunzhao{
    color:#0074e4;
}

.kongwang {
    border-width: 2px;
    border-style: dotted;
    border-color: var(--theme-color);
    border-radius: 5px;
    padding: 2px;
}
.riyuan{
    border-bottom: 3px;
    border-bottom-style: solid;
    border-bottom-color: var(--theme-color);
}
.suishu{
    font-size: 13px;
    text-align: right;
    top: 4px;
    right: 10px;
}
.siling{
    font-size: 13px;
    text-align: right;
    top: 0px;
    right: 10px;
}

.paipangrid{
    border-top: 5px;
    border-bottom: 1px;
    border-left: 1px;
    border-right: 1px;
    border-style: solid;
    border-color: #eee;
    background-color: white !important;
}

.app-bazi-ctl-btn {
    right: 5px;
    position: absolute;
    cursor: pointer;
    top: 32px;
    color: var(--theme-color);
    font-size: 13px;
    text-align: right;
    line-height: 22px;
}
.app-taimingshen-switch-on {
    cursor: pointer;
    background-image: url(../images/on.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    width: 20px;
    height: 20px;
    text-align: center;
    display: inline-block;
}
.app-taimingshen-switch-off {
    cursor: pointer;
    background-image: url(../images/off.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    width: 20px;
    height: 20px;
    text-align: center;
    display: inline-block;
}
.app-chuangong-switch-on {
    cursor: pointer;
    background-image: url(../images/on.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    background-color: var(--theme-color);
    background-blend-mode: lighten;
    width: 20px;
    height: 20px;
    text-align: center;
    display: inline-block;
}
.app-chuangong-switch-off {
    cursor: pointer;
    background-image: url(../images/off.png) ;
    background-repeat: no-repeat;
    background-position:center;
    background-size: cover;
    width: 20px;
    height: 20px;
    text-align: center;
    display: inline-block;
}

.dayun-grid{
    display: table;
    width: 100%;
    height: 100%;
    color: #000000;
}
.dayun-grid-row{
    display: table-row;
    margin-top: 2px;
    margin-bottom: 2px;
}
.dayun-grid-cell{
    display: table-cell;
    width: 9.09%;
    font-size: 13px !important;
    word-break: keep-all;
    word-wrap:break-word;
    padding: 3px 1px 3px 1px  !important;
    margin: 0px 0px 0px 0px  !important;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #ccc;
    text-align:center;
    line-height: 18px;
    margin-left: -1px  !important;
    margin-top: -1px !important;
}

.liunian-grid{
    display: table;
    width: 100%;
    height: 100%;
    color: #000000
}
.liunian-grid-row{
    display: table-row;
    margin-top: 2px;
    margin-bottom: 2px;
}
.liunian-grid-cell{
    display: table-cell;
    width: 9.09%;
    font-size: 13px !important;
    /* font-weight: bold; */
    word-break: keep-all;
    word-wrap:break-word;
    padding: 2px 1px 2px 1px  !important;
    margin: 0px 0px 0px 0px  !important;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #ccc;
    text-align:center;
    line-height: 16px;
    margin-left: -1px  !important;
    margin-top: -1px !important;
}

.liunian2-grid{
    display: table;
    width: 100%;
    height: 100%;
    color: #000000
}
.liunian2-grid-row{
    display: table-row;
    margin-top: 2px;
    margin-bottom: 2px;
}
.liunian2-grid-cell{
    display: table-cell;
    width: 10%;
    font-size: 13px !important;
    word-break: keep-all;
    word-wrap:break-word;
    padding: 3px 1px 3px 1px  !important;
    margin: 0px 0px 0px 0px  !important;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #ccc;
    text-align:center;
    line-height: 18px;
    margin-left: -1px  !important;
    margin-top: -1px !important;
}

.liuyue-grid{
    display: table;
    width: 100%;
    height: 100%;
    color: #000000
}
.liuyue-grid-row{
    display: table-row;
}
.liuyue-grid-cell{
    display: table-cell;
    width: 8.33%;
    font-size: 13px !important;
    word-break: keep-all;
    word-wrap:break-word;
    padding: 3px 1px 3px 1px  !important;
    margin: 0px 0px 0px 0px  !important;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #ccc;
    text-align:center;
    line-height: 18px;
    margin-left: -1px  !important;
    margin-top: -1px !important;
}

.liuri-grid{
    display: table;
    width: 100%;
    height: 100%;
    color: #000000
}
.liuri-grid-row{
    display: table-row;
}
.liuri-grid-cell{
    display: table-cell;
    width: 3.33%;
    font-size: 13px !important;
    /* font-weight: bold !important; */
    word-break: keep-all;
    word-wrap:break-word;
    padding: 3px 3px 3px 3px  !important;
    margin: 0px 0px 0px 0px  !important;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #ccc;
    text-align:center;
    line-height: 18px;
    margin-left: -1px  !important;
    margin-top: -1px !important;
}
.shishen-tag {
    cursor: pointer;
}
.shensha-tag {
    cursor: pointer;
}

.changelog-content {
    padding: 15px;
    overflow: auto;
}
.changelog-content h1 {
    font-size: 13px;
    font-weight: bold;
}
.changelog-content ul {
    padding-left: 30px;
}
.changelog-content li {
    font-size: 12px;
    font-weight: normal;
    list-style: circle;
}
.popup-tip-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    /* border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important; */
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 500px;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-tip-content {
    padding: 15px;
    overflow: auto;
    height: 295px;
    box-sizing: border-box;
}
.popup-yinpan-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 300px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-yinpan-content {
    padding: 15px;
    overflow: auto;
    height: 230px !important;
    text-align: center;
    font-size: 14px;
}

.popup-shanxiang-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 315px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-shanxiang-content {
    padding: 15px;
    overflow: auto;
    height: 240px !important;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
}
.popup-shanxiang-plus {
    text-align: center;
    color: #000;
    width: 35px;
    border-width: 1px;
    border-color: #e2e2e2;
    background-color: #e2e2e2;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.popup-shanxiang-minus {
    text-align: center;
    color: #000;
    width: 35px;
    border-width: 1px;
    border-color: #e2e2e2;
    background-color: #e2e2e2;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.popup-shanxiang-input {
    text-align: center;
    width: 65px;
    border-width: 1px;
    border-color: #e2e2e2;
    box-sizing: border-box;
}

/*BEGIN: 覆盖layui主题样式*/
.layui-table {
    color: #000;
    /* pointer-events: none; */
}
.layui-panel {
    box-shadow: 0px 3px 10px rgb(0 0 0 / 25%) !important;
}

.layui-card-body{
    padding: 2px 2px;
}

.layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed>i {
    color: var(--theme-color);
}

.layui-form-checked span, .layui-form-checked:hover span {
    background-color: var(--theme-color);
}

.layui-form-onswitch {
    border-color: var(--theme-color);
    background-color: var(--theme-color);
}

.layui-laydate .layui-this {
    background-color: var(--theme-color)!important;
    color: #fff!important;
}
.layui-laydate-header {
    background-color: var(--theme-color)!important;
    color: #fff!important;
}
.layui-btn {
    background-color: var(--theme-color);
    border-radius: 5px;
}
.layui-border-green {
    border-color: var(--theme-color)!important;
    background-color: #fff;
    color: var(--theme-color)!important;
}
.layui-tab-brief>.layui-tab-title .layui-this {
    color: var(--theme-color);
}
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
    border-bottom: 2px solid var(--theme-color);
}
.layui-form-select dl dd.layui-this {
    background-color: var(--theme-color);
}
.laydate-btns-now:hover{
    color: var(--theme-color) !important;
}
.laydate-btns-confirm:hover{
    color: var(--theme-color) !important;
}
/* .layui-tab{
    margin: 0;
} */
.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--theme-color) !important;
    background-color: var(--theme-color) !important;
    color: #fff;
}
.layui-layer-hui {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}
.layui-layer-title {
    font-size: 16px;
    font-weight: bold;
}
.layui-tab-title li {
    padding: 0 8px;
    min-width: 45px !important;
    padding: 0 10px !important;
}
.layui-form-item {
    margin-bottom: 5px !important;
}
.layui-table img {
    max-width: 100% !important;
}
.layui-table tbody tr:hover {
	background-color: white;
}
.layui-layer-page .layui-layer-content{
    position: relative;
    overflow: auto;
    overflow: visible !important;
}
.layui-form-select dl dd.layui-this {
    background-color: var(--theme-color);
    color: #fff !important;
    font-weight: 700;
}
.layui-form-radio>.lay-skin-tag,
.layui-form-checkbox>.lay-skin-tag {
    font-size: 12px;
    border-radius: 22px;
    height: 22px;
    width: 30px;
    line-height: 22px;
    text-align: center;
}
.layui-form-checked>.lay-skin-tag,
.layui-form-radioed>.lay-skin-tag {
    color: #fff !important;
    background-color: var(--theme-color) !important;
    height: 22px;
    width: 30px;
    line-height: 22px;
    text-align: center;
}
.layui-form-radio-custom{
    border-width: 1px;
    border-style: solid;
    border-color: var(--theme-color);
    border-radius: 22px;
    display: inline-flex;
    margin-top: 8px;
}
/*END*/

.thin_font10px {
    display: inline-block;
    font-size: 12px;
    transform : scale(0.63,1.1);
    transform-origin: center;
}
.small_font10px {
    display: inline-block;
    font-size: 12px;
    transform : scale(0.83,0.83);
    transform-origin: left;
}

/* 覆盖rolldate样式 */
.rolldate-container .rolldate-confirm {
    color: var(--theme-color) !important;
}
/* 提升 rolldate 弹窗层级，确保在 layer 弹窗（如八字合婚弹窗）之上 */
.rolldate-container .rolldate-mask {
    z-index: 99999999 !important;
}
.rolldate-container .rolldate-panel {
    z-index: 99999999 !important;
}
/*END*/

/**/
.rolldate-panel{
    left: 0;
    right: 0;
    width: var(--max-page-width) !important;
    margin: 0 auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.shizhudate-panel{
    left: 0;
    right: 0;
    width: var(--max-page-width) !important;
    margin: 0 auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
/**/

/*梅花*/
.meihua-guaname{
    font-size: 12px;
    color: black;
    /* font-weight: 300; */
}
.meihua-guatype{
    font-size: 12px;
    color: black;
    font-weight: bold;
}

.meihua-result {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}
.meihua-guagap {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 10px;
    margin: 10px 0px 10px 0px;
}
.meihua-hexagram {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin: 10px 0px 10px 10px;
}
.meihua-line {
    width: 40px;
    height: 8px;
    margin: 2px 0;
}
.meihua-yin {
    display: flex;
    justify-content: space-between;
}
.meihua-yin .meihua-half-line {
    width: 15px;
    height: 8px;
}
.meihua-spacer {
    width: 10px;
    height: 8px;
    background-color: white; /* 设置为白色，与页面背景一致 */
}
.meihua-dongyao {
    border: 2px solid red;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}
.meihua-kongyao {
    border: 2px solid transparent;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}
.meihua-tiyong {
    color: #000;
    font-size: 12px;
    height: 32px;
    width: 8px;
}
.meihua-detail {
    text-align: left;
    padding: 5px;
    font-size: 14px;
    word-break: break-word;
}

.da6ren-9gong-grid {
    display: grid;
    grid-template-rows: 20px 20px 20px 20px 20px 20px 20px 20px 20px 20px;
    grid-template-columns: 20px 20px 20px 20px 20px 20px 20px 20px 20px 20px;
    width: 200px;
    height: 200px;
    box-sizing: border-box;
    text-align: center;
}
.da6ren-9gong-grid-cell-1 {
    background-color: #bdbdbd;
    font-weight: bold;
}
.da6ren-9gong-grid-cell-2 {
    background-color: #d9d8d8;
}
.da6ren-9gong-grid-cell-3 {
    background-color: #f0f0f0;
}
.da6ren-9gong-grid-cell-4 {
    background-color: #ffffff;
}

.da6ren-4ke-grid {
    display: grid;
    grid-template-rows: 20px 20px 20px;
    grid-template-columns: 20px 20px 20px 20px;
    width: 80px;
    height: 60px;
    box-sizing: border-box;
    text-align: center;
}
.da6ren-3chuan-grid {
    display: grid;
    grid-template-rows: 20px 20px 20px;
    grid-template-columns: 20px 20px 20px 20px;
    width: 80px;
    height: 60px;
    box-sizing: border-box;
    text-align: center;
}

.da6ren-sym3chuan-grid {
    display: grid;
    grid-template-rows: 20px 20px 20px 20px;
    grid-template-columns: 40px 40px 40px;
    width: 120px;
    height: 80px;
    box-sizing: border-box;
    text-align: center;
}

.yizhangjing-grid {
    width: 300px;
    height: 300px;
    display: grid;
    /* 4x4 网格 */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}

.yizhangjing-grid-cell {
    display: grid;
    align-items: center;
    justify-content: normal;
    border: 1px solid #e0e0e0;
    margin-left: -1px;
    margin-top: -1px;
    padding: 3px;
    padding-left: 5px;
}

.yizhangjing-grid-center {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    align-items: center;
    justify-content: center;
    grid-template-columns: 25% 25% 25% 25%;
    grid-template-rows: auto 15% 15% 15% 15% auto;
}

.yizhangjing-card{
    width:100%;
    box-sizing:border-box;
    background:white;
    border-radius:12px;
    padding:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    margin: 10px 0;
}

.yizhangjing-card-title{
    font-size:18px;
    font-weight:bold;
    text-align:center;
    margin-bottom:12px;
}

.yizhangjing-info-row{
    display:flex;
    gap:6px;
    margin-bottom:12px;
}

.yizhangjing-info-item{
    font-size: 16px;
    flex:1;
    text-align:center;
    padding:6px;
    border-radius:6px;
    background:#fff;
}

.yizhangjing-desc{
    font-size:13px;
    line-height:1.6;
    color:#555;
    background:#fff;
    padding:4px;
    border-radius:6px;
    word-break:break-all;
    overflow-wrap:anywhere;
}

.yizhangjing-info-zhi{
    font-weight:bold;
    color:#2c3e50;
}

.yizhangjing-info-shensha{
    color:#c0392b;
}

.yizhangjing-info-liudao{
    color:#16a085;
}

.qian { background-color: var(--jin); }
.kun { background-color: var(--tu); }
.zhen { background-color: var(--mu); }
.xun { background-color: var(--mu); }
.li { background-color: var(--huo); }
.kan { background-color: var(--shui); }
.gen { background-color: var(--tu); }
.dui { background-color: var(--jin); }

.popup-meihua-content{
    padding: 15px;
    overflow: auto;
    height: 240px !important;
    text-align: center;
    font-size: 14px;
}

#popup-meihua-method0{
    text-align: left;
}
#popup-meihua-method1{
    text-align: left;
}
#popup-meihua-method2{
    text-align: left;
}
#popup-meihua-method3{
    text-align: left;
}
#popup-meihua-info{
    text-align: left;
    font-size: 12px;
    color: #8a8a8a;
}
.popup-meihua-inputctl {
    height: 30px !important;
    font-size: 14px;
    vertical-align: middle;
    width: 110px !important;
    border-width: 1px !important;
    border-radius: 5px !important;
}
.popup-meihua-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 350px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-qimen6ren-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 375px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-qimen6ren-content{
    padding: 15px;
    overflow: auto;
    height: 255px !important;
    text-align: left;
    font-size: 14px;
}
.popup-xuankong-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 220px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-xuankong-content {
    padding: 15px;
    overflow: auto;
    height: 155px !important;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
}
.popup-hehun-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-da6ren-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 470px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-da6ren-content{
    padding: 15px;
    overflow: auto;
    height: 360px !important;
    text-align: left;
    font-size: 14px;
}

.da6ren-prev-next-btn{
    width: 100px;
    height: 30px;
    border-width: 0px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: var(--theme-color);
    color: #fff;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}
.popup-mobile-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 250px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}

.popup-6yao-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 460px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-6yao-content{
    padding: 15px;
    overflow: auto;
    height: 360px !important;
    text-align: left;
    font-size: 14px;
}

.popup-yizhangjing-box {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    box-sizing: border-box;
    width: var(--max-page-width);
    height: 270px !important;
    bottom: 10px !important;
    background-color: #fefefe !important;
}
.popup-yizhangjing-content{
    padding: 15px;
    overflow: auto;
    height: 260px !important;
    text-align: left;
    font-size: 14px;
}

.yizhangjing-prev-next-btn{
    width: 100px;
    height: 30px;
    border-width: 0px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    background-color: var(--theme-color);
    color: #fff;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}

.yao-flip-horizontal {
    animation: yaoFlipHorizontal 0.3s ease-in-out infinite alternate;
}

@keyframes yaoFlipHorizontal {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(-1);
    }
}

.yao-main {
    display: flex;
    justify-content: center;
    /* gap: 20px; */
    align-items: center;
}

.liushen-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 15px; */
    padding-right: 5px;
}
.gua-title {
	font-weight: bold;
    font-size: 15px;
}

.gua-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 15px; */
}

.yao-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 0px;
}

._6shen{
    color: #b7082b;
    font-weight: bold;
}

.yao-fushen{
    color: #ff2525;
    font-size: 10px;
}

.yao-shensha{
    /* color: var(--theme-color); */
    font-weight: bold;
}

.yao-info-left, .yao-info-right {
    font-size: 13px;
    color: #000000;
    min-width: 25px;
    text-align: center;
}

.yao-row {
    display: flex;
    align-items: center;
    height: 20px;
    gap: 10px;
    font-weight: 500;
}

.yao-row-sub {
    display: flex;
    align-items: center;
    height: 16px;
    gap: 10px;
}

.yao-line {
    width: 30px;
    height: 8px;
    /* border-radius: 4px; */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yao-solid {
    background: linear-gradient(45deg, #000008, #000008);
}

.yao-broken {
    background: linear-gradient(to right, #000008 0%, #000008 35%, transparent 35%, transparent 65%, #000008 65%, #000008 100%);
}

.yao-yima-less{
    text-align: left;
    text-overflow: ellipsis;
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
}
.yao-yima-more{
    text-align: left;
    word-wrap: normal;
    white-space: normal;
}
.yao-more-btn{
    color:var(--theme-color)
}

/* ===== 排盘结果页面背景纯白化（只改模板/模块背景，不动表盘本身颜色） ===== */
/* 覆盖 layui-table[lay-even] 偶数行灰色背景 #f8f8f8 → 白 */
.layui-table[lay-even] tbody tr:nth-child(even){
    background-color: #fff !important;
}
/* 覆盖 layui-table hover/click 灰色背景 → 白 */
.layui-table-click,
.layui-table-hover{
    background-color: #fff !important;
}
/* 覆盖结果页内 layui-bg-gray（#fafafa !important）→ 白 */
.app-view .layui-bg-gray{
    background-color: #fff !important;
}
/* 八字详盘内联 #f8f8f8 行兜底（防内联样式优先级） */
.app-view .layui-table tbody tr[style*="background-color: #f8f8f8"],
.app-view .layui-table tbody tr[style*="background-color:#f8f8f8"]{
    background-color: #fff !important;
}
/* 八字合婚卡片标题灰色 → 白 */
.app-view .layui-card-header[style*="background-color:#fafafa"],
.app-view .layui-card-header[style*="background-color: #fafafa"]{
    background-color: #fff !important;
}

html.dark body,
html.dark html{
    background-color: #0f172a;
}
html.dark .app-frame,
html.dark .app-body,
html.dark .app-header,
html.dark .app-view,
html.dark .paipan-forms-container{
    background-color: #111827 !important;
    color: #e5e7eb !important;
}
html.dark .app-header{
    border-bottom-color: #1f2937 !important;
}
html.dark .app-title,
html.dark .paipan-nav-item-selected,
html.dark .app-form-label,
html.dark .app-form-clickable-content,
html.dark .app-form-display-text,
html.dark .app-form-realsun-inline-label,
html.dark .app-form-save-label,
html.dark .city-picker-title,
html.dark .city-col-item,
html.dark .records-page-title{
    color: #e5e7eb !important;
}
html.dark .app-header-button{
    background: #334155 !important;
    color: #e2e8f0 !important;
}
html.dark .app-header-button-back::before{
    border-color: #e2e8f0 !important;
}
html.dark .paipan-nav{
    background-color: #1f2937 !important;
}
html.dark .paipan-nav-item{
    color: #94a3b8 !important;
}
html.dark .paipan-nav-item-selected{
    background-color: #334155 !important;
    box-shadow: none !important;
}
html.dark .app-view .layui-card,
html.dark .app-view .layui-card-header,
html.dark .layui-layer,
html.dark .city-picker-skin{
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e5e7eb !important;
}
html.dark .app-view .layui-table,
html.dark .app-view .layui-table td,
html.dark .app-view .layui-table th{
    background-color: #0f172a !important;
    border-color: #1f2937 !important;
    color: #e5e7eb !important;
}
html.dark .app-form-input,
html.dark .paipan-form-pane .layui-input,
html.dark .paipan-form-pane input[type="text"],
html.dark .paipan-form-pane select,
html.dark .app-form-display-text,
html.dark .app-form-display-text select,
html.dark .app-form-display-text .popup-meihua-inputctl,
html.dark .hehun-picker-input,
html.dark .city-picker-search input{
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}
html.dark .app-form-display-text,
html.dark .city-picker-col-title,
html.dark .city-col-item,
html.dark .records-list li{
    border-color: #334155 !important;
}
html.dark .app-form-capsule,
html.dark .app-form-capsule-hehun,
html.dark .app-form-toggle,
html.dark .records-back-btn,
html.dark .city-picker-cancel,
html.dark .city-picker-confirm{
    background-color: #334155 !important;
    color: #e5e7eb !important;
}
html.dark .app-form-capsule-active{
    background-color: var(--theme-color) !important;
    color: #fff !important;
}
html.dark .app-form-clickable-row:active,
html.dark .records-list li:active,
html.dark .city-col-item:active{
    background-color: #1f2937 !important;
}
html.dark .city-col-item-selected{
    background-color: #1e293b !important;
    color: #60a5fa !important;
}
html.dark .city-picker-header,
html.dark .city-picker-search,
html.dark .city-picker-col-title{
    border-color: #334155 !important;
    background-color: #0f172a !important;
}
html.dark .city-picker-search input{
    background-image: none !important;
}
html.dark .app-view[style*="background-color: #fff"],
html.dark .app-view[style*="background-color:#fff"],
html.dark .app-view[style*="background-color: #ffffff"],
html.dark .app-view[style*="background-color:#ffffff"]{
    background-color: #111827 !important;
}
html.dark .app-view .layui-card[style*="background-color: #fff"],
html.dark .app-view .layui-card[style*="background-color:#fff"],
html.dark .app-view .layui-card[style*="background-color: #ffffff"],
html.dark .app-view .layui-card[style*="background-color:#ffffff"],
html.dark .app-view .layui-card-body[style*="background-color: #fff"],
html.dark .app-view .layui-card-body[style*="background-color:#fff"]{
    background-color: #0f172a !important;
}
