@charset "utf-8";
/* CSS Document */
body {
    background: url(../images/index_bg.gif) repeat;
}


.logo {
    margin-top: 40px;
}

.search {
    height: 230px;
    background: url(../images/search.jpg) no-repeat center #d1b687;
    margin-top: 18px;
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.search .inner {
    width: 870px;
    padding-top: 0; /* 移除顶部内边距 */
    text-align: center; /* 文本居中 */
}

.search .tit ul {
    display: inline-block; /* 让ul在行内显示，便于居中 */
    padding-left: 0;
}

.search .tit li {
    display: inline-block; /* 让li在行内显示，便于居中 */
}

.search .tit li a {
    display: inline-block; /* 同样让a标签在行内显示，便于居中 */
    font-size: 16px; /* 增加字体大小 */
    font-weight: bold;
    line-height: 30px;
    padding: 0 15px;
    color: #333; /* 文字颜色 */
    background-color: #ede5d3; /* 背景颜色 */
    border: 1px solid #c2a574; /* 边框 */
    border-radius: 3px; /* 圆角 */
    text-transform: uppercase; /* 文字大写 */
    transition: background-color 0.3s, color 0.3s; /* 平滑过渡 */
}

.search .tit li a:hover,
.search .tit li a.cur {
    background-color: #c2a574; /* 鼠标悬停或当前选中的背景色 */
    color: #fff; /* 鼠标悬停或当前选中的文字颜色 */
    border-color: #a6a6a6; /* 鼠标悬停或当前选中的边框颜色 */
}

.search .con {
    height: 115px;
    position: relative;
    margin-top: 2px;
    text-align: center; /* 内容居中 */
}

.search .con .lib {
    width: 775px;
    height: 100px;
    background: #ede5d3;
    filter: alpha(opacity=50);
    opacity: 0.5;
    border: 1px solid #fff;
    position: absolute;
    top: 0;
    left: 50%; /* 居中 */
    transform: translateX(-50%); /* 修正绝对定位造成的偏移 */
    z-index: 1;
}

.search .con .sCon {
    display: none;
    width: 870px;
    height: 115px;
    position: relative; /* 改变定位类型以简化布局 */
    margin: 0 auto; /* 水平居中 */
    z-index: 999;
    zoom: 1;
}

.search .con .quick {
    padding: 28px 0 0 0; /* 左边内边距设为0 */
    zoom: 1;
    display: inline-block; /* 让快速搜索框行内显示，便于居中 */
}

.search .con .quick input {
    margin-left: 6px;
}

.search .con .quick .txt {
    float: none; /* 取消浮动 */
    display: inline-block; /* 行内显示 */
    width: 425px;
    height: 37px;
    line-height: 37px;
    border: 1px solid #c2a574;
    background: #f7f4ed;
    padding: 0 10px; /* 添加内边距 */
}

.search .con .quick .btn {
    display: inline-block; /* 行内显示 */
    width: 116px;
    height: 38px;
    background: url(../images/icons.gif) no-repeat left -42px;
    border: none;
    color: #fef7e2;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px; /* 添加左侧外边距 */
}

.main1_left .sslct {
    float: left;
    position: relative;
}

.main1_left .sslct .sTxt {
    margin: 0px;
}

.main1_left .sslct .sTxt span {
    float: left;
    width: 95px;
    height: 39px;
    line-height: 39px;
    background: url(../images/icons.gif) no-repeat;
    cursor: pointer;
    padding-left: 17px;
}

.main1_left .sslct ul {
    position: absolute;
    left: 0px;
    top: 39px;
    width: 112px;
    height: 0px;
    overflow: hidden;
    background-color: #FFF;
}

.main1_left .sslct ul li {
    border: 1px solid #c3a675;
    margin-top: -1px;
}

.main1_left .sslct ul a {
    display: block;
    line-height: 39px;
    color: #333;
    text-decoration: none;
    padding-left: 17px;
}

.main1_left .sslct ul a:hover {
    background-color: #efefef;
    text-decoration: none;
}


.foot {
    background: #f8f5ee;
    padding: 30px 0;
}

.foot a {
    color: #156593;
}

/* 深度美化 .realIp 区域 */
.realIp {
    font-size: 16px; /* 字体大小 */
    color: #333; /* 文字颜色 */
    background-color: linen; /* 背景颜色 */
    padding: 10px 20px; /* 内边距 */
    margin: 15px; /* 外边距 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 5px; /* 圆角 */
    display: inline-block; /* 行内块元素 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影，增加层次感 */
    transition: all 0.3s ease; /* 平滑过渡 */
    font-weight: normal; /* 字体权重正常 */
    text-align: center; /* 文本居中 */
}

/* 鼠标悬停时的效果 */
.realIp:hover {
    background-color: #e0e0e0; /* 悬停时背景颜色加深 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 悬停时阴影加深 */
}



#lksw {
    width: 545px;
    margin-left: 28px;
    color: #999999;
    padding-left: 5px;
}

