@charset "utf-8";
/* ===================================================================
   中华取名免费算命 - 现代式响应式布局
   红金配色 · 现代卡片 · 全设备自适应
   断点：<360px 小手机 | 360-479px 手机 | 480-767px 大屏手机
         768-1023px 平板 | 1024-1399px PC | ≥1400px 大屏PC
   =================================================================== */

/* ===================== 全局 Reset ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --primary: #c0392b;
    --primary-dark: #8b1a1a;
    --primary-light: #e74c3c;
    --gold: #d4a017;
    --gold-light: #f1c40f;
    --gold-bg: #fff8e6;
    --text-main: #2c2c2c;
    --text-secondary: #666;
    --text-light: #999;
    --bg-page: #f7f7f7;
    --bg-card: #ffffff;
    --border-color: #eee;
    --border-light: #f5f5f5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
}

html, body { width: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
                 "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-main);
    background: var(--bg-page);
    min-height: 100vh;
    padding-bottom: 60px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
a:active { opacity: 0.85; }

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }

ul, ol { list-style: none; }

/* ===================== 顶部 Header ===================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(192,57,43,0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.logo .seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: bold;
    border-radius: 8px;
    font-family: "SimSun", "STSong", serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.slogan {
    display: none;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.25);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s;
    flex-shrink: 0;
}
.menu-toggle:active {
    background: rgba(255,255,255,0.12);
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== 抽屉菜单 ===================== */
.menu-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    backdrop-filter: blur(2px);
}
.menu-mask.show {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -85%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 100;
    transition: right .35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.side-menu.open {
    right: 0;
}
.menu-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 22px 18px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
}
.menu-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: bold;
    border-radius: 8px;
    font-family: "SimSun", "STSong", serif;
}
.menu-close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 34px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: background .2s;
    font-weight: 300;
}
.menu-close:active {
    background: rgba(255,255,255,0.15);
}
.menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    transition: background .15s;
    position: relative;
}
.menu-item:active {
    background: #f8f8f8;
}
.menu-icon {
    font-size: 20px;
    margin-right: 14px;
    width: 28px;
    text-align: center;
}
.menu-text {
    flex: 1;
    font-weight: 500;
}
.menu-hot, .menu-new {
    font-size: 10px;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.4;
}
.menu-hot { background: var(--primary); }
.menu-new { background: var(--gold); }

.menu-group-title {
    padding: 16px 20px 8px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
}
.menu-footer {
    flex-shrink: 0;
    padding: 16px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}
.menu-copy {
    color: #ccc;
    margin-top: 2px;
}

/* ===================== 主导航（平板/PC） ===================== */
.mainnav {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mainnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2px;
    padding: 0 20px;
}
.mainnav a {
    color: var(--text-secondary);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}
.mainnav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.mainnav a:active {
    opacity: 1;
    background: #fef5f4;
}

/* ===================== 主内容区 ===================== */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

/* 行布局 */
.row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.col-main { flex: 1; min-width: 0; }
.col-side { width: 100%; }

/* ===================== 卡片 Card ===================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-title {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: -3px;
}
.card-title span { flex: 1; }
.card-body { padding: 14px 16px; }
.card-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    background: #fafafa;
}

/* ===================== 表单 Form ===================== */
.form-table {
    width: 100%;
    border-collapse: collapse;
}
.form-table th,
.form-table td {
    padding: 8px 6px;
    text-align: left;
    vertical-align: middle;
}
.form-table th {
    width: 90px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}
.form-table input[type="text"],
.form-table input[type="number"],
.form-table input[type="tel"],
.form-table select,
.form-table textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.form-table input[type="radio"],
.form-table input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: -2px;
}
.form-table label {
    margin-right: 16px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions {
    text-align: center;
    padding: 16px 0 4px;
}
.form-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    text-align: center;
}

/* ===================== 按钮 Button ===================== */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    text-align: center;
    user-select: none;
}
.btn:active {
    transform: translateY(1px);
}
.btn-red {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(192,57,43,0.3);
}
.btn-red:hover {
    color: #fff;
    box-shadow: 0 5px 14px rgba(192,57,43,0.4);
}
.btn-red:active {
    box-shadow: 0 2px 5px rgba(192,57,43,0.3);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(212,160,23,0.3);
}
.btn-gold:hover {
    color: #fff;
    box-shadow: 0 5px 14px rgba(212,160,23,0.4);
}
.btn-line {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-line:hover {
    background: #fef5f4;
}
.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 40px;
    font-size: 16px;
}

