/* ===== Hero 区域（顶部） ===== */
.bazi-dao-wrapper .dao-hero-block {
    background: 
        radial-gradient(circle at 15% 25%, rgba(255, 210, 200, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255, 190, 175, 0.5) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 210, 0.4) 0%, transparent 60%),
        linear-gradient(145deg, #fcf0ea 0%, #fae6de 40%, #f5d4ca 70%, #ecc4b8 100%);
    padding: 60px 0 40px;
    text-align: center;
    color: #4a2a20;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(200, 150, 130, 0.10);
}
.bazi-dao-wrapper .dao-hero-block::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 160%;
    background: repeating-linear-gradient(55deg, 
        transparent, 
        transparent 60px, 
        rgba(255, 255, 240, 0.08) 60px, 
        rgba(255, 255, 240, 0.08) 62px);
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 0;
}
.bazi-dao-wrapper .dao-hero-block .sparkle {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.20;
    color: #e8b85a;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}
.bazi-dao-wrapper .dao-hero-block .sparkle1 { top: 5%; left: 8%; font-size: 4.5rem; opacity: 0.18; }
.bazi-dao-wrapper .dao-hero-block .sparkle2 { top: 12%; right: 5%; font-size: 3.5rem; opacity: 0.15; }
.bazi-dao-wrapper .dao-hero-block .sparkle3 { bottom: 15%; left: 15%; font-size: 3rem; opacity: 0.20; }
.bazi-dao-wrapper .dao-hero-block .sparkle4 { bottom: 25%; right: 8%; font-size: 3.5rem; opacity: 0.16; }
.bazi-dao-wrapper .dao-hero-block .sparkle5 { top: 45%; left: 3%; font-size: 2.5rem; opacity: 0.12; }
.bazi-dao-wrapper .dao-hero-block .sparkle6 { top: 55%; right: 3%; font-size: 2.8rem; opacity: 0.12; }
.bazi-dao-wrapper .dao-hero-block h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: #4a2a20;
    text-shadow: 0 2px 20px rgba(255, 200, 180, 0.2), 0 4px 30px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}
