/* 保持原有样式不变 */
* {
    margin: 0;
    /*padding: 0;*/
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
img {
    border: none;
}
html {
    background: #f9f2eb;
}

body {
    background: #f9f2eb;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 4rem 0 0;
}

/* 评分提示框样式 */
.score-tooltip {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 650px;
    max-height: 600px;
    overflow-y: auto;
    display: none;
}

.head_fixed {
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
    z-index: 998;
    -moz-transition: .3s;
    -o-transition: .3s;
    -webkit-transition: .3s;
    transition: .3s;
}

/* 移动端适配 - 屏幕宽度小于768px时 */


.score-tooltip-loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.name-cell {
    position: relative;
    cursor: pointer; /* 显示可点击指针 */
    font-size: 18px;
}

.score {
    cursor: pointer;
    color: #165DFF;
    margin-left: 5px;
}

.score-tooltip table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.score-tooltip th, .score-tooltip td {
    border: 1px solid #eee;
    padding: 6px 8px;
    text-align: left;
    font-size: 14px;
}

.score-tooltip th {
    background-color: #f5f7fa;
    font-weight: bold;
}

.score-tooltip h3 {
    margin: 0 0 10px 0;
    padding-bottom: 0px;
}

.close-tooltip:hover {
    background: #d0eaff;
    color: #0e42c3;
}

/* 用户类型提示样式 */
.user-type-hint {
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

.user-type-hint.paid {
    border-left-color: #10b981;
}

/* 表格样式调整 */
.name-table {
    width: 100%;
    border-collapse: collapse;
}

.name-table th {
    background-color: #f5f7fa;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
}

.name-table .name-text {
    font-size: 20px;
}

.name-table td {
    padding: 10px;
    border: 1px solid #eee;
    font-size: 18px;
}

/* 列宽分配 */
.name-table th:nth-child(1) {
    width: 30%;
}

/* 姓名 */
.name-table th:nth-child(2) {
    width: 15%;
}

/* 性别 */
.name-table th:nth-child(3) {
    width: 30%;
}

/* 汉字属性 */
.name-table th:nth-child(4) {
    width: 25%;
}

.flex {
    display: flex;
    flex-flow: row inwrap;
    justify-content: flex-start
}

.flex.spb {
    justify-content: space-between
}

.head_bg {
    width: 100%;
    height: 50px;
    background: #fff;
    box-shadow: 0 5px 5px -5px #2d2d2d;
    display: flex; /* 新增：使用flex布局 */
    align-items: center; /* 垂直居中 */
}

.logo_nav {
    margin: auto;
    padding: 0 30px
}

.logo_nav > a {
    display: flex;
    align-items: center;
    height: 100%; /* 新增：让链接占满整个头部高度 */
}

.logo_nav a img {
    display: block;
    width: 50px;
}


.hmb_banner {
    width: 100%;
    background: #f4ab9a;
    display: block;
    margin: auto;
    overflow: hidden
}

.hmb_banner img {
    display: block;
    margin: auto
}

.footer_warp {
    width: 100%;
    height: 1.5rem;
    margin-top: .5rem;
    /*font-size: .28rem;*/
    text-align: center;
    line-height: 1.03rem
}

.my_modal_bg {
    position: fixed;
    background: #000;
    background: rgba(0, 0, 0, .8);
    z-index: 100;
    display: none;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999
}

.hmb_banner .banner_m {
    width: 100%;
    display: block
}

.hmb_banner .banner_pc {
    display: none
}
@media (max-width: 768px) {
    .main-client {
        padding-top: 60px;
    }
    .canvas-close {
        display: block;
        position: absolute;
        right: 15px;
        top: 18px;
        width: 30px;
        height: 30px;
        z-index: 99999;
        color: #000;
        transition: all .3s
        ease;
    }
    .score-tooltip {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 9999;
        width: 85%;
        max-width: 360px;
        max-height: 80vh;
        padding: 12px;
        font-size: 14px;
    }

    .nav-list-show {
        right: 0 !important;
    }
    .nav-list {
        padding: 50px 15px;
        position: fixed;
        right: -280px;
        top: 0;
        bottom: 0;
        width: 250px;
        margin-left: 0;
        background: #ffffff;
        z-index: 99999;
        transition: all .3s
        ease;
    }

    .nav-list > li {
        float: none;
        display: block;
        margin: 8px 0;
        background-color: #f7f7f7;
    }
    .ab-navbar .nav-list > li > a {
        height: 40px;
        line-height: 40px;
        text-decoration: none;
    }
    /*.nav-list > li > a {*/
    /*    !*height: 63px;*!*/
    /*    line-height: 107px;*/
    /*    display: inline-block;*/
    /*    font-weight: 600;*/
    /*    padding: 0 20px;*/
    /*    font-size: 20px;*/
    /*    color: #000000;*/
    /*    text-decoration: none;*/
    /*}*/

    .nav-list > li > a:hover {
        color: #fe7a0d;
        text-decoration: none !important;
    }

    .score-tooltip th, .score-tooltip td {
        padding: 4px 6px;
        font-size: 13px;
    }

    .score-tooltip h3 {
        font-size: 16px;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .score-tooltip-loading {
        padding: 15px;
        font-size: 14px;
    }

    /* 移动端表格适配 */
    .name-table th, .name-table td {
        padding: 6px 4px;
        font-size: 13px;
    }

    .close-tooltip {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media screen and (min-width: 769px){
    .canvas-close, .m-nav-list {
        display: none !important;
    }
    .main-client {
        padding-top: 95px;
    }
}
@media screen and (min-width: 1200px) {
    .footer_warp {
        height: 2.8rem;
        line-height: 2rem;
        /*font-size: .32rem*/
    }
    .logo_nav {
        width: 1079px;
        padding: 0
    }

    .hmb_banner .banner_m {
        display: none !important;
    }

    .hmb_banner .banner_pc {
        display: block;
        width: 100%;
    }

    .nav-list {
        margin-left: 1rem;
        display: block;
        list-style: none;
        float: left;
    }

    .nav-list li {
        list-style: none;
        position: relative;
        display: inline-block;
    }

    .nav-list > li > a {
        /*height: 63px;*/
        line-height: 50px;
        display: inline-block;
        font-weight: 600;
        padding: 0 20px;
        font-size: 20px;
        color: #000000;
        text-decoration: none;
    }

    .nav-list > li > a:hover {
        color: #fe7a0d;
        text-decoration: none !important;
    }
}

@media screen and (orientation: portrait) {
    .logo_nav {
        width: 100%;
        height: 100%;
        padding: 0 20px;
        box-sizing: border-box
    }

    .hmb_nav {
        height: 100%;
        display: flex;
        align-items: center
    }

    .hmb_nav a {
        display: block;
        font-size: .3rem;
        border: 0;
        padding-right: 0
    }

    .logo_nav a img {
        width: 3rem
    }

    .head_bg {
        height: 60px;
        background-size: 100% auto
    }
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #64748b;
    text-align: center;
    margin-bottom: 2rem;
}

.form-container {
    margin-bottom: 2rem;
    background-color: white;
    background-image: url(../img/m-bz-formBg.png);
    background-size: 100% 100%;
    background-position: center;
    padding: 15px 15px 15px 15px;
    border: 1px solid #d5a17c;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 50rem;

}

.form-group {
    margin-bottom: 0.8rem;
}

label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #4b5563;
    font-size: 1.1rem;
}

label .required {
    color: #dc2626;
    margin-left: 4px;
}

input, select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.force-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.1rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.force-col {
    flex: 1;
    min-width: 120px;
}

.force-col.small {
    min-width: 100px;
}

.wuxing-selects-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.custom-select {
    position: relative;
    width: 100%;
    font-size: 14px;
    user-select: none;
}

.selected {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.selected:hover {
    border-color: #999;
}

.selected-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 4px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.option {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.option:hover {
    background: #f2f2f2;
}

.option.active {
    background: #e6f3ff;
    font-weight: bold;
}

.option img,
.selected-content img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.arrow.open {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-col {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 6px;
    flex: 2;
    min-width: 200px;
}

.filter-col input {
    width: auto;
    margin-right: 0.75rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #795548;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #a1240e;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    color: #666666;
}

.query-limit {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
}

.query-limit.exceeded {
    color: #dc2626;
    font-weight: 500;
}

.result {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.1rem;
    margin-top: 2rem;
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    margin-left: 0.4rem;
}

.result-title {
    font-size: 1.0rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.clear-btn, .export-btn {
    background: none;
    color: #64748b;
    padding: 0.5rem;
    width: auto;
    margin-left: 0.5rem;
}

.clear-btn:hover, .export-btn:hover {
    background: none;
    color: #1e293b;
}

.result-info {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 0.9rem;
}

/* 新增八字信息样式 */
.bazi-info {
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.85rem;
}

.bazi-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;

}

.bazi-row {
    margin-bottom: 0.3rem;
}

.bazi-label {
    color: #3b82f6;
    font-weight: 500;
    display: inline-block;
    width: 70px;
}

@media (max-width: 360px) {
    .result-info {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        margin-left: 0.4rem;
    }

    .bazi-info {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    .bazi-label {
        width: 60px;
    }
}

.error {
    color: #dc2626;
    padding: 1rem;
    text-align: center;
    display: none;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    display: none;
}

.name-tables-container {
    margin-top: 1rem;
    overflow-x: hidden;
}

.name-table-wrapper {
    width: 100%;
}

.name-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.name-table th, .name-table td {
    padding: 0.6rem 0.2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;

}

.name-table th {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    background: #f9fafb;
    width: 33.333%;
}

.name-cell {
    color: #3b82f6;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-cell:hover {
    color: #2563eb;
    text-decoration: underline;
}

.score {
    display: inline-block;
    color: #15803d;
    font-weight: 600;
    margin-left: 4px;
    cursor: pointer;
    text-decoration: underline;
}

.score:hover {
    color: #059669;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: #64748b;
}

.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 0.3rem;
    margin: 1.5rem auto 0.8rem;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
}

.pagination-btn {
    padding: 0.3rem 0.7rem;
    background: #f1f5f9;
    color: #333;
    border: none;
    border-radius: 4px;
    width: auto;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #e2e8f0;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
}

.pagination-btn:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.8rem;
    color: #64748b;
    padding: 0 0.2rem;
}

@media (max-width: 360px) {
    .pagination {
        gap: 0.2rem;
        max-width: 95%;
    }

    .pagination-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    #pageInfo {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .force-col {
        min-width: 100px;
    }

    .force-col.small {
        min-width: 80px;
    }

    .filter-col {
        min-width: 160px;
        font-size: 0.85rem;
    }

    label {
        font-size: 0.8rem;
    }

    .name-table th, .name-table td {
        font-size: 0.8rem;
        padding: 0.5rem 0.1rem;
    }
}

.info-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 4px;

    color: #5d4037;
}

.info-box h3 {
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-box li {
    margin-bottom: 0.3rem;
}

/* 调试信息样式 */
.debug-info {
    background: #f0f8ff;
    border: 1px solid #add8e6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #00008b;
}

/* 复制提示样式 */
.copy-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
}
