/* 命理测算前台门户样式 —— 白底 + 淡蓝主色，布局/图标/导航精致化，零外部依赖 */
:root {
    --primary: #2b70de;
    --primary-light: #eef4fd;
    --primary-hover: #1f5ec4;
    --text: #1f2329;
    --text-sub: #6b7480;
    --border: #e8ebf0;
    --bg: #ffffff;
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部栏 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
}

.brand::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 8px;
    vertical-align: 2px;
}

.btn-login, .user-link {
    font-size: 14px;
    color: var(--primary);
    padding: 6px 16px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.btn-login:hover, .user-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- 首屏 ---------- */
.site-main { flex: 1; }

body { display: flex; flex-direction: column; min-height: 100vh; }

.hero {
    text-align: center;
    padding: 72px 20px 40px;
}

.hero-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text);
}

.hero-sub {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
    letter-spacing: 1px;
}

/* ---------- 流派卡片 ---------- */
.schools { padding-bottom: 32px; }

.section-title {
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-sub);
    letter-spacing: 2px;
    margin: 16px 0 28px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.school-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px 18px;
    transition: all 0.22s ease;
    cursor: pointer;
}

.school-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(43, 112, 222, 0.12);
    transform: translateY(-3px);
}

.school-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}

.school-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.school-intro {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.school-arrow {
    font-size: 13px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.school-card:hover .school-arrow { opacity: 1; }

/* ---------- 建设中提示 ---------- */
.coming { padding-bottom: 56px; text-align: center; }

.coming-line {
    font-size: 13px;
    color: #b3bac3;
    letter-spacing: 1px;
}

/* ---------- 流派详情页 ---------- */
.school-detail { padding-top: 32px; }

.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.back-link:hover { color: var(--primary); }

.detail-head { text-align: center; padding: 24px 0 40px; }

.school-badge.big {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 34px;
    margin: 0 auto 20px;
}

.detail-name {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.detail-intro {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.8;
}

.building-tip {
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    margin-bottom: 56px;
}

.building-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.building-sub {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    padding: 10px 32px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.btn-primary:hover { background: var(--primary-hover); }

/* ---------- 页脚 ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: #b3bac3;
    letter-spacing: 1px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
    .hero { padding: 48px 16px 28px; }

    .hero-title { font-size: 30px; letter-spacing: 3px; }

    .hero-sub { font-size: 13px; }

    .school-grid { grid-template-columns: 1fr; gap: 14px; }

    .school-card { padding: 20px 18px 16px; }

    .mobile-br { display: none; }
}

/* ---------- 顶部栏登录态 ---------- */
.header-nav { display: flex; align-items: center; gap: 16px; }

.user-logout { font-size: 14px; color: var(--text-sub); transition: color 0.2s ease; }

.user-logout:hover { color: #c52222; }

/* ---------- 认证与表单卡片（登录/注册/档案表单） ---------- */
.auth { display: flex; justify-content: center; padding: 64px 16px 80px; }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 34px 30px;
}

.auth-title { text-align: center; font-size: 22px; font-weight: 600; letter-spacing: 2px; }

.auth-sub { text-align: center; font-size: 13px; color: var(--text-sub); margin: 10px 0 26px; }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }

.field input, .field select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.field input:focus, .field select:focus { border-color: var(--primary); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-sub);
    margin: 4px 0 20px;
    cursor: pointer;
}

.remember input { width: 15px; height: 15px; accent-color: var(--primary); }

.btn-block {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 12px 0;
    margin-top: 4px;
}

.auth-alt { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 22px; }

.auth-alt a { color: var(--primary); }

.auth-alt a:hover { text-decoration: underline; }

.form-error {
    background: #fdf0f0;
    border: 1px solid #f2c9c9;
    color: #c52222;
    border-radius: 10px;
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

/* ---------- 个人中心 ---------- */
.center { padding-top: 40px; padding-bottom: 80px; }

.center-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.center-title { font-size: 26px; font-weight: 600; letter-spacing: 1px; }

.center-sub { font-size: 13px; color: var(--text-sub); margin-top: 8px; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.profile-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: all 0.22s ease;
}

.profile-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(43, 112, 222, 0.10);
    transform: translateY(-3px);
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.profile-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f2f3f5;
    color: #6b7480;
}

.profile-badge.rel-me { background: #eef4fd; color: #2b70de; }
.profile-badge.rel-spouse { background: #fdeee9; color: #c96a3f; }
.profile-badge.rel-son { background: #eaf7ef; color: #2e9e5b; }
.profile-badge.rel-daughter { background: #fdeef3; color: #c2507e; }
.profile-badge.rel-father { background: #eef3f7; color: #54708c; }
.profile-badge.rel-mother { background: #f3eefa; color: #7b5bb5; }

.profile-actions { display: flex; align-items: center; gap: 12px; }

.profile-actions a { font-size: 13px; color: var(--text-sub); transition: color 0.2s ease; }

.profile-actions a:hover { color: var(--primary); }

.inline-form { display: inline; }

.link-del {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: color 0.2s ease;
}

.link-del:hover { color: #c52222; }

.profile-name { font-size: 18px; font-weight: 600; margin-bottom: 12px; }

.profile-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px 14px;
    font-size: 13px;
}

.profile-meta dt { color: #b3bac3; }

.profile-meta dd { color: var(--text); }

.empty {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 56px 24px;
    text-align: center;
}

.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

.empty-sub { font-size: 13px; color: var(--text-sub); margin-bottom: 22px; }

/* ---------- 移动端补充 ---------- */
@media (max-width: 640px) {
    .auth { padding: 40px 16px 56px; }

    .auth-card { padding: 28px 22px 24px; }

    .field-row { grid-template-columns: 1fr; gap: 0; }

    .center { padding-top: 28px; padding-bottom: 56px; }

    .profile-grid { grid-template-columns: 1fr; gap: 14px; }

    .center-head { margin-bottom: 20px; }
}

/* ---------- 八字排盘 ---------- */
.bazi { padding-top: 32px; padding-bottom: 80px; }

.bazi-head { text-align: center; padding: 8px 0 32px; }

.bazi-head .profile-badge { display: inline-block; margin-bottom: 12px; }

.bazi-title { font-size: 26px; font-weight: 600; letter-spacing: 2px; }

.bazi-sub { margin-top: 10px; font-size: 13px; color: var(--text-sub); letter-spacing: 1px; }

.bazi-section { margin-bottom: 36px; }

.bazi-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

/* 四柱盘面 */
.bazi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.bazi-col {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px 16px;
    text-align: center;
    transition: all 0.22s ease;
}

.bazi-col:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(43, 112, 222, 0.10); }

.bazi-col-title { font-size: 12px; color: #b3bac3; letter-spacing: 2px; margin-bottom: 10px; }

.bazi-ganzhi { font-size: 28px; font-weight: 600; letter-spacing: 4px; color: var(--text); }

.bazi-wx { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 8px 0 4px; }

.bazi-wx i { font-style: normal; color: #c3c9d4; font-size: 12px; }

.wx-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 1px 8px;
    line-height: 1.6;
}

.wx-mini {
    font-style: normal;
    font-size: 11px;
    color: #8a93a3;
    margin-left: 2px;
    background: #f3f5f8;
    border-radius: 6px;
    padding: 0 4px;
}

.bazi-shishen { font-size: 13px; color: var(--primary); margin: 10px 0 12px; }

.bazi-hide { display: flex; flex-direction: column; gap: 6px; }

.bazi-hide-title { font-size: 11px; color: #b3bac3; letter-spacing: 1px; margin-bottom: 2px; }

.bazi-hide-item {
    font-size: 13px;
    color: var(--text-sub);
    background: var(--primary-light);
    border-radius: 8px;
    padding: 4px 6px;
}

.bazi-hide-item em {
    font-style: normal;
    color: var(--primary);
    margin-left: 6px;
    font-size: 12px;
}

/* 五行 / 喜用 / 起运 */
.bazi-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
}

.bazi-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.bazi-card-title { font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 14px; }

.bazi-text { font-size: 14px; line-height: 1.9; color: var(--text); }

.bazi-note { margin-top: 10px; font-size: 12px; color: #b3bac3; }

.wx-bars { display: flex; flex-direction: column; gap: 10px; }

.wx-row { display: flex; align-items: center; gap: 10px; }

.wx-name { width: 20px; font-size: 13px; text-align: center; }

.wx-track {
    flex: 1;
    height: 10px;
    background: #f2f3f5;
    border-radius: 999px;
    overflow: hidden;
}

.wx-bar { height: 100%; border-radius: 999px; transition: width 0.4s ease; }

.wx-count { width: 20px; font-size: 13px; color: var(--text-sub); text-align: right; }

.wx-木 { background: #5fae82; color: #3d8a63; }
.wx-火 { background: #e58a6b; color: #c96a3f; }
.wx-土 { background: #d2ab6a; color: #a9823f; }
.wx-金 { background: #b9a186; color: #8d7458; }
.wx-水 { background: #6fa3d9; color: #4a7ec5; }

/* 大运 */
.dayun-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.dayun-item {
    min-width: 168px;
    max-width: 168px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    flex-shrink: 0;
}

.dayun-item.current { border-color: var(--primary); box-shadow: 0 6px 20px rgba(43, 112, 222, 0.14); }

.dayun-years { font-size: 12px; color: #b3bac3; margin-bottom: 8px; }

.dayun-ganzhi { font-size: 20px; font-weight: 600; letter-spacing: 2px; }

.dayun-shi { font-size: 12px; color: var(--primary); margin: 6px 0 10px; }

.dayun-score { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.score-track { flex: 1; height: 6px; background: #f2f3f5; border-radius: 999px; overflow: hidden; }

.score-bar { height: 100%; background: var(--primary); border-radius: 999px; }

.dayun-score span { font-size: 12px; color: var(--text-sub); }

.dayun-memo { font-size: 12px; line-height: 1.7; color: var(--text-sub); }

/* 流年 */
.liunian-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.liunian-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.liunian-table th {
    background: #f7f9fc;
    color: var(--text-sub);
    font-weight: 500;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.liunian-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f2f4f7;
    text-align: center;
    white-space: nowrap;
}

.liunian-table tr:last-child td { border-bottom: none; }

.liunian-table tr.current td {
    background: var(--primary-light);
    font-weight: 600;
}

.ln-ganzhi { color: var(--primary); font-weight: 600; }

.ln-words { color: var(--text-sub); }

.bazi-form { margin-top: 16px; }

.link-paipan {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.link-paipan:hover { text-decoration: underline; }

.bazi-head-actions { margin-top: 18px; }

/* ---------- 首页功能入口 ---------- */
.mini-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.mini-link em { font-style: normal; font-size: 12px; color: var(--primary); }

.mini-link:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(43, 112, 222, 0.12); }

.mini-link.disabled { color: #b3bac3; cursor: default; }

.mini-link.disabled em { color: #b3bac3; }

.mini-link.disabled:hover { border-color: var(--border); box-shadow: none; }

/* ---------- 择日吉时 ---------- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 26px 16px 20px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.event-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(43, 112, 222, 0.12);
    transform: translateY(-3px);
}

.event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
}

.event-name { font-size: 17px; font-weight: 600; }

.event-arrow { font-size: 12px; color: var(--primary); opacity: 0; transition: opacity 0.2s ease; }

.event-card:hover .event-arrow { opacity: 1; }

.pick-card {
    min-width: 240px;
    max-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    flex-shrink: 0;
}

.pick-card:first-child { border-color: var(--primary); box-shadow: 0 8px 24px rgba(43, 112, 222, 0.14); }

.pick-date { display: flex; align-items: baseline; gap: 8px; }

.pick-date b { font-size: 22px; font-weight: 600; }

.pick-date span { font-size: 12px; color: #b3bac3; }

.pick-lunar { font-size: 12px; color: var(--text-sub); margin: 6px 0 12px; }

.pick-score { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.pick-score b { font-size: 24px; font-weight: 600; color: var(--text); }

.score-level.flat { background: #f2f3f5; color: #6b7480; }

.pick-reason { font-size: 12px; line-height: 1.7; color: var(--text-sub); margin-bottom: 12px; }

.pick-yi, .pick-ji { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--text-sub); }

.pick-ji { margin-top: 4px; }

/* ---------- 禁忌提醒 ---------- */
.taboo-list { display: flex; flex-direction: column; gap: 12px; }

.taboo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all 0.2s ease;
}

.taboo-item:hover { border-color: var(--primary); }

.taboo-item.level-2 { border-color: #f0b6b6; background: #fff7f7; }

.taboo-item.level-1 { border-color: #f0dcae; background: #fffbf2; }

.taboo-left { display: flex; flex-direction: column; gap: 6px; min-width: 44px; }

.taboo-cat {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    padding: 3px 8px;
    text-align: center;
}

.taboo-level {
    font-size: 12px;
    color: #6b7480;
    background: #f2f3f5;
    border-radius: 8px;
    padding: 3px 8px;
    text-align: center;
}

.taboo-item.level-2 .taboo-level { background: #fdecec; color: #c52222; }

.taboo-item.level-1 .taboo-level { background: #fdf3e0; color: #b0821f; }

.taboo-content { flex: 1; font-size: 14px; line-height: 1.9; color: var(--text); }

/* ---------- 命理详批 ---------- */
.interpret-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.interpret-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: all 0.2s ease;
}

.interpret-card:hover { border-color: var(--primary); }

.interpret-card.wide { grid-column: span 2; }

.interpret-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.interpret-text { font-size: 14px; line-height: 2; color: var(--text); }

@media (max-width: 640px) {
    .interpret-grid { grid-template-columns: 1fr; }

    .interpret-card.wide { grid-column: span 1; }

    .interpret-card { padding: 16px 16px 14px; }
}

/* ---------- 移动端择日 ---------- */
@media (max-width: 640px) {
    .event-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .event-card { padding: 20px 10px 16px; }

    .pick-card { min-width: 210px; max-width: 210px; }
}

/* ---------- 每日运势 ---------- */
.daily-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.daily-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: all 0.22s ease;
}

.daily-card.today { border-color: var(--primary); box-shadow: 0 8px 24px rgba(43, 112, 222, 0.14); }

.daily-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.daily-day { display: block; font-size: 16px; font-weight: 600; }

.daily-lunar { display: block; font-size: 12px; color: #b3bac3; margin-top: 4px; }

.daily-today {
    font-size: 12px;
    color: #fff;
    background: var(--primary);
    border-radius: 999px;
    padding: 3px 12px;
}

.daily-score { display: flex; gap: 18px; margin-bottom: 14px; }

.daily-score-num { display: flex; flex-direction: column; align-items: center; min-width: 76px; }

.daily-score-num b { font-size: 34px; font-weight: 600; color: var(--text); line-height: 1.1; }

.score-level { font-size: 12px; margin-top: 4px; padding: 2px 10px; border-radius: 999px; }

.score-level.up { background: #eaf7ef; color: #2e9e5b; }
.score-level.mid { background: #eef4fd; color: #2b70de; }
.score-level.down { background: #fdf0f0; color: #c52222; }

.daily-wx { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.daily-wx-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); }

.daily-wx-row span { width: 28px; }

.daily-wx-row i { flex: 1; height: 6px; background: #f2f3f5; border-radius: 999px; overflow: hidden; }

.daily-wx-row i b { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

.daily-wx-row em { width: 22px; font-style: normal; text-align: right; }

.daily-lucky {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--text-sub);
    padding: 10px 12px;
    background: #f7f9fc;
    border-radius: 10px;
    margin-bottom: 14px;
}

.daily-lucky-item { display: flex; align-items: center; gap: 6px; }

.lucky-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.daily-notice { font-size: 13px; line-height: 1.8; }

.daily-yi, .daily-ji { display: flex; align-items: flex-start; gap: 8px; }

.daily-ji { margin-top: 6px; }

.tag {
    flex-shrink: 0;
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 6px;
    margin-top: 1px;
}

.tag-yi { background: #eaf7ef; color: #2e9e5b; }

.tag-ji { background: #fdf0f0; color: #c52222; }

/* ---------- 移动端每日运势 ---------- */
@media (max-width: 640px) {
    .daily-grid { grid-template-columns: 1fr; gap: 12px; }

    .daily-card { padding: 16px 16px 14px; }

    .mini-links { gap: 10px; }
}

/* ---------- 移动端排盘 ---------- */
@media (max-width: 640px) {
    .bazi { padding-top: 24px; }

    .bazi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

    .bazi-col { padding: 14px 6px 12px; min-width: 0; }

    .bazi-ganzhi { font-size: 22px; letter-spacing: 2px; }

    .bazi-info-grid { grid-template-columns: 1fr; }

    .bazi-title { font-size: 22px; }

    .dayun-item { min-width: 150px; max-width: 150px; }
}

/* ---------- 管理员代算 ---------- */
.manage-search { display: flex; gap: 12px; margin-bottom: 28px; }

.manage-search input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.manage-search input:focus { border-color: var(--primary); }

.manage-search .btn-primary { border: none; cursor: pointer; padding: 10px 30px; }

.manage-owner {
    font-size: 12px;
    color: #b3bac3;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.manage-act {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.manage-act:hover { border-color: var(--primary); color: var(--primary); }

.manage-act.main { background: var(--primary); border-color: var(--primary); color: #fff; }

.manage-act.main:hover { background: var(--primary-hover); color: #fff; }

.manage-act.muted { color: #b3bac3; cursor: default; }

.manage-act.muted:hover { border-color: var(--border); color: #b3bac3; }

.badge-proxy {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fdf3e0;
    color: #b0821f;
    margin-left: 8px;
}

@media (max-width: 640px) {
    .manage-search input { height: 40px; }

    .manage-search .btn-primary { padding: 9px 22px; }

    .manage-owner { max-width: 45%; }
}

/* 代算：排序切换 + 置顶 */
.manage-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -14px 0 18px;
    font-size: 13px;
}

.manage-sort-label { color: #8a93a3; }

.manage-sort {
    color: var(--text);
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    line-height: 1.6;
}

.manage-sort:hover { border-color: var(--primary); color: var(--primary); }

.manage-sort.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.manage-sort-note { color: #8a93a3; font-size: 12px; }

.manage-pin-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fdf3e0;
    color: #b0821f;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    z-index: 1;
}

.profile-card.pinned { border-color: #e8c982; background: #fffdf6; }

.manage-pin-form { margin-top: 12px; }

.manage-pin-btn {
    width: 100%;
    font-size: 12px;
    padding: 6px 0;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #fff;
    color: #8a93a3;
    cursor: pointer;
}

.manage-pin-btn:hover { border-color: #e8b93e; color: #b0821f; }

.manage-pin-btn.on { border-style: solid; border-color: #e8b93e; background: #fdf6e3; color: #b0821f; }

.profile-card { position: relative; }

/* ===== 阴宅风水 ===== */
.yinz-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.yinz-tab {
    font-size: 14px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.yinz-tab:hover { border-color: var(--primary); color: var(--primary); }

.yinz-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.yinz-panel { display: none; }

.yinz-panel.active { display: block; }

.yinz-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

.yinz-row { display: flex; flex-wrap: wrap; gap: 10px; }

.yinz-field { display: flex; flex-direction: column; gap: 4px; }

.yinz-field .fs-year-input { width: 100%; min-width: 96px; box-sizing: border-box; }

.yinz-card { border-radius: 12px; padding: 14px 16px; margin: 12px 0; }

.yinz-card-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }

.yinz-ming { background: #f3f7fd; border: 1px solid #d9e6fb; }

.yinz-ming-main { font-size: 18px; font-weight: 700; color: var(--primary); }

.yinz-yi { background: #f0f9f0; border: 1px solid #d5ecd5; }

.yinz-yi .yinz-card-title { color: #2e7d32; }

.yinz-ji { background: #fdf2f0; border: 1px solid #f8dcd6; }

.yinz-ji .yinz-card-title { color: #d4412a; }

.yinz-dir {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.yinz-dir:last-child { border-bottom: none; }

.yinz-dir b { font-size: 15px; }

.yinz-dir span { font-size: 13px; color: var(--text-sub); line-height: 1.6; }

.yinz-summary { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }

.yinz-sum-yi, .yinz-sum-ji {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.8;
}

.yinz-sum-yi { background: #f0f9f0; border: 1px solid #d9efd9; }

.yinz-sum-ji { background: #fdf2f0; border: 1px solid #f8dcd6; }

.yinz-sum-yi b, .yinz-sum-ji b { display: block; margin-bottom: 4px; }

.yinz-sum-yi b { color: #2e7d32; }
.yinz-sum-ji b { color: #d4412a; }

.yinz-sum-yi p, .yinz-sum-ji p { margin: 0; color: var(--text); }

@media (max-width: 640px) {
    .yinz-row { gap: 8px; }

    .yinz-field { flex: 1 1 40%; }
}

/* 阴宅多图选择 */
.yz-photo-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.yz-photo-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbfd;
}

.yz-photo-thumb {
    width: 88px;
    height: 66px;
    object-fit: cover;
    border-radius: 8px;
    flex: none;
}

.yz-photo-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }

.yz-photo-name {
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yz-photo-info .fs-year-input { width: 100%; box-sizing: border-box; }

.yz-photo-del {
    font-size: 12px;
    color: #d4412a;
    cursor: pointer;
    width: fit-content;
}

.yz-photo-del:hover { text-decoration: underline; }

/* 阴宅结果多图展示 */
.fs-result-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fs-result-photos img {
    width: 46%;
    flex: 1 1 40%;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-height: 220px;
    object-fit: cover;
}

/* ===== 紫微斗数 ===== */
.sihua { display: inline-block; margin-right: 8px; }

.zw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(116px, auto);
    gap: 8px;
}

.zw-cell {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.zw-cell.soul { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }

.zw-cell.body { border-color: #b9a4e8; }

.zw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }

.zw-name { font-size: 14px; font-weight: 600; color: var(--text); }

.zw-cell.soul .zw-name { color: var(--primary); }

.zw-cell.body .zw-name { color: #7b5bb5; }

.zw-ganzhi { font-size: 12px; color: #b3bac3; }

.zw-major { font-size: 15px; font-weight: 600; color: #d4412f; line-height: 1.35; word-break: keep-all; }

.zw-minor { font-size: 12px; color: var(--text); line-height: 1.4; min-height: 17px; word-break: keep-all; }

.zw-adj { font-size: 11px; color: #9aa3b2; line-height: 1.4; word-break: keep-all; }

.zw-daxian { font-size: 12px; color: #7b5bb5; }

.zw-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }

.zw-score { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; flex-shrink: 0; }

.zw-score.hi { background: #fdeaea; color: #d4412f; }

.zw-score.mid { background: #eef4fd; color: var(--primary); }

.zw-score.lo { background: #f3f4f6; color: #8a93a3; }

.zw-sanfang { font-size: 11px; color: #b3bac3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zw-memo { font-size: 12px; color: #8a93a3; line-height: 1.4; }

@media (max-width: 640px) {
    .zw-grid { grid-auto-rows: auto; gap: 6px; }

    .zw-cell { padding: 8px; }

    .zw-name { font-size: 13px; }

    .zw-major { font-size: 14px; }

    .zw-minor { font-size: 11px; }

    .zw-daxian { font-size: 11px; }

    .zw-memo { font-size: 11px; }
}

/* ===== 六爻排盘 ===== */
.liuyao-board {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.liuyao-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.liuyao-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f7f9fc;
    border-radius: 8px;
}

.liuyao-name { font-size: 13px; color: #8a93a3; width: 44px; flex-shrink: 0; }

.liuyao-yao {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 2px;
}

.liuyao-yao.yang { color: #d4412f; }

.liuyao-yao.yin { color: var(--primary); }

.liuyao-yao.empty { color: #c3c9d4; font-weight: 400; }

.liuyao-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.liuyao-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.liuyao-score-num { font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1; }

/* 装卦表 */
.liuyao-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.liuyao-table .liuyao-row {
    background: #f7f8fc;
    border-left: 3px solid transparent;
}

.liuyao-table .liuyao-row.shi { border-left-color: #d4412a; background: #fdf4f3; }

.liuyao-table .liuyao-row.ying { border-left-color: var(--primary); background: #eef4fd; }

.ly-liushen { font-size: 12px; color: #7b5bb5; width: 40px; flex-shrink: 0; }

.ly-liuqin { font-size: 13px; font-weight: 600; color: var(--text); width: 52px; flex-shrink: 0; }

.ly-yao { font-size: 15px; color: #2a2f38; letter-spacing: 2px; width: 84px; flex-shrink: 0; }

.ly-zhi { font-size: 12px; color: #8a93a3; flex: 1; }

.ly-tag em {
    font-style: normal;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    margin-right: 4px;
    background: #eef4fd;
    color: var(--primary);
}

.ly-tag em.dong { background: #fdeaea; color: #d4412a; }

.ly-bian { font-size: 12px; color: #b9a186; flex-shrink: 0; }

@media (max-width: 640px) {
    .liuyao-board { padding: 12px; }

    .liuyao-row { gap: 8px; padding: 7px 10px; }

    .ly-liushen { width: 34px; }

    .ly-liuqin { width: 46px; }

    .ly-yao { width: 68px; }

    .ly-bian { font-size: 11px; }
}
}

/* ===== 梅花易数 ===== */
.mh-rule {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #4a5160;
    line-height: 1.8;
}

.mh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.mh-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.mh-name { font-size: 16px; font-weight: 700; color: var(--primary); margin: 6px 0; }

.mh-tiyong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 10px 0 14px;
}

.mh-ti,
.mh-yong {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px;
    min-width: 108px;
}

.mh-ti { border-color: #d4412a; }

.mh-yong { border-color: var(--primary); }

.mh-ti b, .mh-yong b { font-size: 20px; color: var(--text); }

.mh-ti em, .mh-yong em { font-style: normal; font-size: 12px; color: #8a93a3; }

.mh-arrow { font-size: 22px; color: #b3bac3; }

.mh-tag {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7380;
}

.mh-ti .mh-tag { background: #fdeaea; color: #d4412a; }

.mh-yong .mh-tag { background: #eef4fd; color: var(--primary); }

@media (max-width: 640px) {
    .mh-grid { grid-template-columns: 1fr; }

    .mh-tiyong { gap: 10px; }

    .mh-ti, .mh-yong { padding: 12px 16px; min-width: 92px; }
}
}

/* ===== 姓名学 ===== */
.name-form { max-width: 400px; margin: 0 auto; }

.name-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.name-cell {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}

.name-cell h3 { font-size: 13px; color: #8a93a3; margin: 0 0 6px; font-weight: 500; }

.name-cell b { font-size: 26px; color: var(--primary); display: block; line-height: 1.2; }

.name-cell p { font-size: 11px; color: #6b7380; margin: 6px 0 0; line-height: 1.5; }

.name-cell .score-level { font-size: 11px; }

@media (max-width: 640px) {
    .name-grid { grid-template-columns: repeat(2, 1fr); }
}
}

/* ===== 奇门遁甲 ===== */
.qimen-intro { color: var(--text); }

.qimen-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 4px; }

.qimen-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.qimen-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.qimen-bar em { display: block; font-style: normal; font-size: 11px; color: #8a93a3; margin-bottom: 4px; }

.qimen-bar b { font-size: 15px; color: var(--text); }

.qm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.qm-cell {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qm-cell.zhiFu { border-color: #d4412a; background: #fdf4f3; }

.qm-cell.zhiShi { border-color: var(--primary); background: #eef4fd; }

.qm-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    font-size: 12px;
    color: #8a86a3;
    flex-wrap: wrap;
}

.qm-tag { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 6px; }

.qm-tag.zf { background: #d4412a; color: #fff; }

.qm-tag.zs { background: var(--primary); color: #fff; }

.qm-palace { font-size: 13px; font-weight: 600; color: var(--primary); }

.qm-star { font-size: 13px; color: var(--text); margin: 2px 0; }

.qm-door { font-size: 12px; color: #8a93a3; }

.qm-gan { font-size: 14px; font-weight: 700; color: #d4412a; }

.qm-gan b { font-size: 18px; }

.qm-flag { font-style: normal; font-size: 10px; color: #6b7380; margin-left: 2px; }

@media (max-width: 640px) {
    .qimen-bars { grid-template-columns: repeat(3, 1fr); }

    .qm-cell { padding: 8px 4px; min-height: 100px; }

    .qm-gan b { font-size: 16px; }
}

/* ===== 择日范围切换 ===== */
.almanac-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

.almanac-range form { margin: 0; }

.range-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

.range-btn:hover { border-color: var(--primary); color: var(--primary); }

.range-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 择日吉日网格（替代横向滚动）===== */
.almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.almanac-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 4px;
}

.pager-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.pager-btn:hover { border-color: var(--primary); color: var(--primary); }

.pager-btn.disabled { opacity: .45; pointer-events: none; }

.pager-info { font-size: 13px; color: #8a93a3; }

@media (max-width: 640px) {
    .almanac-grid { grid-template-columns: 1fr; }
}

/* ===== 风水看图 ===== */
.fs-form { display: flex; flex-direction: column; gap: 16px; }

.fs-scenes { display: flex; flex-wrap: wrap; gap: 8px; }

.fs-group-label { font-size: 13px; color: var(--text-sub); margin-bottom: 6px; }

.fs-group-label em { font-style: normal; font-size: 12px; color: #8a93a3; margin-left: 8px; }

.fs-orient span { padding: 5px 12px; font-size: 13px; }

.fs-year-input {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    width: 160px;
    outline: none;
}

.fs-year-input:focus { border-color: var(--primary); }

.fs-scene { cursor: pointer; }

.fs-scene input { display: none; }

.fs-scene span {
    display: inline-block;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 14px;
    transition: all .2s;
}

.fs-scene input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }

.fs-scene span:hover { border-color: var(--primary); color: var(--primary); }

.fs-scene input:checked + span:hover { color: #fff; }

.fs-upload {
    border: 2px dashed #c9d4e5;
    border-radius: 12px;
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
    background: #fafbfd;
    transition: all .2s;
}

.fs-upload:hover { border-color: var(--primary); background: #f3f7fd; }

.fs-upload b { display: block; font-size: 16px; color: var(--text); margin-bottom: 6px; }

.fs-upload span { font-size: 12px; color: #8a93a3; }

#fs-photo { display: none; }

.fs-preview {
    max-width: 100%;
    max-height: 320px;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: contain;
    align-self: center;
}

.fs-error {
    background: #fdf4f3;
    border: 1px solid #f3c7c1;
    color: #c0392b;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.fs-result-photo { text-align: center; margin-bottom: 16px; }

.fs-result-photo img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 12px;
    border: 1px solid var(--border);
    object-fit: contain;
}

.fs-total { text-align: center; margin: 18px 0 6px; }

.fs-total-num { font-size: 44px; font-weight: 700; color: var(--primary); margin-right: 6px; }

.fs-total-label { font-size: 14px; color: #8a93a3; }

.fs-summary { font-size: 15px; color: var(--text); text-align: center; padding: 0 8px; }

.fs-list { margin: 0; padding-left: 20px; }

.fs-list li { margin: 8px 0; font-size: 14px; color: var(--text); line-height: 1.7; }

.fs-advices li::marker { color: var(--primary); }

.fs-taboos li::marker { color: #d4412a; }

.fs-actions { display: flex; gap: 10px; justify-content: center; margin: 22px 0 8px; flex-wrap: wrap; }

.fs-btn-ghost { background: #fff; color: var(--primary); }

/* 阴宅逝者信息区块 */
.fs-xm-block { display: flex; flex-direction: column; gap: 8px; }

.fs-sub-label { font-size: 12px; color: #8a93a3; margin-top: 2px; }

.fs-xm-block .fs-year-input { width: 100%; max-width: 320px; box-sizing: border-box; }

/* 阴宅推荐坐向卡片 */
.fs-direction { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }

.fs-direction-row {
    display: flex; gap: 10px; padding: 10px 14px; border-radius: 10px;
    font-size: 14px; line-height: 1.7; align-items: flex-start;
}

.fs-direction-row b { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }

.fs-direction-yi { background: #f0f9f0; }
.fs-direction-yi b { background: #dff2df; color: #2e7d32; }
.fs-direction-yi span { color: #1f3a1f; }

.fs-direction-ji { background: #fdf2f0; }
.fs-direction-ji b { background: #fadfd9; color: #d4412a; }
.fs-direction-ji span { color: #3a1f1f; }

/* 阴宅适合哪种人 */
.fs-suitable {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f3f7fd;
    border: 1px solid #d9e6fb;
    font-size: 14px;
    line-height: 1.7;
}

.fs-suitable b {
    flex: none;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #dceafc;
    color: #2b70de;
}
<<<<<<< HEAD

/* ==========================================================
/* ==========================================================
   首页封面 · 青空（浅色大气版 2026-10）
   白底淡蓝基调，布局/图标/导航细节精致化，零外部依赖
   ========================================================== */
body:has(.home-cover) { background: #f7faff; }

.home-cover {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        radial-gradient(1200px 520px at 50% -10%, rgba(43, 112, 222, 0.10), transparent 62%),
        radial-gradient(800px 420px at 88% 14%, rgba(212, 175, 106, 0.10), transparent 55%),
        linear-gradient(180deg, #eef5ff 0%, #f7faff 52%, #ffffff 100%);
}

/* 淡蓝尘点 */
.hc-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 22%, rgba(43,112,222,.35), transparent 100%),
        radial-gradient(1px 1px at 16% 12%, rgba(43,112,222,.25), transparent 100%),
        radial-gradient(1.5px 1.5px at 26% 34%, rgba(43,112,222,.22), transparent 100%),
        radial-gradient(1px 1px at 34% 8%, rgba(212,175,106,.45), transparent 100%),
        radial-gradient(1.5px 1.5px at 44% 26%, rgba(43,112,222,.3), transparent 100%),
        radial-gradient(1px 1px at 55% 14%, rgba(43,112,222,.2), transparent 100%),
        radial-gradient(1.5px 1.5px at 63% 40%, rgba(43,112,222,.26), transparent 100%),
        radial-gradient(1px 1px at 72% 18%, rgba(212,175,106,.4), transparent 100%),
        radial-gradient(1px 1px at 12% 58%, rgba(43,112,222,.18), transparent 100%),
        radial-gradient(1px 1px at 46% 66%, rgba(43,112,222,.22), transparent 100%),
        radial-gradient(1.5px 1.5px at 84% 70%, rgba(43,112,222,.2), transparent 100%);
}

/* 光晕（极淡） */
.hc-glow { position: absolute; border-radius: 50%; filter: blur(56px); pointer-events: none; }
.hc-glow-a {
    width: 420px; height: 420px;
    top: -120px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(43, 112, 222, 0.12), transparent 70%);
    animation: hc-breathe 9s ease-in-out infinite alternate;
}
.hc-glow-b {
    width: 520px; height: 520px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, rgba(212, 175, 106, 0.10), transparent 70%);
}
@keyframes hc-breathe {
    from { opacity: 0.6; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* 太极（淡雅） */
.hc-taiji {
    position: absolute;
    width: 180px; height: 180px;
    top: 104px; right: 5%;
    opacity: 0.16;
    animation: hc-rotate 46s linear infinite;
    pointer-events: none;
}
@keyframes hc-rotate { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.home-cover .hero { position: relative; z-index: 2; padding: 84px 20px 34px; }
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    color: #b8860b;
    margin-bottom: 20px;
    opacity: .9;
}
.home-cover .hero-title {
    font-size: clamp(42px, 7vw, 66px);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    background: linear-gradient(180deg, #1d3b6b 0%, #2b70de 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}
.home-cover .hero-sub {
    font-size: clamp(14px, 2vw, 17px);
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    color: #5a6b85;
}
.hero-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin: 26px auto 18px; max-width: 320px;
}
.hero-divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(43,112,222,.5)); }
.hero-divider span:last-child { background: linear-gradient(90deg, rgba(43,112,222,.5), transparent); }
.hero-divider i {
    width: 7px; height: 7px; transform: rotate(45deg);
    background: #b8860b;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}
.hero-hint { font-size: 13px; letter-spacing: 0.28em; text-indent: 0.28em; color: #8a94a8; }

/* ---------- 六派卡片：白底精致 ---------- */
.home-cover .schools { position: relative; z-index: 2; padding-bottom: 34px; }
.home-cover .school-card {
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(43, 60, 120, 0.07);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-cover .school-card:hover {
    transform: translateY(-5px);
    border-color: #2b70de;
    box-shadow: 0 18px 40px rgba(43, 112, 222, 0.14);
}
.home-cover .school-badge {
    background: linear-gradient(135deg, #e9f2ff, #c7ddff);
    color: #1f5fc4;
    box-shadow: 0 6px 14px rgba(43, 112, 222, 0.18);
}
.home-cover .school-name { color: #1f2f52; }
.home-cover .school-intro { color: #6f7a8c; }
.home-cover .school-arrow { color: #2b70de; }
.home-cover .school-card:hover .school-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: #1f5fc4;
}

/* ---------- 快捷入口 ---------- */
.home-cover .coming { position: relative; z-index: 2; padding-bottom: 56px; }
.home-cover .mini-link {
    background: #ffffff;
    border: 1px solid #dbe7f5;
    color: #33415e;
    border-radius: 999px;
    transition: all .22s ease;
}
.home-cover .mini-link:hover {
    border-color: #2b70de;
    color: #2b70de;
    box-shadow: 0 8px 20px rgba(43, 112, 222, 0.12);
}
.home-cover .mini-link em { color: #2b70de; }

/* ==========================================================
   全站浅色精致增强（2026-10）
   ========================================================== */
/* 顶部栏：白玻璃 + 细阴影 */
.site-header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(30, 50, 90, 0.05);
}
.brand::before {
    background: linear-gradient(135deg, #4b8df0, #2b70de);
    box-shadow: 0 2px 6px rgba(43, 112, 222, 0.45);
}

/* 主按钮：淡蓝渐变 */
.btn-primary {
    background: linear-gradient(135deg, #4f8df0, #2b70de) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(43, 112, 222, 0.22);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5f9ff5, #2564d8) !important;
    box-shadow: 0 8px 20px rgba(43, 112, 222, 0.30);
}

/* 输入控件聚焦微光 */
input:focus, select:focus, textarea:focus {
    border-color: #2b70de !important;
    box-shadow: 0 0 0 3px rgba(43, 112, 222, 0.10) !important;
}

/* 通用卡片 hover 精致化 */
[class*="card"] { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
[class*="card"]:hover {
    border-color: #c4d9f5;
    box-shadow: 0 10px 26px rgba(43, 60, 120, 0.10);
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd8ea; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b8c2de; }
::-webkit-scrollbar-track { background: transparent; }

/* 表格表头浅蓝 */
.table thead th { color: #5a6b85; background: #f7f9fd; border-bottom-color: #e3e9f2; }

/* 标签/徽章 */
.wx-tag, .tag, .badge { background: #eef4ff !important; color: #2b70de !important; }

/* 六爻 / 梅花 起卦板（保持浅色、增强层次） */
.liuyao-board { background: #ffffff; box-shadow: 0 10px 26px rgba(43, 60, 120, 0.08); }
.mh-rule { background: #f5f8fd; color: #4a5160; }
.interpret-text { color: #1f2329 !important; }
.liuyao-row { background: #f7f9fc !important; }
.liuyao-name { color: #8a93a3 !important; }
.liuyao-yao { color: #1f2329 !important; }
.liuyao-yao.yang { color: #d4412f !important; }
.liuyao-yao.yin { color: #2b70de !important; }
.liuyao-yao.empty { color: #c3c9d4 !important; }
.mh-card { background: #ffffff !important; border: 1px solid #e8eef6 !important; color: #1f2329 !important; }

/* 代算置顶卡片：淡金 */
.profile-card.pinned {
    background: linear-gradient(135deg, #fdf9ef, #fbf3e2) !important;
    border-color: #ecd9ab !important;
}
.profile-card.pinned .profile-meta dt { color: #8a7b35 !important; }
.profile-card.pinned .profile-meta dd { color: #5a4a24 !important; }

/* 首页未登录态登录按钮：淡蓝描边（与全站一致） */
body:has(.home-cover) .btn-login {
    color: #2b70de;
    border-color: #2b70de;
    background: #ffffff;
}
body:has(.home-cover) .btn-login:hover {
    background: #2b70de;
    color: #fff;
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
    .home-cover .hero { padding: 56px 16px 22px; }
    .hc-taiji { width: 120px; height: 120px; top: 92px; right: 2%; }
    .hero-eyebrow { font-size: 11px; letter-spacing: .35em; text-indent: .35em; }
    .home-cover .hero-title { letter-spacing: .16em; text-indent: .16em; }
    .home-cover .hero-sub { letter-spacing: .22em; text-indent: .22em; }
    .home-cover .coming { padding-bottom: 40px; }
}
=======
>>>>>>> 736c08dac1066ac89d97d587137853bef9e2d559
