/* ========== 全局重置 & 基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Noto Sans SC", sans-serif;
}

body {
    background-color: #f5f1e8;
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    padding-top: 38px;
    color: #1f2937;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    color: #4A3428;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    color: #6B4226;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ========== 固定菜单 ========== */
.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 999;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.menu-content {
    text-align: right;
    padding-right: 5%;
    font-size: 0.875rem;
    color: #1f2937;
}

.menu-link {
    font-weight: 500;
    transition: color 0.2s;
}

.menu-link:hover {
    color: #6B4226;
}

.menu-content span {
    margin: 0 4px;
    color: #9ca3af;
}

.menu-logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}
.menu-logo a {
           color: #4A3428; /* 添加这行代码 */
            text-decoration: none;
            transition: color 0.2s;
        }
        
.menu-logo a:hover {
           color: #6B4226;/* 添加这行代码 */
        }
.menu-logo img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.menu-logo span {
    font-size: 14px;
    color: #999;
    margin-left: 6px;
}

/* 搜索容器 */
.search-container {
    margin-left: auto; /* 将搜索框推到右侧 */
    margin-right: 20px; /* 右侧留出间距 */
    display: flex;           /* 启用flex布局 */
    align-items: center;     /* 垂直方向居中对齐 */
    justify-content: center; /* 水平方向居中对齐（可选） */
    height: 100%;            /* 继承父容器高度 */
    margin-top: auto;        /* 自动顶部外边距，将元素推到容器底部 */
    margin-bottom: 8px;      /* 添加底部外边距，使更靠近下边沿 */
}

/* 搜索框整体样式 */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 20px;
    padding: 4px 4px 4px 16px;
    width: 280px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 40px;  /* 固定高度，与顶部菜单条协调 */
}

/* 鼠标悬停效果 */
.search-box:hover {
    border-color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.1);
}

/* 获得焦点时的效果 */
.search-box:focus-within {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    width: 300px; /* 获得焦点时稍微扩大 */
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
    font-family: inherit;
    height: 100%;  /* 填满搜索框高度 */
    line-height: 1.5; /* 确保文字垂直居中 */
}

/* 占位符样式 */
.search-input::placeholder {
    color: #999;
    font-size: 13px;
}

/* 搜索按钮 */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #1e3a8a;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* 按钮悬停效果 */
.search-btn:hover {
    background: #4a7db5;
}

/* 按钮激活效果 */
.search-btn:active {
    background: #2c5a8c;
    transform: scale(0.95);
}

/* 搜索图标 */
.search-icon {
    pointer-events: none; /* 防止图标干扰点击事件 */
}

/* ========== 头部 ========== */
header {
    margin-bottom: 4rem;
}

.header-img-wrapper {
    width: 100%;
    line-height: 0;
}

/* ========== 策展理念区块 ========== */
.curation-section {
    background-color: #fef9e8;
    padding: 2.5rem 0;
    margin-bottom: 4rem;
}

.concept-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #f8f5f0;
    padding: 2rem 1rem;
    /* 新增边框和阴影样式 */
    border: 1px solid #e0d8c8; /* 浅木色边框，贴合复古风格 */
    border-radius: 16px; /* 圆角，增加柔和感 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* 轻量阴影，提升层次感 */
    transition: all 0.3s ease; /* 过渡动画，hover时增强效果 */
}
/* 新增hover效果，提升交互体验 */
.concept-wrapper:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); /* 加深阴影 */
    border-color: #d4af37; /* 边框变为金色，呼应馆藏章主题 */
    transform: translateY(-2px); /* 轻微上移，增强动感 */
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    align-items: start;
        /* 新增：防止内部内容溢出圆角 */
    overflow: hidden;
}

.concept-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
        /* 新增：给每个item加轻微内边距，增强呼吸感 */
    padding: 0.8rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
/* 新增item hover效果 */
.concept-item:hover {
    background-color: #fffbf5; /* 浅米色背景，突出当前item */
}

.concept-icon {
    flex-shrink: 0;
    width: 36px;
    margin-top: 0.2rem;
}

.concept-text h3 {
    font-size: 1.2rem;
  /*  color: #1e3a8a; */
    color: #260E10;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.concept-text p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========== 网站主要功能 ========== */
.functions-section {
    margin-bottom: 5rem;
}

.func-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
}

