* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #8B0000;
    --primary-light: #A52A2A;
    --primary-dark: #5C0000;
    --primary-deep: #3D0000;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8860B;
    --gold-deep: #8B6914;
    --bg: #F8F1E5;
    --bg-paper: #FFFAF0;
    --bg-card: #FFFFFF;
    --text: #2C1810;
    --text-secondary: #5C4033;
    --text-light: #8B7355;
    --text-lighter: #B8A08A;
    --border: #E8D5B7;
    --border-light: #F0E6D6;
    
    /* 五行色 */
    --metal: #C0C0C0;
    --wood: #228B22;
    --water: #4169E1;
    --fire: #DC143C;
    --earth: #DAA520;
    
    --shadow-sm: 0 2px 8px rgba(139, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(139, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(139, 0, 0, 0.12);
    --shadow-gold: 0 2px 12px rgba(212, 175, 55, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    padding-top: 48px;
    min-height: 100vh;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(139, 0, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.top-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
    opacity: 0.9;
}

.nav-left, .nav-right {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bagua-icon, .calendar-icon {
    font-size: 20px;
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(244, 208, 63, 0.4);
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 页面容器 */
.page {
    display: none;
    min-height: calc(100vh - 48px - 70px - env(safe-area-inset-bottom));
    animation: fadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* 页面头部 */
.page-header {
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
}

.page-header::before {
    content: '❖';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--gold);
    opacity: 0.5;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 4px;
}

.page-header p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
    opacity: 0.8;
}

/* 底部Tab栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-paper) 100%);
    display: flex;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(139, 0, 0, 0.05);
}

.tab-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item .tab-icon {
    font-size: 22px;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.tab-item .tab-label {
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tab-item.active .tab-icon {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

.tab-item.active .tab-label {
    color: var(--primary);
    font-weight: 700;
}

.tab-item.center {
    margin-top: -20px;
}

.tab-center-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-light);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.tab-item.active .tab-center-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4);
}

/* ========== 首页 ========== */

/* 每日运势 */
.daily-fortune {
    margin: 16px;
    padding: 18px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-paper) 100%);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.daily-fortune::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

.fortune-date {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light);
}

.lunar-date {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.solar-date {
    font-size: 12px;
    color: var(--text-light);
}

.fortune-yi, .fortune-ji {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.fortune-ji {
    margin-bottom: 0;
}

.yi-label, .ji-label {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.yi-label {
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
}

.ji-label {
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
}

.yi-content, .ji-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
    padding-top: 3px;
}

/* 功能入口九宫格 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 12px 16px;
    margin: 0 12px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.func-item:active {
    background: rgba(212, 175, 55, 0.08);
    transform: scale(0.95);
}

.func-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 0, 0, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.fi-inner {
    font-size: 24px;
}

.func-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.func-hot, .func-new, .func-vip {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.func-hot {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
    color: white;
}

.func-new {
    background: linear-gradient(135deg, #00B894, #00CEC9);
    color: white;
}

.func-vip {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
}

/* 通用卡片 */
.section-card {
    margin: 12px 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-paper) 100%);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.title-deco {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
    position: relative;
}

.title-deco.right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-more {
    font-size: 12px;
    color: var(--gold-dark);
    cursor: pointer;
    font-weight: 500;
}

/* 生肖运势横向滚动 */
.zodiac-scroll {
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px;
    -webkit-overflow-scrolling: touch;
}

.zodiac-scroll::-webkit-scrollbar {
    display: none;
}

.zodiac-list {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
}

.zodiac-item {
    flex-shrink: 0;
    width: 64px;
    padding: 10px 6px;
    text-align: center;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.zodiac-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.zodiac-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.zodiac-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.zodiac-score .star {
    font-size: 12px;
    color: var(--gold);
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.article-item:active {
    background: rgba(212, 175, 55, 0.06);
    transform: translateX(2px);
}

.article-cover {
    width: 90px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 1px;
}

.article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.article-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-info p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    font-size: 12px;
    color: var(--text-lighter);
    display: flex;
    gap: 8px;
}

/* 大师卡片 */
.master-card {
    text-align: center;
    padding-top: 24px;
    margin-bottom: 20px;
}

.master-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.ma-icon {
    font-size: 36px;
}

.master-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold-light);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid var(--bg-card);
    font-weight: 600;
}

.master-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 2px;
}

.master-title {
    font-size: 12px;
    color: var(--gold-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.master-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
    padding: 0 10px;
    text-align: justify;
}

.master-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.master-tags span {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-secondary);
}

/* 按钮 */
.btn {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gold-light);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
    letter-spacing: 2px;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--primary);
}