.bazi-dao-wrapper .dao-hero-block .subheading {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #7a4a3a;
    margin-top: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 12px rgba(255, 200, 180, 0.15);
}
@media (max-width: 768px) {
    .bazi-dao-wrapper .dao-hero-block {
        padding: 30px 0 20px !important;
    }
    .bazi-dao-wrapper .dao-hero-block h1 {
        font-size: 2.4rem;
        letter-spacing: 3px;
        margin-bottom: 6px;
    }
    .bazi-dao-wrapper .dao-hero-block .subheading {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    .bazi-dao-wrapper .dao-hero-block .sparkle {
        font-size: 2.5rem;
    }
    .bazi-dao-wrapper .dao-hero-block .sparkle1 { font-size: 3rem; }
    .bazi-dao-wrapper .dao-hero-block .sparkle2 { font-size: 2.5rem; }
}

/* ===== 头部信息（姓名/公历/生肖/喜用神） ===== */
.name-header-area {
    background: transparent !important;
    border-radius: 0;
    padding: 10px 0 12px;
    margin-bottom: 16px;
    box-shadow: none !important;
    text-align: center;
}
.name-header-area .title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4a2a20;
    letter-spacing: 4px;
    margin: 0 0 8px 0;
    display: inline-block;
    position: relative;
}
.name-header-area .title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.name-header-area .info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    justify-content: center;
}
.name-header-area .tag {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 1rem;
    color: #4a2a20;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.name-header-area .tag i {
    color: #d4af37;
    font-size: 1.1rem;
}
.name-header-area .tag .highlight {
    color: #b8860b;
    font-weight: 600;
}
.name-header-area .tag .label {
    opacity: 0.6;
    font-weight: 300;
    margin-right: 2px;
}
@media (max-width: 576px) {
    .name-header-area {
        padding: 8px 0;
    }
    .name-header-area .title {
        font-size: 1.5rem;
    }
    .name-header-area .tag {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}

/* ===== 名字卡片列表 ===== */
.name-card-item {
    border-radius: 16px;
    padding: 12px 8px;
    margin: 4px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}
.name-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(180, 100, 80, 0.15);
}
.name-card-item .left-section {
    padding-right: 4px;
}
.name-card-item .left-section .pinyin {
    font-size: 0.8rem;
    color: #7a6a5a;
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

/* 两列布局：简体和繁体严格对齐 */
.name-pair {
    display: flex;
    justify-content: center;
    margin-top: 2px;
}
.name-pair > div {
    flex: 0 0 50%;
    text-align: center;
}
.col-simp .simplified,
.col-trad .traditional {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3d2e1a;
    display: block;
    line-height: 1.2;
}
.col-simp .bihua,
.col-trad .fantibihua {
    font-size: 0.75rem;
    color: #9a8a7a;
    display: block;
    margin-top: 2px;
}
/* 旧式单行布局（保留以防万一，但不会被使用） */
.name-card-item .left-section .zi-row {
    display: none;
}
.name-card-item .left-section .stroke-row {
    display: none;
}

.name-card-item .score-area {
    display: flex;
    justify-content: center;
    align-items: center;
}
.name-card-item .score-circle {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.name-card-item .score-circle .score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2e1a;
    line-height: 1.2;
}
.name-card-item .score-circle .score-level {
    font-size: 0.7rem;
    font-weight: 500;
    color: #7a5a3a;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.name-card-item .wuge-area {
    padding-left: 8px;
}
.name-card-item .wuge-grid {
    font-size: 0.85rem;
    line-height: 1.8;
}
.name-card-item .wuge-grid .wuge-item {
    padding: 2px 0;
    text-align: center;
}
.name-card-item .wuge-grid .wuge-label {
    color: #9a8a7a;
    font-weight: 300;
    font-size: 0.75rem;
}
.name-card-item .wuge-grid .wuge-value {
    color: #3d2e1a;
    font-weight: 600;
}
.name-card-item .wuge-grid .wuge-value.good {
    color: #2a7a5a;
}
.name-card-item .wuge-grid .wuge-value.bad {
    color: #b04a3a;
}
.name-card-item .single-char {
    font-size: 2.8rem;
    font-weight: 700;
    color: #3d2e1a;
    letter-spacing: 4px;
    padding: 12px 0;
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}
@media (max-width: 576px) {
    .name-card-item {
        padding: 8px 4px;
    }
    .col-simp .simplified,
    .col-trad .traditional {
        font-size: 1.2rem;
    }
    .name-card-item .score-circle {
        width: 52px;
        height: 52px;
    }
    .name-card-item .score-circle .score-number {
        font-size: 1.1rem;
    }
    .name-card-item .score-circle .score-level {
        font-size: 0.6rem;
    }
    .name-card-item .wuge-grid {
        font-size: 0.7rem;
    }
    .name-card-item .single-char {
        font-size: 2.2rem;
    }
}

/* ===== 弹窗（详情）样式 ===== */
.table-name-cell {
    cursor: pointer;
    font-size: 12px;
    color: #2c1810;
}
.table-name-cell:hover {
    color: #d4a373;
}
@media (max-width: 768px) {
    .table-name-cell { font-size: 0.9rem; letter-spacing: 2px; }
}
.score-bg-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: none;
    background-image: url('/build/beike/shop/bazi_chart/image/ico_score_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: red;
    text-align: center;
    line-height: 0.7;
    padding: 6px;
    box-sizing: border-box;
    text-shadow: 0 1px 3px rgba(255,0,0,0.5);
}
.score-text-big {
    font-size: 35px;
    font-weight: 550;
}
.score-level-big {
    font-size: 16px;
    font-weight: 400;
}
.bazi-table .bazi-cell {
    padding: 4px 2px;
}
.bazi-field {
    font-weight: 600;
    color: #4a2a20;
}
.bazi-normal {
    font-weight: 400;
    color: #3d2e1a;
}
.bazi-ganzhi {
    font-weight: 600;
}
/* 颜色类（五行色，由PHP动态生成） */
.text-gan { color: #1f543e; }
.text-zhi { color: #a63c2c; }

/* 弹窗模态框 */
#infoModal .modal-dialog {
    max-height: 90vh;
    margin: 1.75rem auto;
}
#infoModal .modal-content {
    max-height: 90vh;
}
#infoModal .modal-body {
    overflow-y: auto;
    height: auto;
}

/* 加载覆盖层 */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}
.spinner-lg {
    width: 4rem;
    height: 4rem;
    border-width: 0.4rem;
}
/* 辅助类 */
.yy {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}