#lksw:focus {
    outline: #6BDDFA solid 1px;
}


.right {
    width: 300px;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
}

.left {
    width: 300px;
    margin: 0 auto;
    text-align: center;
    display: inline-block;
}

.all {
    display: flex;
    justify-content: center;
    margin-top: 30px; /* 增加顶部间距，略微提升空间感 */
    flex-wrap: wrap;
    padding: 0 15px; /* 添加左右内边距，确保内容在小屏幕上不紧贴边缘 */
}

.qr-code {
    width: 280px; /* 调整宽度以适应更多屏幕尺寸 */
    margin: 15px; /* 增加外边距，提供更多空间感 */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* 轻微调整阴影，使其更加柔和 */
    padding: 25px; /* 增加内边距，为内容提供更多空间 */
    background-color: #fafafa; /* 使用更加柔和的背景色 */
    border-radius: 12px; /* 略微增加圆角，增强美观度 */
    transition: box-shadow 0.3s ease; /* 添加阴影过渡效果，增加交互性 */
}

.qr-code:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12); /* 悬停时增加阴影，提升视觉效果 */
}

.qr-code img {
    width: 120px; /* 调整图片大小，保证清晰度 */
    margin-bottom: 15px; /* 增加图片与文字间的间距 */
}

.qr-code p {
    font-size: 15px; /* 增加字体大小，提高可读性 */
    color: #555; /* 使用更柔和的文字颜色，减少视觉疲劳 */
    margin: 0; /* 重置段落的外边距，保持布局的紧凑 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* 使用更优雅的字体族 */
}

/* 导航图标样式 */
.nav-icons {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center; /* 替代了HTML中的align属性 */
}

.nav-icons li {
    display: inline-block;
    margin: 0 20px;
}

.nav-icons li a {
    text-decoration: none;
    color: #333; /* 文字颜色 */
    display: inline-block;
    vertical-align: middle; /* 保持垂直居中 */
    position: relative; /* 为相对定位做准备 */
}

.nav-icons .icon {
    display: inline-block;
    width: 80px; /* 图标宽度 */
    height: 80px; /* 图标高度 */
    background-size: cover; /* 背景图片完全覆盖元素 */
    background-position: center; /* 背景图片居中 */
    border-radius: 10px; /* 圆角边框 */
    margin-bottom: 42px; /* 图标与文字的间距 */
    position: relative; /* 为相对定位做准备 */
    float: left; /* 添加浮动属性，以便文字可以环绕图标 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
}

.nav-icons .text {
    display: block;
    font-family: '楷体', sans-serif; /* 故纸堆风格的字体 */
    font-size: 14px; /* 调整字体大小 */
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3); /* 调整文字阴影 */
    position: absolute; /* 绝对定位，相对于图标容器 */
    bottom: 5px; /* 文字距离底部的距离 */
    left: 50%; /* 文字距离左侧的距离 */
    transform: translateX(-50%); /* 文字水平居中 */
    white-space: nowrap; /* 防止文字换行 */
    text-align: center; /* 文字水平居中 */
    width: 100%; /* 文本宽度与容器相同 */
    margin-top: 10px; /* 文本与图标之间的间距 */
    float: left; /* 添加浮动属性，以便文字可以环绕图标 */
    z-index: 2; /* 确保文字不会被图标遮挡 */
    color: #333; /* 文字颜色 */
    background-color: rgba(255, 255, 255, 0.8); /* 背景颜色，与图标形成对比 */
    padding: 5px 10px; /* 添加内边距 */
    border-radius: 10px; /* 添加边框半径，与图标相匹配 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 导航图标样式 */
