/* 梅花易数 样式（桌面/手机通用 · 与六爻/小六壬共用 .mb-* 易学工具视觉语言对齐） */

/* ===== 页头（对齐 .mb-head） ===== */
.yx-head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1a0a05 0%, #3D1408 100%);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.yx-head-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #C8A96E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.yx-head h1 {
    color: #C8A96E;
    font-family: var(--font);
    font-size: 1.15rem;
    margin: 0;
    font-weight: 400;
}
.yx-head-sub {
    color: rgba(232, 213, 163, .7);
    font-size: .74rem;
    margin: 3px 0 0;
}

/* ===== 说明文字 ===== */
.yx-intro {
    color: #7A6055;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px;
;text-align:justify;}

/* ===== 区块卡片（对齐 .mb-card） ===== */
.yx-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.yx-section h3 {
    border-left: 3px solid #C8A96E;
    padding-left: 8px;
    font-family: var(--font);
    font-size: 1rem;
    margin: 0 0 14px;
    color: #333;
}

/* ===== 免责声明（对齐 .ly-m-disclaimer / .xl-disclaimer） ===== */
.yx-disclaimer {
    color: #8B7355;
    font-size: 13px;
    line-height: 1.7;
    background: #FFFDF9;
    border: 1px solid rgba(200, 169, 110, .3);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
}

/* ===== 起卦按钮（对齐 .mb-btn-gold） ===== */
.btn-yx-paipan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #C8A96E;
    color: #3D1408;
    padding: 12px 0;
    border: none;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-family: var(--font);
}
.btn-yx-paipan:hover {
    background: #B89858;
}

/* ===== 起卦说明 details（对齐 .mb-method） ===== */
.mh-shuoming {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 4px 16px;
    margin-bottom: 16px;
}
.mh-shuoming summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 10px 0;
    list-style: none;
}
.mh-shuoming summary::-webkit-details-marker {
    display: none;
}
.mh-shuoming summary::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #C8A96E;
    margin-right: 8px;
}
.mh-sm-body {
    font-size: 13px;
    line-height: 1.8;
    color: #3D2B1F;
    padding: 6px 0 10px;
    border-top: 1px dashed #eee;
}
.mh-sm-body p {
    margin: 10px 0 4px;
;text-align:justify;}
.mh-sm-body ul {
    margin: 4px 0;
    padding-left: 22px;
}
.mh-sm-body li {
    margin: 3px 0;
    color: #7A6055;
}
.mh-sm-body b {
    color: #3D2B1F;
}

/* ===== 起卦方式 tabs（对齐 .xl-tab） ===== */
.mh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 16px;
}
.mh-tab {
    flex: 1 1 auto;
    border: 1px solid #eee;
    border-radius: 999px;
    background: #fff;
    padding: .45rem .6rem;
    text-align: center;
    font-size: .82rem;
    color: #555;
    cursor: pointer;
    font-family: var(--font);
}
.mh-tab.active {
    background: #C8A96E;
    border-color: #C8A96E;
    color: #3D1408;
    font-weight: 600;
}

/* ===== 表单字段（对齐 liuyao 输入样式） ===== */
.mh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 6px;
}
.mh-col {
    flex: 1;
    min-width: 130px;
}
.mh-col label,
.mh-matter label {
    display: block;
    font-size: 13px;
    color: #7A6055;
    margin-bottom: 6px;
}
.mh-col input,
.mh-col select,
.mh-matter input {
    width: 100%;
    border: 1px solid #e5e0d5;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: #3D2B1F;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
}
.mh-hint {
    font-size: 13px;
    color: #7A6055;
    margin: 8px 0 0;
    line-height: 1.6;
}
.mh-matter {
    margin: 16px 0;
}
.mh-matter input {
    max-width: 420px;
}
.mh-calc-label {
    font-size: 13px;
    color: #7A6055;
    font-weight: 400;
    margin-left: 8px;
}

/* ===== 卦象三栏（对齐白卡） ===== */
.mh-gua-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.mh-gua {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    background: #fff;
}
.mh-tag {
    font-size: 13px;
    color: #7A6055;
}
.mh-tg {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    margin: 10px 0;
}
.mh-ln {
    width: 42px;
    height: 5px;
    background: #3D1408;
    border-radius: 2px;
}
.mh-ln-b {
    background: transparent;
    position: relative;
}
.mh-ln-b::before,
.mh-ln-b::after {
    content: '';
    position: absolute;
    top: 0;
    width: 17px;
    height: 5px;
    background: #3D1408;
    border-radius: 2px;
}
.mh-ln-b::before {
    left: 0;
}
.mh-ln-b::after {
    right: 0;
}
.mh-name {
    font-size: 15px;
    font-weight: 500;
    margin-top: 4px;
    color: #3D2B1F;
}
.mh-wx {
    font-size: 13px;
    color: #C8A96E;
    margin-top: 2px;
}

