/* 彩运页独立样式（登录/浮层/彩票球） */

.skip-to-main {
    position: absolute;
    left: -9999px;
}

.skip-to-main:focus {
    left: 8px;
    top: 8px;
    z-index: 100000;
    padding: 8px 12px;
    background: #1e293b;
    color: #fff;
}

body.caiyun-page {
    margin: 0;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.caiyun-main {
    padding: 5px 2px 5px;
    max-width: 600px;
    margin: 0 auto;
}

/* 顶栏：左右等宽翼区 + 中间 auto 标题列，保证标题相对整条顶栏几何居中 */
.caiyun-header-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4px;
}

.caiyun-header-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.caiyun-header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* 顶栏：淡红主色，参考六爻横版用神胶囊 active（玫红系高光） */
body.caiyun-page .header.liuyao-header-bar.caiyun-header-bar {
    background: linear-gradient(165deg, #fff5f5 0%, #ffe4e6 38%, #fecdd3 100%);
    border-bottom: 1px solid rgba(244, 63, 94, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.78) inset,
        0 8px 22px rgba(190, 24, 93, 0.1);
}

.caiyun-header-bar .liuyao-header-center {
    justify-self: center;
    padding: 0 4px;
    min-width: 0;
}

/* 标题尺寸对齐六爻 layout-shell：1.42rem / 0.06em；窄屏与 responsive-overrides 一致 */
.caiyun-header-title,
.caiyun-header-bar .liuyao-header-title {
    color: #9f1239;
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 0 18px rgba(251, 113, 133, 0.38),
        0 2px 8px rgba(251, 113, 133, 0.15);
}

/* 与六爻顶栏按钮体量接近（layout-shell .liuyao-header-auth-btn） */
.caiyun-header-icon-btn {
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(255, 255, 255, 0.55);
    color: #9f1239;
    width: auto;
    min-width: 44px;
    height: auto;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

a.caiyun-header-icon-btn {
    text-decoration: none;
    color: inherit;
}

a.caiyun-header-icon-btn:visited {
    color: inherit;
}

.caiyun-header-secondary-btn {
    color: #881337;
    border: 1px solid rgba(251, 113, 133, 0.55);
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.08);
}

.caiyun-header-secondary-btn:hover {
    border-color: rgba(251, 113, 133, 0.75);
    background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%);
}

/* 顶栏为 grid：登录/退出须参与文档流（覆盖 layout-shell 的 absolute） */
.caiyun-header-bar .liuyao-header-auth-btn.is-login,
.caiyun-header-bar .liuyao-header-auth-btn.is-logout {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    color: #881337;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid rgba(251, 113, 133, 0.55);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset,
        0 2px 12px rgba(244, 63, 94, 0.2);
}

.caiyun-header-bar .liuyao-header-auth-btn.is-login:active,
.caiyun-header-bar .liuyao-header-auth-btn.is-logout:active {
    transform: scale(0.98);
}

.caiyun-header-bar .liuyao-header-auth-btn.is-login:hover,
.caiyun-header-bar .liuyao-header-auth-btn.is-logout:hover {
    border-color: rgba(251, 113, 133, 0.75);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.78) inset,
        0 2px 6px rgba(244, 63, 94, 0.22) inset,
        0 0 16px rgba(251, 113, 133, 0.35);
}

.caiyun-sizhu-section {
    margin-bottom: 10px;
}

/* 四柱：与六爻自动起卦区同源类名，在此拉满主区宽度并略加大槽位（参考 jiazi-picker 比例） */
body.caiyun-page .caiyun-sizhu-section .liuyao-manual-sizhu-row {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-top-color: rgba(244, 63, 94, 0.18);
}

body.caiyun-page .caiyun-sizhu-section .liuyao-manual-sizhu-slots {
    width: 100%;
    max-width: 100%;
    gap: 5px;
    justify-content: space-between;
}

body.caiyun-page .caiyun-sizhu-section .liuyao-manual-sizhu-slot {
    flex: 1 1 0;
    min-width: 64px;
    max-width: none;
/*    padding: 8px 8px 9px;*/
}

body.caiyun-page .caiyun-sizhu-section .liuyao-manual-sizhu-inner {
    font-size: 19px;
}

body.caiyun-page .caiyun-sizhu-section .liuyao-manual-sizhu-sub {
    font-size: 14px;
}

