/* ============================================
   佛缘堂 - 八字手机吉凶查询样式 (优化版)
   文件: /static/css/shuouji.css
   包含：批量查询表单样式 + 结果页面样式
   更新：整体美化优化，修复布局错乱
   ============================================ */

/* ========== 全局基础 ========== */
body { 
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; 
    background: linear-gradient(135deg, #f5f0e8 0%, #ebe4d6 100%); 
    min-height: 100vh; 
    color: #5d4e37; 
    line-height: 1.8; 
    margin: 0; 
    padding: 0; 
}

.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 15px; 
}

/* ========== 页面头部 ========== */
.page-header { 
    text-align: center; 
    padding: 35px 0 25px; 
    color: #fff; 
    background: linear-gradient(135deg, #8b5a2b, #a67c52); 
    margin: -15px -15px 25px -15px; 
    border-bottom: 4px solid #c9a961; 
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}
.page-header h1 { 
    font-size: 28px; 
    color: #fff8e7; 
    margin-bottom: 10px; 
    letter-spacing: 3px; 
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.page-header p { 
    font-size: 14px; 
    color: rgba(255,248,231,0.85); 
    position: relative;
}


/* ========== 八字导航栏（图片样式版）========== */
.bazi-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 0 -15px 25px -15px;
    padding: 0;
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    border-bottom: 3px solid #c9a961;
    box-shadow: 0 4px 15px rgba(139,90,43,0.2);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bazi-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: rgba(255,248,231,0.85) !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: auto;
    text-align: center;
    white-space: nowrap;
    position: relative;
}

.bazi-nav-item .nav-icon {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.bazi-nav-item .nav-text {
    display: inline-block;
    color: rgba(255,248,231,0.9) !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.bazi-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff8e7 !important;
    border-bottom-color: rgba(201,169,97,0.5);
    transform: none;
    box-shadow: none;
}

.bazi-nav-item:hover .nav-text {
    color: #fff8e7 !important;
}

.bazi-nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.bazi-nav-item.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #ffd700;
    color: #fff8e7 !important;
    box-shadow: none;
}

.bazi-nav-item.active .nav-text {
    color: #fff8e7 !important;
    font-weight: 700;
}

.bazi-nav-item.active .nav-icon {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.bazi-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
}



/* ========== 内容区块 ========== */
.section-box { 
    background: linear-gradient(135deg, #fffef5 0%, #fff8e7 100%); 
    border-radius: 16px; 
    padding: 30px; 
    margin-bottom: 25px; 
    border: 2px solid #e8d5b5; 
    box-shadow: 0 4px 20px rgba(139,90,43,0.1); 
    transition: transform 0.3s, box-shadow 0.3s;
}
.section-box:hover {
    box-shadow: 0 6px 25px rgba(139,90,43,0.15);
}

.section-title { 
    font-size: 20px; 
    color: #8b5a2b; 
    font-weight: 700; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 2px solid #e8d5b5; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.section-title .icon { 
    font-size: 26px; 
    display: inline-block;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* ========== 号码数字五行分析网格 ========== */
.digit-grid { 
    display: grid; 
    grid-template-columns: repeat(11, 1fr); 
    gap: 10px; 
}
.digit-card { 
    background: linear-gradient(135deg, #fffef5, #fff8e7); 
    border: 2px solid #d4b896; 
    border-radius: 12px; 
    padding: 12px 5px; 
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139,90,43,0.08);
}
.digit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(139,90,43,0.15);
}
.digit-num { 
    font-size: 24px; 
    font-weight: 700; 
    color: #8b5a2b; 
}
.digit-wuxing { 
    font-size: 12px; 
    color: #a08040; 
    margin-top: 5px;
    font-weight: 600;
}
.digit-score { 
    font-size: 12px; 
    color: #c0392b; 
    font-weight: 700; 
    margin-top: 4px; 
}

/* 五行颜色边框 */
.wuxing-jin { border-color: #c9a961 !important; background: linear-gradient(135deg, #fffef5, #fdf8e8) !important; }
.wuxing-mu { border-color: #27ae60 !important; background: linear-gradient(135deg, #f5fff5, #f0f8e8) !important; }
.wuxing-shui { border-color: #2980b9 !important; background: linear-gradient(135deg, #f5f8ff, #e8f0f8) !important; }
.wuxing-huo { border-color: #e74c3c !important; background: linear-gradient(135deg, #fff5f5, #f8e8e8) !important; }
.wuxing-tu { border-color: #8e6e4e !important; background: linear-gradient(135deg, #fdf8f0, #f5ebe0) !important; }

/* ========== 五行统计条（修复）========== */
.wuxing-stats { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}
.wuxing-stat-item { 
    display: flex; 
    align-items: center; 
    gap: 15px;
    padding: 8px 0;
}
.wuxing-label { 
    width: 40px; 
    font-size: 16px; 
    font-weight: 700; 
    color: #8b5a2b;
    text-align: center;
    flex-shrink: 0;
}
.wuxing-bar { 
    flex: 1; 
    height: 24px; 
    background: #e8d5b5; 
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.wuxing-fill { 
    height: 100%; 
    border-radius: 12px;
    transition: width 0.8s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.wuxing-fill.jin { background: linear-gradient(90deg, #c9a961, #d4af37, #ffd700); }
.wuxing-fill.mu { background: linear-gradient(90deg, #27ae60, #2ecc71, #58d68d); }
.wuxing-fill.shui { background: linear-gradient(90deg, #2980b9, #3498db, #5dade2); }
.wuxing-fill.huo { background: linear-gradient(90deg, #e74c3c, #ff6b6b, #ff8a80); }
.wuxing-fill.tu { background: linear-gradient(90deg, #8e6e4e, #a0826d, #bcaaa4); }
.wuxing-count { 
    width: 55px; 
    font-size: 14px; 
    color: #8b5a2b; 
    font-weight: 700; 
    text-align: right;
    flex-shrink: 0;
}

/* ========== 匹配信息 ========== */
.match-info { 
    background: linear-gradient(135deg, #faf5eb, #fff8e7); 
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 20px; 
    border: 1px solid #e8d5b5;
    box-shadow: 0 2px 10px rgba(139,90,43,0.05);
}
.match-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid #e8d5b5; 
    font-size: 15px;
    align-items: center;
}
.match-row:last-child { 
    border-bottom: none; 
}
.match-label { 
    color: #a08040; 
    font-weight: 600;
    font-size: 15px;
}
.match-value { 
    color: #8b5a2b; 
    font-weight: 700;
    font-size: 16px;
}
.match-score { 
    color: #c0392b; 
    font-weight: 700; 
    font-size: 18px; 
}
.match-desc { 
    font-size: 15px; 
    color: #5d4e37; 
    line-height: 1.8; 
    padding: 15px 18px; 
    background: rgba(139,90,43,0.04); 
    border-radius: 10px;
    margin-top: 15px;
    border-left: 3px solid #c9a961;
    text-align: left;
}
.match-desc strong {
    color: #8b5a2b;
    font-weight: 700;
}
.match-desc ul {
    margin: 8px 0;
    padding-left: 20px;
}
.match-desc li {
    margin-bottom: 5px;
    line-height: 1.8;
}

/* ========== 数字组合分析 ========== */
.pair-grid { 
    display: grid; 
    grid-template-columns: repeat(10, 1fr); 
    gap: 10px; 
}
.pair-card { 
    background: linear-gradient(135deg, #fffef5, #fff8e7); 
    border: 2px solid #d4b896; 
    border-radius: 10px; 
    padding: 10px 4px; 
    text-align: center;
    transition: all 0.3s;
}
.pair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,90,43,0.12);
}
.pair-card.lucky { 
    border-color: #27ae60; 
    background: linear-gradient(135deg, #f0f8e8, #e8f5e9); 
}
.pair-card.unlucky { 
    border-color: #e74c3c; 
    background: linear-gradient(135deg, #fff5f5, #ffebee); 
}
.pair-num { 
    font-size: 18px; 
    font-weight: 700; 
    color: #8b5a2b; 
}
.pair-desc { 
    font-size: 11px; 
    color: #a08040; 
    margin-top: 4px;
    line-height: 1.3;
}
.pair-score { 
    font-size: 12px; 
    color: #c0392b; 
    font-weight: 700; 
    margin-top: 4px; 
}

/* ========== 建议内容 ========== */
.advice-content { 
    font-size: 15px; 
    color: #5d4e37; 
    line-height: 1.8; 
    text-align: left;
}
.advice-content p { 
    margin-bottom: 12px; 
    text-align: left;
}
.advice-content ul {
    padding-left: 22px;
    margin: 10px 0;
    list-style-type: disc;
}
.advice-content li {
    margin-bottom: 6px;
    line-height: 1.8;
    text-align: left;
}
.advice-content li::marker {
    color: #c9a961;
}

/* ========== 大吉号码推荐 ========== */
.lucky-phone-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-bottom: 20px; 
}
.lucky-phone-card { 
    background: linear-gradient(135deg, #fffef5, #fff8e7); 
    border: 2px solid #d4b896; 
    border-radius: 14px; 
    padding: 20px 15px; 
    text-align: center; 
    position: relative; 
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(139,90,43,0.1);
}
.lucky-phone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139,90,43,0.2);
    border-color: #c9a961;
}
.lucky-phone-card::before { 
    content: '👑'; 
    position: absolute; 
    top: 8px; 
    right: 10px; 
    font-size: 18px; 
    opacity: 0.5;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.lucky-phone-number { 
    font-size: 20px; 
    font-weight: 700; 
    color: #8b5a2b; 
    letter-spacing: 2px; 
    margin-bottom: 10px;
    word-break: break-all;
}
.lucky-phone-magnet {
    font-size: 14px;
    color: #c0392b;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff5f5, #fff8e7);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid #e8d5b5;
}
.lucky-phone-score { 
    font-size: 24px; 
    font-weight: 700; 
    color: #c0392b; 
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.lucky-phone-wuxing { 
    font-size: 13px; 
    color: #a08040; 
    margin-bottom: 10px; 
    font-weight: 600;
}
.lucky-phone-desc { 
    font-size: 13px; 
    color: #5d4e37; 
    line-height: 1.6; 
    margin-bottom: 12px; 
}
.lucky-phone-tags { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 6px; 
}
.lucky-tag { 
    background: linear-gradient(135deg, #fff3cd, #ffeeba); 
    color: #856404; 
    padding: 3px 10px; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 600; 
    border: 1px solid #ffeaa7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lucky-phone-intro {
    background: linear-gradient(135deg, #faf5eb, #fff8e7);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e8d5b5;
    font-size: 15px;
    line-height: 1.8;
    color: #5d4e37;
}
.lucky-phone-tips {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #5d4e37;
}
.lucky-phone-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}
.lucky-phone-tips li {
    margin-bottom: 6px;
}

/* ========== 按钮样式 ========== */
.back-btn { 
    display: block; 
    width: 280px; 
    margin: 35px auto; 
    padding: 16px 40px; 
    background: linear-gradient(135deg, #8b5a2b, #a67c52); 
    color: #fff8e7; 
    text-align: center; 
    text-decoration: none; 
    border-radius: 30px; 
    font-size: 17px; 
    font-weight: 700; 
    border: 2px solid #c9a961;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139,90,43,0.25);
    letter-spacing: 2px;
}
.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139,90,43,0.35);
    background: linear-gradient(135deg, #9a6a3b, #b68c62);
}

.print-btn { 
    display: inline-block; 
    padding: 12px 30px; 
    background: linear-gradient(135deg, #8b5a2b, #a67c52); 
    color: #fff8e7; 
    border: none; 
    border-radius: 25px; 
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    margin: 10px 5px; 
    border: 2px solid #c9a961;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(139,90,43,0.2);
    letter-spacing: 1px;
}
.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(139,90,43,0.3);
}

/* ========== 免责声明区域美化 ========== */
.disclaimer-box {
    background: linear-gradient(135deg, #faf8f5, #f5f0e8) !important;
    border: 2px solid #d4b896 !important;
}
.disclaimer-alert {
    display: flex;
    gap: 15px;
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.alert-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.alert-content strong {
    color: #8b5a2b;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}
.alert-content p {
    color: #5d4e37;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.theory-section, .accuracy-section, .system-logic, .important-notes, .suggestions {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    border: 1px solid #e8d5b5;
}
.theory-section h4, .accuracy-section h4, .system-logic h4, .important-notes h4, .suggestions h4 {
    color: #8b5a2b;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-icon {
    font-size: 20px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e8d5b5;
}
.theory-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}
.theory-table th {
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff8e7;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
.theory-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8d5b5;
    color: #5d4e37;
    line-height: 1.6;
}
.theory-table tr:last-child td {
    border-bottom: none;
}
.theory-table tr:nth-child(even) {
    background: rgba(139,90,43,0.03);
}
.theory-name {
    color: #8b5a2b;
    font-weight: 700;
}

.accuracy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.accuracy-item {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e8d5b5;
}
.accuracy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.accuracy-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
}
.badge-kexue { background: #e8f5e9; color: #27ae60; border: 1px solid #c8e6c9; }
.badge-minsu { background: #fff3e0; color: #e67e22; border: 1px solid #ffe0b2; }
.accuracy-subtitle {
    font-size: 13px;
    color: #a08040;
}
.accuracy-item ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.8;
    color: #5d4e37;
}
.accuracy-item li {
    margin-bottom: 6px;
}

.logic-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.logic-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e8d5b5;
}
.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.step-content strong {
    color: #8b5a2b;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
.step-content span {
    color: #a08040;
    font-size: 13px;
    line-height: 1.6;
}

.notes-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.note-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    border: 1px solid #e8d5b5;
    transition: all 0.3s;
}
.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,90,43,0.1);
}
.note-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}
.note-text {
    font-size: 13px;
    color: #5d4e37;
    line-height: 1.6;
}

.suggestion-content {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e8d5b5;
    font-size: 14px;
    line-height: 1.8;
    color: #5d4e37;
}

/* ========== 批量手机号输入区域 ========== */
.batch-phone-section {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #fffef5 0%, #fff8e7 100%);
    border-radius: 16px;
    border: 2px solid #d4b896;
    box-shadow: 0 4px 20px rgba(139,90,43,0.08);
    position: relative;
    overflow: hidden;
}
.batch-phone-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5a2b, #c9a961, #8b5a2b);
}
.batch-phone-section h3 {
    color: #8b5a2b;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.batch-phone-section h3 .icon {
    font-size: 26px;
    display: inline-block;
    animation: phonePulse 2s ease-in-out infinite;
}
@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.batch-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #8b5a2b;
    font-size: 15px;
}
.batch-label .highlight {
    color: #c0392b;
    font-weight: 700;
}

.textarea-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d4b896;
    background: #fff;
    transition: all 0.3s;
}
.textarea-wrapper:focus-within {
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.1);
}

textarea[name="phones"] {
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 16px;
    background: transparent;
    color: #5d4e37;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    resize: vertical;
    min-height: 140px;
    line-height: 1.8;
    outline: none;
    box-sizing: border-box;
}
textarea[name="phones"]::placeholder {
    color: #c0b090;
    font-size: 14px;
}

.textarea-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #faf5eb, #fff8e7);
    border-top: 1px solid #e8d5b5;
    font-size: 13px;
    color: #a08040;
}
.textarea-hint .hint-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.phone-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffeaa7;
    border-radius: 20px;
    font-size: 13px;
    color: #856404;
    font-weight: 600;
}
.phone-counter .count-num {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #8b5a2b;
    color: #fff8e7;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.example-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e8d5b5;
    color: #8b5a2b;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sep-hints {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.sep-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e8d5b5;
    border-radius: 12px;
    font-size: 12px;
    color: #a08040;
}
.sep-hint .sep-icon {
    font-size: 14px;
}

/* ========== 批量查询结果页面样式 ========== */
.compare-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 15px;
    background: #fffef5;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e8d5b5;
}
.chart-bar {
    flex: 1;
    min-width: 30px;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5px;
    transition: all 0.3s;
    position: relative;
}
.chart-bar:hover {
    opacity: 0.8;
}
.chart-bar .bar-label {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: #8b5a2b;
    white-space: nowrap;
}
.chart-bar .bar-score {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

/* 排名表格 */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff8e7;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #d4b896;
    box-shadow: 0 4px 20px rgba(139,90,43,0.1);
}
.rank-table thead {
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff8e7;
}
.rank-table thead th {
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.rank-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #e8d5b5;
    font-size: 14px;
    text-align: center;
    color: #5d4e37;
}
.rank-table tbody tr:hover {
    background: rgba(139,90,43,0.05);
}
.rank-table tbody tr:last-child td {
    border-bottom: none;
}

/* 排名标识 */
.rank-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    line-height: 28px;
    font-weight: 700;
    font-size: 14px;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffec8b); color: #8b5a2b; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e0e0e0); color: #8b5a2b; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #daa520); color: #fff; }
.rank-other { background: #e8d5b5; color: #8b5a2b; }

/* 分数显示 */
.score-display {
    font-size: 20px;
    font-weight: 700;
}
.score-daji { color: #c0392b; }
.score-ji { color: #e67e22; }
.score-ping { color: #f39c12; }
.score-xiong { color: #7f8c8d; }
.score-daxiong { color: #2c3e50; }

/* 吉凶标签 */
.level-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
}
.tag-daji { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }
.tag-ji { background: linear-gradient(135deg, #e67e22, #f39c12); color: #fff; }
.tag-ping { background: linear-gradient(135deg, #f39c12, #f1c40f); color: #8b5a2b; }
.tag-xiong { background: linear-gradient(135deg, #7f8c8d, #95a5a6); color: #fff; }
.tag-daxiong { background: linear-gradient(135deg, #2c3e50, #34495e); color: #fff; }

/* 五行关系 */
.wuxing-relation {
    font-size: 12px;
    color: #a08040;
}

/* 详情展开 */
.detail-toggle {
    color: #8b5a2b;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}
.phone-detail {
    display: none;
    background: #faf5eb;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: left;
    border: 1px solid #e8d5b5;
}
.phone-detail.active {
    display: block;
}

/* 推荐区域 */
.recommend-section {
    background: linear-gradient(135deg, #fff8e7, #faf5eb);
    border: 2px solid #c9a961;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.recommend-section h3 {
    color: #8b5a2b;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

/* 批量汇总 */
.batch-summary {
    background: linear-gradient(135deg, #8b5a2b 0%, #a67c52 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    color: #fff8e7;
    text-align: center;
    border: 2px solid #c9a961;
    box-shadow: 0 4px 20px rgba(139,90,43,0.2);
}
.batch-summary h2 {
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.batch-summary p {
    font-size: 14px;
    opacity: 0.9;
}
.batch-count {
    font-size: 36px;
    font-weight: 700;
    color: #ffd700;
}

/* ========== 基础表单样式 ========== */
.form-card {
    background: linear-gradient(135deg, #fffef5 0%, #fff8e7 100%);
    border-radius: 16px;
    border: 2px solid #d4b896;
    box-shadow: 0 4px 20px rgba(139,90,43,0.08);
    padding: 30px;
    margin-bottom: 25px;
}
.form-card > h2 {
    color: #8b5a2b;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    border-bottom: 2px solid #e8d5b5;
    padding-bottom: 15px;
}

.person-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8d5b5;
    box-shadow: 0 2px 8px rgba(139,90,43,0.05);
}
.person-section h3 {
    color: #8b5a2b;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    min-width: 140px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #8b5a2b;
    font-size: 14px;
}
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #d4b896;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #5d4e37;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}
.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139,90,43,0.1);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #8b5a2b, #a67c52);
    color: #fff8e7;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(139,90,43,0.25);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,90,43,0.35);
}

.error-box {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.tips {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #5d4e37;
}
.tips strong {
    color: #8b5a2b;
    font-size: 15px;
}

/* ========== 打印样式 ========== */
.score-box {
    background: linear-gradient(135deg, #8b5a2b 0%, #a67c52 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 0 0 30px 0;
    text-align: center;
    border: 3px solid #c9a961;
    color: #fff8e7;
    box-shadow: 0 8px 30px rgba(139,90,43,0.25);
    position: relative;
    overflow: hidden;
}
.score-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,215,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.phone-display {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    word-break: break-all;
}

.score-number {
    font-size: 80px;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
    margin: 15px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    position: relative;
}

.score-label {
    font-size: 16px;
    margin-top: 18px;
    opacity: 0.95;
    color: #fff8e7;
    letter-spacing: 2px;
    position: relative;
    font-weight: 500;
}

.score-level {
    display: inline-block;
    padding: 10px 35px;
    background: rgba(255,255,255,0.15);
    color: #fff8e7;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 700;
    margin-top: 18px;
    border: 2px solid #ffd700;
    letter-spacing: 3px;
    position: relative;
    backdrop-filter: blur(5px);
}

.score-summary {
    font-size: 15px;
    margin-top: 15px;
    color: #fff8e7;
    line-height: 1.8;
    text-align: left;
    padding: 0 20px;
}
.score-summary strong {
    color: #ffd700;
    font-weight: 700;
}
.score-summary ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc;
}
.score-summary li {
    margin-bottom: 6px;
    line-height: 1.8;
}



@media print {
    header, footer, .print-btn, .back-btn, .bazi-nav-bar {
        display: none !important;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .section-box {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    /* ========== 评分展示区（修复核心）========== */
@media print {
    
}
}
