* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SimSun', 'Microsoft YaHei', serif;
    background-color: #faf6f0;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

header {
    background: linear-gradient(135deg, #5c4033 0%, #6b4c35 50%, #5c4033 100%);
    color: #e8d4b8;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(92, 64, 51, 0.4);
    border-bottom: 3px solid #d4a574;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    /* 站名（logo 右侧文字）字号。基准值用于宽屏桌面（≥1401px）：
       logo 图高 50px，24px 约合其 0.48，视觉最均衡；
       实测最窄的 1401px 下与导航仍有 127px 余量。 */
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    /* 允许超长站名收缩：.logo 上的 flex-shrink 是 flex 项属性，无法传递给其内部子项，
       必须在此显式声明，否则长站名会独占行宽、把导航挤到下一行 */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    color: #d4a574;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: #d4a574;
    color: #5c4033;
    border-color: #d4a574;
}

.banner {
    position: relative;
    /* 宽度必须显式锁定：aspect-ratio 受 max-height 约束时会反向收缩宽度，导致两侧露白 */
    width: 100%;
    height: auto;
    /* 容器比例锁定为 banner 图比例(1920x500)，任意视口下背景图均完整居中呈现，不再裁切 */
    aspect-ratio: 1920 / 500;
    max-height: 620px;
    background-color: #f2e3c9; /* 宣纸底色兜底，避免超出比例时露出页面深色背景 */
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

/* banner 轮播配图：桌面端为 1920x500 宽幅图 */
.banner-slide-1 {
    background-image: url('/static/images/banner_1.jpg');
}

.banner-slide-2 {
    background-image: url('/static/images/banner_2.jpg');
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: #e8d4b8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content h1 {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    letter-spacing: 3px;
}

.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #d4a574;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.5);
}

.banner-arrow.prev {
    left: 30px;
}

.banner-arrow.next {
    right: 30px;
}

.page-banner {
    background: url('../images/banner_xiao.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #e8d4b8;
    padding: 80px 0;
    text-align: center;
    border-bottom: 4px solid #d4a574;
    min-height: 300px;
    overflow: hidden;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.breadcrumb {
    padding: 20px 0;
    background-color: #f5efe5;
    border-bottom: 1px solid #e8dcc8;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #5c4033;
}

.breadcrumb a {
    color: #5c4033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #d4a574;
}

.breadcrumb span {
    color: #999;
}

.page-header {
    background: url('../images/banner_1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 80px 0;
    border-bottom: 4px solid #d4a574;
    min-height: 300px;
}

.page-header h1 {
    color: #e8d4b8;
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 6px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header p {
    color: #e8d4b8;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.content {
    padding: 60px 0;
}

.org-chart {
    text-align: center;
}

.org-chart .section-title {
    margin-top: 0;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.org-box {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d4b8 100%);
    border: 2px solid #d4a574;
    border-radius: 8px;
    padding: 25px 40px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.org-box h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 10px;
}

.org-box p {
    color: #666;
    font-size: 14px;
}

.org-box.level1 {
    background: linear-gradient(135deg, #d4a574 0%, #c49464 100%);
    border-color: #8b6914;
}

.org-box.level1 h3 {
    color: #3d2817;
    font-size: 20px;
}

.org-connector {
    color: #d4a574;
    font-size: 24px;
    margin: 10px 0;
}

.structure-section {
    margin-top: 40px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.dept-card {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dept-card .icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.dept-card h3 {
    color: #5c4033;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8dcc8;
}

.dept-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dept-card ul li {
    color: #666;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #e8dcc8;
    position: relative;
    padding-left: 20px;
}

.dept-card ul li::before {
    content: "•";
    color: #d4a574;
    position: absolute;
    left: 5px;
}

.dept-card ul li:last-child {
    border-bottom: none;
}

.section-title {
    color: #5c4033;
    font-size: 26px;
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
}

.about-section {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.about-image {
    flex: 0 0 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    border: 3px solid #d4a574;
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.about-text p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.intro-block {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.intro-block h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a574;
}

.intro-block p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.value-item {
    text-align: center;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.value-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.value-item h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 10px;
}

.value-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.honors-section {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.honors-section h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a574;
    text-align: center;
}

.honors-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.honor-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.honor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.honor-item .icon {
    font-size: 36px;
    flex-shrink: 0;
}

.honor-item h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 8px;
}

.honor-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.showcase-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    gap: 20px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.showcase-item {
    flex-shrink: 0;
    width: 280px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-image {
    height: 200px;
    overflow: hidden;
    background: #f5f0e6;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-info {
    padding: 15px;
}

.showcase-info h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.news-section {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-section h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.news-item {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #d4c4a8;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item .thumbnail {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 20px;
    overflow: hidden;
    border: 2px solid #e8dcc8;
}

.news-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .thumbnail img {
    transform: scale(1.05);
}

.news-item .content {
    flex: 1;
    padding: 0;
}

.news-item h3 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-item a {
    color: #5c4033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #d4a574;
}

.news-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.news-column {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-column h3 {
    color: #5c4033;
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #d4c4a8;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item-row {
    display: flex;
    gap: 15px;
}

.news-item-row.simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #e8dcc8;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    flex: 1;
}

.news-info h4 {
    color: #5c4033;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.news-info h4 a {
    color: #5c4033;
    text-decoration: none;
}

.news-info h4 a:hover {
    color: #d4a574;
}

.news-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-item-row.simple a {
    color: #5c4033;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item-row.simple a:hover {
    color: #d4a574;
}

.masters-section {
    margin-top: 60px;
}

.masters-section h2 {
    color: #5c4033;
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.masters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.knowledge-section {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.knowledge-section h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.knowledge-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d4c4a8;
}

.knowledge-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.knowledge-item a {
    color: #5c4033;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.knowledge-item a:hover {
    color: #d4a574;
}

.knowledge-item span {
    font-size: 12px;
    color: #999;
}

.masters-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.master-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 1px solid #e8dcc8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.master-avatar {
    width: 190px;
    height: 240px;
    overflow: hidden;
    border: 3px solid #d4a574;
    margin-bottom: 5px;
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.master-card:hover .master-avatar img {
    transform: scale(1.05);
}

.master-details h4 {
    color: #5c4033;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.master-details p {
    color: #8b6914;
    font-size: 12px;
    margin-bottom: 1px;
}

.master-details span {
    color: #999;
    font-size: 11px;
}

.master-name {
    color: #5c4033;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

.master-details {
    text-align: center;
    padding: 5px 0;
}

.master-details h4 {
    color: #5c4033;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.master-details p {
    color: #666;
    font-size: 12px;
    margin-bottom: 3px;
}

.master-details span {
    color: #999;
    font-size: 11px;
}

.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.info-column {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-column h3 {
    color: #5c4033;
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.knowledge-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.knowledge-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.knowledge-text {
    flex: 1;
}

.knowledge-text h4 {
    color: #5c4033;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.knowledge-text p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-date {
    flex-shrink: 0;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #5c4033, #6b4c35);
    border-radius: 8px;
    color: #e8d4b8;
}

.activity-date .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.activity-date .month {
    font-size: 12px;
}

.activity-content h4 {
    color: #5c4033;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.activity-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.dynamics-list {
    max-width: 1200px;
    margin: 0 auto;
}

.dynamics-item {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e8dcc8;
}

.dynamics-item .thumbnail {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    margin-right: 25px;
    overflow: hidden;
    border: 2px solid #e8dcc8;
}

.dynamics-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dynamics-item:hover .thumbnail img {
    transform: scale(1.05);
}

.dynamics-item .content {
    flex: 1;
    padding: 0;
}

.dynamics-item h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
}

.dynamics-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dynamics-item .meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.dynamics-item a {
    color: #5c4033;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dynamics-item a:hover {
    color: #d4a574;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8dcc8;
}

.pagination a {
    color: #5c4033;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #5c4033;
    color: #d4a574;
    border-color: #5c4033;
}

.about-content {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.about-content h3 {
    color: #5c4033;
    font-size: 18px;
    margin: 25px 0 15px;
}

.about-content p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.about-content li {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item .gallery-image {
    height: 200px;
    overflow: hidden;
}

.gallery-item .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-item .gallery-info {
    padding: 20px;
    text-align: center;
}

.gallery-item .gallery-info h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.gallery-item .gallery-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.knowledge-card {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.knowledge-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.knowledge-card h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8dcc8;
}

.knowledge-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.articles-section {
    margin-top: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.article-card {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e8dcc8;
}

.article-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-card .more {
    color: #d4a574;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card .more:hover {
    color: #8b6914;
}

.knowledge-content {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-content h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.knowledge-content h3 {
    color: #5c4033;
    font-size: 18px;
    margin: 25px 0 15px;
}

.knowledge-content p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.knowledge-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.knowledge-content li {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.organization-content {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.organization-content h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.organization-content h3 {
    color: #5c4033;
    font-size: 18px;
    margin: 30px 0 20px;
    text-align: center;
}

.organization-list {
    margin: 30px 0;
}

.organization-list h4 {
    color: #5c4033;
    font-size: 16px;
    margin: 20px 0 15px;
    padding-left: 20px;
    border-left: 4px solid #d4a574;
}

.organization-list ul {
    padding-left: 40px;
    margin-bottom: 20px;
}

.organization-list li {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.records-content {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.records-content h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.records-content h3 {
    color: #5c4033;
    font-size: 18px;
    margin: 25px 0 15px;
}

.records-content p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.records-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.records-content li {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-info h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px dashed #d4c4a8;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .icon {
    font-size: 28px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-item .text h3 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 8px;
}

.info-item .text p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.contact-form {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-form h2 {
    color: #5c4033;
    font-size: 24px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #5c4033;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8dcc8;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5c4033;
    box-shadow: 0 0 0 3px rgba(92, 64, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5c4033, #6b4c35);
    color: #e8d4b8;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #6b4c35, #5c4033);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.map-section {
    margin-top: 50px;
}

.map-section h2 {
    color: #5c4033;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
}

.map-placeholder {
    background: linear-gradient(145deg, #e8dcc8, #d4c4a8);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #5c4033;
}

.query-form {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.query-form h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-query {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5c4033, #6b4c35);
    color: #e8d4b8;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-query:hover {
    background: linear-gradient(135deg, #6b4c35, #5c4033);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.result-section {
    background: linear-gradient(145deg, #fff, #faf6f0);
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: none;
}

.result-section.show {
    display: block;
}

.result-section h2 {
    color: #5c4033;
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 15px;
    text-align: center;
}

.result-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #d4c4a8;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    width: 140px;
    color: #5c4033;
    font-weight: bold;
    flex-shrink: 0;
}

.result-item .value {
    color: #333;
}

.result-item.valid .status {
    color: #2e7d32;
    font-weight: bold;
}

.result-item.invalid .status {
    color: #c62828;
    font-weight: bold;
}

.tips-section {
    margin-top: 40px;
}

.tips-section h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 15px;
}

.tips-section ul {
    list-style: none;
}

.tips-section ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.tips-section ul li::before {
    content: '•';
    color: #5c4033;
    position: absolute;
    left: 0;
    font-size: 18px;
}

.footer {
    background: linear-gradient(135deg, #3d2817 0%, #5c4033 50%, #3d2817 100%);
    color: #d4a574;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 3px solid #d4a574;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d4a574;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid #d4a574;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: #d4a574;
    color: #5c4033;
}

.footer-info {
    font-size: 14px;
    opacity: 0.9;
    line-height: 2;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
    font-size: 12px;
    opacity: 0.8;
}

/* 底部备案信息（ICP + 公安备案） */
.footer-beian {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 8px;
    line-height: 1.8;
}

.footer-beian a,
.footer-beian a:link,
.footer-beian a:visited,
.footer-beian a:focus,
.footer-beian a:active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d4a574;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-beian a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.footer-beian a:active {
    opacity: 1;
    color: #e8d4b8;
}

.footer-beian .beian-gongan svg {
    width: 13px;
    height: 15px;
    flex: none;
    vertical-align: middle;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #fff, #f5efe5);
    border: 1px solid #d4a574;
    border-radius: 4px;
    color: #5c4033;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: linear-gradient(145deg, #d4a574, #c49464);
    color: #fff;
}

.page-btn.active {
    background: linear-gradient(145deg, #d4a574, #c49464);
    color: #fff;
    border-color: #8b6914;
}

.page-btn.prev,
.page-btn.next {
    padding: 8px 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #d4a574;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav.main-nav {
    display: block;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

nav.main-nav.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #5c4033 0%, #6b4c35 100%);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 999;
    padding: 80px 20px 20px;
    display: block;
    transform: translateX(0);
}

nav.main-nav.active ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav.main-nav.active ul li a {
    color: #d4a574;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: block;
    transition: all 0.3s ease;
}

nav.main-nav.active ul li a:hover {
    background-color: #d4a574;
    color: #5c4033;
    border-color: #d4a574;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #d4a574;
    cursor: pointer;
}

@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .masters-row {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .showcase-track {
        gap: 20px;
    }
    
    .showcase-item {
        width: 250px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .masters-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .masters-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-track {
        gap: 15px;
    }
    
    .showcase-item {
        width: 220px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul li a {
        font-size: 13px;
        padding: 5px 8px;
    }
}

/* ===== 平板横屏区间（901–1400）导航收敛 =====
   实测：主菜单共 10 项，临界总宽约 856px。901–1400 区间原无专属断点，
   菜单会折成 2 行（第 2 行仅 1–2 项），视觉错乱；800~1000 因汉堡按钮刚切换
   而导航仍未收起，落在"夹缝区"观感最差。
   修复要点：给 nav 加 flex:1 + min-width:0 —— 既占满 logo 右侧剩余空间
   （logo 保持绝对左对齐，不再被 space-between 居中），又允许空间不足时压缩。 */
@media (min-width: 901px) and (max-width: 1400px) {
    nav.main-nav {
        flex: 1;
        min-width: 0;
        margin-left: 20px;
    }

    /* 容器 padding 缩到 15px，为菜单腾出 30px */
    .header-content > .logo {
        margin-right: 0;
    }
}

@media (min-width: 1001px) and (max-width: 1400px) {
    .container.header-content {
        padding: 0 18px;
    }

    .logo-text {
        font-size: 20px;
        letter-spacing: 0.5px;
    }

    nav.main-nav {
        flex: 1;
        min-width: 0;
        margin-left: 16px;
    }

    nav.main-nav ul {
        gap: 1px;
        flex-wrap: nowrap;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px 7px;
        letter-spacing: -0.2px;
    }
}

@media (min-width: 901px) and (max-width: 1000px) {
    .container.header-content {
        padding: 0 15px;
    }

    .logo-text {
        /* 901–1000px：logo 图缩至 42px，站名同步降到 18px。
           此处菜单与 logo 同屏竞争，实测余量仅 89px，只宜 +1px。 */
        font-size: 18px;
        letter-spacing: 0;
    }

    .logo img {
        height: 42px;
    }

    nav.main-nav {
        flex: 1;
        min-width: 0;
        margin-left: 14px;
    }

    nav.main-nav ul {
        gap: 0;
        flex-wrap: nowrap;
    }

    /* padding 收到 3px + 字距 -0.8px + 禁用导航文字阴影（stroke 会外扩约 2px 视觉宽度），
       使 901px 极限窄屏下 logo 与首项仍有约 20px 呼吸间隙 */
    nav ul li a {
        font-size: 13px;
        padding: 5px 3px;
        letter-spacing: -0.8px;
        text-shadow: none;
    }
}

@media (max-width: 900px) {
    .header-content {
        justify-content: space-between;
    }
    
    /* 481–900px（平板 / 手机横屏）：导航收进汉堡按钮，logo 右侧空间充裕，
       站名放到 22px（logo 图仍 50px）；≤480px 由文件末尾断点覆盖为 18px。 */
    .logo-text {
        font-size: 22px;
    }
    
    nav.main-nav {
        display: none;
    }
    
    nav.main-nav.active {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .about-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .about-image {
        flex: none;
        width: 100%;
        height: auto;
    }
    
    .news-wrapper {
        display: block;
    }
    
    .news-column {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .news-column:last-child {
        margin-bottom: 0;
    }
    
    .info-section {
        display: block;
        gap: 20px;
    }
    
    .info-column {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .info-column:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* 移动端改用专用横版配图，容器比例锁定为 16:9(1920x1080)，整图完整居中显示；
       16:9 在 375 宽下高度仅 211px（占屏高 26%），符合移动端 banner 观感 */
    .banner {
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: none;
    }
    
    .banner-slide-1 {
        background-image: url('/static/images/banner_1_m.jpg');
    }
    
    .banner-slide-2 {
        background-image: url('/static/images/banner_2_m.jpg');
    }
    
    .banner-content h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .banner-arrow.prev {
        left: 10px;
    }
    
    .banner-arrow.next {
        right: 10px;
    }
    
    .section-title {
        font-size: 22px;
        padding-bottom: 10px;
        margin-bottom: 25px;
    }
    
    .about-section {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .about-image {
        flex: none;
        width: 100%;
        height: auto;
    }
    
    .about-text h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .showcase-wrapper {
        overflow-x: auto;
        margin-bottom: 20px;
        padding: 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .showcase-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .showcase-track {
        gap: 15px;
    }
    
    .showcase-item {
        width: 200px;
        flex-shrink: 0;
    }
    
    .showcase-image {
        height: 180px;
    }
    
    .showcase-info h4 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .showcase-info p {
        font-size: 12px;
    }
    
    .news-wrapper {
        display: block;
        width: 100%;
    }
    
    .news-column {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
    
    .news-column:last-child {
        margin-bottom: 0;
    }
    
    .news-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    /* 手机端列表项：缩略图与标题并排占一行，不再上下错开 */
    .news-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        margin-bottom: 15px;
        padding-bottom: 15px;
        box-sizing: border-box;
    }
    
    .news-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .news-item-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        box-sizing: border-box;
    }
    
    .news-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .news-info {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    
    .news-info h4 {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .news-info p {
        font-size: 13px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .news-date {
        font-size: 12px;
        text-align: left;
    }
    
    .news-item-row.simple {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .news-item-row.simple a {
        font-size: 14px;
        word-wrap: break-word;
        text-align: left;
    }
    
    .masters-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .master-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }
    
    .master-avatar {
        width: 100%;
        height: 180px;
        flex-shrink: 0;
    }
    
    .master-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .master-details {
        width: 100%;
        text-align: center;
    }
    
    .master-details h4 {
        font-size: 16px;
    }
    
    .page-banner {
        /* 移动端按图比例16:9完整居中显示（500-760px不裁切） */
        background-image: url('/static/images/banner_1_m.jpg');
        background-size: cover;
        background-position: center center;
        aspect-ratio: 16 / 9;
        min-height: 0;
        padding: 0;
    }
    
    .info-section {
        display: block;
        gap: 20px;
    }
    
    .info-column {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .info-column:last-child {
        margin-bottom: 0;
    }
    
    .page-banner h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .page-banner p {
        font-size: 14px;
    }
    
    .breadcrumb .container {
        gap: 5px;
        font-size: 12px;
        padding: 8px 0;
    }
    
    .page-header {
        /* 移动端切换竖版配图，保持主体居中呈现 */
        background-image: url('/static/images/banner_1_m.jpg');
        min-height: 200px;
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .page-header p {
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .org-level {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .org-box {
        width: 100%;
        max-width: 250px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .knowledge-content,
    .organization-content,
    .records-content {
        padding: 30px 20px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .query-form {
        padding: 30px 20px;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .honors-list {
        grid-template-columns: 1fr;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: row;
        gap: 8px;
        padding: 10px 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        /* ≤480px 手机：logo 图 35px，站名 18px（约 0.51）最清楚又不喧宾夺主；
           实测 320px 极限宽度下距汉堡按钮仍有 56px 余量。 */
        font-size: 18px;
        letter-spacing: 0;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .banner {
        /* 移动端沿用图片原始比例，保证整图完整居中显示（不再用固定高度裁切） */
        height: auto;
        max-height: none;
    }
    
    .banner-content h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* 手机端收紧 content 顶部空白，使关于我们更贴近上方 banner */
    .content {
        padding-top: 25px;
    }
    
    .about-section {
        padding: 12px;
        gap: 12px;
    }
    
    .about-image {
        height: auto;
    }
    
    .about-text h3 {
        font-size: 16px;
    }
    
    .about-text p {
        font-size: 13px;
    }
    
    .showcase-item {
        width: 160px;
    }
    
    .showcase-image {
        height: 160px;
    }
    
    .showcase-info h4 {
        font-size: 13px;
    }
    
    .showcase-info p {
        font-size: 11px;
    }
    
    .news-column {
        padding: 12px;
    }
    
    .news-column h3 {
        font-size: 15px;
    }
    
    .news-thumb {
        height: 130px;
    }
    
    .news-info h4 {
        font-size: 13px;
    }
    
    .news-info p {
        font-size: 12px;
    }
    
    .news-item-row.simple a {
        font-size: 13px;
    }
    
    .masters-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .master-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .master-avatar {
        width: 100%;
        height: 160px;
        flex-shrink: 0;
    }
    
    .master-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .master-details {
        width: 100%;
        text-align: center;
    }
    
    .master-details h4 {
        font-size: 15px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .footer-info {
        font-size: 12px;
    }

    /* 备案号在窄屏独占一行，避免被挤压换行错位 */
    .footer-beian {
        flex-direction: column;
        gap: 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .masters-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .masters-row .master-avatar {
        width: 90px;
        height: 120px;
    }
}

/* Records page specific styles */
.records-page body {
    background-color: #f5f0e6;
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=traditional%20Chinese%20pattern%20background%20subtle%20red%20and%20gold&image_size=square_hd');
    background-size: cover;
    background-attachment: fixed;
}

.records-page header {
    background: linear-gradient(to right, #8b0000, #a00000);
    color: #ffd700;
    border-bottom: 4px solid #ffd700;
}

.records-page .logo img {
    border: 3px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

.records-page .company-name {
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.records-page nav ul li a {
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.records-page nav ul li a:hover {
    color: #fff;
}

.records-page .banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=traditional%20Chinese%20palace%20cultural%20heritage%20red%20and%20gold%20decorations%20ancient%20artifacts&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: #ffd700;
    border-bottom: 4px solid #ffd700;
}

.records-page .banner h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9);
    font-weight: bold;
}

.records-page .section-title {
    font-size: 36px;
    color: #8b0000;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.records-page .section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background: linear-gradient(to right, #ffd700, #8b0000, #ffd700);
    margin: 20px auto;
    border-radius: 2px;
}

.records-page .process {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.records-page .process-step {
    flex: 0 0 22%;
    background-color: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 3px solid #e0e0e0;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.records-page .process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    border-color: #ffd700;
}

.records-page .step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #8b0000, #a00000);
    color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    border: 2px solid #ffd700;
}

.records-page .process-step h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #8b0000;
    font-weight: bold;
}

.records-page .process-step p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.records-page .intro-text {
    background-color: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 3px solid #e0e0e0;
    margin-bottom: 40px;
}

.records-page .intro-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 2em;
    color: #333;
}

.records-page .btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(to right, #8b0000, #a00000);
    color: #ffd700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 3px solid #ffd700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.records-page .btn:hover {
    background: linear-gradient(to right, #6b0000, #800000);
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.records-page footer {
    background: linear-gradient(to right, #8b0000, #a00000);
    color: #ffd700;
    border-top: 4px solid #ffd700;
}

.records-page .footer-section h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.records-page .footer-section p,
.records-page .footer-section li {
    color: #ffd700;
}

.records-page .footer-section ul li a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.records-page .footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.records-page .copyright {
    padding-top: 30px;
    border-top: 3px solid #ffd700;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .records-page .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .records-page nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .records-page nav ul li {
        margin: 0 15px 10px;
    }
    
    .records-page .banner h1 {
        font-size: 40px;
    }
    
    .records-page .process-step {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .records-page .footer-section {
        flex: 0 0 100%;
    }
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card .news-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.news-card h3 {
    color: #5c4033;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4a574;
}

.news-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.news-list-highlight {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.highlight-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.highlight-item .icon {
    font-size: 36px;
    flex-shrink: 0;
}

.highlight-item h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 8px;
}

.highlight-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.category-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.category-item h4 {
    color: #5c4033;
    font-size: 16px;
    margin-bottom: 8px;
}

.category-item p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 992px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-cards {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-item .icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== 以下为接入 PbootCMS 程序后补充的样式 ===== */
.section-header {
    background: linear-gradient(135deg, #5c4033 0%, #6b4c35 100%);
    color: #e8d4b8;
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid #d4a574;
}
.section-header h2 {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 15px;
    opacity: .85;
    letter-spacing: 2px;
}

.breadcrumb { background: #f0e6d8; padding: 14px 0; font-size: 14px; color: #6b4c35; }
.breadcrumb a { color: #8b0000; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.pagination-empty { text-align: center; padding: 60px 0; color: #999; font-size: 16px; }

/* 内容详情页 */
.article { background: #fff; border: 1px solid #e8dcc8; border-radius: 8px; padding: 40px; margin-bottom: 30px; }
.article-title { font-size: 28px; color: #5c4033; text-align: center; margin-bottom: 15px; }
.article-meta { text-align: center; color: #999; font-size: 14px; border-bottom: 1px dashed #e8dcc8; padding-bottom: 20px; margin-bottom: 30px; }
.article-content { font-size: 16px; line-height: 2; color: #333; }
.article-content img { max-width: 100%; height: auto; }
.article-content p { margin-bottom: 15px; }
.article-nav { display: flex; justify-content: space-between; border-top: 1px dashed #e8dcc8; padding-top: 20px; font-size: 14px; color: #6b4c35; }
.article-nav a { color: #8b0000; text-decoration: none; }

/* 查询结果表格 */
.result-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e8dcc8; }
.result-table th, .result-table td { border: 1px solid #e8dcc8; padding: 12px 15px; font-size: 15px; vertical-align: top; }
.result-table th { width: 180px; background: #f5ece0; color: #5c4033; font-weight: bold; text-align: right; white-space: normal; word-break: break-word; }
.result-table td { color: #333; word-break: break-all; }
.result-table img { max-width: 260px; height: auto; border: 1px solid #e8dcc8; }
.result-card { background: #fff; border: 1px solid #e8dcc8; border-radius: 8px; overflow: hidden; margin-bottom: 25px; }
.result-card-title { background: linear-gradient(135deg, #5c4033 0%, #6b4c35 100%); color: #e8d4b8; padding: 12px 20px; font-size: 18px; font-weight: bold; letter-spacing: 2px; }
.result-card-body { padding: 20px; }

/* ===== 查询结果表格：移动端适配（标签列固定 4 汉字宽） ===== */
@media (max-width: 768px) {
    .result-table { table-layout: fixed; }
    .result-table th, .result-table td { padding: 8px 4px; font-size: 13px; box-sizing: border-box; }
    .result-table th { width: 4.5rem; text-align: left; white-space: normal; word-break: break-word; }
    .result-card-body { padding: 12px; }
    .result-card-title { font-size: 16px; padding: 10px 14px; letter-spacing: 1px; }
    .result-table img { max-width: 100%; }
    .pics-view { width: 100%; max-width: 220px; height: 170px; }
}
@media (max-width: 480px) {
    .result-table th, .result-table td { padding: 7px 4px; font-size: 12.5px; }
    .result-table th { width: 4.25rem; }
    .result-card-body { padding: 10px; }
}


.query-tips { background: #fff; border: 1px solid #e8dcc8; border-radius: 8px; padding: 25px 30px; margin-top: 25px; }
.query-tips h3 { color: #5c4033; font-size: 18px; margin-bottom: 12px; }
.query-tips ul { padding-left: 22px; color: #666; font-size: 14px; line-height: 2; }

/* ===== 本次修复补充样式 ===== */
/* 全局链接默认颜色修正，避免未定义颜色的 <a> 显示浏览器默认蓝色 */
a { color: #6b4c35; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #8b0000; }

/* logo 区域链接保持金色 */
.logo a { color: #e8d4b8 !important; text-decoration: none !important; }
.logo a:hover { color: #d4a574 !important; }

/* 面包屑、分页已有更具体规则，这里只兜底 */
.breadcrumb a { color: #8b0000; }
.pagination a { color: #6b4c35; }
.pagination a.active { background: #5c4033; color: #e8d4b8; border-color: #5c4033; }

/* 内容详情页里的超链 */
.article-content a { color: #8b0000; text-decoration: underline; }

/* 列表中的标题链接颜色 */
.news-list .content h3 a,
.gallery-info h4 a,
.showcase-info h4 a,
.master-card .master-details h4 a { color: #5c4033; }
.news-list .content h3 a:hover,
.gallery-info h4 a:hover,
.showcase-info h4 a:hover,
.master-card .master-details h4 a:hover { color: #8b0000; }

/* 备案查询表单宽度与页面容器一致 */
.query-form { max-width: none !important; }

/* 联系方式表单验证码 */
.captcha-row { display: flex; gap: 15px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 44px; border-radius: 6px; border: 2px solid #e8dcc8; cursor: pointer; }

/* ===== 防伪相片查看器（放大镜幻灯片） ===== */
.result-ico { max-width: 260px; }
.result-ico img { width: 100%; border-radius: 8px; border: 1px solid #e8dcc8; display: block; }

.pics-view { position: relative; display: inline-block; width: 260px; height: 200px; border: 2px solid #e8dcc8; border-radius: 8px; overflow: hidden; cursor: pointer; background: #faf6f0; }
.pics-view img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pics-view:hover img { transform: scale(1.06); }
.pics-view-mask { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.pics-view-mask span { font-size: 30px; opacity: 0; transition: opacity 0.3s ease; filter: grayscale(1) brightness(3); }
.pics-view:hover .pics-view-mask { background: rgba(0,0,0,0.3); }
.pics-view:hover .pics-view-mask span { opacity: 1; }
.pics-view-tip { font-size: 12px; color: #999; text-align: center; margin-top: 6px; }

.slide-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.95); display: none; flex-direction: column; }
.slide-modal.active { display: flex; }
.slide-close { position: absolute; top: 18px; right: 24px; z-index: 20; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.slide-close:hover { color: #d4a574; }
.slide-counter { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 20; color: #fff; font-size: 13px; background: rgba(0,0,0,0.5); padding: 6px 16px; border-radius: 20px; }
.slide-stage { flex: 1; display: flex; gap: 20px; align-items: center; justify-content: center; padding: 70px 24px 16px; min-height: 0; }
.slide-main { position: relative; max-width: 900px; max-height: 100%; background: #111; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.slide-main img { max-width: 100%; max-height: 72vh; object-fit: contain; cursor: crosshair; display: block; }
.slide-zoomtip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 12px; background: rgba(0,0,0,0.6); padding: 4px 12px; border-radius: 14px; pointer-events: none; white-space: nowrap; }
.slide-zoom { position: relative; width: 280px; height: 280px; flex-shrink: 0; background: #222; border: 2px solid #666; border-radius: 8px; overflow: hidden; }
.slide-zoom img { position: absolute; top: 0; left: 0; max-width: none; }
.slide-lens { position: absolute; border: 2px solid #fff; background: rgba(255,255,255,0.2); pointer-events: none; display: block; }
.slide-lens.hidden { display: none; }
.slide-thumbs { background: #111; padding: 12px 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 76px; }
.slide-thumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.65; transition: all 0.2s; }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-thumb:hover { opacity: 1; }
.slide-thumb.active { border-color: #d4a574; opacity: 1; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 48px; height: 48px; border: none; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; font-size: 22px; cursor: pointer; }
.slide-nav:hover { background: rgba(0,0,0,0.75); color: #d4a574; }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

@media (max-width: 900px) {
    /* ===== 手机端弹窗：逐项对齐参考站 pingguzhengshus（Tailwind -> 等价 CSS） ===== */
    /* 弹窗全屏：用显式四边，兼容不支持 inset 简写的旧内核 */
    .slide-modal { top: 0; right: 0; bottom: 0; left: 0; }
    /* 参考站该面板为 hidden md:block：默认隐藏，主图被点/悬停后由 JS 显示（等价于移除 hidden 类） */
    .slide-zoom { display: none; width: 256px; height: 256px; }
    /* 舞台对应参考站 p-4（16px）；主图容器 flex-1 铺满，底色对应 bg-gray-900 */
    .slide-stage { padding: 16px; gap: 16px; align-items: stretch; flex-direction: column; }
    .slide-main { flex: 1 1 0%; min-height: 0; max-width: 100%; max-height: none; background: #111827; }
    /* 主图 max-height 随容器：面板浮现时等比缩小，完整显示不被裁切 */
    .slide-main img { max-height: 100%; }
    /* 关闭按钮对应 top-4 right-4 w-10 h-10 */
    .slide-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 26px; line-height: 1; }
    /* 计数器对应 top-4 */
    .slide-counter { top: 16px; }
    /* 提示条对应 bottom-4 */
    .slide-zoomtip { bottom: 16px; }
    /* 缩略图条对应 px-4 py-4 + bg-gray-900；缩略图 rounded-lg，选中边框 border-primary */
    .slide-thumbs { padding: 16px; background: #111827; }
    .slide-thumb { border-radius: 8px; }
    .slide-thumb.active { border-color: #8b0000; }
    /* 左右箭头对应 left-4 / right-4 */
    .slide-prev { left: 16px; }
    .slide-next { right: 16px; }
    /* 结果页内缩略图入口 */
    .pics-view { width: 200px; height: 160px; }
}

/* ===== 导航栏当前栏目激活效果 ===== */
nav ul li { position: relative; }

nav ul li.active > a,
nav ul li.active > a:hover,
nav.main-nav.active ul li.active > a,
nav.main-nav.active ul li.active > a:hover {
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
    color: #fff !important;
    border-color: #d4a574;
    font-weight: bold;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

/* 桌面端：激活项下方的金色指示条 */
@media (min-width: 901px) {
    nav ul li.active > a::after {
        content: '';
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 2px;
        height: 2px;
        background: #d4a574;
        border-radius: 2px;
    }
}

/* 移动端抽屉：激活项左侧金色竖条 */
@media (max-width: 900px) {
    nav.main-nav.active ul li.active > a {
        border-left: 4px solid #d4a574;
        padding-left: 16px;
    }
}

/* ===== 移动端列表项：图 + 文字并排一行，标题与简介各限 2 行 ===== */
@media (max-width: 768px) {
    .news-item {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .news-item .thumbnail {
        width: 120px;
        height: 86px;
        margin-right: 0;
        flex-shrink: 0;
    }

    .news-item .content {
        min-width: 0;
        overflow: hidden;
    }

    .news-item h3 {
        font-size: 15px;
        line-height: 1.45;
        margin-bottom: 4px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 简介保留显示，但压到 2 行，避免把条目撑高错位 */
    .news-item p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .news-item .meta {
        display: none;
    }
}

@media (max-width: 480px) {
    .news-item {
        gap: 10px;
    }

    .news-item .thumbnail {
        width: 100px;
        height: 78px;
    }

    .news-item h3 {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .news-item p {
        font-size: 12px;
    }
}

/* ===== 分页：防止手机端被汉字按钮与数字页码撑破 ===== */
.pagination {
    flex-wrap: wrap;
    row-gap: 10px;
}

/* 数字页码单独成组，整体换行，不会散得到处都是 */
.pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pagination a {
    white-space: nowrap;      /* 汉字按钮不拆行 */
    min-width: 34px;
    text-align: center;
    box-sizing: border-box;
}

/* {page:numbar} 输出的是 Tailwind 类名，本模板未加载 Tailwind，这里补回当前页高亮 */
.pagination a[class*="bg-primary"],
.pagination a[class*="bg-primary"]:hover {
    background-color: #5c4033;
    color: #e8d4b8;
    border-color: #5c4033;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        row-gap: 10px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .pagination a {
        padding: 7px 12px;
        font-size: 13px;
        min-width: 32px;
    }

    .pagination .page-numbers {
        gap: 5px;
    }

    /* 手机端收起"首页/尾页"，保留上一页/下一页，避免汉字按钮挤爆一行 */
    .pagination .page-edge {
        display: none;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 5px;
        row-gap: 8px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }

    .pagination .page-numbers {
        gap: 4px;
    }
}

/* ===== 无图内容：不显示占位缩略图，只保留标题和介绍 =====
   由 comm/head.html 里的 pbCheckNoPic() 检测 /static/images/nopic.png 后加 .no-pic。
   各容器的 info 区自带 padding 与对齐，这里只负责隐藏图片区，不再另设内边距。 */
.news-item.no-pic .thumbnail,
.gallery-item.no-pic .gallery-image,
.showcase-item.no-pic .showcase-image {
    display: none;
}