.nav-icons {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center; /* 替代了HTML中的align属性 */
}

.nav-icons li {
    display: inline-block;
    margin: 0 20px;
}

.nav-icons li a {
    text-decoration: none;
    color: #333; /* 文字颜色 */
    display: inline-block;
    vertical-align: middle; /* 保持垂直居中 */
    position: relative; /* 为相对定位做准备 */
    outline: none; /* 移除轮廓线 */
}

.nav-icons .icon {
    display: inline-block;
    width: 80px; /* 图标宽度 */
    height: 80px; /* 图标高度 */
    background-size: cover; /* 背景图片完全覆盖元素 */
    background-position: center; /* 背景图片居中 */
    border-radius: 10px; /* 圆角边框 */
    margin-bottom: 42px; /* 图标与文字的间距 */
    position: relative; /* 为相对定位做准备 */
    float: left; /* 添加浮动属性，以便文字可以环绕图标 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
}

.nav-icons .text {
    display: block;
    font-family: '楷体', sans-serif; /* 故纸堆风格的字体 */
    font-size: 14px; /* 调整字体大小 */
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3); /* 调整文字阴影 */
    position: absolute; /* 绝对定位，相对于图标容器 */
    bottom: 5px; /* 文字距离底部的距离 */
    left: 50%; /* 文字距离左侧的距离 */
    transform: translateX(-50%); /* 文字水平居中 */
    white-space: nowrap; /* 防止文字换行 */
    text-align: center; /* 文字水平居中 */
    width: 100%; /* 文本宽度与容器相同 */
    margin-top: 10px; /* 文本与图标之间的间距 */
    float: left; /* 添加浮动属性，以便文字可以环绕图标 */
    z-index: 2; /* 确保文字不会被图标遮挡 */
    color: #333; /* 文字颜色 */
    background-color: rgba(255, 255, 255, 0.8); /* 背景颜色，与图标形成对比 */
    padding: 5px 10px; /* 添加内边距 */
    border-radius: 10px; /* 添加边框半径，与图标相匹配 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 导航区域样式 */
.bulletin {
    width: 100%; /* 宽度为100%，占据整个容器 */
    margin: 50px auto; /* 上下边距为50px，自动边距 */
    text-align: center; /* 替代了HTML中的align属性 */
}

/* 每个图标的特定背景 */
.icon-old-magazines {
    background-image: url('/images/ku/lk.png');
}

.icon-republican-books {
    background-image: url('/images/ku/mgts.png');
}

.icon-modern-newspapers {
    background-image: url('/images/ku/bz.png');
}

.icon-ancient-local-records {
    background-image: url('/images/ku/gfz.png');
}

.icon-ancient-texts {
    background-image: url('/images/ku/gjwx.png');
}

.icon-party-history {
    background-image: url('/images/ku/ds.png');
}

.icon-old-photos {
    background-image: url('/images/ku/lzp.png');
}

.icon-jia-pu {
    background-image: url('/images/ku/jiapu.png');
}

/* 为图标添加一些修饰 */
.nav-icons .icon:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* 圆角边框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    opacity: 0.8; /* 设置不透明度 */
}

/* 取消点击后的痕迹 */
.nav-icons li a:visited,
.nav-icons li a:active {
    color: #333; /* 文字颜色 */
    background-color: transparent; /* 背景颜色透明 */
    box-shadow: none; /* 移除阴影 */
    outline: none; /* 移除轮廓线 */
}

/* 鼠标悬停时的文字样式 */
.nav-icons .text:hover {
    background-color: rgba(0, 0, 0, 0.7); /* 悬停时背景颜色加深 */
    color: #fff; /* 悬停时文字颜色保持白色 */
}

/* 为 :focus 伪类添加样式 */
.nav-icons li a:focus {
    outline: none; /* 移除轮廓线 */
    box-shadow: none; /* 移除阴影 */
}