/* 颜色变量定义 */
:root {
--aboutus-primary-color: #946325;
--aboutus-secondary-color: #451b0c;
--aboutus-accent-color: #e60013;
--aboutus-patriotic-red: #d62828;
--aboutus-patriotic-gold: #ffd166;
--aboutus-text-dark: #333333;
--aboutus-text-medium: #666666;
--aboutus-text-light: #999999;
--aboutus-bg-light: #f8f6f2;
--aboutus-white-color: #ffffff;
--aboutus-bg-white: #ffffff;
--aboutus-border-color: #e0d9cf;
}
/* 通用样式 */
.aboutus-container {
max-width: 1560px;
margin: 0 auto;
padding: 0 15px;
}
/* Banner区域 */
.aboutus-banner {
position: relative;
min-height:480px;
max-height:480px;
overflow: hidden;
margin-top:90px;
margin-bottom:40px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.aboutus-banner-img {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
}
.aboutus-banner-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(69, 27, 12, 0.1), rgba(69, 27, 12, 0.2));
display: flex;
align-items: center;
justify-content: center;
padding:20px;
}
.aboutus-banner-text {
color: var(--aboutus-white-color);
text-align: center;
max-width: 900px;
padding: 20px;
}
.aboutus-banner-text h2 {
font-size: 48px;
margin-bottom: 15px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
line-height: 1.2;
}
.aboutus-banner-text p {
font-size: 20px;
text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
line-height: 1.5;
}
/* 横向二级导航 */
.aboutus-horizontal-nav {
display: flex;
justify-content: center;
gap:10px;
margin-bottom:50px;
padding:0px;
}
.aboutus-nav-btn {
display: flex;
align-items: center;
padding: 12px 25px;
text-decoration: none;
color: var(--aboutus-text-medium);
font-size: 16px;
font-weight: 500;
border-radius: 6px;
transition: all 0.3s ease;
border: 1px solid transparent;
background-color: var(--aboutus-bg-white);
border-radius: 50px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.aboutus-nav-btn i {
font-size: 18px;
margin-right: 10px;
transition: all 0.3s ease;
}
.aboutus-nav-btn span {
font-size: 16px;
}
.aboutus-nav-btn:hover {
color: var(--aboutus-primary-color);
background-color: var(--aboutus-bg-light);
border-color: var(--aboutus-border-color);
}
.aboutus-nav-btn:hover i {
color: var(--aboutus-primary-color);
}
.aboutus-nav-btn.active {
color: var(--aboutus-white-color);
background-color: var(--aboutus-primary-color);
box-shadow: 0 4px 8px rgba(148, 99, 37, 0.3);
}
.aboutus-nav-btn.active i {
color: var(--aboutus-white-color);
}
/* 内容区域 */
.aboutus-content {
display: flex;
flex-direction: column;
gap:10px;
margin-bottom:50px;
}
/* 内容模块样式 */
.aboutus-content-section {
background-color: var(--aboutus-bg-white);
overflow: hidden;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
border-radius: 12px;
border: 0px solid var(--aboutus-border-color);
}
.aboutus-content-section:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.aboutus-img-container {
position: relative;
overflow: hidden;
max-height:800px;
}
.aboutus-content-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
filter: brightness(0.95);
}
.aboutus-content-section:hover .aboutus-content-img {
transform: scale(1.08);
filter: brightness(1.05);
}
.aboutus-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 50%, rgba(69, 27, 12, 0.4));
}
.aboutus-content-text {
padding: 30px;
}
.aboutus-section-title {
color: var(--aboutus-secondary-color);
font-size: 28px;
margin-bottom: 25px;
padding-bottom: 12px;
position: relative;
display: flex;
align-items: center;
}
.aboutus-section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 80px;
height: 3px;
background-color: var(--aboutus-primary-color);
}
.aboutus-section-title i {
margin-right: 15px;
color: var(--aboutus-primary-color);
font-size:26px;
}
.aboutus-content-text p {
color: var(--aboutus-text-medium);
font-size: 17px;
margin-bottom:10px;
line-height: 1.8;
}
/* 响应式设计 - 移动端优化 */
@media (max-width: 1200px) {
.aboutus-banner-text h2 { font-size: 42px; }
.aboutus-banner-text p { font-size: 19px; }
.aboutus-img-container { height: 350px; }
}
@media (max-width: 992px) {
.aboutus-banner-text h2 { font-size: 38px; }
.aboutus-banner-text p { font-size: 18px; }
.aboutus-img-container { height: 320px; }
.aboutus-content-text { padding: 30px; }
.aboutus-content-section { border-radius: 14px; }
}
@media (max-width: 768px) {
/* 移动端Banner优化 */
.aboutus-banner {
min-height: 240px;
max-height: 350px;
margin-bottom: 30px;
}
.aboutus-banner-text h2 { 
font-size: 28px; 
margin-bottom: 12px;
}
.aboutus-banner-text p { 
font-size: 16px;
line-height: 1.4;
}
.aboutus-banner-text {
padding: 15px;
}
.aboutus-horizontal-nav {
flex-wrap: wrap;
justify-content: space-around;
margin-bottom: 40px;
}
.aboutus-nav-btn {
padding: 10px 15px;
flex: 1;
min-width: 120px;
justify-content: center;
}
.aboutus-img-container { height: 280px; }
.aboutus-section-title { font-size: 26px; }
.aboutus-content-section { border-radius: 12px; }
}
@media (max-width: 576px) {
/* 小屏手机Banner优化 */
.aboutus-banner {
min-height: 240px;
max-height: 320px;
}
.aboutus-banner-text h2 { 
font-size: 24px; 
margin-bottom: 10px;
}
.aboutus-banner-text p { 
font-size: 15px;
line-height: 1.3;
}
.aboutus-banner-text {
padding: 12px;
}
.aboutus-nav-btn {
min-width: 110px;
padding: 8px 12px;
}
.aboutus-nav-btn span { font-size: 14px; }
.aboutus-nav-btn i { font-size:16px; margin-right:6px;}
.aboutus-content-text { padding: 25px; }
.aboutus-section-title { font-size: 24px; }
.aboutus-img-container { height:240px; }
.aboutus-content-section { border-radius:10px;}
}
@media (max-width: 400px) {
/* 超小屏手机Banner优化 */
.aboutus-banner {
min-height: 240px;
max-height: 280px;
}
.aboutus-banner-text h2 { 
font-size: 22px; 
margin-bottom:8px;
}
.aboutus-banner-text p { 
font-size: 14px;
line-height: 1.3;
}
.aboutus-banner-text {
padding: 10px;
}
.aboutus-horizontal-nav { gap: 5px; }
.aboutus-nav-btn {
padding: 8px 10px;
min-width: 90px;
}
.aboutus-nav-btn span { font-size: 14px; }
.aboutus-nav-btn i { font-size: 15px; margin-right: 4px; }
.aboutus-content-text { padding: 20px; }
.aboutus-section-title { font-size: 22px; }
.aboutus-img-container { height: 200px; }
.aboutus-content-section { border-radius: 8px; }
}
/* 极端小屏幕保护 */
@media (max-width: 320px) {
.aboutus-banner-text h2 { font-size: 20px; }
.aboutus-banner-text p { font-size: 13px; }
.aboutus-nav-btn { min-width: 80px; }
}
/* 激活状态 */
.nav-button.active {
background-color: var(--primary-color);
color: var(--white-color);
border-color: var(--primary-color);
box-shadow: 0 4px 12px rgba(148, 99, 37, 0.2);
}
.nav-button.active i {
color: var(--white-color);
}
/* 遗址图册内容区域 */
.album-section {
margin-bottom: 60px;
}
/* 图册网格布局 - 一排三列 */
.album-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 40px;
}
/* 图册项样式 */
.album-item {
background-color: var(--bg-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
text-decoration: none;
}
.album-item:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.album-img-container {
position: relative;
overflow: hidden;
height: 280px;
width: 100%;
}
.album-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.6s ease;
}
.album-item:hover .album-img {
transform: scale(1.08);
}
.album-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 60%, rgba(69, 27, 12, 0.4));
transition: all 0.3s ease;
}
.album-item:hover .album-img-overlay {
background: linear-gradient(to bottom, transparent 40%, rgba(69, 27, 12, 0.6));
}
.album-content {
padding: 20px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.album-title {
color: var(--secondary-color);
font-size: 18px;
margin-bottom: 10px;
font-weight:500;
line-height: 1.4;
text-decoration: none;
transition: color 0.3s ease;
}
.album-item:hover .album-title {
color: var(--primary-color);
}
/* 分页样式 */
.pagination {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.pagination-btn {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-medium);
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
margin: 0 5px;
text-decoration: none;
}
.pagination-btn:hover:not(.disabled) {
background-color: var(--bg-light);
color: var(--primary-color);
border-color: var(--primary-color);
}
.pagination-btn.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pagination-pages {
display: flex;
margin: 0 10px;
}
.page-number {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background-color: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-medium);
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
margin: 0 3px;
text-decoration: none;
}
.page-number:hover {
background-color: var(--bg-light);
color: var(--primary-color);
border-color: var(--primary-color);
}
.page-number.active {
background-color: var(--primary-color);
color: var(--white-color);
border-color: var(--primary-color);
}
.page-ellipsis {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
color: var(--text-light);
font-size: 16px;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.banner-text h2 {
font-size: 40px;
}
.album-grid {
gap: 25px;
}
.album-img-container {
height: 250px;
}
}
@media (max-width: 992px) {
.album-grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.nav-button {
padding: 10px 16px;
font-size: 16px;
}
.nav-button i {
font-size: 18px;
margin-right: 8px;
}
}
@media (max-width: 768px) {
.banner-text h2 {
font-size: 32px;
}
.banner-text p {
font-size: 18px;
}
.horizontal-nav {
padding: 6px;
flex-wrap: wrap;
}
.nav-button {
margin: 4px;
flex: 1 0 calc(50% - 8px);
max-width: none;
padding: 12px 10px;
}
.album-grid {
grid-template-columns: 1fr;
gap: 25px;
}
.album-img-container {
height: 300px;
}
.pagination-btn, .page-number {
width: 36px;
height: 36px;
font-size: 15px;
}
}
@media (max-width: 576px) {
.banner-text h2 {
font-size: 28px;
}
.banner-text p {
font-size: 16px;
}
.horizontal-nav {
padding: 5px;
}
.nav-button {
margin: 3px;
flex: 1 0 100%;
padding: 10px 8px;
font-size: 15px;
}
.nav-button i {
font-size: 16px;
margin-right: 6px;
}
.album-img-container {
height: 250px;
}
.pagination-btn, .page-number {
width: 32px;
height: 32px;
font-size: 14px;
margin: 0 2px;
}
.page-ellipsis {
width: 32px;
height: 32px;
font-size: 14px;
}
}
@media (max-width: 400px) {
.banner-text h2 {
font-size: 24px;
}
.banner-text p {
font-size: 15px;
}
.album-img-container {
height: 220px;
}
.pagination {
flex-wrap: wrap;
}
}
/* 关于我们区域 - 四个模块，一排两列 */
.aboutus {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap:35px;
margin-bottom: 60px;
}
.aboutus-section {
background-color: var(--bg-white);
overflow: hidden;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
position: relative;
display: flex;
flex-direction: column;
border-radius:12px;
border: 0px solid var(--border-color);
height: 100%;
}
.aboutus-section:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.aboutus-img-container {
position: relative;
overflow: hidden;
width: 100%;
}
.aboutus-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.6s ease;
filter: brightness(0.95);
}
.aboutus-section:hover .aboutus-img {
transform: scale(1.08);
filter: brightness(1.05);
}
.aboutus-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 50%, rgba(69, 27, 12, 0.4));
border-radius: 16px 16px 0 0;
}
.aboutus-icon {
position: absolute;
top: 20px;
left: 20px;
background-color: var(--primary-color);
color: var(--white-color);
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
z-index: 10;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.aboutus-text {
padding: 25px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.aboutus-text h3 {
color: var(--secondary-color);
font-size: 24px;
margin-bottom: 15px;
padding-bottom: 10px;
position: relative;
}
.aboutus-text h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height:3px;
background-color: var(--primary-color);
border-radius: 2px;
}
.aboutus-text p {
color: var(--text-medium);
font-size: 16px;
margin-bottom:5px;
line-height: 1.7;
flex-grow: 1;
}
.aboutus-highlight {
background-color: var(--bg-light);
padding: 12px;
border-left: 4px solid var(--patriotic-red);
margin: 15px 0;
font-style: italic;
color: var(--secondary-color);
font-size: 16px;
border-radius: 0 8px 8px 0;
}
.aboutus-list {
list-style: none;
margin: 15px 0;
}
.aboutus-list li {
padding: 8px 0;
padding-left: 24px;
position: relative;
color: var(--text-medium);
}
.aboutus-list li::before {
content: '✓';
position: absolute;
left: 0;
color: var(--patriotic-red);
font-weight: bold;
}
.aboutus-read-more {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: var(--secondary-color);
color: var(--white-color);
padding: 12px 24px;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
transition: all 0.3s;
margin-top: 15px;
font-size: 16px;
box-shadow: 0 4px 8px rgba(69, 27, 12, 0.2);
align-self: flex-start;
}
.aboutus-read-more:hover {
background-color: var(--patriotic-red);
transform: translateX(5px);
box-shadow: 0 6px 12px rgba(214, 40, 40, 0.3);
}
.aboutus-read-more i {
margin-left: 8px;
transition: transform 0.3s;
}
.aboutus-read-more:hover i {
transform: translateX(5px);
}
/* 响应式设计 */
@media (max-width: 1200px) {
.banner-text h2 {
font-size: 40px;
}
.aboutus-img-container {
height: 250px;
}
}
@media (max-width: 992px) {
.sub-nav ul {
flex-wrap: wrap;
}
.sub-nav li {
flex: 1 0 50%;
}
.aboutus {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
.aboutus-text {
padding: 20px;
}
.sub-nav {
border-radius: 10px;
}
.aboutus-section {
border-radius: 14px;
}
}
@media (max-width: 768px) {
.banner-text h2 {
font-size: 32px;
}
.banner-text p {
font-size: 18px;
}
.sub-nav li {
flex: 1 0 100%;
}
.sub-nav a {
padding: 18px 10px;
}
.aboutus {
grid-template-columns: 1fr;
gap: 25px;
}
.aboutus-text h3 {
font-size: 22px;
}
.aboutus-img-container {
height: 280px;
}
.sub-nav {
border-radius: 8px;
}
.aboutus-section {
border-radius: 12px;
}
}
@media (max-width: 576px) {
.banner-text h2 {
font-size: 28px;
}
.banner-text p {
font-size: 16px;
}
.aboutus-text {
padding: 20px;
}
.aboutus-text h3 {
font-size: 20px;
}
.aboutus-highlight {
padding: 10px;
font-size: 15px;
}
.sub-nav a {
font-size: 16px;
}
.sub-nav a i {
font-size: 18px;
}
.aboutus-img-container {
height: 220px;
}
.aboutus-icon {
width: 40px;
height: 40px;
font-size: 18px;
}
.sub-nav {
border-radius: 8px;
}
.aboutus-section {
border-radius: 10px;
}
}
@media (max-width: 400px) {
.banner-text h2 {
font-size: 24px;
}
.banner-text p {
font-size: 15px;
}
.aboutus-text {
padding: 18px;
}
.aboutus-text h3 {
font-size: 18px;
}
.aboutus-img-container {
height: 200px;
}
.aboutus-section {
border-radius: 8px;
}
}
/* 考古 */
/* 页面标题 */
.page-header {
text-align: center;
margin-bottom:10px;
padding:20px 0;
position: relative;
}
.page-header h1 {
color: var(--secondary-color);
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;
}
/* 表格容器 */
.table-container {
background-color: var(--bg-white);
border-radius: 12px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
margin-bottom: 50px;
overflow: hidden;
}
.table-title {
color: var(--secondary-color);
font-size: 24px;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.table-title i {
color: var(--primary-color);
margin-right: 10px;
}
.download-btn {
background-color: var(--secondary-color);
color: var(--white-color);
padding: 8px 16px;
border-radius: 6px;
text-decoration: none;
font-size: 14px;
transition: all 0.3s;
display: inline-flex;
align-items: center;
}
.download-btn:hover {
background-color: var(--patriotic-red);
transform: translateY(-2px);
}
.download-btn i {
margin-right: 8px;
}
/* 考古表格 */
.archaeology-table {
width: 100%;
border-collapse: collapse;
border-radius: 8px;
overflow: hidden;
/* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); */
}
.archaeology-table thead {
background-color: var(--table-header-bg);
}
.archaeology-table th {
color: var(--secondary-color);
font-weight: 600;
font-size: 17px;
padding: 18px 15px;
text-align: left;
border-bottom: 2px solid var(--primary-color);
position: relative;
}
.archaeology-table th::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
}
.archaeology-table tbody tr {
border-bottom: 1px solid var(--border-color);
transition: all 0.3s;
}
.archaeology-table tbody tr:hover {
background-color: rgba(148, 99, 37, 0.05);
}
.archaeology-table td {
padding: 20px 15px;
color: var(--text-medium);
font-size: 16px;
line-height: 1.7;
vertical-align: top;
}
.archaeology-table td:first-child {
font-weight: 600;
color: var(--secondary-color);
width: 15%;
}
.archaeology-table td:nth-child(2) {
width: 22%;
}
.archaeology-table td:nth-child(3) {
width: 38%;
}
.archaeology-table td:last-child {
width: 25%;
}
.year-badge {
display: inline-block;
background-color: var(--primary-color);
color: var(--white-color);
padding: 4px 10px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
margin-bottom: 5px;
}
.highlight-text {
color: var(--patriotic-red);
font-weight: 500;
}
.doc-list {
list-style-type: none;
}
.doc-list li {
padding: 5px 0;
padding-left: 20px;
position: relative;
}
.doc-list li::before {
content: '📄';
position: absolute;
left: 0;
top: 5px;
}
/* 表格脚注 */
.table-footer {
margin-top:5px;
padding-top: 15px;
border-top:0px solid var(--border-color);
color: var(--text-light);
font-size: 14px;
text-align: left;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.archaeology-table td:first-child {
width: 18%;
}
.archaeology-table td:nth-child(2) {
width: 25%;
}
.archaeology-table td:nth-child(3) {
width: 32%;
}
.archaeology-table td:last-child {
width: 25%;
}
}
@media (max-width: 992px) {
.page-header h1 {
font-size: 32px;
}
.archaeology-table {
display: block;
overflow-x: auto;
}
.archaeology-table th,
.archaeology-table td {
min-width: 180px;
}
.archaeology-table td:first-child,
.archaeology-table td:nth-child(2),
.archaeology-table td:nth-child(3),
.archaeology-table td:last-child {
width: auto;
}
}
@media (max-width: 768px) {
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.table-container {
padding: 20px;
}
.table-title {
font-size: 22px;
flex-direction: column;
align-items: flex-start;
}
.download-btn {
margin-top: 10px;
}
.archaeology-table th,
.archaeology-table td {
padding: 15px 12px;
font-size: 15px;
}
}
@media (max-width: 576px) {
body {
padding:0px;
}
.container {
padding: 0 10px;
}
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.table-container {
padding: 15px;
border-radius: 8px;
}
.table-title {
font-size: 20px;
}
.archaeology-table th,
.archaeology-table td {
padding: 12px 10px;
font-size: 14px;
}
.year-badge {
font-size: 13px;
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.table-title {
font-size: 18px;
}
.archaeology-table th,
.archaeology-table td {
padding: 10px 8px;
font-size: 13px;
}
}
/* 打印样式 */
@media print {
body {
background-color: white;
padding: 0;
}
.container {
max-width: 100%;
}
.table-container {
box-shadow: none;
border: 1px solid #ddd;
}
.download-btn {
display: none;
}
.archaeology-table tbody tr {
break-inside: avoid;
}
}
/* 分区 */
/* 表格容器 */
.table-container {
background-color: var(--bg-white);
border-radius: 12px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
margin-bottom: 50px;
overflow: hidden;
}
.table-title {
color: var(--secondary-color);
font-size: 24px;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
}
.table-title i {
color: var(--primary-color);
margin-right: 10px;
}
.legend {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
}
.legend-item {
display: flex;
align-items: center;
font-size: 14px;
color: var(--text-medium);
}
.legend-color {
width: 16px;
height: 16px;
border-radius: 4px;
margin-right: 8px;
}
/* 分区表格 */
.partition-table {
width: 100%;
border-collapse: collapse;
border-radius:8px;
overflow: hidden;
}
.partition-table thead {
background-color: var(--table-header-bg);
}
.partition-table th {
color: var(--secondary-color);
font-weight: 600;
font-size: 16px;
padding: 18px 12px;
text-align: left;
border-bottom: 2px solid var(--primary-color);
position: relative;
vertical-align: middle;
}
.partition-table th::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
}
.partition-table tbody tr {
border-bottom: 1px solid var(--border-color);
transition: all 0.3s;
}
.partition-table tbody tr:nth-child(even) {
background-color: var(--row-alt-bg);
}
.partition-table tbody tr:hover {
background-color: rgba(148, 99, 37, 0.1);
transform: translateY(-2px);
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.partition-table td {
padding: 20px 12px;
color: var(--text-medium);
font-size: 15px;
line-height: 1.6;
vertical-align: top;
}
/* 列宽设置 */
.partition-table th:nth-child(1),
.partition-table td:nth-child(1) {
width: 8%;
font-weight: 600;
color: var(--secondary-color);
}
.partition-table th:nth-child(2),
.partition-table td:nth-child(2) {
width: 8%;
}
.partition-table th:nth-child(3),
.partition-table td:nth-child(3) {
width: 8%;
}
.partition-table th:nth-child(4),
.partition-table td:nth-child(4) {
width: 10%;
}
.partition-table th:nth-child(5),
.partition-table td:nth-child(5) {
width: 22%;
}
.partition-table th:nth-child(6),
.partition-table td:nth-child(6) {
width: 22%;
}
.partition-table th:nth-child(7),
.partition-table td:nth-child(7) {
width: 22%;
}
/* 单元格特殊样式 */
.partition-name {
font-weight: 600;
color: var(--secondary-color);
font-size: 16px;
}
.area-badge {
display: inline-block;
background-color: var(--patriotic-gold);
color: var(--secondary-color);
padding: 4px 10px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
text-align: center;
width: 100%;
}
.highlight {
color: var(--patriotic-red);
font-weight: 500;
}
.feature-list {
list-style-type: none;
margin: 8px 0;
}
.feature-list li {
padding: 3px 0;
padding-left: 18px;
position: relative;
}
.feature-list li::before {
content: '•';
position: absolute;
left: 8px;
color: var(--primary-color);
font-weight: bold;
}
/* 分区颜色标识 */
.east-city {
background-color: rgba(212, 40, 40, 0.08);
}
.inner-city {
background-color: rgba(148, 99, 37, 0.08);
}
.west-city {
background-color: rgba(255, 209, 102, 0.1);
}
.north-city {
background-color: rgba(69, 27, 12, 0.05);
}
/* 响应式设计 */
@media (max-width: 1200px) {
.partition-table th,
.partition-table td {
padding: 15px 10px;
font-size: 14px;
}
}
@media (max-width: 992px) {
.partition-table-container {
overflow-x: auto;
}
.partition-table {
min-width: 900px;
}
.legend {
justify-content: center;
}
}
@media (max-width: 768px) {
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.table-container {
padding: 20px;
}
.table-title {
font-size: 22px;
flex-direction: column;
align-items: flex-start;
}
.legend {
justify-content: flex-start;
}
}
@media (max-width: 576px) {
body {
padding:0px;
}
.container {
padding: 0 10px;
}
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.table-container {
padding: 15px;
border-radius: 8px;
}
.table-title {
font-size: 20px;
}
.partition-table th,
.partition-table td {
padding: 12px 8px;
font-size: 13px;
}
.area-badge {
font-size: 12px;
padding: 3px 8px;
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.table-title {
font-size: 18px;
}
.legend {
flex-direction: column;
gap: 8px;
}
}
/* 文物展示区域 */
.simple-artifacts {margin-bottom:50px;}
/* 文物网格 - 一排三列 */
.simple-artifacts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
/* 文物卡片 - 简洁版 */
.simple-artifact-card {
background-color: var(--bg-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: all 0.4s ease;
display: flex;
flex-direction: column;
height: 100%;
}
.simple-artifact-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.simple-artifact-img-container {
position: relative;
overflow: hidden;
height: 280px;
width: 100%;
}
.simple-artifact-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.6s ease;
}
.simple-artifact-card:hover .simple-artifact-img {
transform: scale(1.08);
}
.simple-artifact-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 70%, rgba(69, 27, 12, 0.3));
opacity: 0;
transition: opacity 0.4s ease;
}
.simple-artifact-card:hover .simple-artifact-img-overlay {
opacity: 1;
}
.simple-artifact-title {
padding: 20px;
text-align: center;
}
.simple-artifact-title h3 {
color: var(--secondary-color);
font-size:18px;
font-weight: 500;
line-height: 1.3;
margin: 0;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.simple-artifacts-grid {
gap: 25px;
}
.simple-artifact-img-container {
height: 250px;
}
}
@media (max-width: 992px) {
.simple-artifacts-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
.page-header h1 {
font-size: 32px;
}
.simple-artifact-img-container {
height: 280px;
}
}
@media (max-width: 768px) {
.simple-artifacts-grid {
grid-template-columns: 1fr;
gap: 25px;
}
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.simple-artifact-img-container {
height: 320px;
}
.simple-artifact-title h3 {
font-size: 22px;
}
}
@media (max-width: 576px) {
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.simple-artifact-img-container {
height: 250px;
}
.simple-artifact-title {
padding: 18px;
}
.simple-artifact-title h3 {
font-size: 19px;
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.simple-artifact-img-container {
height: 220px;
}
.simple-artifact-title {
padding: 15px;
}
.simple-artifact-title h3 {
font-size: 18px;
}
}
/* 天气框架容器 */
.weather-container {
background-color: var(--bg-white);
border-radius: 12px;
padding: 30px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
margin-bottom: 50px;
}
.weather-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border-color);
}
.weather-title {
color: var(--secondary-color);
font-size: 24px;
display: flex;
align-items: center;
}
.weather-title i {
color: var(--primary-color);
margin-right: 10px;
}
.weather-location {
color: var(--text-medium);
font-size: 16px;
display: flex;
align-items: center;
}
.weather-location i {
margin-right: 8px;
color: var(--patriotic-red);
}
/* 天气框架区域 */
.weather-frame-container {
width: 100%;
height: 240px;
border: none;
border-radius: 8px;
overflow: hidden;
background-color: #f5f5f5;
position: relative;
border-radius: 10px;
padding:30px;
margin-top: 30px;
border-left: 4px solid #1890ff;
}
.weather-frame {
width: 100%;
height: 100%;
border: none;
border-radius: 8px;
}
/* 天气框架加载状态 */
.weather-loading {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--bg-light);
z-index: 10;
}
.weather-loading i {
font-size: 48px;
color: var(--primary-color);
margin-bottom: 20px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.weather-loading p {
color: var(--text-medium);
font-size: 18px;
}
/* 天气框架底部信息 */
.weather-footer {
margin-top: 20px;
padding-top: 15px;
border-top: 1px solid var(--border-color);
color: var(--text-light);
font-size: 14px;
text-align: center;
}
/* 响应式设计 */
@media (max-width: 1200px) {
.weather-frame-container {
height: 550px;
}
}
@media (max-width: 992px) {
.page-header h1 {
font-size: 32px;
}
.weather-frame-container {
height: 500px;
}
.weather-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
}
@media (max-width: 768px) {
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.weather-container {
padding: 20px;
}
.weather-frame-container {
height: 450px;
}
.weather-title {
font-size: 22px;
}
}
@media (max-width: 576px) {
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.weather-container {
padding: 15px;
border-radius: 8px;
}
.weather-frame-container {
height:160px;
}
.weather-title {
font-size: 20px;
}
.weather-location {
font-size: 15px;
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.weather-frame-container {
height: 350px;
}
.weather-title {
font-size: 18px;
}
.weather-loading i {
font-size: 36px;
}
.weather-loading p {
font-size: 16px;
}
}
/* 杨家城现代大事记时间线容器 */
.modern-timeline {
position: relative;
margin-bottom: 60px;
padding-left: 50px;
}
/* 时间轴线 - 优化版 */
.timeline-line {
position: absolute;
top: 0;
left: 32px;
width: 2px;
height: 100%;
background: linear-gradient(to bottom, 
transparent 0%, 
var(--primary-color) 5%, 
var(--primary-color) 95%, 
transparent 100%);
border-radius: 1px;
}
/* 时间点 - 优化版 */
.timeline-marker {
position: absolute;
left: 25px;
width: 16px;
height: 16px;
background-color: var(--bg-white);
border: 3px solid var(--primary-color);
border-radius: 50%;
z-index: 10;
box-shadow: 
0 0 0 2px rgba(148, 99, 37, 0.1),
0 2px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
/* 事件卡片 */
.timeline-event {
position: relative;
margin-bottom: 40px;
padding-left: 40px;
transition: all 0.3s;
}
.timeline-event:hover {
transform: translateX(5px);
}
/* 年份标签 - 优化版 */
.event-year {
position: absolute;
left: -50px;
top: 0;
background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
color: var(--white-color);
padding: 8px 15px;
border-radius: 20px;
font-size: 16px;
font-weight: 700;
min-width: 70px;
text-align: center;
box-shadow: 
0 3px 8px rgba(69, 27, 12, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
letter-spacing: 0.5px;
transition: all 0.3s ease;
}
/* 事件内容 */
.event-content {
background-color: var(--bg-white);
border-radius: 8px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
border-left: 5px solid var(--patriotic-red);
transition: all 0.3s ease;
}
.event-content h3 {
color: var(--secondary-color);
font-size: 20px;
margin-bottom: 15px;
line-height: 1.4;
}
.event-content p {
color: var(--text-medium);
font-size: 16px;
line-height: 1.7;
}
.highlight {
color: var(--patriotic-red);
font-weight: 500;
}
/* 事件子项（同一年份多个事件） */
.event-subitem {
margin-top: 15px;
padding-top: 15px;
border-top: 1px dashed var(--border-color);
}
.event-subitem:first-child {
margin-top: 0;
padding-top: 0;
border-top: none;
}
.event-subitem p {
font-size: 15px;
color: var(--text-medium);
}
/* 重要里程碑样式 */
.milestone .event-year {
background: linear-gradient(135deg, var(--patriotic-red), #e65151);
transform: scale(1.05);
box-shadow: 
0 4px 12px rgba(214, 40, 40, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.milestone .event-content {
border-left: 5px solid var(--patriotic-gold);
box-shadow: 0 8px 20px rgba(214, 40, 40, 0.1);
}
.milestone .timeline-marker {
background-color: var(--patriotic-red);
border-color: var(--patriotic-red);
box-shadow: 
0 0 0 3px rgba(214, 40, 40, 0.2),
0 3px 8px rgba(214, 40, 40, 0.3);
}
/* 脚注 */
.timeline-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) {
.modern-timeline {
padding-left: 40px;
}
.timeline-line {
left: 27px;
}
.timeline-marker {
left: 20px;
}
.event-year {
left: -45px;
}
}
@media (max-width: 992px) {
.modern-timeline {
padding-left: 0;
}
.timeline-line {
left: 22px;
}
.timeline-marker {
left: 15px;
}
.event-year {
position: relative;
left: 0;
top: 0;
margin-bottom: 15px;
display: inline-block;
}
.timeline-event {
padding-left: 0;
margin-bottom: 30px;
}
}
@media (max-width: 768px) {
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.event-content {
padding: 20px;
}
.event-content h3 {
font-size: 18px;
}
.event-content p {
font-size: 15px;
}
.event-year {
font-size: 15px;
padding: 7px 12px;
}
.timeline-marker {
width: 14px;
height: 14px;
}
}
@media (max-width: 576px) {
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.modern-timeline {
padding-left: 0;
}
.timeline-line {display: none;}
.timeline-marker {display: none;}
.event-content {padding: 18px;}
.event-year {font-size: 14px;padding: 6px 10px;min-width: 60px;}
}
@media (max-width: 400px) {
.page-header h1 {font-size: 22px;}
.event-content {padding: 15px;}
.event-content h3 {font-size: 17px;}
.event-content p {font-size: 14px;}
}
.tree-container {
padding: 20px 30px 40px;
overflow-x: auto;
}
/* 整体树形结构 */
/* 图例 */
.color-legend {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: clamp(15px, 3vw, 25px);
margin: 25px auto 35px;
padding: 20px;
background-color: #f9f7f3;
border-radius: 8px;
max-width: 900px;
}
.legend-item {
display: flex;
align-items: center;
gap: 10px;
font-size: clamp(0.9rem, 1.5vw, 1rem);
color: #555;
}
.legend-color {
width: 20px;
height: 20px;
border-radius: 3px;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.legend-founder { background-color: #fff5f5; border-color: var(--primary-red); }
.legend-general { background-color: #f0f9f0; border-color: var(--general-green); }
.legend-military { background-color: #fff9f0; border-color: var(--military-gold); }
/* 树形图容器 */
.tree-container {
padding: clamp(15px, 3vw, 30px);
overflow-x: auto;
position: relative;
}
/* 移动端图片容器 */
.mobile-image-container {
display: none;
text-align: center;
padding: 20px;
margin-bottom: 30px;
}
.mobile-tree-image {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border: 1px solid #e8e6e1;
}
.mobile-image-caption {
margin-top: 15px;
color: var(--text-light);
font-size: 0.95rem;
}
.family-tree {
display: flex;
flex-direction: column;
align-items: center;
min-width: min-content;
}
/* 始祖样式 */
.founder-row {
text-align: center;
margin-bottom: 60px;
position: relative;
width: 100%;
}
.founder-node {
display: inline-block;
background: linear-gradient(135deg, var(--primary-red) 0%, #a52a2a 100%);
border-radius: 8px;
padding: clamp(15px, 3vw, 20px) clamp(30px, 5vw, 45px);
font-size: clamp(1.4rem, 3vw, 1.8rem);
font-weight: 600;
color: white;
box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
position: relative;
}
.founder-connectors {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
width: 60%;
height: 40px;
display: flex;
justify-content: space-between;
}
.founder-connector {
width: 2px;
height: 100%;
background-color: var(--military-gold);
}
/* 第二代布局 */
.second-generation {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: clamp(20px, 4vw, 40px);
width: 100%;
margin-bottom: 40px;
}
@media (max-width: 768px) {
.second-generation {
grid-template-columns: 1fr;
gap: 40px;
}
}
/* 分支通用样式 */
.branch-container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.branch-title {
text-align: center;
font-size: clamp(1.2rem, 2vw, 1.5rem);
font-weight: 600;
color: var(--primary-red);
margin-bottom: 30px;
padding-bottom: 10px;
border-bottom: 2px solid #e8d9c5;
width: 100%;
position: relative;
}
.branch-title::after {
content: "";
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 2px;
background-color: var(--primary-red);
}
/* 人物节点通用样式 - 放大字体 */
.person-node {
background-color: var(--card-bg);
border: 2px solid;
border-radius: 6px;
padding: 10px 8px;
font-size: clamp(1rem, 1.5vw, 1.3rem);
color: var(--text-dark);
text-align: center;
writing-mode: vertical-rl;
text-orientation: mixed;
height: 110px;
width:46px;
line-height: 1.4;
transition: all 0.3s ease;
cursor: default;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.person-node:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
z-index: 1;
}
/* 节点类型颜色 */
.person-node.founder {
background-color: #fff5f5;
border-color: var(--primary-red);
color: var(--primary-red);
font-weight: 600;
height: 120px;
width: 65px;
}
.person-node.general {
background-color: #f0f9f0;
border-color: var(--general-green);
color: var(--general-green);
font-weight: 600;
}
.person-node.military {
background-color: #fff9f0;
border-color: var(--military-gold);
color: #5a3921;
}
/* 树形结构布局 - 重新设计 */
.person-with-children {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 40px;
width: 100%;
}
/* 杨业所有子女放在同一排 */
.yang-ye-children-row {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap:45px;
margin-top: 35px;
position: relative;
width: 100%;
}
/* 连接线 - 从杨业到子女 */
.yang-ye-parent-connector {
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 25px;
background-color: var(--military-gold);
}
/* 杨延昭子孙容器 */
.yanzhao-descendants {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
width: 100%;
}
/* 连接线 - 从杨延昭到其子女 */
.yanzhao-connector {
position: absolute;
top: -20px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background-color: var(--military-gold);
}
/* 杨延昭四个儿子容器 - 优化对齐 */
.yanzhao-four-sons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-top: 40px;
position: relative;
width: 100%;
padding-top: 20px;
}
/* 连接线容器 - 连接杨延昭到其子女行 */
.yanzhao-vertical-connector {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 20px;
background-color: var(--military-gold);
}
/* 杨延昭儿子节点容器 - 优化对齐 */
.yanzhao-son-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: auto;
min-height: 180px;
flex: 1;
min-width: 120px;
max-width: 180px;
}
/* 杨充广后代容器 - 优化对齐 */
.chongguang-descendants {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30px;
position: relative;
width: 100%;
min-height: 60px;
display: flex;
justify-content: center;
align-items: center;
}
.chongguang-connector {
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 25px;
background-color: var(--military-gold);
}
/* 杨文广后代容器 - 优化对齐 */
.wenguang-descendants {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30px;
position: relative;
width: 100%;
min-height: 60px;
}
.wenguang-connector {
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 25px;
background-color: var(--military-gold);
}
/* 杨文广儿子容器 - 确保对齐 */
.wenguang-children {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap:8px;
margin-top: 5px;
position: relative;
}
/* 杨传永和杨德政容器 - 与杨充广/杨文广对齐 */
.son-without-children {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: auto;
min-height: 180px;
flex: 1;
min-width: 120px;
max-width: 180px;
justify-content: flex-start;
padding-top: 0;
}
/* 杨重勋后代结构优化 */
.chongxun-descendants {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.chongxun-generation {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
margin: 25px 0;
}
.chongxun-parent-connector {
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
width: 2px;
height: 25px;
background-color: var(--military-gold);
}
/* 说明文字 */
.tree-note {
text-align: center;
color: var(--text-light);
font-size: clamp(0.9rem, 1.5vw, 1rem);
margin: 20px auto 30px;
padding: 15px;
background-color: #f9f7f3;
border-radius: 6px;
max-width: 900px;
}
/* 移动端优化 - 只在移动端显示图片 */
@media (max-width: 768px) {
/* 隐藏树形图 */
.family-tree {
display: none !important;
}
/* 显示移动端图片容器 */
.mobile-image-container {
display: block;
}
/* 隐藏图例和说明，因为图片已经包含这些信息 */
.color-legend,
.tree-note {
display: none;
}
/* 调整容器样式 */
.tree-container {
padding: 10px;
}
/* 调整头部样式 */
header {
padding: 20px 15px;
margin-bottom: 20px;
}
header h1 {
font-size: 1.8rem;
}
header p {
font-size: 1rem;
}
}
/* 桌面端响应式调整 */
@media (min-width: 769px) {
/* 在桌面端隐藏移动端图片 */
.mobile-image-container {
display: none !important;
}
}
/* 桌面端响应式调整 */
@media (max-width: 1200px) {
.yanzhao-son-container,
.son-without-children {
min-width: 110px;
max-width: 160px;
}
}
@media (max-width: 992px) {
.person-node {
height: 100px;
width: 50px;
font-size: 1rem;
}
.person-node.founder {
height: 110px;
width: 60px;
}
.yang-ye-children-row {
gap: 12px;
}
.yanzhao-four-sons {
gap: 15px;
}
.yanzhao-son-container,
.son-without-children {
min-width: 100px;
max-width: 140px;
}
.wenguang-children {
gap: 10px;
}
}
@media (max-width: 768px) and (min-width: 577px) {
/* 在平板端显示树形图 */
.family-tree {
display: flex;
}
.mobile-image-container {
display: none;
}
.color-legend,
.tree-note {
display: block;
}
.person-node {
height: 95px;
width: 48px;
font-size: 0.95rem;
}
.person-node.founder {
height: 105px;
width: 55px;
}
.yang-ye-children-row {
gap: 10px;
}
.yanzhao-four-sons {
justify-content: space-around;
gap: 15px;
}
.yanzhao-son-container,
.son-without-children {
min-width: 45%;
max-width: 48%;
min-height: 160px;
margin-bottom: 15px;
}
.wenguang-children {
gap: 8px;
}
}
@media (max-width: 576px) {
/* 在手机端只显示图片 */
.yang-ye-children-row {
gap: 8px;
}
.yanzhao-four-sons {
gap: 12px;
}
.yanzhao-son-container,
.son-without-children {
min-width: 46%;
max-width: 48%;
min-height: 150px;
margin-bottom: 10px;
}
.person-node {
height: 90px;
width: 45px;
font-size: 0.9rem;
}
.person-node.founder {
height: 100px;
width: 50px;
}
.chongguang-descendants,
.wenguang-descendants {
min-height: 50px;
}
/* 杨文广的三个儿子在小屏幕上调整 */
.wenguang-children {
gap: 6px;
}
/* 确保杨文广的三个儿子在小屏幕上也能并排显示 */
.wenguang-children .person-node {
height: 80px;
width: 40px;
font-size: 0.85rem;
}
}
@media (max-width: 480px) {
.yanzhao-four-sons {
gap: 10px;
}
.yanzhao-son-container,
.son-without-children {
min-width: 48%;
max-width: 49%;
min-height: 140px;
}
.person-node {
height: 85px;
width: 42px;
font-size: 0.85rem;
}
.person-node.founder {
height: 95px;
width: 48px;
}
/* 杨文广的三个儿子在超小屏幕上垂直排列 */
.wenguang-children {
flex-direction: column;
gap: 8px;
}
.wenguang-children .person-node {
height: 75px;
width: 38px;
font-size: 0.8rem;
}
}
/* 主体内容样式 - 合并后的版本 */
.people-container {
max-width: 1560px;
margin: 100px auto 0;
padding:20px;
min-height: calc(100vh - 100px);
}
/* 页面标题区域 - 合并后 */
.page-header {
text-align: center;
margin-bottom:40px;
padding: 40px 30px;
position: relative;
}
.page-title {
font-size: 3.2rem;
color: var(--secondary-color);
font-weight: 800;
margin-bottom: 15px;
position: relative;
display: inline-block;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.8s, transform 0.8s;
}
.page-title::after {
content: "";
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 4px;
background: linear-gradient(to right, var(--primary-color), var(--patriotic-gold));
border-radius: 2px;
}
.page-subtitle {
font-size: 1.4rem;
color: var(--primary-color);
font-weight: 500;
margin-top: 25px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
line-height: 1.6;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.8s 0.3s, transform 0.8s 0.3s;
}
/* 人物列表容器 - 双列布局 */
.people-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
margin: 0 auto;
}
/* 人物卡片 */
.person-card {
background-color: var(--bg-white);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow-medium);
border: 1px solid var(--border-color);
opacity: 0;
transform: translateY(20px);
transition: all 0.4s;
display: flex;
flex-direction: column;
height: 100%;
}
.person-card.visible {
opacity: 1;
transform: translateY(0);
}
.person-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-dark);
}
.person-header {
padding: 25px 30px;
background: linear-gradient(to right, var(--secondary-color), #5c2610);
color: var(--white-color);
position: relative;
overflow: hidden;
min-height: 80px;
}
.person-header::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
z-index: 1;
}
.person-name {
font-size: 2rem;
font-weight: 700;
position: relative;
z-index: 2;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
line-height: 1.2;
}
.person-name .year {
font-size: 1.1rem;
font-weight: 500;
color: var(--patriotic-gold);
margin-left: 8px;
}
.person-content {
padding: 30px;
line-height: 1.8;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.person-intro {
font-size: 1.1rem;
color: var(--text-dark);
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
line-height: 1.6;
}
.person-details {
font-size: 1rem;
color: var(--text-medium);
flex-grow: 1;
}
.person-details p {
margin-bottom: 16px;
text-align: justify;
}
.person-details strong {
color: var(--secondary-color);
font-weight: 600;
}
.quote-box {
background-color: #f9f7f3;
border-left: 4px solid var(--primary-color);
padding: 20px;
margin: 20px 0;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
font-style: italic;
position: relative;
}
.quote-box::before {
content: "“";
position: absolute;
top: -10px;
left: 8px;
font-size: 3rem;
color: var(--primary-color);
opacity: 0.3;
font-family: Georgia, serif;
}
.quote-source {
text-align: right;
font-style: normal;
margin-top: 12px;
color: var(--text-medium);
font-size: 0.9rem;
}
/* 返回按钮放在底部 */
.bottom-nav {
text-align: center;
margin-top: 60px;
padding-top: 40px;
border-top: 1px solid var(--border-color);
}
.back-button {
display: inline-flex;
align-items: center;
padding: 12px 25px;
background-color: var(--primary-color);
color: var(--white-color);
border-radius: 30px;
text-decoration: none;
font-size: 1rem;
font-weight: 500;
transition: all 0.3s;
box-shadow: var(--shadow-light);
}
.back-button i {
margin-right: 10px;
}
.back-button:hover {
background-color: var(--secondary-color);
transform: translateY(-3px);
box-shadow: var(--shadow-medium);
}
/* 响应式设计 - 合并后 */
@media (max-width: 1200px) {
.people-container { padding: 0 25px; }
.page-title { font-size: 2.8rem; }
.person-header { padding: 22px 25px; }
.person-name { font-size: 1.8rem; }
}
@media (max-width: 992px) {
.people-container { padding: 0 20px; }
.page-title { font-size: 2.5rem; }
.page-subtitle { font-size: 1.2rem; }
.people-list { gap: 30px; }
.person-header { padding: 20px 25px; }
.person-name { font-size: 1.7rem; }
.person-content { padding: 25px; }
}
@media (max-width: 768px) {
.people-container { padding: 0 15px; }
.people-list { grid-template-columns: 1fr; gap: 30px; }
.page-title { font-size: 2.2rem; }
.page-subtitle { font-size: 1.1rem; }
.person-header { padding: 20px 25px; min-height: 75px; }
.person-name { font-size: 1.8rem; }
.person-content { padding: 25px; }
.person-intro { font-size: 1.1rem; }
}
@media (max-width: 576px) {
.people-container { padding: 0 10px; }
.page-header { padding: 25px 15px; margin-bottom: 40px; }
.page-title { font-size: 2rem; }
.page-subtitle { font-size: 1rem; }
.people-list { gap: 25px; }
.person-header { padding: 18px 20px; min-height: 70px; }
.person-name { font-size: 1.6rem; }
.person-name .year { font-size: 1rem; }
.person-content { padding: 20px; }
.person-intro { font-size: 1.05rem; margin-bottom: 15px; padding-bottom: 15px; }
.quote-box { padding: 18px; }
.back-button { padding: 10px 20px; font-size: 0.95rem; }
}
@media (max-width: 480px) {
.page-title { font-size: 1.8rem; }
.page-subtitle { font-size: 0.95rem; }
.person-header { padding: 16px 18px; min-height: 65px; }
.person-name { font-size: 1.5rem; }
.person-name .year { font-size: 0.95rem; }
}
.lsjgp-container {
max-width: 1560px;
margin: 100px auto 0;
padding:15px;
min-height: calc(100vh - 100px);
}
/* 图册筛选 */
.gallery-filter {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 40px;
}
.filter-btn {
background-color: var(--bg-white);
border: 2px solid var(--border-color);
color: var(--text-medium);
padding: 10px 25px;
border-radius: 30px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
}
.filter-btn:hover {
background-color: var(--primary-color);
color: var(--white-color);
border-color: var(--primary-color);
}
.filter-btn.active {
background-color: var(--secondary-color);
color: var(--white-color);
border-color: var(--secondary-color);
}
/* 图册网格 - 一排三列 */
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 60px;
}
/* 图册卡片 */
.gallery-card {
background-color: var(--bg-white);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
transition: all 0.4s ease;
display: flex;
flex-direction: column;
height: 100%;
text-decoration: none;
color: inherit;
}
.gallery-card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.gallery-img-container {
position: relative;
overflow: hidden;
height: 280px;
width: 100%;
}
.gallery-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-img {
transform: scale(1.08);
}
.gallery-img-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 60%, rgba(69, 27, 12, 0.4));
opacity: 0;
transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-img-overlay {
opacity: 1;
}
.gallery-category {
position: absolute;
top: 15px;
right: 15px;
background-color: var(--patriotic-red);
color: var(--white-color);
padding: 6px 12px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
z-index: 10;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.gallery-content {
padding: 20px;
text-align: center;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.gallery-title {
color: var(--secondary-color);
font-size: 20px;
margin-bottom: 10px;
line-height: 1.3;
}
.gallery-meta {
color: var(--text-light);
font-size: 14px;
margin-bottom: 15px;
}
.gallery-description {
color: var(--text-medium);
font-size: 15px;
line-height: 1.6;
margin-bottom: 15px;
}
.gallery-view {
color: var(--primary-color);
font-size: 14px;
font-weight: 500;
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: auto;
}
.gallery-view i {
margin-left: 5px;
transition: transform 0.3s;
}
.gallery-card:hover .gallery-view i {
transform: translateX(5px);
}
/* 响应式设计 */
@media (max-width: 1200px) {
.gallery-grid {
gap: 25px;
}
.gallery-img-container {
height: 250px;
}
}
@media (max-width: 992px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}
.page-header h1 {
font-size: 32px;
}
.gallery-img-container {
height: 280px;
}
}
@media (max-width: 768px) {
.gallery-grid {
grid-template-columns: 1fr;
gap: 25px;
}
.page-header h1 {
font-size: 28px;
}
.page-header p {
font-size: 16px;
}
.gallery-img-container {
height: 320px;
}
.filter-btn {
padding: 8px 20px;
font-size: 15px;
}
}
@media (max-width: 576px) {
.page-header {
padding: 20px 0;
margin-bottom: 30px;
}
.page-header h1 {
font-size: 24px;
}
.gallery-img-container {
height: 250px;
}
.gallery-content {
padding: 18px;
}
.gallery-title {
font-size: 19px;
}
.gallery-filter {
gap: 10px;
}
.filter-btn {
padding: 6px 15px;
font-size: 14px;
}
}
@media (max-width: 400px) {
.page-header h1 {
font-size: 22px;
}
.gallery-img-container {
height: 220px;
}
.gallery-content {
padding: 15px;
}
.gallery-title {
font-size: 18px;
}
}