/* 十二长生页面样式 */

.zhangs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    font-size: 1.15em;
    color: #666;
    font-weight: 400;
}

/* 介绍区域 */
.intro-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 56px 48px;
    margin-bottom: 60px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #1a1a1a;
}

.intro-text {
    font-size: 1.1em;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.intro-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
}

.intro-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.intro-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
    color: #fff;
}

.intro-icon-shengwang {
    background: #4caf50;
}

.intro-icon-shuaibai {
    background: #f44336;
}

.intro-icon-cycle {
    background: #2196f3;
}

.intro-item h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.intro-item p {
    font-size: 0.95em;
    line-height: 1.7;
    color: #666;
}

/* 十二长生循环图 */
.changsheng-chart-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
}

.chart-title {
    font-size: 2em;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
}

.chart-desc {
    font-size: 1.05em;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.changsheng-chart {
    width: 100%;
    max-width: 600px;
    height: auto;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chart-path {
    animation: pathDraw 2s ease-in-out;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-shadow {
    filter: blur(4px);
}

@keyframes pathDraw {
    from {
        stroke-dasharray: 0, 1000;
    }
    to {
        stroke-dasharray: 1000, 0;
    }
}

.stage-point {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stage-group[data-stage-index="1"] .stage-point,
.stage-group[data-stage-index="1"] .stage-glow {
    animation-delay: 0s;
}

.stage-group[data-stage-index="2"] .stage-point,
.stage-group[data-stage-index="2"] .stage-glow {
    animation-delay: 0.1s;
}

.stage-group[data-stage-index="3"] .stage-point,
.stage-group[data-stage-index="3"] .stage-glow {
    animation-delay: 0.2s;
}

.stage-group[data-stage-index="4"] .stage-point,
.stage-group[data-stage-index="4"] .stage-glow {
    animation-delay: 0.3s;
}

.stage-group[data-stage-index="5"] .stage-point,
.stage-group[data-stage-index="5"] .stage-glow {
    animation-delay: 0.4s;
}

.stage-group[data-stage-index="6"] .stage-point,
.stage-group[data-stage-index="6"] .stage-glow {
    animation-delay: 0.5s;
}

.stage-group[data-stage-index="7"] .stage-point,
.stage-group[data-stage-index="7"] .stage-glow {
    animation-delay: 0.6s;
}

.stage-group[data-stage-index="8"] .stage-point,
.stage-group[data-stage-index="8"] .stage-glow {
    animation-delay: 0.7s;
}

.stage-group[data-stage-index="9"] .stage-point,
.stage-group[data-stage-index="9"] .stage-glow {
    animation-delay: 0.8s;
}

.stage-group[data-stage-index="10"] .stage-point,
.stage-group[data-stage-index="10"] .stage-glow {
    animation-delay: 0.9s;
}

.stage-group[data-stage-index="11"] .stage-point,
.stage-group[data-stage-index="11"] .stage-glow {
    animation-delay: 1.0s;
}

.stage-group[data-stage-index="12"] .stage-point,
.stage-group[data-stage-index="12"] .stage-glow {
    animation-delay: 1.1s;
}

.stage-point {
    animation: pointPulse 2s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.stage-point:hover {
    r: 16;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: none;
    transform: scale(1.2);
}

.stage-glow {
    animation: glowPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--stage-index, 0) * 0.1s);
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.2;
        r: 18;
    }
    50% {
        opacity: 0.4;
        r: 22;
    }
}

.stage-group {
    transition: transform 0.3s ease;
}

.stage-group:hover {
    transform: scale(1.15);
}

.stage-label {
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.stage-group:hover ~ .stage-label,
.stage-group:hover + text.stage-label {
    font-size: 16px;
    font-weight: 700;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stage-number {
    pointer-events: none;
    user-select: none;
}

.center-title {
    pointer-events: none;
    user-select: none;
}

.center-subtitle {
    pointer-events: none;
    user-select: none;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-text {
    font-size: 0.95em;
    color: #555;
}

/* 天干快速查找 */
.gan-quick-nav {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.quick-nav-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.gan-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gan-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    color: #333;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gan-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gan-nav-btn .gan-icon {
    font-size: 1.2em;
}

.gan-nav-btn .gan-text {
    font-size: 1.1em;
}

/* 天干按钮五行颜色 */
.gan-nav-btn[data-gan="甲"],
.gan-nav-btn[data-gan="乙"] {
    border-color: #4caf50;
    color: #4caf50;
}

.gan-nav-btn[data-gan="甲"]:hover,
.gan-nav-btn[data-gan="乙"]:hover {
    background: #4caf50;
    color: #fff;
}

.gan-nav-btn[data-gan="丙"],
.gan-nav-btn[data-gan="丁"] {
    border-color: #f44336;
    color: #f44336;
}

.gan-nav-btn[data-gan="丙"]:hover,
.gan-nav-btn[data-gan="丁"]:hover {
    background: #f44336;
    color: #fff;
}

.gan-nav-btn[data-gan="戊"],
.gan-nav-btn[data-gan="己"] {
    border-color: #8d6e63;
    color: #8d6e63;
}

.gan-nav-btn[data-gan="戊"]:hover,
.gan-nav-btn[data-gan="己"]:hover {
    background: #8d6e63;
    color: #fff;
}

.gan-nav-btn[data-gan="庚"],
.gan-nav-btn[data-gan="辛"] {
    border-color: #ffc107;
    color: #ffa000;
}

.gan-nav-btn[data-gan="庚"]:hover,
.gan-nav-btn[data-gan="辛"]:hover {
    background: #ffc107;
    color: #fff;
}

.gan-nav-btn[data-gan="壬"],
.gan-nav-btn[data-gan="癸"] {
    border-color: #2196f3;
    color: #2196f3;
}

.gan-nav-btn[data-gan="壬"]:hover,
.gan-nav-btn[data-gan="癸"]:hover {
    background: #2196f3;
    color: #fff;
}

/* 表格区域 */
.table-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.table-wrapper {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.table-wrapper > table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    margin: 0;
    table-layout: fixed;
}

.table-wrapper > table thead {
    background: #f8f9fa;
    position: relative;
    z-index: 10;
}

.table-wrapper > table thead th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9em;
    white-space: nowrap;
}

.table-wrapper > table thead th:nth-child(1) { width: 10%; }
.table-wrapper > table thead th:nth-child(2) { width: 10%; }
.table-wrapper > table thead th:nth-child(3) { width: 8%; }
.table-wrapper > table thead th:nth-child(4) { width: 15%; }
.table-wrapper > table thead th:nth-child(5) { width: 10%; }
.table-wrapper > table thead th:nth-child(6) { width: 12%; }
.table-wrapper > table thead th:nth-child(7) { width: 15%; }

.table-body-wrapper {
    height: 1200px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.table-body-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    table-layout: fixed;
}

.table-body-wrapper table td {
    padding: 18px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.table-body-wrapper table td:nth-child(1) { width: 10%; }
.table-body-wrapper table td:nth-child(2) { width: 10%; }
.table-body-wrapper table td:nth-child(3) { width: 8%; }
.table-body-wrapper table td:nth-child(4) { width: 15%; }
.table-body-wrapper table td:nth-child(5) { width: 10%; }
.table-body-wrapper table td:nth-child(6) { width: 12%; }
.table-body-wrapper table td:nth-child(7) { width: 15%; }

.zhangs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.zhangs-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.zhangs-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9em;
    white-space: nowrap;
}

.zhangs-table td {
    padding: 18px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: middle;
}

.zhangs-table tbody tr {
    transition: background-color 0.2s ease;
}

.zhangs-table tbody tr:hover {
    background: #fafbfc;
}

.zhangs-table tbody tr.has-data {
    cursor: pointer;
}

.zhangs-table tbody tr:last-child td {
    border-bottom: none;
}

/* 分组标题 */
.group-header {
    background: #f0f4f8 !important;
}

.group-title {
    padding: 16px 14px !important;
    font-weight: 700;
    font-size: 1.1em;
    color: #1a1a1a;
    border-bottom: 2px solid #e0e0e0 !important;
}

.group-gan {
    display: inline-block;
    padding: 6px 14px;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    margin-right: 12px;
}

.group-text {
    color: #666;
    font-weight: 500;
}

/* 天干地支徽章 */
.gan-badge, .zhi-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

/* 天干五行颜色 */
.gan-badge {
    color: #fff;
}

/* 木：甲、乙 - 绿色 */
.gan-badge[data-gan="甲"],
.gan-badge[data-gan="乙"],
.group-gan[data-gan="甲"],
.group-gan[data-gan="乙"] {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* 火：丙、丁 - 红色 */
.gan-badge[data-gan="丙"],
.gan-badge[data-gan="丁"],
.group-gan[data-gan="丙"],
.group-gan[data-gan="丁"] {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* 土：戊、己 - 土色 */
.gan-badge[data-gan="戊"],
.gan-badge[data-gan="己"],
.group-gan[data-gan="戊"],
.group-gan[data-gan="己"] {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
}

/* 金：庚、辛 - 金色 */
.gan-badge[data-gan="庚"],
.gan-badge[data-gan="辛"],
.group-gan[data-gan="庚"],
.group-gan[data-gan="辛"] {
    background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
}

/* 水：壬、癸 - 蓝色 */
.gan-badge[data-gan="壬"],
.gan-badge[data-gan="癸"],
.group-gan[data-gan="壬"],
.group-gan[data-gan="癸"] {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* 地支五行颜色 */
.zhi-badge {
    color: #fff;
}

/* 水：子、亥 - 蓝色 */
.zhi-badge[data-zhi="子"],
.zhi-badge[data-zhi="亥"] {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* 木：寅、卯 - 绿色 */
.zhi-badge[data-zhi="寅"],
.zhi-badge[data-zhi="卯"] {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* 火：巳、午 - 红色 */
.zhi-badge[data-zhi="巳"],
.zhi-badge[data-zhi="午"] {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* 金：申、酉 - 金色 */
.zhi-badge[data-zhi="申"],
.zhi-badge[data-zhi="酉"] {
    background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
}

/* 土：辰、戌、丑、未 - 土色 */
.zhi-badge[data-zhi="辰"],
.zhi-badge[data-zhi="戌"],
.zhi-badge[data-zhi="丑"],
.zhi-badge[data-zhi="未"] {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
}

/* 旺衰徽章 */
.strength-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
}

.strength-wang {
    background: #e8f5e9;
    color: #2e7d32;
}

.strength-zhong {
    background: #fff3e0;
    color: #e65100;
}

.strength-shuai {
    background: #ffebee;
    color: #c62828;
}

/* 类别徽章 */
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
}

.category-shengwang {
    background: #e3f2fd;
    color: #1565c0;
}

.category-shuaibai {
    background: #fce4ec;
    color: #c2185b;
}

/* 操作链接 */
.detail-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.detail-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 详情页面 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 0.95em;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #764ba2;
}

.detail-header {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    margin-bottom: 40px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    text-align: center;
}

.header-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gan-badge-large, .zhi-badge-large, .stage-badge-large {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
}

/* 天干大徽章五行颜色 */
.gan-badge-large[data-gan="甲"],
.gan-badge-large[data-gan="乙"] {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.gan-badge-large[data-gan="丙"],
.gan-badge-large[data-gan="丁"] {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.gan-badge-large[data-gan="戊"],
.gan-badge-large[data-gan="己"] {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
}

.gan-badge-large[data-gan="庚"],
.gan-badge-large[data-gan="辛"] {
    background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
}

.gan-badge-large[data-gan="壬"],
.gan-badge-large[data-gan="癸"] {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

/* 地支大徽章五行颜色 */
.zhi-badge-large[data-zhi="子"],
.zhi-badge-large[data-zhi="亥"] {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.zhi-badge-large[data-zhi="寅"],
.zhi-badge-large[data-zhi="卯"] {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.zhi-badge-large[data-zhi="巳"],
.zhi-badge-large[data-zhi="午"] {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.zhi-badge-large[data-zhi="申"],
.zhi-badge-large[data-zhi="酉"] {
    background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%);
}

.zhi-badge-large[data-zhi="辰"],
.zhi-badge-large[data-zhi="戌"],
.zhi-badge-large[data-zhi="丑"],
.zhi-badge-large[data-zhi="未"] {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
}

/* 阶段大徽章颜色 */
.stage-badge-large[data-stage="长生"],
.stage-badge-large[data-stage="沐浴"],
.stage-badge-large[data-stage="冠带"],
.stage-badge-large[data-stage="临官"],
.stage-badge-large[data-stage="帝旺"],
.stage-badge-large[data-stage="胎"],
.stage-badge-large[data-stage="养"] {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.stage-badge-large[data-stage="衰"],
.stage-badge-large[data-stage="病"],
.stage-badge-large[data-stage="死"],
.stage-badge-large[data-stage="墓"],
.stage-badge-large[data-stage="绝"] {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

.detail-header h1 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-size: 0.95em;
    color: #666;
}

.header-summary {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}

.detail-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-section {
    margin-bottom: 48px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

.section-content {
    font-size: 1.05em;
    line-height: 1.9;
    color: #333;
}

.section-content p {
    margin-bottom: 16px;
}

.classic-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
}

.classic-quote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 24px;
    margin: 20px 0;
    font-size: 1.05em;
    line-height: 1.9;
    color: #555;
    border-radius: 8px;
    font-style: italic;
}

.classic-interpretation {
    margin-top: 20px;
    font-size: 1.05em;
    line-height: 1.9;
    color: #333;
}

.no-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.no-content p {
    font-size: 1.1em;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zhangs-container, .detail-container {
        padding: 20px 15px 60px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .page-header .subtitle {
        font-size: 1em;
    }

    .intro-section {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .intro-title {
        font-size: 1.8em;
    }

    .intro-text {
        font-size: 1em;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .table-section {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .table-body-wrapper {
        height: 800px;
    }

    .zhangs-table {
        font-size: 0.85em;
    }

    .zhangs-table th,
    .zhangs-table td {
        padding: 12px 8px;
    }

    .group-title {
        padding: 12px 8px !important;
        font-size: 1em;
    }

    .detail-header {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .detail-header h1 {
        font-size: 1.8em;
    }

    .header-badges {
        gap: 10px;
    }

    .gan-badge-large, .zhi-badge-large, .stage-badge-large {
        padding: 8px 16px;
        font-size: 0.95em;
    }

    .header-meta {
        flex-direction: column;
        gap: 12px;
    }

    .detail-content {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .section-content {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .zhangs-table th,
    .zhangs-table td {
        padding: 10px 6px;
        font-size: 0.8em;
    }

    .gan-badge, .zhi-badge {
        padding: 4px 10px;
        font-size: 0.85em;
    }

    .strength-badge, .category-badge {
        padding: 4px 8px;
        font-size: 0.75em;
    }
}