.btn-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ========== 八字排盘页 ========== */
.bazi-form {
    padding: 0 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.gender-select {
    display: flex;
    gap: 8px;
}

.gender-option {
    flex: 1;
    padding: 11px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-light);
}

.gender-option.active {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.go-icon {
    margin-right: 4px;
}

.btn-calc {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* 排盘结果 */
.bazi-result {
    margin: 20px 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.result-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-light);
}

.result-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 3px;
}

.result-date {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 四柱 */
.bazi-pillars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pillar {
    flex: 1;
    max-width: 70px;
    text-align: center;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), rgba(139, 0, 0, 0.03));
    border-radius: 10px;
    padding: 12px 6px;
    border: 1px solid var(--border-light);
}

.pillar-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.pillar-heavenly {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    margin-bottom: 4px;
    line-height: 1;
}

.pillar-earthly {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pillar-element {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    color: var(--gold-dark);
    display: inline-block;
}

/* 五行分析 */
.wuxing-analysis {
    margin-bottom: 20px;
}

.wuxing-analysis h5,
.shishen-analysis h5,
.star-analysis h5,
.dimension-scores h5,
.detail-analysis h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 14px;
    padding-left: 12px;
    position: relative;
    letter-spacing: 1px;
}

.wuxing-analysis h5::before,
.shishen-analysis h5::before,
.star-analysis h5::before,
.dimension-scores h5::before,
.detail-analysis h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--gold), var(--primary));
    border-radius: 2px;
}