/* ===================== 功能网格 Function Grid ===================== */
.func-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 4px 0;
}
.func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 6px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all .2s;
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light);
}
.func-item:active {
    transform: scale(0.96);
    background: #fafafa;
}
.func-item .fi-icon {
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 1;
}
.func-item .fi-name {
    font-size: 12px;
    color: var(--text-main);
    font-weight: 500;
}
.func-item.hot .fi-name { color: var(--primary); }
.func-item .fi-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-weight: 500;
}
.func-item .fi-badge.new { background: var(--gold); }

/* ===================== 分类列表 Category ===================== */
.cat-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.cat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-light);
    transition: all .2s;
}
.cat-card:active {
    background: #fafafa;
    border-color: #ddd;
}
.cat-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-light);
}
.cat-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cat-items a {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: #f7f7f7;
    border-radius: 14px;
    transition: all .2s;
}
.cat-items a.hot {
    color: var(--primary);
    background: #fef0f0;
}
.cat-items a:active {
    background: #eee;
}

/* ===================== 首页评分表单 ===================== */
.hero-form {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(192,57,43,0.25);
}
.hero-form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.hero-form-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 16px;
}
.hero-form .form-table th {
    color: rgba(255,255,255,0.9);
    width: 70px;
}
.hero-form .form-table input,
.hero-form .form-table select {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-main);
}
.hero-form .form-table input:focus,
.hero-form .form-table select:focus {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.2);
}
.hero-form .form-table label { color: rgba(255,255,255,0.9); }
.hero-form .btn-gold {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-weight: 600;
}