@media (max-width: 480px) {
    body.caiyun-page .caiyun-header-toolbar.liuyao-header-toolbar {
        padding: 4px 8px 5px;
    }

    body.caiyun-page .caiyun-header-bar .liuyao-header-center {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.caiyun-page .caiyun-header-title,
    body.caiyun-page .caiyun-header-bar .liuyao-header-title {
        font-size: 1.22rem;
        letter-spacing: 0.05em;
    }

    body.caiyun-page .caiyun-header-bar .liuyao-header-auth-btn {
        padding: 5px 11px;
        font-size: 12px;
    }
}

/* 五行按钮：配色与六爻用神（sizhu-*）同源；浅色为默认，选中为深色渐变胶囊（参考卦页顶部胶囊阴影层次） */
.caiyun-wx-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.caiyun-wx-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.caiyun-wx-btn {
    min-width: 48px; 
    border-radius: 999px;
    border-style: solid;
    border-width: 2px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.caiyun-wx-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.caiyun-wx-btn:active:not(:disabled) {
    transform: translateY(1px);
}

/* —— 金（#c9a227） —— */
.caiyun-wx-btn[data-wx='金'] {
    color: #a16207;
    border-color: rgba(201, 162, 39, 0.42);
    background: linear-gradient(165deg, #fffefb 0%, rgba(201, 162, 39, 0.16) 42%, rgba(201, 162, 39, 0.07) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 8px rgba(201, 162, 39, 0.14);
}
.caiyun-wx-btn[data-wx='金']:hover:not(.is-selected) {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 4px 12px rgba(201, 162, 39, 0.22);
}
.caiyun-wx-btn[data-wx='金'].is-selected {
    color: #fffbeb;
    font-weight: 700;
    border-color: #92400e;
    background: linear-gradient(165deg, #fcd34d 0%, #d97706 46%, #b45309 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 1px 3px rgba(255, 255, 255, 0.45) inset,
        0 5px 16px rgba(217, 119, 6, 0.42),
        0 2px 5px rgba(15, 23, 42, 0.1),
        0 0 0 2px rgba(251, 191, 36, 0.38);
}
.caiyun-wx-btn[data-wx='金'].is-selected:hover {
    filter: brightness(1.03);
}

/* —— 木（#2e7d32） —— */
.caiyun-wx-btn[data-wx='木'] {
    color: #1b5e20;
    border-color: rgba(46, 125, 50, 0.38);
    background: linear-gradient(165deg, #fafdfb 0%, rgba(46, 125, 50, 0.13) 42%, rgba(46, 125, 50, 0.06) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 8px rgba(46, 125, 50, 0.12);
}
.caiyun-wx-btn[data-wx='木']:hover:not(.is-selected) {
    border-color: rgba(46, 125, 50, 0.52);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 4px 12px rgba(46, 125, 50, 0.2);
}
.caiyun-wx-btn[data-wx='木'].is-selected {
    color: #ecfdf5;
    font-weight: 700;
    border-color: #14532d;
    background: linear-gradient(165deg, #86efac 0%, #22c55e 44%, #15803d 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 3px rgba(255, 255, 255, 0.4) inset,
        0 5px 16px rgba(34, 197, 94, 0.38),
        0 2px 5px rgba(15, 23, 42, 0.1),
        0 0 0 2px rgba(74, 222, 128, 0.35);
}
.caiyun-wx-btn[data-wx='木'].is-selected:hover {
    filter: brightness(1.03);
}

/* —— 水（#1565c0） —— */
.caiyun-wx-btn[data-wx='水'] {
    color: #0d47a1;
    border-color: rgba(21, 101, 192, 0.36);
    background: linear-gradient(165deg, #fafcff 0%, rgba(21, 101, 192, 0.12) 42%, rgba(21, 101, 192, 0.05) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 8px rgba(21, 101, 192, 0.12);
}
.caiyun-wx-btn[data-wx='水']:hover:not(.is-selected) {
    border-color: rgba(21, 101, 192, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 4px 12px rgba(21, 101, 192, 0.2);
}
.caiyun-wx-btn[data-wx='水'].is-selected {
    color: #eff6ff;
    font-weight: 700;
    border-color: #1e3a8a;
    background: linear-gradient(165deg, #93c5fd 0%, #2563eb 46%, #1d4ed8 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 1px 3px rgba(255, 255, 255, 0.42) inset,
        0 5px 16px rgba(37, 99, 235, 0.4),
        0 2px 5px rgba(15, 23, 42, 0.1),
        0 0 0 2px rgba(147, 197, 253, 0.45);
}
.caiyun-wx-btn[data-wx='水'].is-selected:hover {
    filter: brightness(1.03);
}

/* —— 火（#c62828） —— */
.caiyun-wx-btn[data-wx='火'] {
    color: #b71c1c;
    border-color: rgba(198, 40, 40, 0.36);
    background: linear-gradient(165deg, #fffafa 0%, rgba(198, 40, 40, 0.12) 42%, rgba(198, 40, 40, 0.05) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 8px rgba(198, 40, 40, 0.12);
}
.caiyun-wx-btn[data-wx='火']:hover:not(.is-selected) {
    border-color: rgba(198, 40, 40, 0.5);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 4px 12px rgba(198, 40, 40, 0.2);
}
.caiyun-wx-btn[data-wx='火'].is-selected {
    color: #fff5f5;
    font-weight: 700;
    border-color: #7f1d1d;
    background: linear-gradient(165deg, #fca5a5 0%, #dc2626 46%, #b91c1c 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 3px rgba(255, 255, 255, 0.38) inset,
        0 5px 16px rgba(220, 38, 38, 0.4),
        0 2px 5px rgba(15, 23, 42, 0.1),
        0 0 0 2px rgba(252, 165, 165, 0.42);
}
.caiyun-wx-btn[data-wx='火'].is-selected:hover {
    filter: brightness(1.03);
}

/* —— 土（#8d6e63） —— */
.caiyun-wx-btn[data-wx='土'] {
    color: #5d4037;
    border-color: rgba(141, 110, 99, 0.38);
    background: linear-gradient(165deg, #fdfcfa 0%, rgba(141, 110, 99, 0.13) 42%, rgba(141, 110, 99, 0.06) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 2px 8px rgba(141, 110, 99, 0.12);
}
.caiyun-wx-btn[data-wx='土']:hover:not(.is-selected) {
    border-color: rgba(141, 110, 99, 0.52);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 4px 12px rgba(141, 110, 99, 0.18);
}
.caiyun-wx-btn[data-wx='土'].is-selected {
    color: #faf6f1;
    font-weight: 700;
    border-color: #4e342e;
    background: linear-gradient(165deg, #d7ccc8 0%, #8d6e63 48%, #6d4c41 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.32) inset,
        0 1px 3px rgba(255, 255, 255, 0.35) inset,
        0 5px 16px rgba(109, 76, 65, 0.38),
        0 2px 5px rgba(15, 23, 42, 0.1),
        0 0 0 2px rgba(215, 204, 200, 0.55);
}
.caiyun-wx-btn[data-wx='土'].is-selected:hover {
    filter: brightness(1.03);
}

/* 五行下方：命理提示（立体卡片 + 顶栏高光） */
.caiyun-insight {
    position: relative;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 18px;
    border: 1px solid rgba(199, 210, 254, 0.95);
    background: linear-gradient(
        152deg,
        #ffffff 0%,
        #f8f9ff 22%,
        #eef1ff 52%,
        #e2e8ff 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 -2px 8px rgba(99, 102, 241, 0.05) inset,
        0 12px 32px rgba(15, 23, 42, 0.1),
        0 6px 16px rgba(99, 102, 241, 0.12),
        0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition:
        box-shadow 0.22s ease,
        transform 0.22s ease,
        border-color 0.22s ease;
}

.caiyun-insight::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    z-index: 2;
    background: linear-gradient(
        90deg,
        #6366f1 0%,
        #818cf8 28%,
        #a5b4fc 55%,
        #6366f1 100%
    );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 2px 4px rgba(79, 70, 229, 0.25);
}

.caiyun-insight:hover {
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98) inset,
        0 -2px 8px rgba(99, 102, 241, 0.06) inset,
        0 18px 40px rgba(15, 23, 42, 0.12),
        0 8px 22px rgba(99, 102, 241, 0.16),
        0 3px 8px rgba(15, 23, 42, 0.07);
}

.caiyun-insight-body {
    position: relative;
    z-index: 1;
    margin: 6px 5px 5px;
    padding: 5px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.75;
    color: #334155;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 255, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 4px 12px rgba(99, 102, 241, 0.06) inset,
        0 2px 8px rgba(15, 23, 42, 0.04);
}

.caiyun-insight-p {
    margin: 0 0 12px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.caiyun-insight-p:last-child {
    margin-bottom: 0;
}

.caiyun-insight-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(129, 140, 248, 0.55);
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
}

/* 参考句内干支、五行字：色 + 轻微浮雕 */
.caiyun-insight-mark {
    font-weight: 700;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 -0.5px 0 rgba(15, 23, 42, 0.06);
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.08));
}

.caiyun-insight-mark--jin {
    color: #c9a227;
}

.caiyun-insight-mark--mu {
    color: #2e7d32;
}

.caiyun-insight-mark--shui {
    color: #1565c0;
}

.caiyun-insight-mark--huo {
    color: #c62828;
}

.caiyun-insight-mark--tu {
    color: #8d6e63;
}

@media (prefers-reduced-motion: reduce) {
    .caiyun-insight {
        transition: none;
    }

    .caiyun-insight:hover {
        transform: none;
    }
}

/* 彩票卡片 */
.caiyun-lottery-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.caiyun-lottery-card {
    background: #fff;
    border-radius: 16px;
    padding: 5px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    container-type: inline-size;
    container-name: caiyun-lottery-card;
}

.caiyun-lottery-card--dlt {
    border-top: 4px solid #f59e0b;
}

.caiyun-lottery-card--ssq {
    border-top: 4px solid #dc2626;
}

.caiyun-lottery-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.caiyun-lottery-badge {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}

.caiyun-lottery-badge--red {
    color: #b91c1c;
}

.caiyun-lottery-sub {
    font-size: 12px;
    color: #64748b;
}

/* 号码区：单行占满卡片宽；每格 container，数字字号按格宽梯度变化，说明文绑定同一基准 em */
.caiyun-lottery-balls {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(1px, 1.2cqw, 5px);
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2px 0 6px;
    box-sizing: border-box;
}

.caiyun-lottery-balls--ssq-row,
.caiyun-lottery-balls--dlt-row {
    margin-top: 0;
}

.caiyun-ball-cell {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    container-type: inline-size;
    container-name: caiyun-ball-cell;
}

/* 基准字号 ≈ 球直径成比例；cqw 相对 .caiyun-ball-cell（大幅加大可读字号） */
.caiyun-ball-stack {
    width: 100%;
    max-width: min(44px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: clamp(14px, 52cqw, 22px);
}

.caiyun-ball-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 100%;
}

.caiyun-ball-meta-line {
    font-size: clamp(10px, 0.65em, 15px);
    line-height: 1.15;
    text-align: center;
    word-break: keep-all;
}

.caiyun-ball-meta-line--wx {
    color: #475569;
    font-weight: 600;
}

.caiyun-ball-meta-line--role {
    color: #be185d;
    font-weight: 600;
}

/* 大乐透前/后区分隔：与加大后的球区协调 */
.caiyun-lottery-zone-gap {
    flex: 0 0 clamp(6px, 2.2cqw, 14px);
    align-self: flex-start;
    margin-top: clamp(6px, 2.5cqw, 12px);
    padding: 0;
    font-size: clamp(12px, 4cqw, 17px);
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(22px, 9cqw, 44px);
}

.caiyun-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: min(44px, 100%);
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1em;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
}

.caiyun-ball--dlt-front {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.42);
}

.caiyun-ball--dlt-back {
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.42);
}

.caiyun-ball--ssq-red {
    background: linear-gradient(145deg, #ef4444, #b91c1c);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.38);
}

.caiyun-ball--ssq-blue {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.42);
}

/* 不支持容器查询时：用 vw 近似「格宽」，栈内数字与说明比例同上 */
@supports not (container-type: inline-size) {
    .caiyun-lottery-balls {
        gap: clamp(1px, 0.8vw, 5px);
    }

    .caiyun-ball-stack {
        font-size: clamp(14px, min(22px, 7vw), 22px);
    }

    .caiyun-ball {
        font-size: 1em;
    }

    .caiyun-ball-meta-line {
        font-size: clamp(10px, 0.65em, 15px);
    }

    .caiyun-lottery-zone-gap {
        font-size: clamp(12px, 4vw, 17px);
    }
}

.caiyun-generate-wrap {
    margin-top: 5px;
    text-align: center;
}

.caiyun-generate-btn {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.caiyun-generate-btn:active {
    transform: scale(0.98);
}

.caiyun-footer {
    padding: 24px 16px 32px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.caiyun-compliance {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 8px;
}

.caiyun-version {
    font-size: 13px;
    color: #000000;
    margin: 0;
}

.ximu-app-download {
    display: inline-block;
    margin: 0 0 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ximu-app-download:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.55);
}

.ximu-app-download:active {
    transform: scale(0.98);
}

html.ximu-native-shell .ximu-app-download {
    display: none !important;
}

.caiyun-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 100002;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    max-width: 90vw;
}

/* 登录框（精简自八字页） */
.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.login-modal.show {
    display: flex;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.login-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    width: 90%;
    max-width: 400px;
    z-index: 10001;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #6366f1;
}

.login-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #4338ca;
}

.login-close {
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.login-box .form-group {
    margin-bottom: 14px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.login-box .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 须压过梅花等模块后挂的 .btn-primary { max-width:50%/65%; flex… }，否则登录钮偏左不居中 */
.btn-primary.btn-block,
.login-box .btn-primary.btn-block,
.login-logged-block .btn-primary.btn-block {
    display: block;
    width: 100%;
    max-width: none;
    flex: none;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.login-box .login-footer {
    margin-top: 28px;
    padding-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.login-box .login-footer p,
.login-box .login-footer .login-footer-line {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.login-box .login-footer .login-footer-line + .login-footer-line {
    margin-top: 0;
}

.logout-confirm-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
}

.logout-confirm-dialog.show {
    display: flex;
}

.logout-confirm-dialog .dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.logout-confirm-dialog .dialog-bubble {
    position: relative;
    background: #fff;
    padding: 20px 22px;
    border-radius: 12px;
    max-width: 360px;
    width: 88%;
    z-index: 10051;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.btn-dialog-cancel,
.btn-dialog-confirm {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.btn-dialog-confirm {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* 设置 / 出生 / 记录 浮层 */
.caiyun-settings-overlay,
.caiyun-birth-overlay,
.caiyun-records-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10100;
}

.caiyun-birth-overlay.show {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.caiyun-settings-overlay.show {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.caiyun-records-overlay.show {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.caiyun-settings-backdrop,
.caiyun-birth-backdrop,
.caiyun-records-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.caiyun-settings-panel {
    position: relative;
    flex: 1;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 100vh;
    min-height: 100%;
    background: #f8fafc;
    border-radius: 0;
    overflow: hidden;
    z-index: 10101;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.caiyun-birth-panel {
    position: relative;
    flex: 1;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 100vh;
    min-height: 100%;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 0;
    z-index: 10101;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.caiyun-birth-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 出生日期时间五转盘：叠在「添加个人信息」之上 */
#baziDateTimeWheelModal {
    z-index: 10200;
}

/* 出生地点四级浮层：叠在「添加个人信息」与日期转盘之上 */
.caiyun-location-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10220;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
}

.caiyun-location-overlay.show {
    display: flex;
}

.caiyun-location-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.caiyun-location-panel {
    position: relative;
    z-index: 10221;
    flex: 1;
    margin: 0;
    width: 100%;
    max-height: 100vh;
    min-height: 0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow: hidden;
}

.caiyun-location-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.caiyun-location-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.caiyun-location-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.caiyun-location-close:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.2);
}

/* 八字式：已选地区一行摘要（田字格上方） */
.caiyun-location-summary-card {
    flex: 0 0 auto;
    align-self: center;
    width: 100%;
    max-width: min(100%, 380px);
    margin: 10px 12px 8px;
    padding: 12px 14px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 38%, #eef2ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 6px 20px rgba(99, 102, 241, 0.1),
        0 2px 6px rgba(15, 23, 42, 0.04);
}

.caiyun-location-summary-path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #5b647c;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(199, 210, 254, 0.9);
}

.caiyun-location-summary-path em {
    font-style: normal;
    color: #a5b4fc;
    font-weight: 700;
}

.caiyun-location-summary-line {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    color: #64748b;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.caiyun-location-summary-line.is-filled {
    color: #3730a3;
    font-weight: 700;
}

/* 田字格：2×2 紧凑高度，不抢占整页剩余空间 */
.caiyun-location-columns.caiyun-location-grid-2x2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px;
    flex: 0 0 auto;
    align-self: center;
    width: 100%;
    max-width: min(100%, 380px);
    min-height: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    background: #94a3b8;
    border-radius: 12px;
    margin: 0 12px 0;
}

.caiyun-loc-col {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.caiyun-loc-col-label {
    flex-shrink: 0;
    padding: 6px 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    color: #334155;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #cbd5e1;
}

.caiyun-loc-cell-btn {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 0 0 7px 7px;
    background: #eceff3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-loc-cell-btn:hover:not(:disabled) {
    background: #e2e7ef;
}

.caiyun-loc-cell-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}

.caiyun-loc-cell-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.caiyun-loc-cell-value {
    font-size: 1.06rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* 底部滑出选择层 */
.caiyun-loc-sheet {
    position: fixed;
    inset: 0;
    z-index: 10225;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

.caiyun-loc-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.caiyun-loc-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.caiyun-loc-sheet.is-open .caiyun-loc-sheet-backdrop {
    opacity: 1;
}

.caiyun-loc-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(68vh, 560px);
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.caiyun-loc-sheet.is-open .caiyun-loc-sheet-panel {
    transform: translateY(0);
}

.caiyun-loc-sheet-grab {
    flex-shrink: 0;
    width: 40px;
    height: 5px;
    margin: 10px auto 6px;
    border-radius: 999px;
    background: #cbd5e1;
}

.caiyun-loc-sheet-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 14px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.caiyun-loc-sheet-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.caiyun-loc-sheet-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
}

.caiyun-loc-sheet-close:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.2);
}

.caiyun-loc-sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

@media (prefers-reduced-motion: reduce) {
    .caiyun-loc-sheet {
        transition: none;
    }

    .caiyun-loc-sheet-backdrop,
    .caiyun-loc-sheet-panel {
        transition: none;
    }

    .caiyun-loc-sheet.is-open .caiyun-loc-sheet-panel {
        transform: translateY(0);
    }
}

.caiyun-loc-empty {
    padding: 14px 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.45;
}

/* 与性别「男/女」按钮同风格的选项 */
.caiyun-loc-item {
    margin: 0;
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    word-break: break-all;
}

.caiyun-loc-item:hover:not(.is-selected) {
    color: #475569;
    background: rgba(255, 255, 255, 0.55);
}

.caiyun-loc-item:active:not(:disabled) {
    transform: scale(0.98);
}

.caiyun-loc-item:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.caiyun-loc-item.is-selected {
    color: #f8fafc;
    font-weight: 700;
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 42%, #4f46e5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 2px rgba(255, 255, 255, 0.2) inset,
        0 4px 12px rgba(79, 70, 229, 0.32),
        0 0 0 1px rgba(99, 102, 241, 0.25);
}

.caiyun-loc-item.is-selected:hover {
    filter: brightness(1.04);
}

.caiyun-location-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 18px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.caiyun-location-btn {
    margin: 0;
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-location-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.caiyun-location-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.caiyun-location-btn--secondary {
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.caiyun-location-btn--secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.caiyun-location-btn--primary {
    border: none;
    color: #f8fafc;
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 42%, #4f46e5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 14px rgba(79, 70, 229, 0.38);
}

.caiyun-location-btn--primary:hover {
    filter: brightness(1.05);
}

@media (max-width: 520px) {
    .caiyun-location-summary-card {
        margin: 8px 10px 6px;
        padding: 10px 12px;
    }

    .caiyun-location-summary-path {
        font-size: 0.78rem;
        margin-bottom: 8px;
        padding: 5px 10px;
    }

    .caiyun-location-summary-line {
        font-size: 1.02rem;
    }

    .caiyun-location-columns.caiyun-location-grid-2x2 {
        max-width: 100%;
        margin: 6px 10px 0;
        padding: 6px 8px;
        gap: 2px;
    }

    .caiyun-loc-col-label {
        padding: 5px 2px;
        font-size: 0.92rem;
    }

    .caiyun-loc-cell-btn {
        min-height: 40px;
        padding: 6px 8px;
    }

    .caiyun-loc-cell-value {
        font-size: 0.98rem;
    }
}

/* 与八字主站一致的出生日期时间与地点（嵌在 .caiyun-birth-form 内） */
.caiyun-birth-form .datetime-group {
    width: 100%;
}

.caiyun-birth-form .caiyun-birth-true-solar-wrap {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}

.caiyun-birth-form .caiyun-birth-true-solar-wrap[hidden] {
    display: none !important;
}

.caiyun-birth-form .caiyun-birth-true-solar-wrap #caiyun-birth-true-solar-text {
    font-variant-numeric: tabular-nums;
}

.caiyun-birth-form label.datetime-merged-heading {
    font-size: 0.95rem;
}

.caiyun-birth-form .readonly-input {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.caiyun-birth-form .readonly-input:hover {
    border-color: #818cf8;
    background: #f8fafc;
}

.caiyun-birth-form .readonly-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* 四级 select 仅作数据载体，不参与排版（LocationSelector 依赖这些 id） */
.caiyun-birth-form .caiyun-loc-offscreen {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none;
}

.caiyun-birth-form .caiyun-loc-group {
    position: relative;
}

.caiyun-records-panel {
    position: relative;
    flex: 1;
    margin: 0;
    background: #f8fafc;
    z-index: 10101;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.caiyun-settings-head,
.caiyun-birth-head,
.caiyun-records-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.caiyun-settings-head h2,
.caiyun-birth-head h2,
.caiyun-records-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.caiyun-settings-close,
.caiyun-birth-close,
.caiyun-records-close {
    border: none;
    background: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #64748b;
}

.caiyun-settings-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
}

.caiyun-member-list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* 成员 / 生成记录 分页 */
.caiyun-pager {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.caiyun-pager--hidden {
    display: none !important;
}

.caiyun-records-panel > .caiyun-pager + .caiyun-records-list + .caiyun-pager {
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.caiyun-settings-body > .caiyun-pager + .caiyun-member-list + .caiyun-pager {
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
}

.caiyun-pager-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 420px;
}

.caiyun-pager-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-pager-btn:hover:not(:disabled) {
    border-color: #f43f5e;
    background: #fff1f2;
    color: #9f1239;
}

.caiyun-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.caiyun-pager-info {
    font-size: 13px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.btn-secondary.caiyun-add-member-btn {
    flex-shrink: 0;
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 2px dashed #94a3b8;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

/* 成员卡片：上信息 + 下按钮行（参考六爻卦录） */
.caiyun-member-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #f8f9fa;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 2px 8px rgba(15, 23, 42, 0.08);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.caiyun-member-card.is-selected {
    border-color: #6366f1;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.35),
        0 2px 10px rgba(99, 102, 241, 0.12);
}

.caiyun-member-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.caiyun-member-info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #fcfdff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-member-seq {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: #64748b;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    user-select: none;
}

.caiyun-member-card.is-selected .caiyun-member-seq {
    color: #6366f1;
}

.caiyun-member-info:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.caiyun-member-line1,
.caiyun-member-line2,
.caiyun-member-line3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.caiyun-member-line1 {
    justify-content: flex-start;
}

.caiyun-member-line2,
.caiyun-member-line3 {
    justify-content: space-between;
}

.caiyun-member-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caiyun-member-gender {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.caiyun-member-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

.caiyun-member-solar {
    font-size: 12px;
    color: #0f172a;
    line-height: 1.4;
}

.caiyun-member-bazi {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.caiyun-member-yxy {
    font-size: 12px;
    font-weight: 600;
    color: #9f1239;
    line-height: 1.4;
}

.caiyun-member-place {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin-left: auto;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caiyun-member-actions-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 8px 8px;
}

.caiyun-member-action-btn {
    border: 1px solid #d7dbe3;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    min-width: 56px;
    cursor: pointer;
    color: #334155;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.caiyun-member-action-btn:hover {
    border-color: #818cf8;
    color: #4338ca;
    background: #eef2ff;
}

.caiyun-member-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99, 102, 241, 0.45);
}

.caiyun-member-btn-delete {
    border-color: rgba(244, 63, 94, 0.45);
    color: #9f1239;
    background: #fff1f2;
}

.caiyun-member-btn-delete:hover {
    border-color: #f43f5e;
    background: #ffe4e6;
    color: #9f1239;
}

.caiyun-birth-form {
    padding: 16px 18px 22px;
}

.caiyun-birth-form .form-group {
    margin-bottom: 14px;
}

.caiyun-birth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.caiyun-birth-form .caiyun-name-gender-row {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.caiyun-birth-form .caiyun-member-name-input {
    flex: 0 1 9.5rem;
    width: auto;
    max-width: 11rem;
    min-width: 6.5rem;
}

.caiyun-birth-form .caiyun-gender-inline {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px;
    gap: 4px;
    border-radius: 12px;
    background: #eceff3;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.caiyun-birth-form .caiyun-gender-btn {
    margin: 0;
    min-width: 52px;
    padding: 8px 16px;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    color: #64748b;
    background: transparent;
    box-shadow: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-birth-form .caiyun-gender-btn:hover:not(.is-selected) {
    color: #475569;
    background: rgba(255, 255, 255, 0.55);
}

.caiyun-birth-form .caiyun-gender-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.caiyun-birth-form .caiyun-gender-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.caiyun-birth-form .caiyun-gender-btn.is-selected {
    color: #f8fafc;
    font-weight: 700;
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 42%, #4f46e5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 2px rgba(255, 255, 255, 0.2) inset,
        0 4px 14px rgba(79, 70, 229, 0.38),
        0 0 0 1px rgba(99, 102, 241, 0.25);
}

.caiyun-birth-form .caiyun-gender-btn.is-selected:hover {
    filter: brightness(1.04);
}

.caiyun-birth-form .caiyun-birth-classic-group {
    margin-top: 2px;
}

.caiyun-birth-form .caiyun-birth-classic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.caiyun-birth-form .caiyun-birth-classic-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.caiyun-birth-form .caiyun-birth-classic-inline {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: stretch;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px;
    gap: 4px;
    border-radius: 12px;
    background: #eceff3;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.caiyun-birth-form .caiyun-birth-classic-btn {
    margin: 0;
    min-width: 72px;
    padding: 8px 18px;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: inherit;
    cursor: pointer;
    color: #64748b;
    background: transparent;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.caiyun-birth-form .caiyun-birth-classic-btn:hover:not(.is-selected) {
    color: #475569;
    background: rgba(255, 255, 255, 0.55);
}

.caiyun-birth-form .caiyun-birth-classic-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.caiyun-birth-form .caiyun-birth-classic-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.caiyun-birth-form .caiyun-birth-classic-btn.is-selected {
    color: #f8fafc;
    font-weight: 700;
    background: linear-gradient(145deg, #818cf8 0%, #6366f1 42%, #4f46e5 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 1px 2px rgba(255, 255, 255, 0.2) inset,
        0 4px 14px rgba(79, 70, 229, 0.38),
        0 0 0 1px rgba(99, 102, 241, 0.25);
}

.caiyun-birth-form .caiyun-birth-classic-btn.is-selected:hover {
    filter: brightness(1.04);
}

.caiyun-birth-form .caiyun-birth-classic-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6366f1;
}

.caiyun-birth-form input[type='text'] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
}

.caiyun-birth-form input[type='text'].caiyun-member-name-input {
    width: auto;
}

.caiyun-records-scope {
    flex-shrink: 0;
    padding: 10px 18px;
    margin: 0;
    font-size: 13px;
    color: #475569;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.caiyun-records-list {
    flex: 1;
    overflow: auto;
    padding: 12px 16px 24px;
}

.caiyun-record-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.caiyun-record-body {
    min-width: 0;
}

.caiyun-record-time {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.caiyun-record-line {
    font-size: 14px;
    color: #0f172a;
    word-break: break-all;
}

/* 删除记录确认浮层 */
.caiyun-record-delete-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.caiyun-record-delete-overlay.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.caiyun-record-delete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.caiyun-record-delete-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    border: 1px solid #e2e8f0;
}

.caiyun-record-delete-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.caiyun-record-delete-msg {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.caiyun-record-delete-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.caiyun-record-delete-cancel,
.caiyun-record-delete-ok {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.caiyun-record-delete-ok {
    border-color: rgba(244, 63, 94, 0.55);
    background: linear-gradient(180deg, #fff 0%, #fff1f2 100%);
    color: #9f1239;
}

.caiyun-record-delete-ok:hover {
    border-color: #f43f5e;
    background: #ffe4e6;
}

.caiyun-records-empty,
.caiyun-records-loading {
    text-align: center;
    color: #64748b;
    padding: 24px;
}

/* 喜木：顶栏淡绿渐变（仅 ximu-page） */
body.caiyun-page.ximu-page .header.liuyao-header-bar.caiyun-header-bar {
    background: linear-gradient(165deg, #f0fdf4 0%, #dcfce7 42%, #bbf7d0 100%);
    border-bottom: 1px solid rgba(22, 163, 74, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 8px 22px rgba(22, 163, 74, 0.08);
    padding-top: env(safe-area-inset-top, 0px);
}

body.caiyun-page.ximu-page .caiyun-header-title,
body.caiyun-page.ximu-page .caiyun-header-bar .liuyao-header-title {
    color: #166534;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 0 16px rgba(74, 222, 128, 0.35),
        0 2px 8px rgba(34, 197, 94, 0.12);
}

body.caiyun-page.ximu-page .caiyun-header-icon-btn {
    color: #166534;
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(255, 255, 255, 0.55);
}

body.caiyun-page.ximu-page a.caiyun-header-icon-btn,
body.caiyun-page.ximu-page a.caiyun-header-icon-btn:visited {
    text-decoration: none;
    color: #166534;
}

body.caiyun-page.ximu-page .caiyun-header-icon-btn:hover {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(255, 255, 255, 0.78);
}

body.caiyun-page.ximu-page .caiyun-header-bar .liuyao-header-toolbar.caiyun-header-toolbar {
    position: relative;
    z-index: 1;
}

/* 喜木首页：点击主内容区勿出现 main 全框描边（与黄金持仓同源问题） */
body.caiyun-page.ximu-page #main-content:focus {
    outline: none;
}

body.caiyun-page.ximu-page #main-content:focus-visible {
    outline: 2px solid rgba(22, 163, 74, 0.45);
    outline-offset: -2px;
}

body.caiyun-page.ximu-page #caiyun-header-title:focus {
    outline: none;
}

/* 喜木：登录浮层配色与首页一致（淡绿 + 绿色主按钮） */
body.caiyun-page.ximu-page .login-overlay {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

body.caiyun-page.ximu-page .login-box {
    background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 48%, #ecfdf5 100%);
    border: 1px solid rgba(22, 163, 74, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 16px 40px rgba(22, 163, 74, 0.14);
}

body.caiyun-page.ximu-page .login-header {
    border-bottom-color: rgba(22, 163, 74, 0.32);
}

body.caiyun-page.ximu-page .login-header h2 {
    color: #166534;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.caiyun-page.ximu-page .login-close:hover {
    color: #15803d;
}

body.caiyun-page.ximu-page .login-box .form-group label {
    color: #14532d;
}

body.caiyun-page.ximu-page .login-box .form-group input {
    border-color: rgba(22, 163, 74, 0.22);
    background: #fff;
}

body.caiyun-page.ximu-page .login-box .form-group input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}

body.caiyun-page.ximu-page .login-box .btn-primary.btn-block,
body.caiyun-page.ximu-page .login-logged-block .btn-primary.btn-block {
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 42%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

body.caiyun-page.ximu-page .login-box .btn-primary.btn-block:hover,
body.caiyun-page.ximu-page .login-logged-block .btn-primary.btn-block:hover {
    filter: brightness(1.04);
}

body.caiyun-page.ximu-page .login-footer p {
    color: #475569;
}

body.caiyun-page.ximu-page .login-footer a {
    color: #15803d;
    font-weight: 600;
}

body.caiyun-page.ximu-page .login-footer a:hover {
    color: #166534;
}

body.caiyun-page.ximu-page .login-box .login-footer {
    margin-top: 28px;
}

body.caiyun-page.ximu-page .login-box .login-footer .login-footer-line {
    text-align: center;
}

body.caiyun-page.ximu-page .logout-confirm-dialog .dialog-bubble {
    border: 1px solid rgba(22, 163, 74, 0.22);
}

body.caiyun-page.ximu-page .logout-confirm-dialog .dialog-header h3 {
    color: #166534;
}

body.caiyun-page.ximu-page .logout-confirm-dialog .btn-dialog-confirm {
    background: linear-gradient(160deg, #4ade80 0%, #22c55e 42%, #15803d 100%);
    border-color: #15803d;
    color: #fff;
}

/* —— 喜木首页 · 紧凑版（ximu-dash） —— */
body.caiyun-page.ximu-page .container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
}

body.caiyun-page.ximu-page .caiyun-main {
    max-width: 100%;
}

body.caiyun-page.ximu-page .ximu-dash {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    gap: 10px;
}

.ximu-kicker-line {
    margin: 0 0 2px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.35;
    color: #15803d;
    background: rgba(240, 253, 244, 0.9);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 8px;
}

body.caiyun-page.ximu-page .header.liuyao-header-bar,
body.caiyun-page.ximu-page .caiyun-footer {
    flex-shrink: 0;
}

.ximu-card {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(22, 163, 74, 0.14);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    min-width: 0;
    max-width: 100%;
}

.ximu-hero {
    padding-bottom: 10px;
}

.ximu-hero-head-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ximu-hero-head-text {
    flex: 1;
    min-width: 0;
}

.ximu-hero-head-row .ximu-hero-actions {
    flex-shrink: 0;
    align-self: center;
}

body.caiyun-page.ximu-page.ximu-dash-overlay-open {
    overflow: hidden;
}

body.caiyun-page.ximu-page .ximu-dash-overlay {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

body.caiyun-page.ximu-page .ximu-dash-overlay[hidden] {
    display: none !important;
}

body.caiyun-page.ximu-page .ximu-dash-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

body.caiyun-page.ximu-page .ximu-dash-overlay__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(94vh, 920px);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

body.caiyun-page.ximu-page .ximu-dash-overlay__bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(22, 163, 74, 0.2);
    background: linear-gradient(165deg, #f0fdf4 0%, #dcfce7 100%);
}

body.caiyun-page.ximu-page .ximu-dash-overlay__close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #166534;
    background: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

body.caiyun-page.ximu-page .ximu-dash-overlay__close:hover {
    background: #fff;
}

body.caiyun-page.ximu-page .ximu-dash-overlay__title {
    flex: 1;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #14532d;
    text-align: center;
    letter-spacing: 0.04em;
    padding-right: 40px;
    box-sizing: border-box;
}

body.caiyun-page.ximu-page .ximu-dash-overlay__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px));
}

body.caiyun-page.ximu-page .ximu-dash-overlay__scroll .ximu-dash-collapsible {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 首页：工具入口上方的当前公历/农历/四柱 */
body.caiyun-page.ximu-page .ximu-home-now {
    flex-shrink: 0;
    margin: 0 0 0;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(165deg, #fff 0%, #f0fdf4 42%, #ecfdf5 100%);
    border: 1px solid rgba(22, 163, 74, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 6px 20px rgba(22, 163, 74, 0.08);
}

body.caiyun-page.ximu-page .ximu-home-now__datetime {
    margin-top: 12px;
    margin-bottom: 0;
    min-height: 82px;
}

body.caiyun-page.ximu-page .ximu-home-now__date-row,
body.caiyun-page.ximu-page .ximu-home-now__clock-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

body.caiyun-page.ximu-page .ximu-home-now__clock-row {
    margin-top: 8px;
}

body.caiyun-page.ximu-page .ximu-home-now__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 163, 74, 0.12);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    color: #14532d;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.caiyun-page.ximu-page .ximu-home-now__chip--jieqi {
    font-size: 0.86rem;
    font-weight: 500;
    color: #15803d;
}

body.caiyun-page.ximu-page .ximu-home-now__chip--jieqi[hidden] {
    display: inline-flex !important;
    visibility: hidden;
}

body.caiyun-page.ximu-page #ximu-home-now-lunar[aria-hidden='true'] {
    visibility: hidden;
}

body.caiyun-page.ximu-page #ximu-home-now-lunar {
    min-width: 4.2em;
}

body.caiyun-page.ximu-page .ximu-home-now__chip--clock {
    padding: 5px 14px;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #15803d;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 253, 244, 0.88) 100%);
    border: 1px solid rgba(22, 163, 74, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 14px rgba(22, 163, 74, 0.1);
    font-feature-settings: 'tnum' 1;
}

body.caiyun-page.ximu-page .ximu-home-now__chip--clock time {
    display: block;
}

@media (max-width: 420px) {
    body.caiyun-page.ximu-page .ximu-home-now__date-row,
    body.caiyun-page.ximu-page .ximu-home-now__clock-row {
        gap: 5px;
    }

    body.caiyun-page.ximu-page .ximu-home-now__chip {
        min-height: 28px;
        padding: 4px 9px;
        font-size: 0.84rem;
    }

    body.caiyun-page.ximu-page .ximu-home-now__chip--clock {
        font-size: 1.12rem;
        padding: 4px 12px;
    }
}

body.caiyun-page.ximu-page .ximu-home-now__sizhu {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0;
    padding: 0;
    border: none;
}

body.caiyun-page.ximu-page .ximu-home-now-pillar {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 163, 74, 0.12);
}

body.caiyun-page.ximu-page .ximu-home-now-pillar__lab {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.06em;
    line-height: 1.15;
}

body.caiyun-page.ximu-page .ximu-home-now-pillar__gz.liuyao-manual-sizhu-inner {
    flex: 0 1 auto;
    min-width: 2.4em;
    min-height: 1.15em;
    text-align: center;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0.06em;
}

@media (max-width: 420px) {
    body.caiyun-page.ximu-page .ximu-home-now__sizhu {
        gap: 6px;
    }

    body.caiyun-page.ximu-page .ximu-home-now-pillar {
        gap: 3px;
        padding: 7px 2px 6px;
    }

    body.caiyun-page.ximu-page .ximu-home-now-pillar__lab {
        font-size: 12px;
    }

    body.caiyun-page.ximu-page .ximu-home-now-pillar__gz.liuyao-manual-sizhu-inner {
        font-size: 16px;
    }
}

body.caiyun-page.ximu-page .ximu-home-wylq {
    padding-top: 5px;
    min-height: 188px;
}

body.caiyun-page.ximu-page .ximu-home-wylq[hidden] {
    display: none;
}

body.caiyun-page.ximu-page .ximu-home-wylq__head {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 10px;
}

body.caiyun-page.ximu-page .ximu-home-wylq__head-left {
    flex: 0 0 3.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 8px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(22, 163, 74, 0.12);
}

body.caiyun-page.ximu-page .ximu-home-wylq__head-right {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(22, 163, 74, 0.12);
}

body.caiyun-page.ximu-page .ximu-home-wylq__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    color: #166534;
    text-align: center;
}

body.caiyun-page.ximu-page .ximu-home-wylq__year {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    text-align: center;
}

body.caiyun-page.ximu-page .ximu-home-wylq__year-line {
    display: block;
}

body.caiyun-page.ximu-page .ximu-home-wylq__suiyun {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(220, 252, 231, 0.92) 100%);
    border: 1px solid rgba(22, 163, 74, 0.28);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
}

body.caiyun-page.ximu-page .ximu-home-wylq__suiyun-badge {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

body.caiyun-page.ximu-page .ximu-home-wylq__suiyun-val {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    color: #14532d;
    letter-spacing: 0.04em;
}

body.caiyun-page.ximu-page .ximu-home-wylq__year-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 1.45em;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.45;
    color: #4d7c0f;
    letter-spacing: 0.02em;
}

body.caiyun-page.ximu-page .ximu-home-wylq__grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.caiyun-page.ximu-page .ximu-home-wylq__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.caiyun-page.ximu-page .ximu-home-wylq-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 4px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(22, 163, 74, 0.1);
    min-width: 0;
}

body.caiyun-page.ximu-page .ximu-home-wylq-item__lab {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #64748b;
    letter-spacing: 0.03em;
    text-align: center;
}

body.caiyun-page.ximu-page .ximu-home-wylq-item__val {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #14532d;
    text-align: center;
    letter-spacing: 0.03em;
    word-break: keep-all;
}

body.caiyun-page.ximu-page .ximu-home-wylq__row[aria-label='五运'] .ximu-home-wylq-item__lab,
body.caiyun-page.ximu-page .ximu-home-wylq__row[aria-label='五运'] .ximu-home-wylq-item__val {
    font-size: 11px;
}

body.caiyun-page.ximu-page .ximu-home-wylq__row[aria-label='五运'] .ximu-home-wylq-item__val {
    font-weight: 600;
    color: #166534;
}

@media (max-width: 420px) {
    body.caiyun-page.ximu-page .ximu-home-wylq-item {
        padding: 6px 2px 5px;
    }

    body.caiyun-page.ximu-page .ximu-home-wylq-item__lab,
    body.caiyun-page.ximu-page .ximu-home-wylq-item__val {
        font-size: 11px;
        letter-spacing: 0.01em;
    }

    body.caiyun-page.ximu-page .ximu-home-wylq-item__lab {
        font-weight: 600;
    }

    body.caiyun-page.ximu-page .ximu-home-wylq__suiyun-val {
        font-size: 0.88rem;
    }
}

body.caiyun-page.ximu-page .ximu-home-wylq__sub-sep {
    margin: 0 0.15em;
    color: rgba(77, 124, 15, 0.55);
}

body.caiyun-page.ximu-page #ximu-home-wylq .ximu-wylq-intro-hit {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(22, 163, 74, 0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

body.caiyun-page.ximu-page #ximu-home-wylq .ximu-wylq-intro-hit:focus-visible {
    outline: 2px solid rgba(22, 163, 74, 0.45);
    outline-offset: 2px;
}

body.caiyun-page.ximu-page #ximu-home-wylq .ximu-wylq-intro-hit:active {
    opacity: 0.92;
}

body.caiyun-page.ximu-page .ximu-home-wylq__sitian-hit,
body.caiyun-page.ximu-page .ximu-home-wylq__zaiquan-hit {
    border-radius: 6px;
    padding: 1px 4px;
}

/* 五运六气简介浮层：底栏之上，不遮挡底部导航 */
.ximu-wylq-intro-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
}

.ximu-wylq-intro-overlay.is-open {
    display: flex;
}

.ximu-wylq-intro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.ximu-wylq-intro-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    max-height: min(72vh, 560px);
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    box-sizing: border-box;
}

.ximu-wylq-intro-overlay.is-open .ximu-wylq-intro-sheet {
    transform: translate3d(0, 0, 0);
}

.ximu-wylq-intro-head {
    position: relative;
    flex-shrink: 0;
    padding: 10px 44px 10px 14px;
    border-bottom: 1px solid rgba(22, 163, 74, 0.12);
    box-sizing: border-box;
}

.ximu-wylq-intro-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: #14532d;
    line-height: 1.35;
}

.ximu-wylq-intro-close {
    position: absolute;
    top: 6px;
    right: 8px;
    margin: 0;
    padding: 0;
    width: 2em;
    height: 2em;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ximu-wylq-intro-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
}

.ximu-wylq-intro-table-wrap {
    padding: 0;
}

.ximu-wylq-intro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
    color: #1f2937;
}

.ximu-wylq-intro-table th,
.ximu-wylq-intro-table td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
}

.ximu-wylq-intro-table th {
    width: 4.8em;
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.ximu-wylq-intro-divider td {
    padding: 10px 12px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #e5e7eb;
    text-align: center;
}

body.caiyun-page.ximu-page .ximu-dash-launch-row {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    margin: 0;
    padding: 18px 14px 24px;
    border-radius: 16px;
    background: linear-gradient(165deg, #fff 0%, #f0fdf4 42%, #ecfdf5 100%);
    border: 1px solid rgba(22, 163, 74, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 6px 20px rgba(22, 163, 74, 0.08);
}

body.caiyun-page.ximu-page .ximu-dash-launch-apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: center;
    gap: 12px 14px;
    max-width: 100%;
}

body.caiyun-page.ximu-page.ximu-embed-overlay-open {
    overflow: hidden;
}

body.caiyun-page.ximu-page .ximu-embed-overlay.ximu-dash-overlay {
    z-index: 10085;
}

body.caiyun-page.ximu-page .ximu-embed-overlay .ximu-dash-overlay__panel,
body.caiyun-page.ximu-page .ximu-embed-overlay__panel {
    max-width: none;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
}

body.caiyun-page.ximu-page .ximu-embed-overlay__frame-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #e2e8f0;
}

body.caiyun-page.ximu-page .ximu-embed-frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.ximu-hero-member-detail-wrap {
    margin-bottom: 0;
}

.ximu-hero-member-detail-wrap[hidden] {
    display: none !important;
}

.ximu-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
}

.ximu-hero-rizhi {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
    letter-spacing: 0.02em;
}

.ximu-soft {
    font-weight: 600;
    font-size: 0.85em;
    color: #64748b;
}

.ximu-hero-yxy {
    margin: 4px 0 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.ximu-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ximu-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.ximu-pill--ghost {
    color: #166534;
    background: #fff;
    border: 1px solid rgba(22, 163, 74, 0.4);
    box-shadow: none;
}

.ximu-inline-bazi-wrap {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 4px;
}
.ximu-inline-bazi-wrap .ximu-inline-bazi {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
}
.ximu-inline-bazi-wrap .ximu-flow-reset-all {
    flex: 0 0 auto;
    align-self: center;
    min-height: 32px;
    padding: 4px 10px;
}
.ximu-inline-bazi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f172a;
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ximu-ilab {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.ximu-idot {
    color: #cbd5e1;
    font-weight: 400;
    padding: 0 2px;
}

.ximu-igz--day {
    color: #b45309;
}

.ximu-igz--dayun {
    margin-left: 10px;
    color: #475569;
    letter-spacing: 0.04em;
}

button.ximu-inline-time-pick {
    margin: 0;
    padding: 0 2px;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}
button.ximu-inline-time-pick:hover {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}
button.ximu-inline-time-pick.is-picked {
    color: #15803d;
    box-shadow: inset 0 -2px 0 rgba(34, 197, 94, 0.55);
}
button.ximu-inline-time-pick:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.ximu-energy-line-wrap {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 55%, #ecfdf5 100%);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ximu-energy-line-wrap .ximu-energy-line {
    margin: 0;
}

.ximu-energy-line {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}

.ximu-energy-max {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.92em;
}

.ximu-energy-delta {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
}

.ximu-micro-label {
    margin: 12px 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
}

.ximu-micro-hint {
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0;
}

/* 流年月日时解读：始终展示 */
body.caiyun-page.ximu-page .ximu-flow-details {
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.caiyun-page.ximu-page .ximu-flow-details-heading {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

body.caiyun-page.ximu-page .ximu-flow-details-body {
    padding: 0 12px 12px;
}

body.caiyun-page.ximu-page .ximu-flow-fortune {
    margin: 0;
    padding: 10px 0 0;
}

body.caiyun-page.ximu-page .ximu-flow-fortune .ximu-sec-title {
    margin-top: 0;
}

body.caiyun-page.ximu-page .ximu-flow-row .liuyao-manual-sizhu-slot .ximu-flow-shishen {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: #475569;
    text-align: center;
    letter-spacing: 0.04em;
}

body.caiyun-page.ximu-page .ximu-flow-row .liuyao-manual-sizhu-slot.ximu-flow-slot {
    pointer-events: auto;
    cursor: pointer;
    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

body.caiyun-page.ximu-page .ximu-flow-row .liuyao-manual-sizhu-slot.ximu-flow-slot:hover {
    border-color: rgba(22, 163, 74, 0.45);
    background: rgba(240, 253, 244, 0.65);
}

body.caiyun-page.ximu-page .ximu-flow-row .liuyao-manual-sizhu-slot.ximu-flow-slot:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(34, 197, 94, 0.65);
}

body.caiyun-page.ximu-page .ximu-flow-row .liuyao-manual-sizhu-slot.ximu-flow-slot.is-ximu-flow-active {
    border-color: rgba(22, 163, 74, 0.55);
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

body.caiyun-page.ximu-page .ximu-sizhu-embed.caiyun-sizhu-section {
    margin-bottom: 0;
}

body.caiyun-page.ximu-page .ximu-hero > .caiyun-sizhu-section.ximu-sizhu-embed {
    margin-top: 12px;
}

body.caiyun-page.ximu-page .ximu-sizhu-embed .liuyao-manual-sizhu-row {
    border-top: none;
    padding-top: 0;
}

body.caiyun-page.ximu-page .ximu-flow-toolbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 0;
    align-items: stretch;
}
body.caiyun-page.ximu-page .ximu-flow-toolbar__cell {
    min-height: 0;
    display: flex;
    justify-content: center;
}
body.caiyun-page.ximu-page .ximu-pillar-picker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
body.caiyun-page.ximu-page .ximu-pillar-picker-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
body.caiyun-page.ximu-page .ximu-pillar-picker-btn.is-active {
    border-color: #22c55e;
    background: #ecfdf5;
    color: #15803d;
}
body.caiyun-page.ximu-page .ximu-pillar-picker-btn:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* 甲子/时柱浮层：vendor 默认 z-index:1001，低于喜木设置/删除确认等，须抬高 */
body.caiyun-page #liuyao-jiazi-picker-overlay.liuyao-jiazi-picker-overlay,
body.caiyun-page .liuyao-jiazi-picker-overlay {
    z-index: 100120;
}
body.caiyun-page .liuyao-jiazi-picker-overlay[style*='display: flex'],
body.caiyun-page .liuyao-jiazi-picker-overlay[style*='display:flex'] {
    pointer-events: auto;
}
body.caiyun-page .liuyao-jiazi-picker-backdrop {
    z-index: 0;
    background: rgba(15, 23, 42, 0.45);
}
body.caiyun-page .liuyao-jiazi-picker-box {
    z-index: 1;
    position: relative;
}

.ximu-sec-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #14532d;
    letter-spacing: 0.03em;
}

.ximu-sec-sub {
    font-weight: 600;
    font-size: 11px;
    color: #94a3b8;
    margin-left: 4px;
}

.ximu-one-liner {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #1e293b;
}

/* 总运卡：长文论述 */
#ximu-fortune-card .ximu-sec-title {
    font-size: 0.92rem;
    line-height: 1.4;
}

body.caiyun-page.ximu-page #ximu-fortune-liner {
    font-weight: 500;
    line-height: 1.65;
    font-size: 13px;
}

.ximu-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ximu-cap {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
}

.ximu-cap--ok {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.ximu-cap--no {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid rgba(234, 88, 12, 0.35);
}

.ximu-luck-strip {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.ximu-luck-k {
    font-weight: 800;
    color: #14532d;
    margin-right: 6px;
}

.ximu-chart-wrap {
    position: relative;
    margin-top: 4px;
}

.ximu-spark {
    display: block;
    width: 100%;
    height: 72px;
    border-radius: 8px;
}

.ximu-spark-markers {
    position: relative;
    height: 18px;
    margin-top: 2px;
    font-size: 10px;
    color: #64748b;
}

.ximu-spark-markers span {
    position: absolute;
    transform: translateX(-50%);
    font-weight: 700;
}

.ximu-chart-foot {
    margin: 6px 0 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

.ximu-dom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

@media (min-width: 400px) {
    .ximu-dom-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ximu-dom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ximu-dom-n {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.ximu-dom-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.ximu-dom-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #86efac 0%, #22c55e 100%);
    border-radius: 999px;
}

.ximu-dom-v {
    font-size: 11px;
    font-weight: 800;
    color: #14532d;
    min-width: 1.5em;
    text-align: right;
}

.ximu-card--doi {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 12px;
}

/* 流时宜忌每条内：格局（.ximu-doi-unified-core）与宜忌之间 */
.ximu-doi-unified-state {
    margin-bottom: 10px;
    padding: 8px 11px 10px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.ximu-doi-unified-state-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #15803d;
    opacity: 0.9;
}

.ximu-doi-unified-state-liner {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    color: #0f172a;
}

.ximu-card--doi-unified {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #ecfdf5 100%);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.ximu-doi-unified-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.ximu-doi-extremes-summary {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #334155;
}

.ximu-doi-extremes-summary[hidden] {
    display: none !important;
}

/* 单容器：隐藏滚动条；每条为「干支+钟点 | 核心 | 宜|忌」 */
.ximu-doi-scroll {
    --ximu-doi-view-h: 300px;
    position: relative;
    box-sizing: border-box;
    height: var(--ximu-doi-view-h);
    max-height: 52vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ximu-doi-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ximu-doi-scroll--unified {
    border-color: rgba(100, 116, 139, 0.35);
}

.ximu-doi-unified-item {
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: var(--ximu-doi-view-h);
    padding: 12px 12px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.ximu-doi-unified-item:last-child {
    border-bottom: none;
}

.ximu-doi-unified-item.is-ximu-doi-current {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.9) 0%, rgba(255, 255, 255, 0.55) 100%);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.ximu-doi-unified-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ximu-doi-unified-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.ximu-doi-unified-head-left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65em;
    min-width: 0;
    flex: 1 1 auto;
}

.ximu-doi-unified-day-tag {
    display: inline-block;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.ximu-doi-unified-day-tag--best {
    color: #14532d;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.ximu-doi-unified-day-tag--worst {
    color: #9a3412;
    background: rgba(251, 191, 36, 0.22);
    border: 1px solid rgba(234, 88, 12, 0.28);
}

.ximu-doi-unified-item.is-ximu-doi-day-best {
    box-shadow: inset 3px 0 0 0 rgba(34, 197, 94, 0.55);
}

.ximu-doi-unified-item.is-ximu-doi-day-worst {
    box-shadow: inset 3px 0 0 0 rgba(234, 88, 12, 0.45);
}

.ximu-doi-unified-gz {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0f172a;
}

.ximu-doi-unified-tr {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.ximu-doi-unified-core {
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(238, 242, 255, 0.65);
}

.ximu-doi-unified-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.ximu-doi-unified-col {
    box-sizing: border-box;
    min-width: 0;
    padding: 8px 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: #fff;
}

.ximu-doi-unified-col--yi {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 70%);
}

.ximu-doi-unified-col--ji {
    border-color: rgba(234, 88, 12, 0.28);
    background: linear-gradient(180deg, #fffbeb 0%, #fff 70%);
}

.ximu-doi-unified-col--neutral-ji .ximu-doi-unified-col-body {
    color: #94a3b8;
    font-weight: 600;
}

.ximu-doi-unified-col-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 0.2em;
}

.ximu-doi-unified-col--yi .ximu-doi-unified-col-title {
    color: #15803d;
}

.ximu-doi-unified-col--ji .ximu-doi-unified-col-title {
    color: #c2410c;
}

.ximu-doi-unified-col-body {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: #334155;
    word-break: break-word;
}

.ximu-h4 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: #14532d;
}

.ximu-more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 2px 0 4px;
}

.ximu-more-btn {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    background: #fff;
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.ximu-more-btn--ghost {
    color: #64748b;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ximu-fold {
    padding: 0;
    overflow: hidden;
}

.ximu-fold-sum {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    list-style: none;
}

.ximu-fold-sum::-webkit-details-marker {
    display: none;
}

.ximu-fold[open] .ximu-fold-sum {
    border-bottom: 1px solid #f1f5f9;
}

.ximu-prose {
    padding: 10px 14px 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.ximu-prose p {
    margin: 0 0 8px;
}

.ximu-prose p:last-child {
    margin-bottom: 0;
}

.ximu-now-hint {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #334155;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
}

body.caiyun-page.ximu-page .ximu-insight.caiyun-insight {
    margin: 0;
    border-radius: 0 0 12px 12px;
}




/* 流时宜忌：加高视口、宜忌列留白（覆盖上文同名选择器） */
.ximu-doi-scroll {
    --ximu-doi-view-h: 400px;
    height: var(--ximu-doi-view-h);
    max-height: min(400px, 58vh);
}

.ximu-doi-unified-split {
    gap: 12px;
    min-height: 5.5em;
}

.ximu-doi-unified-col {
    padding: 10px 11px 14px;
}

.ximu-doi-unified-col-body {
    line-height: 1.5;
    padding-bottom: 2px;
}

/* --- ximu 气运指数（patch-qiyun-scroll） --- */
.ximu-qiyun-root {
    margin-top: 6px;
    min-width: 0;
    max-width: 100%;
}
.ximu-qiyun-placeholder {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}
.ximu-qiyun-slot-grid {
    display: grid;
    grid-template-columns: repeat(var(--qiyun-cols, 12), minmax(0, 1fr));
    width: 100%;
    margin-top: 4px;
    column-gap: 0;
}

.ximu-qiyun-slot-grid--scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ximu-qiyun-hscroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    cursor: grab;
    margin: 0 -4px;
    padding: 0 4px 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* 横向长图只在壳内滚动，不把 min-content 宽度传给 flex 祖先（搬迁后独立页小屏必加） */
    contain: inline-size;
    isolation: isolate;
}

.ximu-qiyun-hscroll--dragging {
    cursor: grabbing;
    user-select: none;
}

.ximu-qiyun-hscroll .ximu-qiyun-chart-strip,
.ximu-qiyun-hscroll .ximu-qiyun-chart-wrap,
.ximu-qiyun-hscroll .ximu-qiyun-svg,
.ximu-qiyun-hscroll .ximu-qiyun-scores-layer,
.ximu-qiyun-hscroll .ximu-qiyun-dots-layer {
    touch-action: pan-x;
}

.ximu-qiyun-hscroll-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(var(--qiyun-cols, 7) * 44px);
    max-width: none;
}

.ximu-qiyun-hscroll-inner .ximu-qiyun-chart-strip {
    width: 100%;
    flex: 0 0 auto;
}

.ximu-qiyun-chart-strip {
    grid-column: 1 / -1;
}

.ximu-qiyun-chart-cell {
    grid-column: 1 / -1;
}

.ximu-qiyun-labels-row {
    display: contents;
}

.ximu-qiyun-slot-grid:not(.ximu-qiyun-slot-grid--scroll) .ximu-qiyun-labels-row {
    display: contents;
}

/* 小屏：勿用 display:contents，否则 Safari 等会把宽标签行算进页面 min-width */
.ximu-qiyun-slot-grid--scroll .ximu-qiyun-labels-row {
    display: grid;
    grid-template-columns: repeat(var(--qiyun-cols, 7), 44px);
    width: 100%;
    flex: 0 0 auto;
}

.ximu-qiyun-lab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.ximu-qiyun-lab-main {
    display: block;
    line-height: 1.15;
}

.ximu-qiyun-lab-sub {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.1;
    margin-top: 1px;
}

.ximu-qiyun-lab-sub2 {
    margin-top: 0;
    font-size: 8px;
    font-weight: 600;
    opacity: 0.92;
}

.ximu-qiyun-lab--current .ximu-qiyun-lab-sub,
.ximu-qiyun-lab--current .ximu-qiyun-lab-sub2 {
    color: #166534;
}

.ximu-qiyun-chart-wrap {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    height: 88px;
}

.ximu-qiyun-svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* 折线区横向拉伸；圆点在 HTML 层保持正圆 */
    overflow: visible;
}

.ximu-qiyun-scores-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ximu-qiyun-score {
    position: absolute;
    transform: translate(-50%, 6px);
    font-size: 8px;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ximu-qiyun-score--current {
    font-size: 8.5px;
    font-weight: 800;
}

.ximu-qiyun-dots-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ximu-qiyun-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-sizing: border-box;
    border: 1px solid #fff;
    pointer-events: none;
}

.ximu-qiyun-dot--node {
    width: 5.6px;
    height: 5.6px;
}

.ximu-qiyun-dot--current.ximu-qiyun-dot--node {
    width: 8.4px;
    height: 8.4px;
    border-width: 1.2px;
}

.ximu-qiyun-dot--marker {
    border-style: solid;
    border-color: #fff;
}

.ximu-qiyun-dot--glow-g {
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.75), 0 0 10px rgba(34, 197, 94, 0.35);
}

.ximu-qiyun-dot--glow-r {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.75), 0 0 10px rgba(239, 68, 68, 0.35);
}

.ximu-qiyun-dot-hit {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    z-index: 3;
}

.ximu-qiyun-dot-hit:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(34, 197, 94, 0.45);
    border-radius: 50%;
}

.ximu-qiyun-current-band {
    fill: rgba(34, 197, 94, 0.14);
    stroke: rgba(22, 163, 74, 0.22);
    stroke-width: 1;
}

.ximu-qiyun-lab {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.2;
}

.ximu-qiyun-lab--click {
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    padding: 4px 0;
    margin-top: 2px;
    transition:
        color 0.12s ease,
        background 0.12s ease,
        box-shadow 0.12s ease;
}

.ximu-qiyun-lab--current {
    color: #14532d;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.1) 100%);
    box-shadow:
        0 0 0 1px rgba(22, 163, 74, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    font-weight: 800;
}

.ximu-qiyun-lab--click:hover {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.ximu-qiyun-lab--current.ximu-qiyun-lab--click:hover {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0.14) 100%);
}

.ximu-qiyun-lab--click:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(34, 197, 94, 0.45);
}

/* --- 气运格局详析（替代流时宜忌） --- */
.ximu-card--geju {
    margin-top: 0;
}

.ximu-geju-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.ximu-geju-breakdown-root {
    min-height: 120px;
}

.ximu-geju-placeholder {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.ximu-geju-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.ximu-geju-head-main {
    flex: 1;
    min-width: 0;
}

.ximu-geju-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #14532d;
    line-height: 1.35;
}

.ximu-geju-sub {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.ximu-geju-meta {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: #166534;
    line-height: 1.35;
}

.ximu-geju-total {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ximu-geju-total-lab {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.ximu-geju-total-num {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ximu-geju-total--pos .ximu-geju-total-num {
    color: #16a34a;
}

.ximu-geju-total--neg .ximu-geju-total-num {
    color: #dc2626;
}

.ximu-geju-struct {
    margin-top: 10px;
}

.ximu-geju-struct-lab {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}

.ximu-geju-struct-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ximu-geju-struct-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    line-height: 1.3;
}

.ximu-geju-group {
    margin-top: 12px;
}

.ximu-geju-group-title {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ximu-geju-group--pos .ximu-geju-group-title {
    color: #15803d;
}

.ximu-geju-group--neg .ximu-geju-group-title {
    color: #b91c1c;
}

.ximu-geju-group-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ximu-geju-part {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.4;
}

.ximu-geju-part--pos {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.16);
}

.ximu-geju-part--neg {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.14);
}

.ximu-geju-part-score {
    flex-shrink: 0;
    min-width: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ximu-geju-part--pos .ximu-geju-part-score {
    color: #16a34a;
}

.ximu-geju-part--neg .ximu-geju-part-score {
    color: #dc2626;
}

.ximu-geju-part-reason {
    flex: 1;
    min-width: 0;
    color: #334155;
    font-weight: 600;
}

/*ximu-paipan-launch*/
body.caiyun-page.ximu-page .ximu-paipan-launch{width:100%;display:flex;align-items:center;gap:14px;padding:13px 15px;border-radius:16px;cursor:pointer;text-align:left;font:inherit;color:#14532d;background:linear-gradient(135deg,#fff 0%,#f0fdf4 48%,#d1fae5 100%);border:1px solid rgba(22,163,74,.32);box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 8px 22px rgba(22,163,74,.12);transition:box-shadow .14s ease}body.caiyun-page.ximu-page .ximu-paipan-launch:hover{box-shadow:0 1px 0 #fff inset,0 10px 28px rgba(22,163,74,.16)}body.caiyun-page.ximu-page .ximu-paipan-launch:focus-visible{outline:2px solid #22c55e;outline-offset:2px}body.caiyun-page.ximu-page .ximu-paipan-launch--open{border-color:rgba(22,163,74,.45)}body.caiyun-page.ximu-page .ximu-paipan-launch__icon-wrap{flex-shrink:0;width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(155deg,#4ade80 0%,#16a34a 52%,#15803d 100%);box-shadow:0 4px 14px rgba(22,163,74,.38)}body.caiyun-page.ximu-page .ximu-paipan-launch__icon{width:26px;height:26px}body.caiyun-page.ximu-page .ximu-paipan-launch__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}body.caiyun-page.ximu-page .ximu-paipan-launch__title{font-size:1.05rem;font-weight:800;letter-spacing:.04em}body.caiyun-page.ximu-page .ximu-paipan-launch__hint{font-size:11px;font-weight:600;color:#166534;opacity:.88}body.caiyun-page.ximu-page .ximu-paipan-launch__chev{flex-shrink:0;width:10px;height:10px;border-right:2.5px solid #15803d;border-bottom:2.5px solid #15803d;transform:rotate(45deg);margin-right:4px;opacity:.75;transition:transform .18s ease}body.caiyun-page.ximu-page .ximu-paipan-launch--open .ximu-paipan-launch__chev{transform:rotate(-135deg);margin-top:4px}body.caiyun-page.ximu-page .ximu-dash-collapsible[hidden]{display:none!important}body.caiyun-page.ximu-page .ximu-dash-collapsible:not([hidden]){display:flex;flex-direction:column;gap:10px}

/*ximu-paipan-app*/
body.caiyun-page.ximu-page .ximu-dash-launch-row{display:flex;flex:0 0 auto;flex-direction:column;justify-content:flex-start;min-height:0;margin:0;padding:18px 10px 24px}body.caiyun-page.ximu-page .ximu-paipan-app{display:flex;flex-direction:column;align-items:center;gap:8px;width:88px;padding:0;border:none;background:transparent;cursor:pointer;font:inherit;color:#14532d;-webkit-tap-highlight-color:transparent}body.caiyun-page.ximu-page a.ximu-paipan-app{text-decoration:none;color:#14532d}body.caiyun-page.ximu-page a.ximu-paipan-app:visited{color:#14532d}body.caiyun-page.ximu-page .ximu-paipan-app:focus{outline:none}body.caiyun-page.ximu-page .ximu-paipan-app:focus-visible{outline:2px solid #22c55e;outline-offset:4px;border-radius:12px}body.caiyun-page.ximu-page .ximu-paipan-app__icon{width:64px;height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(160deg,#4ade80 0%,#22c55e 45%,#15803d 100%);box-shadow:0 6px 18px rgba(22,163,74,.35),0 1px 0 rgba(255,255,255,.35) inset;font-size:0}body.caiyun-page.ximu-page .ximu-paipan-app__icon svg{width:34px;height:34px}body.caiyun-page.ximu-page .ximu-paipan-app__label{font-size:13px;font-weight:800;letter-spacing:.06em;line-height:1.25;text-align:center;color:#166534}body.caiyun-page.ximu-page .ximu-paipan-app--open .ximu-paipan-app__icon{box-shadow:0 4px 14px rgba(22,163,74,.28),0 0 0 2px rgba(22,163,74,.35) inset}

/*ximu-overlay-fullscreen-no-bar*/
body.caiyun-page.ximu-page .ximu-dash-overlay{justify-content:stretch!important}body.caiyun-page.ximu-page .ximu-dash-overlay__backdrop{z-index:1}body.caiyun-page.ximu-page .ximu-dash-overlay__panel{z-index:2;flex:1;min-height:0;max-height:none!important;height:100%;width:100%;max-width:none!important;border-radius:0!important;margin:0!important;box-shadow:none!important}body.caiyun-page.ximu-page .ximu-dash-overlay__scroll{padding-top:calc(8px + env(safe-area-inset-top,0px))}body.caiyun-page.ximu-page .ximu-dash-overlay__bar{display:none!important}body.caiyun-page.ximu-page .ximu-dash-overlay__close{display:none!important}body.caiyun-page.ximu-page .ximu-dash-overlay__title{display:none!important}