.wuxing-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.wx-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wx-name {
    width: 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.wx-bar {
    flex: 1;
    height: 8px;
    background: rgba(139, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.wx-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.wx-fill.metal { background: linear-gradient(90deg, #A0A0A0, #E8E8E8); }
.wx-fill.wood { background: linear-gradient(90deg, #228B22, #32CD32); }
.wx-fill.water { background: linear-gradient(90deg, #4169E1, #87CEEB); }
.wx-fill.fire { background: linear-gradient(90deg, #DC143C, #FF6347); }
.wx-fill.earth { background: linear-gradient(90deg, #DAA520, #F4D03F); }

.wx-count {
    width: 20px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.wuxing-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 10px 12px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.wuxing-summary strong {
    color: var(--primary);
    font-weight: 600;
}

/* 十神分析 */
.shishen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.ss-item {
    text-align: center;
    padding: 8px 4px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.ss-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.ss-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* VIP提示 */
.vip-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 12px;
    border: 1px solid var(--gold);
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vip-prompt:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-gold);
}

.vip-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.vip-content {
    flex: 1;
    min-width: 0;
}

.vip-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.vip-content p {
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    flex-shrink: 0;
}

/* 免责声明 */
.disclaimer {
    padding: 12px 16px 24px;
}

.disclaimer p {
    font-size: 12px;
    color: var(--text-lighter);
    line-height: 1.6;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px dashed var(--border-light);
}

/* ========== 数字能量页 ========== */
.number-calc-box {
    margin: 0 16px 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.calc-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(212, 175, 55, 0.06);
    padding: 4px;
    border-radius: 10px;
}

.calc-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.calc-input-wrap {
    margin-bottom: 16px;
}

.calc-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 18px;
    font-family: inherit;
    background: var(--bg-paper);
    color: var(--text);
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.calc-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: #fff;
}

.calc-input::placeholder {
    color: var(--text-lighter);
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 14px;
}

/* 测算结果 */
.number-result {
    margin: 0 16px 16px;
    padding: 24px 20px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.result-score-box {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-light);
}

.score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 14px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(139, 0, 0, 0.08);
    stroke-width: 10;
}

.ring-fill {
    fill: none;
    stroke: url(#goldGradient);
    stroke: linear-gradient(90deg, var(--primary), var(--gold));
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 85;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    line-height: 1;
}

.score-label {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* 八星分布 */
.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.star-item {
    text-align: center;
    padding: 10px 6px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.star-item.good {
    background: rgba(34, 139, 34, 0.06);
}

.star-item.bad {
    background: rgba(220, 20, 60, 0.04);
}

.star-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 1px;
}

.star-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.star-item.good .star-count {
    color: #228B22;
}

.star-item.bad .star-count {
    color: #DC143C;
}

.star-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* 四维评分 */
.dim-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.dim-item {
    padding: 10px 12px;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.dim-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dim-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.dim-score {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
}

.dim-bar {
    height: 6px;
    background: rgba(139, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.dim-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 3px;
    transition: width 1.2s ease;
}

/* 详细解读 */
.detail-content {
    padding: 14px;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.detail-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 10px;
    text-align: justify;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ========== AI对话页 ========== */
#page-ai {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom));
    display: none;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    height: calc(100vh - 48px - 70px - env(safe-area-inset-bottom));
    z-index: 50;
    background: var(--bg);
}

#page-ai.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.chat-avatar {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.chat-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.chat-status {
    font-size: 12px;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(39, 174, 96, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageIn 0.35s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bot {
    align-self: flex-start;
}

.message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    font-size: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.15);
}

.message-user .msg-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.msg-content {
    background: var(--bg-card);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    word-break: break-word;
}

.message-bot .msg-content {
    border-top-left-radius: 4px;
}

.message-user .msg-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #F5F5DC;
    border: none;
    border-top-right-radius: 4px;
    box-shadow: 0 3px 10px rgba(139, 0, 0, 0.2);
}

.msg-content p {
    margin-bottom: 8px;
}

.msg-content p:last-child {
    margin-bottom: 0;
}

/* 打字动画 */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 4px 2px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.4; 
    }
    30% { 
        transform: translateY(-8px); 
        opacity: 1; 
    }
}

/* 快捷问题 */
.quick-questions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    flex-shrink: 0;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
}

.quick-questions::-webkit-scrollbar {
    display: none;
}

.qq-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-weight: 500;
}

.qq-btn:active {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(0.95);
    border-color: var(--gold);
    color: var(--primary);
}

/* 输入框 */
.chat-input-area {
    padding: 10px 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 8px rgba(139, 0, 0, 0.04);
}

.chat-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-paper);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 6px 6px 6px 18px;
    transition: all 0.3s ease;
}

.chat-input-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.chat-input-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    padding: 8px 0;
}

.chat-input-box input::placeholder {
    color: var(--text-lighter);
}

.send-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--gold-light);
    border: none;
    padding: 8px 18px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.send-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(139, 0, 0, 0.2);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== 内容页 ========== */
.content-tabs {
    display: flex;
    gap: 6px;
    padding: 0 16px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content-tabs::-webkit-scrollbar {
    display: none;
}

.ct-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ct-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--gold-light);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

.content-list {
    padding: 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-item.large {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-item.large:active {
    transform: scale(0.98);
}

.ci-cover {
    height: 140px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
}

.ci-cover.small {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.ci-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.ci-cover h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ci-cover p {
    font-size: 13px;
    opacity: 0.9;
}

.ci-meta {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-card);
}

.content-item:not(.large) {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
}

.content-item:not(.large):active {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.ci-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.ci-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.ci-info p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.ci-meta-row {
    font-size: 12px;
    color: var(--text-lighter);
    display: flex;
    gap: 10px;
}

/* ========== 我的页 ========== */
.profile-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 20px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.profile-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.avatar-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.avatar-icon {
    font-size: 30px;
}

.vip-tag {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--primary-dark);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 1.5px solid var(--bg-card);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 2px;
}

.user-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.login-btn {
    padding: 8px 18px;
    background: var(--gold-light);
    color: var(--primary-dark);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.member-benefits {
    display: flex;
    justify-content: space-around;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.benefit-icon {
    font-size: 20px;
}

/* 记录列表 */
.record-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.record-item:last-child {
    border-bottom: none;
}

.record-item:active {
    background: rgba(212, 175, 55, 0.05);
    padding-left: 8px;
}

.record-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 0, 0, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.record-info {
    flex: 1;
    min-width: 0;
}

.record-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.record-info p {
    font-size: 12px;
    color: var(--text-light);
}

.record-arrow {
    font-size: 18px;
    color: var(--text-lighter);
    flex-shrink: 0;
}

/* 菜单列表 */
.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: rgba(212, 175, 55, 0.05);
    padding-left: 8px;
}

.menu-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.menu-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.menu-arrow {
    font-size: 16px;
    color: var(--text-lighter);
    flex-shrink: 0;
}

/* 大师介绍 */
.master-intro {
    text-align: center;
    margin-bottom: 20px;
}

.mi-avatar {
    font-size: 48px;
    margin-bottom: 8px;
}

.master-intro h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    letter-spacing: 2px;
}

.master-intro p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.app-info {
    text-align: center;
    padding: 20px;
    color: var(--text-lighter);
    font-size: 12px;
}

.app-info .disclaimer-text {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.7;
}

/* ========== VIP会员页面 ========== */
.vip-benefits-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--gold);
    border: none;
}

.vip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.vip-level-badge {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vip-level-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.vip-level-info p {
    font-size: 12px;
    color: rgba(255, 215, 0, 0.7);
    margin: 0;
}

.vip-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vip-benefits-grid .benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 215, 0, 0.9);
}

.vip-benefits-grid .benefit-icon {
    font-size: 20px;
}

.section-title-center {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* 服务套餐卡片 */
.service-plan-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
}

.service-plan-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-plan-card:first-child {
    padding-top: 0;
}

.service-plan-card:active {
    opacity: 0.7;
    transform: scale(0.98);
}

.plan-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
}

.plan-info {
    flex: 1;
}

.plan-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-symbol {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.price-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-tag {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 会员套餐卡片 */
.membership-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.membership-card:last-child {
    margin-bottom: 0;
}

.membership-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.03), rgba(212, 175, 55, 0.05));
}

.membership-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.membership-tag.lifetime {
    background: linear-gradient(135deg, #b8860b, #daa520, #ffd700);
    color: #8b0000;
    font-weight: 600;
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light);
}

.membership-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.membership-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.membership-price .price-symbol {
    font-size: 14px;
}

.membership-price .price-num {
    font-size: 22px;
}

.price-period {
    font-size: 12px;
    color: var(--text-secondary);
}

.membership-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.membership-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
}

/* 一对一咨询卡片 */
.consult-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.03), rgba(212, 175, 55, 0.03));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.consult-card:active {
    transform: scale(0.98);
}