/* ===== 体用 ===== */
.mh-ty {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-top: 16px;
}
.mh-ty-box {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    background: #fff;
}
.mh-ty-name {
    font-size: 15px;
    font-weight: 500;
    margin: 4px 0;
    color: #3D2B1F;
}
.mh-ty-rel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8B1A1A;
    font-size: 15px;
    font-weight: 500;
    min-width: 80px;
}
.mh-luck-good {
    color: #2f6b2f;
}
.mh-luck-bad {
    color: #a23b3b;
}
.mh-luck-mid {
    color: #854F0B;
}
.mh-yao-info {
    margin-top: 14px;
    font-size: 14px;
    color: #7A6055;
}
.mh-guaci {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: #3D2B1F;
;text-align:justify;}
.mh-duanyu {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.85;
    color: #3D2B1F;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #C8A96E;
    padding: 12px 14px;
    border-radius: 10px;
;text-align:justify;}

/* ===== 增强块（对齐白卡 + 金左边） ===== */
.mh-yi {
    font-size: 14px;
    color: #C8A96E;
    font-weight: 500;
    margin-top: 6px;
    line-height: 1.5;
}
.mh-guaci-sm,
.mh-daxiang-sm {
    font-size: 13px;
    color: #7A6055;
    line-height: 1.55;
    margin-top: 4px;
}
.mh-guaci-sm b,
.mh-daxiang-sm b {
    color: #C8A96E;
}
.mh-ty-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #3D2B1F;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #C8A96E;
    border-radius: 10px;
    padding: 10px 14px;
;text-align:justify;}
.mh-yaoci {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #C8A96E;
    border-radius: 10px;
    padding: 12px 14px;
}
.mh-yaoci-yao {
    font-size: 14px;
    color: #3D2B1F;
}
.mh-yaoci-text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.8;
    color: #3D2B1F;
;text-align:justify;}
.mh-yaoci-label {
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background: #C8A96E;
    border-radius: 6px;
    padding: 1px 8px;
    margin-right: 6px;
    font-weight: 500;
}
.mh-matter-tip {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
    color: #3D2B1F;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #C8A96E;
    border-radius: 10px;
    padding: 12px 14px;
;text-align:justify;}
.mh-matter-tip i {
    color: #C8A96E;
;text-align:justify;}
.mh-xiang-card {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid #C8A96E;
    border-radius: 10px;
    padding: 12px 14px;
}
.mh-xiang-title {
    font-size: 14px;
    font-weight: 600;
    color: #C8A96E;
    margin-bottom: 8px;
}
.mh-xiang-title i {
    color: #C8A96E;
}
.mh-xiang-body {
    font-size: 15px;
    line-height: 1.8;
    color: #3D2B1F;
;text-align:justify;}

/* ===== 象数参考表（每行白卡，对齐 .xl-xy） ===== */
.mh-xs-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mh-xs-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr 1.4fr;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 10px;
}
.mh-xs-label {
    font-weight: 600;
    color: #3D2B1F;
}
.mh-xs-cell {
    color: #7A6055;
}
.mh-xs-img {
    color: #7A6055;
    line-height: 1.4;
}

/* ===== 窄屏适配 ===== */
@media (max-width: 560px) {
    .mh-gua-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .mh-ln {
        width: 34px;
    }
    .mh-ln-b::before,
    .mh-ln-b::after {
        width: 13px;
    }
    .mh-gua {
        padding: 10px 4px;
    }
    .yx-head {
        padding: 14px 16px;
    }
    .mh-ty-rel {
        min-width: 60px;
        font-size: 13px;
    }
    .mh-xs-row {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .mh-xs-label {
        grid-column: 1 / -1;
    }
    .mh-shuoming summary {
        font-size: 13px;
    }
    .mh-guaci-sm,
    .mh-daxiang-sm {
        font-size: 12px;
    }
    .mh-yaoci-text {
        font-size: 13px;
    ;text-align:justify;}
}
