/* ========================================
   知吉人 V4 - 个人运势分析报告样式
   方案D：传统古风
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-deep: #8B2323;
    --red-medium: #A52A2A;
    --gold: #D4AF37;
    --gold-dark: #B8960C;
    --bg-cream: #F5F0E6;
    --bg-warm: #EDE5D8;
    --text-dark: #2C3E50;
    --text-muted: #6B7280;
    --border-light: rgba(139, 35, 35, 0.12);
}

html, body {
    font-family: 'Noto Serif SC', 'PingFang SC', sans-serif;
    background: #F8F6F3;
    color: var(--text-dark);
    line-height: 1.7;
}

/* ========================================
   顶部古风头部（方案D）
   ======================================== */
.ancient-header {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 3px double var(--red-deep);
}

.ancient-header .header-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ancient-header .header-title {
    font-size: 1.8rem;
    color: var(--red-deep);
    font-family: 'Ma Shan Zheng', serif;
    letter-spacing: 8px;
    margin-bottom: 8px;
}

.ancient-header .header-divider {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-deep), transparent);
    margin: 10px auto;
}

.ancient-header .header-slogan {
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 2px;
}

.ancient-header .report-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(139,35,35,0.08);
    border-radius: 12px;
    display: inline-block;
}

/* ========================================
   用户信息条
   ======================================== */