.func-card {
    background: white;
    border: 1px solid #e8e0d2;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.func-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.func-icon {
    margin-bottom: 1rem;
    width: auto;        /* 让容器自适应宽度 */
    display: flex;      /* 🔥 核心：横排 */
    gap: 10px;          /* 印章之间的间距 */
    justify-content: center; /* 居中 */
    align-items: center;
  flex-wrap: nowrap;  /* 🔥 强制不换行 */
}

.func-icon img {
  width: 48px !important;  /* 统一小印章宽度 */
  height: auto !important;
}

.func-card h3 {
    font-size: 1.35rem;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    color: #6B4226;
}

.func-card p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.func-more {
    display: inline-block;
    color: #6B4226;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border: 2px solid #6B4226;
    border-radius: 6px;
    transition: all 0.3s;
   background: transparent;
}

.func-more:hover {
    background: rgba(107, 66, 38, 0.1);
}

@media (max-width: 768px) {
    .func-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 馆藏章示例 - 卡片样式修改 ========== */
/* 馆藏章列表容器 */
.seal-container {
    width: 100%;
    position: relative;
    margin-bottom: 2rem;
}

/* 修改1：seal-list从列表容器改为div容器 */
.seal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0 auto;
    max-width: 1500px;
    width: 100%;
    /* 添加：移除列表样式，因为现在使用div */
    list-style: none; /* 保留此属性以确保兼容性 */
}


        
        /* 馆藏章卡片 */
        .seal-card {
            background: white;
            border: 1px solid #e8e0d2;
            border-radius: 12px;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            height: 100%;
        }
        
        .seal-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
            border-color: #d4af37;
        }
        
        /* 固定图片大小 */
        .seal-card img {
            width: 180px;
            height: 180px;
            object-fit: contain;
            margin-bottom: 1rem;
            border-radius: 8px;
                /* background: #f8f5f0;  */
    background: rgba(248, 245, 240, 0.95);
            padding: 0.5rem;
            border: 1px solid #f0f0f0;
        }
        
        /* 标题样式 */
 .seal-card h3 {
            margin-bottom: 0.5rem;
            font-size: 1.25rem;
        /*    color: #1e3a8a; */
            color: #6B4226;
            min-height: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 描述文字样式 */
.seal-card .seal-description {
           /* color: #2d3748;*/
            color: #6B4226;
            line-height: 1.6;
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
            min-height: 3rem;
        }
        
        /* 年代信息样式 */
        .seal-card .seal-era {
            color: #6b7280;
            font-size: 0.85rem;
            font-style: italic;
            margin-top: auto;
            padding-top: 0.5rem;
            border-top: 1px solid #f0f0f0;
            width: 100%;
        }
        
        /* 动画效果 
 @keyframes slideInLeft {
            0% {
                opacity: 0;
                transform: translateX(-20px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
.slide-in-left {
            animation: slideInLeft 0.6s ease-out forwards;
            opacity: 0;
        }
        
        
.seal-card:nth-child(1) { animation-delay: 0.1s; }
.seal-card:nth-child(2) { animation-delay: 0.2s; }
.seal-card:nth-child(3) { animation-delay: 0.3s; }
.seal-card:nth-child(4) { animation-delay: 0.4s; }
   */   
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .seal-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
                padding: 0 1rem;
            }
            
            .seal-card img {
                width: 140px;
                height: 140px;
            }
        }
        
        @media (max-width: 640px) {
            .seal-list {
                grid-template-columns: 1fr;
                max-width: 400px;
            }
            
            .seal-card {
                padding: 1.2rem;
            }
            
            .seal-card img {
                width: 160px;
                height: 160px;
            }
}


/* ========== 页脚 ========== */
footer {
  /*  background-color: #1e3a8a;
    color: white; */
   /* background-color: #1e3a8a;background-color:#BCAAA4;*/ 
    background: linear-gradient(135deg, #5C4033 0%, #6B4226 100%);
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid #d4af37;
    text-align: center;
    width: 100%;
    position: relative;
    clear: both;
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

footer a {
    color: #3E2723;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}
/* 页脚附加信息样式 */
.footer-sub {
    font-size: 0.8rem;
    color: #3E2723;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* 页脚链接区域 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 0.2rem 0;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }
    
    footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.2rem 0;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer p {
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* ========== 动画 ========== */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}