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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: #c85450;
    color: white;
}

.top-nav {
    background: #c85450;
    padding: 15px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.lang-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language {
    font-size: 12px;
}

.user-icon {
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.main-nav {
    background: transparent;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    width: 120px; /* 固定宽度 */
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu a {
    display: inline-block;
    padding: 0 18px;
    line-height: 44px; /* 根据导航高度调整 */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    /* 不要设置width:100%，否则会覆盖分割线 */
}

.nav-menu a.active,
.nav-menu a.active:hover {
    background: #fff;
    color: #c85450;
    /* 高亮区域只包裹文字，不影响分割线 */
}

.nav-menu li:not(:last-child)::after {
    content: "";
    display: block;
    width: 1px;
    height: 22px;
    background: #fff;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* 修改搜索区域样式 - 移除照片墙，改为浅黄色背景 */
.search-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('figs/search_bg.png') center center/cover no-repeat;
    background-size: 100%;
}

.search-section::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.5); /* 0.2 更透明，可自行调整 */
    pointer-events: none;
    z-index: 1;
}

/* 移除图片墙背景相关样式 */
.search-background {
    display: none; /* 隐藏背景图片 */
}

/* 移除伪元素的图片背景 */
.search-background::before,
.search-background::after {
    display: none;
}

.search-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* 悬浮搜索卡片 */
.search-card {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 30px 140px;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-title {
    color: white;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* 修改搜索框样式 */
.search-box {
    display: flex;
    margin: 0 auto 25px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: none;
}

.search-box form {
    display: flex;
    width: 100%;
    align-items: stretch; /* 确保所有元素高度一致 */
}

.category-select {
    padding: 14px 18px;
    border: none;
    background: #f8f8f8;
    font-size: 14px;
    min-width: 130px;
    border-right: 1px solid #eee;
    outline: none;
    flex-shrink: 0;
    height: auto;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 14px;
    outline: none;
    background: white;
    min-width: 250px;
    height: auto;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #c85450;
    color: white;
    border: none;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px; /* 确保按钮有最小宽度 */
}

.search-btn:hover {
    background: #a94540;
}

.search-btn i {
    font-size: 16px;
}

/* 搜索链接区域 */
.search-links {
    color: white;
}

.search-text-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.text-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.text-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 修改图标链接 - 移除圆框包裹 */
.search-icon-links {
    display: flex;
    justify-content: center;
    gap: 40px; /* 从30px增加到40px，利用更宽的空间 */
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px; /* 从15px减少到10px */
}

.icon-link:hover {
    transform: translateY(-3px);
}

/* 移除图标的圆框包裹效果 */
.icon-link i {
    font-size: 28px; /* 从24px增加到28px，因为没有背景框了 */
    margin-bottom: 8px;
    transition: all 0.3s;
    color: white;
}

.icon-link:hover i {
    color: #c85450;
    transform: scale(1.1);
}

.icon-link span {
    font-size: 14px;
    font-weight: 500;
}

/* 内容区域 */
.main-content {
    background: #f8f8f8;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 22px; /* 从24px减少到22px */
    margin-bottom: 20px; /* 从30px减少到20px */
    padding: 15px 0; /* 从20px减少到15px */
    color: #c85450;
}

.section-title i {
    margin: 0 10px;
    font-size: 16px;
}

.more-link {
    margin-left: auto;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

/* 精选内容 */
.featured-section {
    padding: 30px 0;
    background: white;
}

.featured-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.featured-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.featured-grid {
    display: flex;
    transition: transform 0.5s ease;
}

.featured-group {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.featured-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.featured-item {
    position: relative;
    height: 320px;
    width: 800px; /* 固定宽度确保一致性 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 25px 20px;
}

.featured-text {
    margin-bottom: 12px;
}

.featured-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.featured-text p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.3;
}

/* 展品区域 */
.exhibits-section {
    padding: 40px 0;
    position: relative;
}

.exhibits-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.exhibits-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.exhibits-grid {
    display: flex;
    transition: transform 0.5s ease;
}

.exhibit-group {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.exhibit-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.exhibit-item:hover {
    transform: translateY(-5px);
}

.exhibit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新闻和专题 */
.news-topics-section {
    padding: 40px 0;
    background: white;
}

/* 内容行布局 */
.content-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* 原来是30px，改为20px缩小间隔 */
    /* 或者改为更大的值，比如 gap: 40px; */
    margin-bottom: 40px;
}

.content-row:last-child {
    margin-bottom: 0;
}

/* 内容块样式 */
.content-block {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 块头部 */
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #c85450;
}

.block-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.block-more {
    font-size: 12px;
    color: #c85450;
    text-decoration: none;
    transition: color 0.3s;
}

.block-more:hover {
    color: #a94540;
}

/* 特色内容 */
.block-featured {
    padding: 20px;
    background: white;
}

.block-featured img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.block-featured p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 列表内容 */
.block-list {
    padding: 20px;
}

.block-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.item-title {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-title:hover {
    color: #c85450;
}

.item-date {
    font-size: 11px;
    color: #999;
    align-self: flex-end;
}

/* 修改新闻和专题样式 */
.news-topics-section {
    padding: 40px 0;
    background: white;
}

/* 新闻行和专题行布局 */
.news-row,
.topics-row {
    margin-bottom: 60px;
}

.topics-row {
    margin-bottom: 0;
}

/* 图片网格布局 */
.news-grid,
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 新闻卡片和专题卡片 */
.news-card,
.topics-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover,
.topics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.news-featured,
.topics-featured {
    width: 100%;
}

.news-featured img,
.topics-featured img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-featured p,
.topics-featured p {
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* 文字列表网格布局 */
.news-list-grid,
.topics-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-list,
.topics-list {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.news-item,
.topics-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child,
.topics-item:last-child {
    border-bottom: none;
}

.news-title,
.topics-title {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.news-title:hover,
.topics-title:hover {
    color: #c85450;
}

.news-date,
.topics-date {
    font-size: 11px;
    color: #999;
    align-self: flex-end;
}

/* 底部链接 */
.bottom-links {
    padding: 40px 0;
}

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

.link-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.link-item:hover {
    transform: translateY(-3px);
}

.link-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.link-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-right {
        align-items: center;
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .search-title {
        font-size: 24px; /* 从28px减少到24px */
        letter-spacing: 3px; /* 从4px减少到3px */
        margin-bottom: 20px; /* 从25px减少到20px */
    }
    
    .search-box {
        flex-direction: column;
        margin-bottom: 20px; /* 从25px减少到20px */
        max-width: 100%;
    }
    
    .category-select {
        border-right: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        min-width: auto;
    }
    
    .search-input {
        border-radius: 0;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .search-text-links {
        flex-direction: column;
        gap: 12px; /* 从15px减少到12px */
        margin-bottom: 15px; /* 从20px减少到15px */
    }
    
    .search-icon-links {
        gap: 20px; /* 从15px增加到20px */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .icon-link {
        padding: 8px; /* 从10px减少到8px */
    }
    
    .icon-link i {
        font-size: 24px; /* 从20px增加到24px */
    }
    
    .icon-link span {
        font-size: 12px;
    }

    .quick-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .exhibits-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .exhibit-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-row {
        grid-template-columns: 1fr;
        gap: 15px; /* 小屏幕的间隔 */
        margin-bottom: 30px;
    }
    
    .news-content,
    .topics-content {
        flex-direction: column;
    }
    
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .featured-content {
        max-width: 100%; /* 移动端保持全宽 */
        margin: 0;
    }
    
    .featured-item {
        height: 280px; /* 移动端进一步减少高度 */
    }
    
    .featured-overlay {
        padding: 20px 20px 15px;
    }
    
    .featured-text h4 {
        font-size: 14px;
    }
    
    .featured-text p {
        font-size: 12px;
    }
    
    .featured-section {
        padding: 20px 0; /* 移动端进一步减少上下间距 */
    }

    .featured-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-item {
        width: 100%;
        height: 280px;
    }
    
    .featured-overlay {
        padding: 20px 20px 15px;
    }
    
    .featured-text h4 {
        font-size: 14px;
    }
    
    .featured-text p {
        font-size: 12px;
    }
    
    .featured-section {
        padding: 20px 0;
    }

    .news-grid,
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-list-grid,
    .topics-list-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-row,
    .topics-row {
        margin-bottom: 40px;
    }
    
    .news-featured img,
    .topics-featured img {
        height: 120px;
    }
    
    .news-featured p,
    .topics-featured p {
        padding: 12px;
        font-size: 13px;
        min-height: 50px;
    }
    
    .news-list,
    .topics-list {
        padding: 15px;
    }

    .content-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .block-header {
        padding: 12px 15px;
    }
    
    .block-title {
        font-size: 15px;
    }
    
    .block-featured {
        padding: 15px;
    }
    
    .block-featured img {
        height: 100px;
    }
    
    .block-featured p {
        font-size: 13px;
    }
    
    .block-list {
        padding: 15px;
    }
    
    .item-title {
        font-size: 12px;
    }
    
    .item-date {
        font-size: 10px;
    }

    .search-card {
        padding: 25px 20px; /* 移动端调整 */
        margin: 20px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .search-title {
        font-size: 24px; /* 从28px减少到24px */
        letter-spacing: 3px; /* 从4px减少到3px */
        margin-bottom: 20px; /* 从25px减少到20px */
    }
    
    .search-box {
        flex-direction: column;
        margin-bottom: 20px; /* 从25px减少到20px */
        max-width: 100%;
    }
    
    .category-select {
        border-right: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        min-width: auto;
    }
    
    .search-input {
        border-radius: 0;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .search-text-links {
        flex-direction: column;
        gap: 12px; /* 从15px减少到12px */
        margin-bottom: 15px; /* 从20px减少到15px */
    }
    
    .search-icon-links {
        gap: 20px; /* 从15px增加到20px */
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .icon-link {
        padding: 8px; /* 从10px减少到8px */
    }
    
    .icon-link i {
        font-size: 24px; /* 从20px增加到24px */
    }
    
    .icon-link span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .featured-item {
        height: 250px;
    }
    
    .featured-overlay {
        padding: 15px 15px 12px;
    }

    .news-topics-section {
        padding: 30px 0;
    }
    
    .news-featured img,
    .topics-featured img {
        height: 100px;
    }
    
    .news-featured p,
    .topics-featured p {
        padding: 10px;
        font-size: 12px;
        min-height: 45px;
    }
    
    .news-title,
    .topics-title {
        font-size: 12px;
    }
    
    .news-date,
    .topics-date {
        font-size: 10px;
    }

    .news-topics-section {
        padding: 30px 0;
    }
    
    .block-featured img {
        height: 80px;
    }
    
    .block-featured p {
        font-size: 12px;
    }
    
    .block-header {
        padding: 10px 12px;
    }
    
    .block-title {
        font-size: 14px;
    }
    
    .block-more {
        font-size: 11px;
    }

    .search-section {
        min-height: 450px; /* 从450px减少到350px */
    }
    
    .search-overlay {
        min-height: 350px;
    }
    
    .search-card {
        padding: 20px 15px; /* 从25px 15px减少到20px 15px */
    }
    
    .search-title {
        font-size: 20px; /* 从24px减少到20px */
        letter-spacing: 2px;
    }
    
    .search-text-links {
        gap: 10px;
    }
    
    .text-link {
        font-size: 13px; /* 从14px减少到13px */
        padding: 6px 12px;
    }
    
    .search-icon-links {
        gap: 15px; /* 从10px增加到15px */
    }
    
    .icon-link {
        padding: 6px; /* 从8px减少到6px */
    }
    
    .icon-link i {
        font-size: 22px; /* 稍微减少以适应小屏幕 */
    }
}

@media (max-width: 1024px) {
    .news-grid,
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-list-grid,
    .topics-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* 中等屏幕的间隔 */
    }
}

.nav-btn {
    background: #c85450;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.nav-btn:hover {
    background: #a94540;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 2px;
    border-radius: 8px; /* 可选，圆角 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 可选，阴影 */
    transition: transform 0.3s;
}
.icon-link:hover .icon-img {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 16px rgba(200,84,80,0.15);
}