.user-panel {
    background: var(--red-deep);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-panel .user-avatar {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.user-panel .user-info {
    flex: 1;
}

.user-panel .user-name {
    font-size: 1.6rem;
    font-family: 'Ma Shan Zheng', serif;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.user-panel .user-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-panel .user-dates {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

.user-panel .back-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.user-panel .back-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* ========================================
   主内容区
   ======================================== */
.fortune-main {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
}

/* ========================================
   模块通用样式
   ======================================== */
.module-section {
    padding: 40px 30px;
    border-bottom: 6px solid var(--bg-cream);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.module-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', serif;
}

.module-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 2px;
}

.lock-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* ========================================
   加载状态
   ======================================== */
.loading-box {
    text-align: center;
    padding: 50px 25px;
    background: linear-gradient(135deg, rgba(139,35,35,0.02), rgba(139,35,35,0.05));
    border-radius: 12px;
    border: 1px dashed var(--border-light);
}

.loading-box i {
    font-size: 2.5rem;
    color: var(--red-deep);
    margin-bottom: 15px;
    display: block;
}

.loading-box p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.loading-box .loading-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   八字命盘 - 块状卡片
   ======================================== */
.bazi-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.bazi-pillar {
    background: linear-gradient(180deg, #FDFCFB 0%, #F5F3F0 100%);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s;
}

.bazi-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139,35,35,0.12);
}

.bazi-pillar:nth-child(3) {
    border-color: var(--red-deep);
    background: linear-gradient(180deg, #FFF8F8 0%, #FFEFEF 100%);
}

.pillar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.pillar-tiangan {
    font-size: 2.2rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', serif;
    line-height: 1;
    margin-bottom: 5px;
}

.pillar-dizhi {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', serif;
    line-height: 1;
    margin-bottom: 10px;
}

.pillar-nayin {
    font-size: 0.75rem;
    color: #1565C0;
    background: rgba(21,101,192,0.08);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 6px;
}

.pillar-wuxing {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pillar-shishen {
    font-size: 0.75rem;
    color: var(--red-medium);
    background: rgba(139,35,35,0.08);
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
}

/* 五行颜色 */
.wuxing-wood { color: #2E7D32; }
.wuxing-fire { color: #C62828; }
.wuxing-earth { color: #E65100; }
.wuxing-metal { color: #F9A825; }
.wuxing-water { color: #1565C0; }

/* ========================================
   五行分布 - 块状
   ======================================== */
.wuxing-section {
    margin-bottom: 25px;
}

.wuxing-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--red-deep);
}

.wuxing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.wuxing-item {
    background: linear-gradient(180deg, #FDFCFB, #F8F6F3);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
}

.wuxing-item.weak {
    opacity: 0.5;
}

.wuxing-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.wuxing-bar {
    height: 60px;
    width: 20px;
    background: #eee;
    border-radius: 10px;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
}

.wuxing-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 10px;
    transition: height 0.5s;
}

.wuxing-fill.wood { background: linear-gradient(180deg, #4CAF50, #2E7D32); }
.wuxing-fill.fire { background: linear-gradient(180deg, #EF5350, #C62828); }
.wuxing-fill.earth { background: linear-gradient(180deg, #FFB74D, #E65100); }
.wuxing-fill.metal { background: linear-gradient(180deg, #FFD54F, #F9A825); }
.wuxing-fill.water { background: linear-gradient(180deg, #42A5F5, #1565C0); }

.wuxing-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   十年注意年份 - 块状
   ======================================== */
.xiong-nian-section {
    margin-bottom: 25px;
}

.xiong-nian-box {
    background: linear-gradient(135deg, #FFF5F5, #FFEBEB);
    border: 2px solid #FFCDD2;
    border-radius: 12px;
    padding: 20px;
}

.xiong-nian-title {
    font-size: 1rem;
    color: #C62828;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xiong-nian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.xiong-nian-item {
    background: white;
    border: 1px solid #FFCDD2;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.xiong-nian-year {
    font-size: 1.1rem;
    font-weight: bold;
    color: #C62828;
    margin-bottom: 5px;
}

.xiong-nian-reason {
    font-size: 0.8rem;
    color: #666;
}

/* ========================================
   生活指引 - 块状
   ======================================== */
.life-guide-section {
    margin-bottom: 25px;
}

.life-guide-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--gold);
}

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

.life-guide-item {
    background: linear-gradient(135deg, #FFFBF0, #FFF8E7);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 10px;
    padding: 15px;
}

.life-guide-label {
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.life-guide-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ========================================
   紫微命盘 - 宫位形式
   ======================================== */
.ziwei-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(90px, auto));
    gap: 0;
    border: 2px solid var(--red-deep);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.ziwei-palace {
    border: 1px solid var(--border-light);
    padding: 10px 8px;
    background: white;
    min-height: 90px;
}

.ziwei-palace.center-info {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    background: linear-gradient(135deg, var(--red-deep), #6B1515);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
}

.center-info .center-title {
    font-size: 1.3rem;
    font-family: 'Ma Shan Zheng', serif;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.center-info .center-detail {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.6;
}

.palace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light);
}

.palace-name {
    font-size: 0.8rem;
    color: var(--red-deep);
    font-weight: 600;
}

.palace-zhi {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-cream);
    padding: 2px 6px;
    border-radius: 6px;
}

.palace-badge {
    display: inline-block;
    background: var(--red-deep);
    color: white;
    font-size: 0.55rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 3px;
}

.palace-stars {
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.star-main { color: var(--red-deep); font-weight: 600; }
.star-sihua { color: var(--gold-dark); font-weight: 600; }

/* ========================================
   流年运势容器
   ======================================== */
.liunian-years {
    width: 100%;
}

.liunian-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.liunian-card-header {
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: white;
    padding: 12px;
    text-align: center;
}

.liunian-year {
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Ma Shan Zheng', serif;
}

.liunian-ganzhi {
    font-size: 0.8rem;
    opacity: 0.85;
}

.liunian-card-body {
    padding: 15px 12px;
}

.liunian-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-light);
}

.liunian-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.liunian-item-label {
    font-size: 0.75rem;
    color: var(--red-deep);
    font-weight: 600;
    margin-bottom: 4px;
}

.liunian-item-content {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ========================================
   解锁模块
   ======================================== */
.unlock-box {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(212,175,55,0.1));
    border-radius: 15px;
    border: 2px solid var(--gold);
}

.unlock-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.unlock-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.unlock-box > p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.unlock-price {
    margin-bottom: 25px;
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 10px;
}

.price-current {
    font-size: 2.2rem;
    color: var(--red-deep);
    font-weight: bold;
}

.btn-unlock {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.5);
}

.unlock-guarantee {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   支付弹窗
   ======================================== */
.pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pay-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    overflow: hidden;
    position: relative;
}

.pay-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.pay-header {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 30px;
    text-align: center;
}

.pay-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.pay-body {
    padding: 30px;
    text-align: center;
}

.pay-amount {
    font-size: 2.5rem;
    color: var(--red-deep);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.pay-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.pay-qrcode img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.pay-qrcode p {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pay-footer {
    padding: 15px;
    background: var(--bg-cream);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   姓名分析
   ======================================== */
.name-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(139,35,35,0.03), rgba(139,35,35,0.06));
    border-radius: 12px;
}

.name-chars {
    font-size: 3rem;
    font-family: 'Ma Shan Zheng', serif;
    color: var(--red-deep);
    letter-spacing: 20px;
    margin-bottom: 12px;
}

.name-score {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 1.1rem;
}

.wuge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.wuge-item {
    text-align: center;
    padding: 20px 12px;
    background: linear-gradient(180deg, #FDFCFB, #F5F3F0);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.wuge-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.wuge-num {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--red-deep);
    font-family: 'Ma Shan Zheng', serif;
    margin-bottom: 5px;
}

.wuge-wuxing {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wuge-luck {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.wuge-luck.ji { background: rgba(46,125,50,0.1); color: #2E7D32; }
.wuge-luck.xiong { background: rgba(198,40,40,0.1); color: #C62828; }
.wuge-luck.zhong { background: rgba(255,152,0,0.1); color: #E65100; }

.wuge-meaning {
    padding: 20px;
    background: var(--bg-cream);
    border-radius: 12px;
    border-left: 3px solid var(--red-deep);
}

.wuge-meaning h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.wuge-meaning p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   页脚
   ======================================== */
.report-footer {
    padding: 40px 25px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-cream), var(--bg-warm));
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .ancient-header {
        padding: 20px 15px;
    }
    
    .ancient-header .header-title {
        font-size: 1.5rem;
    }
    
    .user-panel {
        padding: 15px 20px;
    }
    
    .user-panel .user-name {
        font-size: 1.3rem;
    }
    
    .module-section {
        padding: 30px 20px;
    }
    
    .bazi-table {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wuxing-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .life-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wuge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   解读模块样式
   ======================================== */
.analysis-text {
    line-height: 1.9;
    color: #333;
}

.analysis-text h3.analysis-title {
    font-size: 1.1rem;
    color: var(--red-deep);
    margin: 20px 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--gold);
}

.analysis-text p {
    margin-bottom: 12px;
    text-align: justify;
}

.analysis-text strong {
    color: var(--red-deep);
}

.analysis-disclaimer {
    margin-top: 20px;
    padding: 12px 15px;
    background: #f9f5f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #888;
    border-left: 3px solid #ddd;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-state i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.loading-state p {
    margin: 8px 0;
}

.loading-hint {
    font-size: 0.85rem;
    color: #999;
}

.error-state {
    text-align: center;
    padding: 30px 20px;
}

.error-state p {
    color: #e74c3c;
    margin-bottom: 15px;
}

.retry-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-medium));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,35,35,0.3);
}

/* 三年流年运势样式 - 横排三列占满宽度 */
/* 版式A：三年流年 - 三列并排 */
/* ========================================
   三年流年运势卡片
   ======================================== */
.liunian-years-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.liunian-year-card {
    background: linear-gradient(135deg, #fffdf9 0%, #faf6f0 100%);
    border: 1px solid #e0d5c5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 12px rgba(139, 35, 35, 0.08);
    width: 100%;
}

.liunian-year-header {
    background: linear-gradient(135deg, #8b2323 0%, #a52a2a 100%);
    color: white;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.liunian-year-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d78c, #d4af37);
}

.liunian-year-header .year-num {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.liunian-year-header .year-ganzhi {
    font-size: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
}

.liunian-year-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fortune-item {
    padding: 16px 18px;
    background: #fdfcfa;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.fortune-item.advice {
    background: linear-gradient(135deg, #fff9e6, #fff5d6);
    border-left-color: #c9a227;
}

.fortune-label {
    font-size: 1rem;
    font-weight: 600;
    color: #8b2323;
    margin-bottom: 10px;
    display: block;
}

.fortune-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #3d3d3d;
}

/* 响应式：手机端 */
@media (max-width: 640px) {
    .liunian-years-grid {
        gap: 16px;
    }
    
    .liunian-year-header {
        padding: 14px 16px;
    }
    
    .liunian-year-header .year-num {
        font-size: 1.5rem;
    }
    
    .liunian-year-header .year-ganzhi {
        font-size: 0.9rem;
        padding: 4px 12px;
    }
    
    .liunian-year-body {
        padding: 16px;
        gap: 12px;
    }
    
    .fortune-item {
        padding: 14px;
    }
    
    .fortune-label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .fortune-text {
        font-size: 0.9rem;
        line-height: 1.75;
    }
}

/* ========================================
   流月运势卡片样式 - 新版卡片式设计
   ======================================== */

/* 弹窗遮罩层 - 默认隐藏 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 容器 */
.liuyue-container {
    position: relative;
}

/* 卡片网格 */
.liuyue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* 月卡片 */
.liuyue-month-card {
    background: linear-gradient(135deg, #fffdf9, #faf6f0);
    border: 1px solid #e0d5c5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.liuyue-month-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 35, 35, 0.15);
}

.liuyue-month-card.locked {
    pointer-events: none;
}

/* 卡片头部 */
.liuyue-card-header {
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    color: white;
    padding: 14px;
    text-align: center;
}

.liuyue-card-month {
    font-size: 1.6rem;
    font-weight: bold;
}

.liuyue-card-ganzhi {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* 卡片内容 */
.liuyue-card-body {
    padding: 14px;
    font-size: 0.88rem;
    color: #555;
}

.liuyue-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

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

.liuyue-card-item i {
    color: #d4af37;
}

.liuyue-feixing-hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* 宜忌标签 */
.liuyue-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.liuyue-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.liuyue-tag.yi {
    background: #e8f5e9;
    color: #2e7d32;
}

.liuyue-tag.ji {
    background: #ffebee;
    color: #c62828;
}

/* 卡片底部 */
.liuyue-card-footer {
    padding: 10px;
    text-align: center;
    background: #f9f7f4;
    border-top: 1px solid #e8e0d5;
    font-size: 0.8rem;
    color: #8b2323;
}

/* 解锁遮罩 */
.liuyue-unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 12px;
}

.liuyue-unlock-overlay.hidden {
    display: none;
}

.unlock-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

.unlock-title {
    font-size: 1.3rem;
    color: #8b2323;
    font-weight: bold;
    margin-bottom: 8px;
}

.unlock-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.unlock-btn {
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 35, 35, 0.3);
    transition: transform 0.2s;
}

.unlock-btn:hover {
    transform: scale(1.05);
}

.unlock-price {
    font-size: 1.4rem;
    font-weight: bold;
}

.unlock-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-left: 8px;
}

/* 支付弹窗 */
.liuyue-pay-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pay-header {
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    color: white;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-body {
    padding: 25px 20px;
    text-align: center;
}

.pay-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: #8b2323;
}

.pay-desc {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    margin-bottom: 25px;
}

.pay-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.pay-method {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.pay-method input {
    display: none;
}

.pay-method.active,
.pay-method:has(input:checked) {
    border-color: #8b2323;
    background: #fff9f9;
}

.method-icon {
    font-size: 1.5rem;
}

.pay-confirm-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.pay-confirm-btn:hover {
    transform: scale(1.02);
}

.pay-tips {
    font-size: 0.75rem;
    color: #999;
    margin-top: 15px;
}

/* 详情弹窗 */
.liuyue-detail-modal {
    background: linear-gradient(135deg, #fffdf9, #faf6f0);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

.detail-header {
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.detail-title {
    font-size: 1.4rem;
    font-weight: bold;
}

.detail-stars {
    font-size: 1.1rem;
}

.detail-body {
    padding: 20px;
}

.liuyue-detail-item {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fdfcfa;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.liuyue-detail-item:last-child {
    margin-bottom: 0;
}

.liuyue-detail-item.tip {
    background: #fff9e6;
    border-left-color: #f39c12;
}

.liuyue-detail-label {
    font-size: 0.9rem;
    color: #8b2323;
    font-weight: 600;
    margin-bottom: 8px;
}

.liuyue-detail-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.liuyue-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.liuyue-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: #d4af37;
}

.retry-btn {
    padding: 10px 20px;
    background: #8b2323;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.retry-btn:hover {
    background: #a52a2a;
}

/* 响应式：平板三列 */
@media (max-width: 900px) {
    .liuyue-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式：小平板两列 */
@media (max-width: 700px) {
    .liuyue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .liuyue-detail-modal {
        max-width: 100%;
    }
}

/* 响应式：手机两列 */
@media (max-width: 500px) {
    .liuyue-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .liuyue-card-header {
        padding: 10px;
    }
    
    .liuyue-card-month {
        font-size: 1.3rem;
    }
    
    .liuyue-card-body {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .liuyue-card-footer {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* ========================================
   姓名五格评测模块样式（新版）
   ======================================== */

/* 简洁评分显示 - 重新设计 */
.name-score-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e8e0d5;
}
.name-score-simple .score-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.name-score-simple .score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.name-score-simple .score-circle.excellent { border: 3px solid #4CAF50; }
.name-score-simple .score-circle.good { border: 3px solid #2196F3; }
.name-score-simple .score-circle.medium { border: 3px solid #FF9800; }
.name-score-simple .score-circle.poor { border: 3px solid #e53935; }
.name-score-simple .score-num {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}
.name-score-simple .score-circle.excellent .score-num { color: #4CAF50; }
.name-score-simple .score-circle.good .score-num { color: #2196F3; }
.name-score-simple .score-circle.medium .score-num { color: #FF9800; }
.name-score-simple .score-circle.poor .score-num { color: #e53935; }
.name-score-simple .score-unit {
    font-size: 11px;
    color: #999;
}
.name-score-simple .score-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.name-score-simple .score-label {
    font-size: 13px;
    color: #999;
}
.name-score-simple .score-level {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.name-score-simple .rename-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(139,0,0,0.3);
    transition: all 0.3s;
}
.name-score-simple .rename-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139,0,0,0.4);
}
.name-score-simple .rename-btn .price {
    font-size: 12px;
    opacity: 0.9;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.name-score-header {
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 12px;
    margin-bottom: 15px;
}
.name-score-header.excellent { background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%); }
.name-score-header.good { background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%); }
.name-score-header.medium { background: linear-gradient(135deg, #FF9800 0%, #E65100 100%); }
.name-score-header.poor { background: linear-gradient(135deg, #f44336 0%, #c62828 100%); }

.name-score-header .name-display {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 10px;
    margin-bottom: 5px;
}
.name-score-header .name-meta {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}
.name-score-header .score-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.name-score-header .score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.name-score-header .score-num {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}
.name-score-header .score-unit {
    font-size: 10px;
    opacity: 0.8;
}
.name-score-header .score-info {
    text-align: left;
}
.name-score-header .score-level {
    display: block;
    font-size: 16px;
    font-weight: 600;
}
.name-score-header .score-desc {
    font-size: 12px;
    opacity: 0.85;
}

/* 字符行 */
#nameAnalysis .char-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 15px;
}
#nameAnalysis .char-item {
    text-align: center;
    min-width: 60px;
}
#nameAnalysis .char-big {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
#nameAnalysis .char-stroke {
    font-size: 14px;
    color: #c41e3a;
    font-weight: 600;
    margin: 3px 0;
}
#nameAnalysis .wx-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: white;
}
.wx-badge.wx-木 { background: #4CAF50; }
.wx-badge.wx-火 { background: #f44336; }
.wx-badge.wx-土 { background: #FF9800; }
.wx-badge.wx-金 { background: #9C27B0; }
.wx-badge.wx-水 { background: #2196F3; }

/* 五格行 */
#nameAnalysis .wuge-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 10px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}
#nameAnalysis .wuge-item {
    flex: 1;
    text-align: center;
}
#nameAnalysis .wuge-name {
    font-size: 11px;
    color: #999;
}
#nameAnalysis .wuge-num {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 3px 0;
}
.wuge-luck.luck-吉 { background: #e8f5e9; color: #4CAF50; padding: 2px 6px; border-radius: 8px; font-size: 10px; }
.wuge-luck.luck-凶 { background: #ffebee; color: #f44336; padding: 2px 6px; border-radius: 8px; font-size: 10px; }
.wuge-luck.luck-半吉 { background: #fff8e1; color: #FF9800; padding: 2px 6px; border-radius: 8px; font-size: 10px; }

/* 三才行 */
#nameAnalysis .sancai-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    gap: 8px;
}
#nameAnalysis .sancai-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}
#nameAnalysis .sancai-item.wx-木 { background: #4CAF50; }
#nameAnalysis .sancai-item.wx-火 { background: #f44336; }
#nameAnalysis .sancai-item.wx-土 { background: #FF9800; }
#nameAnalysis .sancai-item.wx-金 { background: #9C27B0; }
#nameAnalysis .sancai-item.wx-水 { background: #2196F3; }
#nameAnalysis .sancai-arrow {
    color: #ccc;
}
#nameAnalysis .sancai-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    padding: 0 20px 15px;
}

/* 五格详解 */
#nameAnalysis .wuge-detail {
    padding: 0;
    background: transparent;
    margin-bottom: 15px;
}
#nameAnalysis .wuge-detail h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
#nameAnalysis .wuge-detail h4 i {
    color: #8b7355;
    margin-right: 8px;
}
#nameAnalysis .detail-item {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}
#nameAnalysis .detail-item:last-child {
    border-bottom: none;
}
#nameAnalysis .detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, #c9a86c 0%, #e8d5b0 100%);
    border-radius: 2px;
}
#nameAnalysis .detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 15px;
    background: transparent !important;
    color: inherit !important;
    padding: 0 0 0 15px !important;
    position: static !important;
}
#nameAnalysis .detail-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
#nameAnalysis .detail-luck {
    font-size: 12px;
    margin-left: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}
#nameAnalysis .detail-luck.luck-ji {
    color: #2e7d32;
    background: #e8f5e9;
}
#nameAnalysis .detail-luck.luck-xiong {
    color: #c62828;
    background: #ffebee;
}
#nameAnalysis .detail-luck.luck-banji {
    color: #e65100;
    background: #fff3e0;
}
#nameAnalysis .detail-content {
    padding-left: 15px;
}
#nameAnalysis .detail-shuli-name {
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 8px;
}
#nameAnalysis .detail-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}
#nameAnalysis .detail-meaning {
    color: #999;
    font-size: 12px;
    margin-top: 12px;
    padding-left: 15px;
}

/* 总评 */
#nameAnalysis .name-summary {
    padding: 20px;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e8e0d5;
}
#nameAnalysis .summary-text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