.consult-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.consult-info {
    flex: 1;
}

.consult-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.consult-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
}

.consult-price {
    display: flex;
    align-items: baseline;
}

.consult-price .price-symbol {
    font-size: 12px;
}

.consult-price .price-num {
    font-size: 16px;
}

.consult-price .price-tag {
    margin-left: 4px;
    margin-top: 0;
}

/* ========== 订单页面样式 */
.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ========== 订单列表页面 ========== */
.order-tabs {
    display: flex;
    background: #fff;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 44px;
    z-index: 10;
}

.order-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.order-tab.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.orders-list {
    padding: 12px 16px;
    padding-bottom: 80px;
}

.order-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s;
}

.order-item:active {
    transform: scale(0.98);
}

.order-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.order-icon {
    font-size: 20px;
}

.order-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-pending {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
}

.status-paid {
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
}

.status-cancelled {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.order-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.order-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ========== 订单详情页面 ========== */
.order-detail-card {
    margin-bottom: 12px;
}

.order-product-info {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.product-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.order-amount,
.order-no,
.order-status {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.order-amount span:first-child,
.order-no span:first-child,
.order-status span:first-child {
    color: var(--text-secondary);
}

.order-amount .amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* 支付方式 */
.pay-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.pay-method-item.active {
    border-color: var(--primary);
    background: rgba(139, 0, 0, 0.03);
}

.pay-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

.pay-check {
    margin-left: auto;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.pay-method-item.active .pay-check {
    opacity: 1;
}

/* 支付二维码 */
.pay-qrcode-section {
    text-align: center;
}

.qrcode-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder {
    text-align: center;
}

.qrcode-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.qrcode-placeholder p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.pay-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pay-amount-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

/* 手动支付 */
.manual-pay-tip {
    text-align: center;
}

.manual-pay-tip > p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.wechat-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}

.wechat-icon {
    font-size: 24px;
}

.wechat-id {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
}

.pay-remark {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* 底部操作栏 */
.order-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.bottom-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.total-amount span:first-child {
    font-size: 13px;
    color: var(--text-secondary);
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.btn-pay {
    min-width: 120px;
    height: 42px;
    font-size: 15px;
    font-weight: 600;
}

.btn-pay.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== 签到卡片 ========== */
.checkin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkin-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
}

.checkin-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.checkin-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

#checkinDays {
    color: var(--primary-dark);
    font-weight: 600;
}

#checkinBtn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ========== 积分卡片 ========== */
.points-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 215, 0, 0.05));
}

.points-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.points-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
}

.points-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.points-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========== 响应式 ========== */
@media (min-width: 480px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
    
    .top-nav,
    .tab-bar,
    .order-bottom-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #page-ai {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 文章详情页样式 */
.article-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 16px;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.08);
}

.article-detail-header {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #8B0000, #B8860B);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.article-detail-header h2 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.article-content h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin: 20px 0 10px;
    font-weight: 600;
}

.article-content ul {
    margin: 10px 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.article-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.article-actions .btn {
    flex: 1;
}

/* 预约记录样式 */
.appointment-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.appointment-item:last-child {
    border-bottom: none;
}

.appointment-item:hover {
    background: #fef9e7;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    color: #999;
    margin-bottom: 16px;
}

/* 设置页面菜单样式优化 */
.menu-item {
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:active {
    background: #f5f5f5;
}

/* 天擎全局水印 */
.tq-watermark-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
}
.tq-watermark-overlay::before {
  content: "天擎出品";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 80px;
  color: rgba(180, 180, 180, 0.06);
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 20px;
  pointer-events: none;
}
