/* ========================================
   八字排盘增强样式 - 四柱横排紧凑版
   ======================================== */

.bazi-pillar-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4d0 100%);
    border-radius: 12px;
}

.bazi-pillar-row.compact {
    gap: 8px;
    padding: 12px;
}

.bazi-pillar {
    background: white;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 8px 12px;
    width: 70px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.bazi-pillar.day-master {
    background: linear-gradient(135deg, #fffacd 0%, #ffd700 100%);
    border-color: #ff6b6b;
    border-width: 2px;
}

.pillar-title {
    font-size: 10px;
    color: #8b4513;
    font-weight: 600;
    margin-bottom: 5px;
}

.pillar-gan {
    font-size: 24px;
    font-weight: bold;
    color: #8b4513;
    margin: 3px 0;
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    line-height: 1.2;
}

.pillar-gan.highlight {
    color: #ff0000;
}

.pillar-zhi {
    font-size: 20px;
    font-weight: 600;
    color: #4a90e2;
    margin: 3px 0;
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    line-height: 1.2;
}

.pillar-nayin {
    font-size: 9px;
    color: #888;
    margin: 3px 0;
    padding: 2px 4px;
    background: #f5f5f5;
    border-radius: 3px;
}

.pillar-shishen {
    font-size: 10px;
    color: #8b4513;
    font-weight: 600;
    margin-top: 3px;
}

/* 基本信息行 */
.bazi-basic-info {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bazi-basic-info .info-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bazi-basic-info .info-item {
    text-align: center;
    padding: 5px 12px;
}

.bazi-basic-info .info-value.shengxiao {
    font-size: 1.1em;
    color: #d4af37;
    font-weight: bold;
}

.bazi-basic-info .info-item.highlight-box {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe0e0 100%);
    border-radius: 6px;
    border: 1px solid #ff6b6b;
}

.bazi-basic-info .info-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}

.bazi-basic-info .info-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bazi-basic-info .info-value.xiyong {
    color: #ff0000;
}

.bazi-basic-info .info-value.jishen {
    color: #666;
}

/* 五行分布区域 */
.wuxing-section {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wuxing-section h4 {
    color: #8b4513;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wuxing-bars {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wuxing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    min-width: 45px;
}

.wuxing-item.empty {
    opacity: 0.4;
}

.wuxing-label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
}

.wuxing-label.jin { color: #d4af37; }
.wuxing-label.mu { color: #228b22; }
.wuxing-label.shui { color: #1e90ff; }
.wuxing-label.huo { color: #ff4500; }
.wuxing-label.tu { color: #8b4513; }

.wuxing-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 五行生活建议区域 */
.wuxing-advice-section {
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
}

.wuxing-advice-section h4 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.advice-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.advice-icon {
    font-size: 20px;
    color: #4a90e2;
    margin-bottom: 5px;
}

.advice-title {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}

.advice-content {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
}

/* 命格总评 */
.fortune-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 12px 15px;
}

.fortune-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fortune-icon.good {
    background: linear-gradient(135deg, #fff3cd 0%, #ffd700 100%);
    color: #ff6b00;
}

.fortune-icon.neutral {
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    color: #1976d2;
}

.fortune-icon.caution {
    background: linear-gradient(135deg, #ffebee 0%, #ef9a9a 100%);
    color: #c62828;
}

.fortune-text {
    flex: 1;
}

.fortune-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.fortune-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 神煞区域 */
.shensha-section {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shensha-section h4 {
    color: #8b4513;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shensha-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shensha-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.shensha-tag.good {
    background: #e8f5e9;
    color: #2e7d32;
}

.shensha-tag.bad {
    background: #ffebee;
    color: #c62828;
}

.shensha-tag.neutral {
    background: #f5f5f5;
    color: #666;
}

/* 大运区域 */
.dayun-section {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dayun-section h4 {
    color: #4a90e2;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dayun-timeline {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 5px 0;
}

.dayun-item {
    min-width: 55px;
    background: #f8f8f8;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.dayun-item.current {
    background: linear-gradient(135deg, #fffacd 0%, #ffd700 100%);
    border: 1px solid #ff6b6b;
}

.dayun-ganzhi {
    font-size: 16px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 3px;
}

.dayun-age {
    font-size: 10px;
    color: #666;
}

/* 流年区域 */
.liunian-section {
    background: white;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.liunian-section h4 {
    color: #8b4513;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.liunian-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.liunian-card {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe4d0 100%);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}

.liunian-year {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.liunian-ganzhi {
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 3px;
}

.liunian-nayin {
    font-size: 10px;
    color: #888;
}

/* 喜用神标注 */
.xiyong {
    color: #ff0000;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .bazi-pillar-row {
        gap: 6px;
        padding: 10px;
    }
    
    .bazi-pillar {
        width: 60px;
        padding: 6px 8px;
    }
    
    .pillar-gan {
        font-size: 20px;
    }
    
    .pillar-zhi {
        font-size: 16px;
    }
    
    .advice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fortune-summary {
        flex-direction: column;
        text-align: center;
    }
}

/* 五行生活建议 - 新样式 */
.wuxing-advice {
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4ff 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 12px 0;
}

.wuxing-advice .advice-title {
    color: #4a90e2;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

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

.wuxing-advice .advice-item {
    background: white;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wuxing-advice .advice-item .label {
    font-size: 11px;
    color: #888;
}

.wuxing-advice .advice-item .value {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

@media (max-width: 480px) {
    .wuxing-advice .advice-grid {
        grid-template-columns: 1fr;
    }
}
