/* ========== 主题变量 ========== */
/* ========== 基础重置 ========== */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", Arial, sans-serif;
  background: #f6f3ed;
  font-size: 0.08333333rem;
  color: #2b2b2b;
  -webkit-font-smoothing: antialiased;
}
html {
  height: 100%;
}
body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
/* 全屏滚动由 .fullpage-wrap(100vh+overflow:hidden) 控制，html/body 保持可滚动以便露出页脚 */
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
.container {
  width: 6.875rem;
  margin: 0 auto;
  padding: 0 0.10416667rem;
}
/* ========== 头部通栏 ========== */
.header {
  background: #21342F;
  border-bottom: 0.02604167rem solid #937546;
  height: 0.57291667rem;
}
.header-inner {
  width: 100%;
  max-width: 10rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  height: 100%;
}
/* ===== 左组：单张 logo ===== */
.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.20833333rem;
}
.logo-img img {
  height: 0.3125rem;
  display: block;
}
/* ===== 中：导航（flex:1 + justify-content:center 居中） ===== */
.nav {
  flex: 1;
  min-width: 0;
  height: 100%;
}
.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
}
.nav-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.15625rem;
  height: 100%;
  color: #FFF5DC;
  /* Figma 精确色：暖白米黄 */
  font-family: "Microsoft YaHei", "PingFang SC", serif;
  font-size: 0.10416667rem;
  font-weight: 500;
  letter-spacing: 0.02083333rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
/* 选中态：朱红底上下占满整条 */
.nav-item.active a {
  color: #fff;
  background: #8b2e2e;
}
/* ===== 右：搜索框（金边胶囊 + 放大镜图标） ===== */
.search-form {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05208333rem;
  width: 0.88541667rem;
  height: 0.23958333rem;
  border: 0.00520833rem solid #937546;
  border-radius: 0.11979167rem;
  transition: border-color 0.2s;
}
.search-form:focus-within {
  border-color: #c8a97e;
}
.search-icon {
  width: 0.10416667rem;
  height: 0.10416667rem;
  flex-shrink: 0;
  display: flex;
}
.search-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.search-input {
  width: 0.3125rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.09375rem;
  color: #FFF5DC;
  line-height: 1;
}
.search-input::placeholder {
  color: #c8a97e;
  letter-spacing: 0.01041667rem;
}
.search-input:focus {
  outline: none;
}
/* ========== 主内容区 ========== */
.main {
  width: 6.875rem;
  margin: 0 auto;
  padding: 0.20833333rem 0.10416667rem;
  min-height: 2.5rem;
}
/* ========== 列表页 ========== */
.list-wrapper {
  background: #fff;
  border-radius: 0.02083333rem;
  padding: 0.15625rem;
}
.list-item {
  padding: 0.10416667rem 0;
  border-bottom: 0.00520833rem solid #eee;
  display: flex;
  align-items: flex-start;
  transition: background 0.2s;
}
.list-item:last-child {
  border-bottom: none;
}
.list-item:hover {
  background: #fafafa;
}
.item-pic {
  width: 0.83333333rem;
  height: 0.625rem;
  overflow: hidden;
  border-radius: 0.02083333rem;
  flex-shrink: 0;
  margin-right: 0.15625rem;
  background: #eee;
}
.item-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-info {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-size: 0.09375rem;
  color: #2b2b2b;
  font-weight: 600;
  margin-bottom: 0.05208333rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-title:hover {
  color: #8b2e2e;
}
.item-desc {
  font-size: 0.06770833rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 0.05208333rem;
}
.item-meta {
  font-size: 0.0625rem;
  color: #aaa;
}
.item-meta span {
  margin-right: 0.10416667rem;
}
/* ========== 分页 ========== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.20833333rem 0;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.22916667rem;
  height: 0.22916667rem;
  padding: 0 0.07291667rem;
  margin: 0 0.02083333rem;
  border: 0.00520833rem solid #ddd;
  border-radius: 0.02083333rem;
  font-size: 0.06770833rem;
  color: #666;
  transition: all 0.2s;
}
.pager a:hover,
.pager span:hover {
  border-color: #8b2e2e;
  color: #8b2e2e;
}
.pager .current {
  background: #8b2e2e;
  border-color: #8b2e2e;
  color: #fff;
}
.pager .disabled {
  color: #ccc;
  cursor: not-allowed;
}
/* ========== 详情页 ========== */
.detail-wrapper {
  background: #F8F6EF;
  border: 0.00520833rem solid #DAD5C8;
  border-radius: 0.02083333rem;
  padding: 0.20833333rem;
}
.detail-title {
  font-size: 0.125rem;
  color: #2b2b2b;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.10416667rem;
  line-height: 1.5;
}
.detail-meta {
  text-align: center;
  font-size: 0.06770833rem;
  color: #aaa;
  padding-bottom: 0.10416667rem;
  border-bottom: 0.00520833rem solid #eee;
  margin-bottom: 0.15625rem;
}
.detail-meta span {
  margin: 0 0.07291667rem;
}
.detail-content {
  font-size: 0.078125rem;
  line-height: 1.8;
  color: #444;
}
.detail-content img {
  max-width: 100%;
  margin: 0.07291667rem auto;
}
.detail-content p,
.detail-content div,
.detail-content span,
.detail-content section,
.detail-content article,
.detail-content table,
.detail-content tbody,
.detail-content thead,
.detail-content tr,
.detail-content td,
.detail-content th,
.detail-content ul,
.detail-content ol,
.detail-content li,
.detail-content blockquote,
.detail-content pre,
.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6,
.detail-content strong,
.detail-content b,
.detail-content em,
.detail-content i,
.detail-content a,
.detail-content font {
  background-color: transparent !important;
}
/* ========== 页脚（深墨绿） ========== */
.footer {
  background: #1a2a26;
  color: rgba(255, 255, 255, 0.6);
  border-top: 0.015625rem solid #937546;
  margin-top: 0;
}
.footer-inner {
  width: 6.875rem;
  margin: 0 auto;
  padding: 0 0.10416667rem;
}
/* 上半部分：logo + 主管单位 + 二维码 */
.footer-main-inner {
  display: flex;
  align-items: center;
  padding: 0.125rem 0.10416667rem;
}
.footer-logo {
  height: 0.30208333rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-dept {
  flex: 1;
  margin-left: 0.16666667rem;
  padding-left: 0.16666667rem;
  border-left: 0.00520833rem solid rgba(255, 255, 255, 0.25);
  font-size: 0.078125rem;
  color: rgba(255, 245, 220, 0.9);
  letter-spacing: 0.00520833rem;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-qr {
  flex-shrink: 0;
  margin-left: 0.14583333rem;
  width: 0.42708333rem;
  height: 0.42708333rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-qr.qr-placeholder::before {
  content: '扫码关注';
  color: #999;
  font-size: 0.0625rem;
  letter-spacing: 0.00520833rem;
}
/* 下半部分：版权 + 备案 */
.footer-bottom {
  border-top: 0.00520833rem solid rgba(255, 255, 255, 0.15);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.10416667rem;
  padding: 0.07291667rem 0.10416667rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.0625rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 245, 220, 0.75) !important;
  letter-spacing: 0.00520833rem;
  white-space: nowrap;
  flex-shrink: 0;
}