/* 评分结果 */
.score-display {
    text-align: center;
    padding: 16px 0 6px;
}
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(192,57,43,0.3);
    position: relative;
}
.score-circle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}
.score-num {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
}
.score-unit {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}
.score-level {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}
.score-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 五格分析 */
.wuge-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.wuge-table th {
    background: #f8f8f8;
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.wuge-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.wuge-table tr:last-child td { border-bottom: none; }
.wuge-table .good { color: #27ae60; font-weight: 600; }
.wuge-table .bad { color: #e74c3c; font-weight: 600; }
.wuge-table .normal { color: #f39c12; font-weight: 600; }

/* 五行分析 */
.wuxing-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}
.wuxing-bar:last-child { margin-bottom: 0; }
.wuxing-name {
    width: 40px;
    font-weight: 600;
    font-size: 14px;
}
.wuxing-track {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.wuxing-fill {
    height: 100%;
    border-radius: 5px;
    transition: width .8s ease;
}
.wuxing-val {
    width: 50px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 标签 tag */
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 500;
}
.tag-red { background: #fef0f0; color: var(--primary); }
.tag-gold { background: var(--gold-bg); color: #b8860b; }
.tag-green { background: #eafaf1; color: #27ae60; }
.tag-blue { background: #eef5ff; color: #3498db; }
.tag-gray { background: #f5f5f5; color: #999; }

/* ===================== 介绍内容 ===================== */
.intro, .article {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-secondary);
}
.intro h2, .article h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 18px 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.intro h3, .article h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin: 14px 0 6px;
}
.intro p, .article p { margin-bottom: 8px; }
.intro strong, .article strong { color: var(--primary); font-weight: 600; }

/* ===================== 灵签 Fortune ===================== */
.lot-result { text-align: center; padding: 8px 0 16px; }
.lot-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.lot-level {
    display: inline-block;
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #fff;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}
.lot-poem {
    background: var(--gold-bg);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 14px 0;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    font-size: 17px;
    line-height: 2.2;
    color: #5a3a1a;
    letter-spacing: 1px;
    border: 1px dashed var(--gold);
}
.lot-detail {
    text-align: left;
    margin-top: 14px;
}
.lot-detail h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    margin-top: 12px;
}
.lot-detail p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4px;
}

/* 灵签选择 */
.lot-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.lot-select-item {
    text-align: center;
    padding: 12px 6px;
    background: #f8f8f8;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
    font-size: 13px;
}
.lot-select-item:active {
    background: #eee;
}
.lot-select-item.active {
    background: #fef5f4;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* 签筒动画 */
.lot-draw-box {
    text-align: center;
    padding: 20px 0;
}
.lot-cylinder {
    width: 100px;
    height: 140px;
    margin: 0 auto 16px;
    background: linear-gradient(180deg, #8b1a1a 0%, #c0392b 50%, #8b1a1a 100%);
    border-radius: 8px 8px 14px 14px;
    position: relative;
    box-shadow: 0 6px 16px rgba(139,26,26,0.3);
}
.lot-cylinder::before {
    content: "签";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--gold);
    font-family: "SimSun", "STSong", serif;
    font-weight: bold;
}

/* ===================== 八字 Bazi ===================== */
.bazi-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.pillar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    overflow: hidden;
}
.pillar-title {
    font-size: 12px;
    padding: 6px;
    background: #f8f8f8;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}
.pillar-gan {
    font-size: 24px;
    font-weight: bold;
    padding: 10px 4px 4px;
    color: var(--primary);
    font-family: "SimSun", "STSong", serif;
}
.pillar-zhi {
    font-size: 22px;
    font-weight: bold;
    padding: 4px 4px 10px;
    color: var(--gold);
    font-family: "SimSun", "STSong", serif;
}
.pillar-na {
    font-size: 11px;
    padding: 4px 4px 8px;
    color: var(--text-light);
    border-top: 1px dashed var(--border-light);
}

/* ===================== 分享栏 Share ===================== */
.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: var(--radius-md);
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}
.share-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.share-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--text-main);
    transition: all .2s;
    min-width: 56px;
    font-family: inherit;
}
.share-btn:active {
    background: #f5f5f5;
    transform: scale(0.96);
}
.share-btn.weibo { color: #e6162d; border-color: #f5c2c7; }
.share-btn.qq { color: #12b7f5; border-color: #b3e5fc; }
.share-btn.wechat { color: #07c160; border-color: #b2f0c7; }
.share-btn.copy { color: #ff9800; border-color: #ffe0b2; }

/* ===================== 赞赏付款码 ===================== */
.reward-box {
    text-align: center;
    padding: 24px 16px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    margin-top: 12px;
    box-shadow: var(--shadow-sm);
}
.reward-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
}
.reward-title::before { content: "❤️ "; }
.reward-qr {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(212,160,23,0.15);
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform .2s;
}
.reward-qr:active { transform: scale(0.97); }
.reward-qr img {
    width: 140px;
    height: 140px;
    display: block;
}
.reward-tip {
    font-size: 12px;
    color: var(--text-light);
}

/* 赞赏弹窗 */
.reward-modal-box {
    max-width: 300px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.reward-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}
.reward-modal-qr {
    padding: 12px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 14px;
}
.reward-modal-qr img {
    width: 220px;
    height: 220px;
    display: block;
}
.reward-modal-tip {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================== 弹窗通用 Modal ===================== */
.wx-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.wx-modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPop .25s ease-out;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.wx-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
}
.wx-modal-qr {
    padding: 10px;
    background: #fff;
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.wx-modal-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}
.wx-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
}
.wx-modal-close:hover { color: #999; }

/* ===================== 付费服务推广 ===================== */
.service-cta {
    margin: 16px auto;
    max-width: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.service-cta-inner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.service-cta-text {
    color: #fff;
    flex: 1;
    min-width: 200px;
}
.service-cta-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.service-cta-text span {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}
@media (max-width: 479px) {
    .service-cta-inner { flex-direction: column; text-align: center; }
    .service-cta-text { min-width: 100%; }
}

/* ===================== 页脚 Footer ===================== */
.footer {
    text-align: center;
    padding: 20px 16px 16px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 2;
}
.footer a { color: var(--text-light); }
.footer .footer-links { margin-bottom: 6px; }
.footer .footer-links a {
    margin: 0 8px;
}

.crumb { font-size: 12px; color: var(--text-light); padding: 8px 0 0; word-break: break-all; }
.crumb a { color: var(--text-light); }

.center { text-align: center; }
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===================== 底部固定导航 ===================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
    z-index: 90;
    border-top: 1px solid var(--border-light);
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    transition: color .2s;
}
.bottom-nav a:active {
    color: var(--primary);
}
.bottom-nav .nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
    line-height: 1;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    right: 14px;
    bottom: 72px;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 18px;
    transition: all .2s;
    z-index: 80;
}
.back-top:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* ===================== 礼佛页面样式 ===================== */
.buddha-area {
    text-align: center;
    padding: 24px 0 16px;
    position: relative;
}
.buddha-halo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,160,23,0.3) 0%, rgba(212,160,23,0.08) 50%, transparent 70%);
    margin: 0 auto;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    animation: haloPulse 4s ease-in-out infinite;
}
@keyframes haloPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
.buddha-image {
    position: relative;
    z-index: 1;
    padding: 30px 0 24px;
}
.buddha-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 12px;
}
.buddha-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
}
.buddha-platform {
    width: 200px;
    height: 50px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--gold) 0%, #b8860b 100%);
    border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(184,134,11,0.25);
}
.incense-pot {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #6b1010 100%);
    border-radius: 4px 4px 2px 2px;
}
.incense-stick {
    position: absolute;
    bottom: 16px;
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--primary) 70%, var(--primary-dark) 100%);
    border-radius: 1px;
}
.incense-stick.i1 { left: 12px; }
.incense-stick.i2 { left: 29px; height: 34px; }
.incense-stick.i3 { left: 46px; }
.smoke {
    position: absolute;
    bottom: 44px;
    width: 6px;
    height: 20px;
    background: rgba(200,200,200,0.7);
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0;
    animation: smokeRise 3s ease-in-out infinite;
}
.smoke.s1 { left: 11px; animation-delay: 0s; }
.smoke.s2 { left: 28px; animation-delay: 0.8s; }
.smoke.s3 { left: 45px; animation-delay: 1.6s; }
@keyframes smokeRise {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    50% { opacity: 0.7; transform: translateY(-15px) scale(1.5); }
    100% { opacity: 0; transform: translateY(-30px) scale(2); }
}

