@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;700;900&display=swap');

.tong-shing-container {
    max-width: 480px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif;
}

.zh-hant { font-variant-east-asian: traditional-forms; }
.flex-row { display: flex; flex-direction: row; width: 100%; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.ts-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D32F2F;
    border-bottom: 3px solid #D32F2F;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* 農曆日期加大 */
.lunar-info {
    font-size: 1.4rem;
    font-weight: 900;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 宜忌樣式 */
.yiji-clean {
    display: flex;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    gap: 20px;
}
.yi-list, .ji-list { flex: 1; text-align: center; }
.yi-title { color: #D32F2F; font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }
.ji-title { color: #000; font-size: 1.8rem; font-weight: 900; margin-bottom: 8px; }

.list-content {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.8;
    color: #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* 八字直排 */
.bazi-vertical-row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    background: #fafafa;
}
.pillar-box { display: flex; flex-direction: column; align-items: center; }
.bazi-label { font-size: 14px; color: #888; margin-bottom: 8px; font-weight: bold; }
.bazi-item {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 4px;
}

/* 底部數據加大 */
.footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    margin-top: 25px;
    align-items: center;
}
.btn-mode {
    border: 1px solid #D32F2F;
    padding: 6px 12px;
    background: #fff;
    color: #D32F2F;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
.btn-mode.active { background: #D32F2F; color: #fff; }
