/* 页面标题 */
.page-header {
text-align: center;
margin-bottom: 40px;
padding: 30px 0;
position: relative;
}
.page-header h1 {
color: var(--secondary-color);
font-size: 36px;
margin-bottom: 15px;
position: relative;
display: inline-block;
}
.page-header h1::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 4px;
background-color: var(--primary-color);
border-radius: 2px;
}
.page-header p {
color: var(--text-medium);
font-size: 18px;
max-width: 800px;
margin: 0 auto;
}
/* 各朝代表格容器 */
.dynasty-section {
margin-bottom: 40px;
}
.dynasty-header {
background-color: var(--secondary-color);
color: var(--white-color);
padding: 15px 25px;
border-radius: 8px 8px 0 0;
font-size: 22px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-between;
}
.dynasty-header i {
color: var(--patriotic-gold);
margin-right: 10px;
}
.dynasty-period {
font-size: 16px;
font-weight: normal;
opacity: 0.9;
}
/* 朝代表格 */
.dynasty-table {
width: 100%;
border-collapse: collapse;
background-color: var(--bg-white);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
border-radius: 0 0 8px 8px;
overflow: hidden;
}
.dynasty-table thead {
background-color: rgba(148, 99, 37, 0.1);
}
.dynasty-table th {
color: var(--secondary-color);
font-weight: 600;
font-size: 17px;
padding: 18px 20px;
text-align: left;
border-bottom: 2px solid var(--primary-color);
}
.dynasty-table tbody tr {
border-bottom: 1px solid var(--border-color);
transition: all 0.3s;
}
.dynasty-table tbody tr:hover {
background-color: rgba(148, 99, 37, 0.05);
}
.dynasty-table td {
padding: 20px;
color: var(--text-medium);
font-size: 16px;
line-height: 1.7;
vertical-align: top;
}
/* 两列布局 */
.dynasty-table td:first-child {
width: 25%;
font-weight: 600;
color: var(--secondary-color);
border-right: 1px solid var(--border-color);
}
.dynasty-table td:last-child {
width: 75%;
}
/* 朝代颜色标识 */
.tang-era td:first-child {
color: #946325;
}
.five-dynasties-era td:first-child {
color: #d62828;
}
.song-era td:first-child {
color: #2c7bb6;
}
.jin-era td:first-child {
color: #f9a825;
}
.yuan-era td:first-child {
color: #8b4513;
}
.ming-era td:first-child {
color: #2e7d32;
}
/* 重要事件标记 */
.important-event {
color: var(--patriotic-red);
font-weight: 500;
}
/* 脚注 */
.table-footer {
margin-top: 30px;
padding-top: 15px;
border-top: 1px solid var(--border-color);
color: var(--text-light);
font-size: 14px;
text-align: center;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.dynasty-table td:first-child {
width: 30%;
}
.dynasty-table td:last-child {
width: 70%;
}
}
@media (max-width: 992px) {
.dynasty-header {
font-size: 20px;
}
.dynasty-table th,
.dynasty-table td {
padding: 16px 18px;
font-size: 15px;
}
}
@media (max-width: 768px) {
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.dynasty-header {
font-size: 18px;
padding: 12px 20px;
flex-direction: column;
align-items: flex-start;
}
.dynasty-period {
margin-top: 5px;
font-size: 14px;
}
.dynasty-table th,
.dynasty-table td {
padding: 14px 16px;
font-size: 14px;
}
}
@media (max-width: 576px) {
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.dynasty-header {
padding: 10px 15px;
font-size: 16px;
}
.dynasty-table th,
.dynasty-table td {
padding: 12px 14px;
font-size: 13px;
display: block;
width: 100%;
border-right: none;
}
.dynasty-table td:first-child {
width: 100%;
border-right: none;
border-bottom: 1px solid var(--border-color);
font-size: 14px;
}
.dynasty-table td:last-child {
width: 100%;
}
.dynasty-table thead {
display: none;
}
.dynasty-table tbody tr {
display: block;
margin-bottom: 20px;
border-bottom: 2px solid var(--border-color);
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.dynasty-table td:first-child,
.dynasty-table td:last-child {
font-size: 13px;
}
}
/* 打印样式 */
@media print {
body {
background-color: white;
padding: 0;
}
.container {
max-width: 100%;
}
.dynasty-table {
box-shadow: none;
border: 1px solid #ddd;
}
.dynasty-table tbody tr {
break-inside: avoid;
}
}