.merit-display {
    display: flex;
    justify-content: space-around;
    padding: 18px 10px;
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e6 100%);
    border-radius: var(--radius-md);
    margin: 14px 0;
    border: 1px solid #f5e6c8;
}
.merit-item { text-align: center; flex: 1; }
.merit-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.merit-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    font-family: Georgia, serif;
}

.action-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.action-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 6px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 95px;
    justify-content: center;
}
.action-btn:active {
    transform: scale(0.96);
    background: #fafafa;
    border-color: #ddd;
}
.action-icon { font-size: 26px; line-height: 1; }
.action-name {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}
.action-merit {
    font-size: 11px;
    color: var(--primary);
    background: #fef0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.wish-section { margin-top: 20px; }
.wish-input-box {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
}
.wish-input-box textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.wish-input-box textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.wish-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
#wishCount { font-size: 12px; color: var(--text-light); }

.dedication-section { margin-top: 20px; }
.dedication-text {
    text-align: center;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e6 100%);
    border-radius: var(--radius-sm);
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    font-size: 16px;
    border: 1px solid #f5e6c8;
}

.worship-log { max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
.log-item:last-child { border-bottom: none; }
.log-left { display: flex; align-items: center; gap: 8px; }
.log-icon { font-size: 18px; }
.log-name { color: var(--text-main); font-weight: 500; }
.log-time { font-size: 12px; color: var(--text-light); margin-left: 6px; }
.log-merit {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* 礼佛弹窗 */
.worship-modal-box {
    background: linear-gradient(180deg, #fffdf6 0%, #fff8e6 100%);
    border: 2px solid var(--gold);
    border-radius: 18px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(184,134,11,0.2);
    animation: worshipPop .5s ease-out;
    max-width: 320px;
}
@keyframes worshipPop {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}
.worship-modal-icon {
    font-size: 60px;
    margin-bottom: 12px;
    animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.worship-modal-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.worship-modal-merit {
    font-size: 46px;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}
.worship-modal-tip {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: "STKaiti", "KaiTi", "楷体", serif;
}

/* ===================== 响应式：小屏手机 <360px ===================== */
@media screen and (max-width: 359px) {
    body { font-size: 13px; padding-bottom: 54px; }

    .header { padding: 10px 12px; }
    .logo { font-size: 16px; }
    .logo .seal { width: 32px; height: 32px; font-size: 19px; margin-right: 8px; }
    .menu-toggle { width: 34px; height: 34px; gap: 4px; }
    .menu-toggle span { width: 20px; }

    .main { padding: 8px; }
    .row { gap: 8px; }

    .card { margin-bottom: 8px; border-radius: var(--radius-sm); }
    .card-title { padding: 12px 14px; font-size: 15px; }
    .card-body { padding: 12px 14px; }

    .hero-form { padding: 16px; border-radius: var(--radius-md); }
    .hero-form-title { font-size: 16px; }

    .func-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .func-item { padding: 12px 4px; border-radius: 8px; }
    .func-item .fi-icon { font-size: 24px; }
    .func-item .fi-name { font-size: 11px; }

    .cat-list { grid-template-columns: 1fr; gap: 6px; }

    .form-table th { width: 60px; font-size: 13px; }
    .form-table th, .form-table td { padding: 6px 4px; }
    .form-actions { padding: 10px 0 0; }

    .score-circle { width: 100px; height: 100px; }
    .score-num { font-size: 36px; }

    .bazi-pillars { gap: 6px; }
    .pillar-gan { font-size: 20px; }
    .pillar-zhi { font-size: 18px; }

    .action-grid { grid-template-columns: repeat(3, 1fr); }
    .action-btn { padding: 10px 4px; min-height: 80px; }
    .action-icon { font-size: 22px; }
    .action-name { font-size: 12px; }

    .buddha-icon { font-size: 64px; }
    .buddha-text { font-size: 15px; }
    .buddha-halo { width: 140px; height: 140px; }
    .merit-value { font-size: 22px; }

    .worship-modal-box { padding: 24px 28px; }
    .worship-modal-icon { font-size: 48px; }
    .worship-modal-merit { font-size: 38px; }

    .lot-poem { font-size: 15px; padding: 14px 12px; }

    .share-bar { padding: 10px; gap: 8px; }
    .share-btn { padding: 5px 10px; font-size: 11px; min-width: 48px; }
    .share-label { font-size: 12px; }

    .reward-box { padding: 20px 14px 12px; }
    .reward-qr img { width: 120px; height: 120px; }

    .bottom-nav { padding: 5px 0 calc(5px + env(safe-area-inset-bottom)); }
    .bottom-nav .nav-icon { font-size: 20px; }
    .bottom-nav a { font-size: 10px; }

    .back-top { width: 38px; height: 38px; font-size: 16px; right: 10px; bottom: 66px; }
}

/* ===================== 响应式：大屏手机 480-767px ===================== */
@media screen and (min-width: 480px) and (max-width: 767px) {
    body { font-size: 15px; }

    .header { padding: 14px 20px; }
    .logo { font-size: 20px; }
    .logo .seal { width: 40px; height: 40px; font-size: 24px; margin-right: 12px; }
    .slogan { display: none; }
    .menu-toggle { display: flex; }
    .mainnav { display: none; }

    .main { padding: 14px; }
    .row { gap: 12px; }

    .card { margin-bottom: 12px; border-radius: var(--radius-md); }
    .card-title { padding: 14px 16px; font-size: 16px; }
    .card-body { padding: 14px 16px; }

    .hero-form { padding: 22px; }

    .func-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

    .cat-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .bazi-pillars { gap: 10px; }

    .action-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .action-btn { min-height: 100px; }

    .buddha-icon { font-size: 90px; }
    .buddha-halo { width: 200px; height: 200px; }

    .score-circle { width: 130px; height: 130px; }
    .score-num { font-size: 46px; }
}

/* ===================== 响应式：平板 ≥768px ===================== */
@media screen and (min-width: 768px) {
    body {
        font-size: 15px;
        padding-bottom: 0;
    }

    .header {
        padding: 16px 24px;
    }
    .logo { font-size: 22px; }
    .logo .seal {
        width: 44px; height: 44px;
        font-size: 28px;
        margin-right: 14px;
    }
    .slogan {
        display: inline-block;
        margin-left: 16px;
        padding-left: 16px;
        border-left: 1px solid rgba(255,255,255,0.25);
        font-size: 13px;
    }
    .menu-toggle { display: none; }
    .side-menu { display: none; }
    .menu-mask { display: none; }

    .mainnav { display: block; }
    .mainnav a { padding: 14px 18px; font-size: 14px; }

    .main { padding: 18px 20px; }
    .row { flex-direction: row; gap: 18px; }
    .col-main { flex: 1; }
    .col-side { width: 260px; flex-shrink: 0; }

    .card { margin-bottom: 16px; border-radius: var(--radius-md); }
    .card-title { padding: 16px 20px; font-size: 16px; }
    .card-body { padding: 18px 20px; }

    .hero-form { padding: 28px; border-radius: var(--radius-lg); }
    .hero-form-title { font-size: 22px; }
    .hero-form-subtitle { font-size: 14px; }

    .func-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .func-item { padding: 16px 8px; }
    .func-item .fi-icon { font-size: 32px; }
    .func-item .fi-name { font-size: 13px; }

    .cat-list { grid-template-columns: 1fr; gap: 10px; }

    .form-table th { width: 80px; font-size: 14px; }
    .form-table th, .form-table td { padding: 8px 6px; }
    .form-actions { padding: 14px 0 0 80px; }

    .score-circle { width: 140px; height: 140px; }
    .score-num { font-size: 50px; }

    .bazi-pillars { gap: 10px; }
    .pillar-gan { font-size: 26px; }
    .pillar-zhi { font-size: 24px; }

    .share-bar { padding: 14px; margin-top: 16px; }
    .reward-box { padding: 24px 20px 16px; margin-top: 16px; }
    .reward-qr img { width: 150px; height: 150px; }

    .reward-modal-box { max-width: 340px; padding: 32px; }
    .reward-modal-qr img { width: 240px; height: 240px; }

    .bottom-nav { display: none; }
    .back-top { right: 24px; bottom: 24px; width: 46px; height: 46px; }

    .action-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .action-btn { padding: 16px 8px; min-height: 110px; }
    .action-icon { font-size: 30px; }
    .buddha-icon { font-size: 100px; }
    .buddha-halo { width: 220px; height: 220px; }
    .buddha-text { font-size: 20px; }
    .merit-value { font-size: 30px; }
    .worship-modal-box { padding: 36px 48px; }
    .worship-modal-icon { font-size: 70px; }
    .worship-modal-merit { font-size: 56px; }

    .intro, .article { font-size: 14px; line-height: 2; }
    .intro h2, .article h2 { font-size: 17px; }

    .lot-poem { font-size: 18px; }
}

/* ===================== 响应式：PC ≥1024px ===================== */
@media screen and (min-width: 1024px) {
    .header { padding: 18px 24px; }
    .logo { font-size: 24px; }
    .logo .seal {
        width: 48px; height: 48px;
        font-size: 30px;
        margin-right: 16px;
    }
    .slogan { font-size: 14px; margin-left: 20px; padding-left: 20px; }

    .mainnav a { padding: 16px 22px; font-size: 15px; }

    .main { padding: 20px; max-width: 1100px; }
    .row { gap: 20px; }
    .col-side { width: 280px; }

    .card { border-radius: var(--radius-md); }
    .card-title { padding: 16px 20px; font-size: 17px; }

    .hero-form { padding: 32px; }
    .hero-form-title { font-size: 24px; }

    .func-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .func-item { padding: 18px 10px; }
    .func-item .fi-icon { font-size: 34px; }
    .func-item .fi-name { font-size: 14px; }

    .score-circle { width: 150px; height: 150px; }
    .score-num { font-size: 54px; }

    .action-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

    .lot-poem { font-size: 19px; padding: 24px 20px; }
}

/* ===================== 响应式：大屏 PC ≥1400px ===================== */
@media screen and (min-width: 1400px) {
    .main { max-width: 1200px; padding: 24px 0; }

    .func-grid { grid-template-columns: repeat(4, 1fr); }

    .col-side { width: 300px; }
}

/* ===================== 打印样式 ===================== */
@media print {
    .header, .mainnav, .bottom-nav, .back-top, .share-bar,
    .reward-box, .menu-toggle, .side-menu, .menu-mask,
    .form-actions { display: none !important; }
    body { padding-bottom: 0; background: #fff; }
    .main { max-width: 100%; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}

/* ===================== 旧类名兼容（旧页面适配新样式） ===================== */
/* 通用 */
.section { padding: 12px; }
.section-title {
    font-size: 16px; font-weight: 600; color: var(--text-main);
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.section-note { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 10px; }

/* 八字页面兼容 */
.bazi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0;
}
.bazi-cell {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    text-align: center; overflow: hidden;
}
.bazi-cell .zhu-name {
    font-size: 12px; padding: 6px; background: #f8f8f8;
    color: var(--text-secondary); border-bottom: 1px solid var(--border-light);
}
.bazi-cell .gan-zhi {
    font-size: 24px; font-weight: bold; padding: 10px 4px 4px;
    color: var(--primary); font-family: "SimSun", "STSong", serif;
}
.bazi-cell .wx {
    font-size: 13px; padding: 4px; color: var(--gold); font-weight: 600;
}
.bazi-cell .nayin {
    font-size: 11px; padding: 4px 4px 8px; color: var(--text-light);
    border-top: 1px dashed var(--border-light);
}

/* 五行条兼容 */
.wx-bar {
    display: flex; align-items: center; margin-bottom: 8px; gap: 10px;
}
.wx-bar:last-child { margin-bottom: 0; }
.wx-bar .wx-name {
    width: 40px; font-weight: 600; font-size: 14px;
}
.wx-bar .bar-track {
    flex: 1; height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden;
}
.wx-bar .bar-fill {
    height: 100%; border-radius: 5px; transition: width .8s ease;
}
.wx-bar .bar-fill.金 { background: linear-gradient(90deg, #f1c40f, #f39c12); }
.wx-bar .bar-fill.木 { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.wx-bar .bar-fill.水 { background: linear-gradient(90deg, #3498db, #5dade2); }
.wx-bar .bar-fill.火 { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.wx-bar .bar-fill.土 { background: linear-gradient(90deg, #d35400, #e67e22); }
.wx-bar .wx-count {
    width: 40px; text-align: right; font-size: 13px; color: var(--text-secondary);
}

/* 键值对 */
.kv { display: flex; padding: 4px 0; font-size: 14px; }
.kv .k { color: var(--text-secondary); width: 80px; flex-shrink: 0; }
.kv .v { color: var(--text-main); flex: 1; }

/* 姓名评分结果兼容 */
.score-box { text-align: center; padding: 16px 0; }
.score-box .score {
    font-size: 48px; font-weight: bold; color: var(--primary);
}
.wuge { margin: 10px 0; }
.wuge table {
    width: 100%; border-collapse: collapse;
}
.wuge th, .wuge td {
    padding: 8px; text-align: center; border: 1px solid var(--border-color); font-size: 13px;
}
.wuge th { background: #f8f8f8; font-weight: 600; }
.grade-jixiong { padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.grade-jixiong.吉, .grade-jixiong.大吉 { background: #eafaf1; color: #27ae60; }
.grade-jixiong.凶, .grade-jixiong.大凶 { background: #fef0f0; color: #e74c3c; }
.grade-jixiong.半吉 { background: #fef9e7; color: #f39c12; }

/* 取名结果兼容 */
.name-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0;
}
.name-item {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 10px; text-align: center;
}
.name-item .name-text {
    font-size: 20px; font-weight: bold; color: var(--primary);
    font-family: "SimSun", "STSong", serif;
}
.name-item .name-score {
    font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 4px;
}
.name-item .name-meaning {
    font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5;
}

@media screen and (max-width: 359px) {
    .bazi-grid { gap: 6px; }
    .bazi-cell .gan-zhi { font-size: 18px; }
    .name-list { grid-template-columns: 1fr; }
}
@media screen and (min-width: 768px) {
    .bazi-grid { gap: 10px; }
    .bazi-cell .gan-zhi { font-size: 26px; }
    .name-list { grid-template-columns: repeat(3, 1fr); }
}

