/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Noto Sans SC", sans-serif;
}

body {
    background: #f5f1e8;
    padding-top: 60px;
}

/* 顶部菜单 */
.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;
}

.menu-logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #4A3428;
}
.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-bar {
    position: relative;  /* 新增此行 */
    width: 100%;
    height: 160px;
   /* background: #1e3a8a;*/
    background: #E6D5B8;
    color: #4A3428;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(135deg, #F5E9D5 0%, #E6D5B8 50%, #D7C1A0 100%);
}

.header-title {
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.header-subtitle {
    opacity: 0.88;
    font-size: 18px;
}

/* ========== 左下角导航链接容器（新样式，替代 .back-home-link） ========== */
.nav-links {
    position: absolute;
    left: 28px;
    bottom: 22px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(3px);
    padding: 6px 16px 6px 12px;
    border-radius: 40px;
    color: #6B4226;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: inherit;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    color: #6B4226;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-link:active {
    transform: translateY(1px);
}


/* 时期按钮栏 */
.period-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px 0;
    padding: 0;
}

.period-btn {
    background: #faf5ed;
    border: 1px solid #f3e6d0;
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6B4226;
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    background: #fefbf6;
    transform: translateY(-1px);
}

.period-btn.active {
    background: #E6D5B8;
    color: #4A3428;
    border-color: #E6D5B8;
}


/* 响应式适配：窄屏幕下调整位置和字号 */
@media (max-width: 680px) {
    .back-home-link {
        left: 16px;
        bottom: 16px;
        padding: 5px 12px 5px 10px;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(4px);
    }
}

@media (max-width: 480px) {
    .back-home-link {
        bottom: 12px;
        left: 12px;
        padding: 4px 10px 4px 8px;
        font-size: 13px;
    }
}


/* 卡片区域 */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto 10px;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.timeline-card {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: 0.2s;
    text-align: center;  /* 水平居中文字内容 */
    display: flex;       /* 启用flexbox布局 */
    flex-direction: column; /* 垂直排列子元素 */
    align-items: center;     /* 水平居中对齐所有子元素 */
}

.timeline-card.active {
    border: 2px solid #d4af37;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.card-title {
    font-size: 19px;
    color: #4A3428;
    margin-bottom: 8px;
   font-weight: 600;
   width: 100%;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-count {
    font-size: 13px;
    color: #999;
}

/* 详情区域 */
.detail-container {
    max-width: 1000px;
    margin: 0 auto 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.threeshow .detail-container {
    padding: 30px;
    display: flex;
    gap: 25px;
    flex-direction: column; /* 使子元素垂直排列 */
}

.threeshow .detail-text {
     flex: 0 0 900px;
}

.threeshow .detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #6B4226;
    margin-bottom: 16px;
    border-left: 5px solid #d4af37;
    padding-left: 18px;
}

.threeshow .detail-content {
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.threeshow .detail-count {
    color: #b8860b;
    font-weight: 500;
}

/* 滑动窗口 */
.scroll-container {
    position: relative;
    width: 100%;
    height: 650px;
    background: #fffefc;
    border-radius: 8px;
    padding: 10px;
    overflow-y: auto;  /* 垂直方向自动出现滚动条 */
    overflow-x: hidden;/* 禁止横向滚动，避免溢出 */
    border: 1px solid #f8f5f0;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.08);
}

.scroll-content {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    border-radius: 6px;
    overflow: hidden;
}

.seal-card {
    min-width: 100%;
    width: 100%;
    height: 100%;
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    overflow-y: auto;
}

.seal-table {
    width: 100%;
    border-collapse: collapse;
}

.seal-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.seal-table .first-row td {
    padding: 10px 8px;
    font-size: 15px;
    background-color: #fefbf6;
    font-weight: 700;
    height: 90px;
}

.seal-table .label,
.seal-table .sub-label {
    width: 98px;
    font-weight: 600;
    color: #6B4226;
    background-color: #fefbf6;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.seal-table .value,
.seal-table .sub-value {
    color: #1f2a3e;
    word-break: break-word;
}

.seal-table .image-cell {
    text-align: center;
    vertical-align: middle;
    width: 260px;
    min-width: 210px;
}

.seal-image-placeholder {
    font-size: 18px;
    color: #6f5b3e;
    border: 1px solid #e2dccd;
    border-radius: 16px;
    background: #f8f5f0;
    padding: 28px 12px;
    text-align: center;
}

.seal-image-placeholder img {
    max-width: 100%;
    max-height: 400px; 
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.td-seal {
    width: 70px;
    color: #1e3a8a;
    font-weight: bold;
}

.td-field {
    width: 90px;
    color: #666;
}

/* 滑动按钮 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e3a8a;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll-btn.prev {
    left: 18px;
}

.scroll-btn.next {
    right: 18px;
}

.scroll-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* 底部区域 */
/* ========== 页脚 ========== */
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;
    }
}

/* ========== 轮播导航栏样式（最终版） ========== */
body .carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px 0 5px;
    background: transparent;
    width: 100%;          /* 新增：占满父容器宽度，确保居中生效 */
}

/* 椭圆形按钮样式（可点击状态） */
.nav-btn {
    border: 1px solid #6B4226 !important;     /*  */
    background: transparent !important;       /*  */
    color: #4A3428 !important;               /* */
    padding: 6px 20px !important;
    height: 34px !important;
    min-width: 90px;
    border-radius: 17px !important;           /* 椭圆形 */
    font-size: 14px !important;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box !important;
    line-height: 1;
}

/* 悬浮效果：深蓝背景 + 白色文字 */
.nav-btn:hover:not(:disabled) {
    background-color: #6B4226 !important;
    color: #fff !important;
    border-color: #d4af37 !important;
}

/* 禁用状态（如首尾页时） */
body .nav-btn:disabled {
    background-color: #f7f7f7 !important;
    border-color: #eee !important;
    color: #ccc !important;
    cursor: not-allowed !important;
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.96);
    background-color: #6B4226 !important;
    color: #fff !important;
    transition: transform 0.05s ease;
    transition: transform
}

body .info-badge {
    background-color: #f8f5f0 !important;
    color: #d4af37 !important;
    font-size: 15px !important;        /* 字号加大到15px */
    font-weight: 600 !important;
    margin: 0 5px !important;          /* 左右增加5px间距，与pagebar一致 */
    padding: 4px 14px !important;
    border-radius: 20px !important;
    min-width: 70px;
    text-align: center;
    box-sizing: border-box !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-title {
        font-size: 24px;
    }
    .header-bar {
        height: 120px;
    }
    .search-box {
        width: 240px;
        height: 36px;
    }
    .search-box:focus-within {
        width: 260px;
    }
    .scroll-container {
        width: 100%;
        height: 380px;
        padding: 8px;
    }
    .threeshow .detail-container {
        flex-direction: column;
        padding: 20px;
    }
    .threeshow .detail-text {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 搜索响应式设计 - 手机设备 */
@media (max-width: 480px) {
    .fixed-menu {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 10px 20px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        align-items: center;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
        height: 40px;
    }
    
    .search-box:focus-within {
        width: 100%;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-input::placeholder {
        font-size: 12px;
    }
}
/* ========== 新增：控制详情面板的显示与隐藏 ========== */
.detail-panel {
    display: none;
}

.detail-panel.active {
    display: block;
}