/* ========== 燕山古村数字化档案平台 - 政府风格样式 ========== */

/* ========== 主题变量 ========== */
:root,
[data-theme="red"] {
  --primary: #b01c2e;
  --primary-dark: #9a1726;
  --primary-darker: #8a1525;
  --primary-light: #fdf5f6;
  --primary-rgb: 176, 28, 46;
  --accent: #1a5490;
  --gradient-start: #b01c2e;
  --gradient-mid: #8a1525;
  --gradient-end: #1a5490;
}

[data-theme="blue"] {
  --primary: #1a5490;
  --primary-dark: #15447a;
  --primary-darker: #103a6a;
  --primary-light: #eef4fa;
  --primary-rgb: 26, 84, 144;
  --accent: #b01c2e;
  --gradient-start: #1a5490;
  --gradient-mid: #15447a;
  --gradient-end: #103a6a;
}

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

body {
  font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
  background: #f0f0f0;
}

a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== 顶部条 ========== */
.top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  height: 32px;
  line-height: 32px;
  font-size: 12px;
  color: #666;
}

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

.top-bar .welcome {
  color: #888;
}

.top-bar .links a {
  color: #666;
  margin-left: 15px;
}

.top-bar .links a:hover {
  color: var(--primary);
}

/* ========== 头部 ========== */
.header {
  background: #fff;
  position: relative;
}

.header .container {
  display: flex;
  align-items: center;
  padding: 25px 0;
  min-height: 100px;
}

.header .logo-area {
  display: flex;
  align-items: center;
  flex: 1;
}

.header .logo {
  width: 64px;
  height: 64px;
  margin-right: 18px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  flex-shrink: 0;
}

.header .site-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1.3;
}

.header .site-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
  letter-spacing: 1px;
}

.header .header-right {
  text-align: right;
  padding-left: 20px;
}

.header .header-right .date {
  font-size: 13px;
  color: #666;
}

.header .header-right .search-box {
  margin-top: 8px;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 0;
  overflow: hidden;
}

.header .header-right .search-box input {
  width: 200px;
  height: 30px;
  border: none;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.header .header-right .search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 50px;
  height: 30px;
  cursor: pointer;
  font-size: 13px;
}

/* ========== 导航栏 ========== */
.nav-bar {
  background: var(--primary);
  height: 46px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1000;
}

.nav-bar ul {
  display: flex;
  height: 46px;
  position: relative;
  z-index: 1001;
}

.nav-bar li {
  position: relative;
}

.nav-bar li a {
  display: block;
  padding: 0 28px;
  line-height: 46px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.2s;
}

.nav-bar li a:hover,
.nav-bar li a.active {
  background: var(--primary-dark);
  color: #fff;
}

.nav-bar li a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.3);
}

.nav-bar li:last-child a::after {
  display: none;
}

/* ========== 轮播图 ========== */
.banner {
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--gradient-end);
}

.banner .banner-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner .banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner .banner-slide.active {
  opacity: 1;
}

/* 虚化背景层 - 铺满整个轮播图 */
.banner .banner-slide .slide-bg-blur {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.15);
  -webkit-transform: scale(1.15);
}

/* 原图层 - 按原比例居中展示 */
.banner .banner-slide .slide-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 旧版 slide-bg 兼容 */
.banner .banner-slide .slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.banner .banner-slide .slide-content {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 3;
  text-align: center;
  color: #fff;
}

.banner .banner-slide .slide-content h2 {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}

.banner .banner-slide .slide-content p {
  font-size: 18px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner .banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner .banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.banner .banner-dots span.active {
  background: #fff;
}

/* 静态横幅（无轮播图时） */
.static-banner {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.static-banner::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.static-banner .banner-text {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.static-banner .banner-text h1 {
  font-size: 42px;
  font-weight: bold;
  letter-spacing: 6px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.static-banner .banner-text p {
  font-size: 16px;
  letter-spacing: 3px;
  opacity: 0.9;
}

/* ========== 内容区域 ========== */
.content-area {
  background: #f5f5f5;
  padding: 30px 0;
}

.content-area.white-bg {
  background: #fff;
}

/* ========== 首页模块 ========== */
.home-section {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
}

.section-box {
  background: #fff;
  border: 1px solid #e8e8e8;
}

.section-box .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary);
  padding: 0 20px;
  height: 44px;
  background: #fafafa;
}

.section-box .section-header h3 {
  font-size: 17px;
  font-weight: bold;
  color: var(--primary);
  position: relative;
  padding-left: 14px;
}

.section-box .section-header h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--primary);
}

.section-box .section-header .more {
  font-size: 12px;
  color: #999;
}

.section-box .section-header .more:hover {
  color: var(--primary);
}

.section-box .section-body {
  padding: 18px 20px;
}

/* 新闻列表 */
.news-list li {
  border-bottom: 1px dashed #e0e0e0;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list li a {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 15px;
  position: relative;
  padding-left: 12px;
}

.news-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.news-list li .date {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.news-list li a:hover {
  color: var(--primary);
}

/* 两栏布局 */
.col-left {
  flex: 1;
}

.col-right {
  width: 380px;
  flex-shrink: 0;
}

/* 村情概况 */
.intro-box {
  padding: 20px;
}

.intro-box p {
  font-size: 14px;
  color: #555;
  line-height: 2;
  text-indent: 2em;
  margin-bottom: 10px;
}

.intro-box .intro-more {
  margin-top: 10px;
  text-align: right;
}

.intro-box .intro-more a {
  color: var(--primary);
  font-size: 13px;
}

/* 特色专栏 */
.feature-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-grid .feature-item {
  width: calc(50% - 10px);
  padding: 15px;
  background: #fafafa;
  border-left: 3px solid var(--primary);
  transition: background 0.2s;
}

.feature-grid .feature-item:hover {
  background: #f5f5f5;
}

.feature-grid .feature-item h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-grid .feature-item p {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-grid .feature-item .date {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
}

/* 快捷入口 */
.quick-links {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.quick-links .quick-link {
  flex: 1;
  height: 90px;
  background: #fff;
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.quick-links .quick-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quick-links .quick-link .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-links .quick-link .text {
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

/* ========== 页面标题区 ========== */
.page-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
  position: relative;
  color: #fff;
  font-size: 36px;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

/* ========== 页面轮播图 ========== */
.page-banner-carousel {
  height: 240px;
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 3;
  display: block;
}

.page-banner-carousel .page-banner-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.page-banner-carousel .page-banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner-carousel .page-banner-slide.active {
  opacity: 1;
}

.page-banner-carousel .slide-bg-blur {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.15);
  -webkit-transform: scale(1.15);
}

.page-banner-carousel .slide-img-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner-carousel .slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.page-banner-carousel .page-banner-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 3;
  padding: 30px 0 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.page-banner-carousel .page-banner-title h1 {
  position: static;
  color: #fff;
  font-size: 30px;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin: 0;
}

.page-banner-carousel .page-banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.page-banner-carousel .page-banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.page-banner-carousel .page-banner-dots span.active {
  background: #fff;
}

/* 面包屑 */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  color: #888;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #ccc;
}

/* ========== 新闻列表页 ========== */
.news-page {
  padding: 30px 0;
}

.news-page .news-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.news-page .news-table li {
  border-bottom: 1px dashed #e8e8e8;
  padding: 16px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.news-page .news-table li:hover {
  background: #fafafa;
}

.news-page .news-table li:last-child {
  border-bottom: none;
}

.news-page .news-table li a {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 20px;
}

.news-page .news-table li .date {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
}

/* 分类标签 */
.category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.category-tabs a {
  padding: 12px 30px;
  font-size: 14px;
  color: #555;
  border-right: 1px solid #e8e8e8;
  transition: all 0.2s;
}

.category-tabs a:last-child {
  border-right: none;
}

.category-tabs a:hover,
.category-tabs a.active {
  background: var(--primary);
  color: #fff;
}

/* ========== 新闻详情页 ========== */
.news-detail {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 40px 50px;
  margin: 30px 0;
}

.news-detail .detail-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  margin-bottom: 15px;
}

.news-detail .detail-meta {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 25px;
}

.news-detail .detail-meta span {
  margin: 0 12px;
}

.news-detail .detail-content {
  font-size: 16px;
  line-height: 2;
  color: #444;
}

.news-detail .detail-content p {
  margin-bottom: 18px;
  text-indent: 2em;
}

.news-detail .detail-content strong {
  color: #333;
}

/* ========== 导入文章排版样式 ========== */
.article-content {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #333 !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 导入文章不强制首行缩进，保留原始格式 */
.article-content p {
  text-indent: 0;
  margin-bottom: 12px;
}

.article-content section {
  display: block;
  margin-bottom: 10px;
}

/* 图片自适应 */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
  vertical-align: middle;
}

.article-content section img,
.article-content p img,
.article-content div img {
  max-width: 100% !important;
}

/* 视频容器 */
.article-content .wechat-video-wrap {
  text-align: center;
  margin: 15px 0;
}

.article-content .wechat-video-wrap iframe {
  width: 100% !important;
  max-width: 640px !important;
  min-height: 300px;
  height: auto;
  border: none;
  display: block;
  margin: 0 auto;
}

.article-content iframe {
  max-width: 100% !important;
  border: none;
}

/* 标题样式 */
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  margin: 20px 0 10px;
  font-weight: bold;
  color: #333;
}

.article-content h1 { font-size: 22px; }
.article-content h2 { font-size: 20px; }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }

/* 列表样式 */
.article-content ul, .article-content ol {
  margin: 10px 0;
  padding-left: 2em;
}

.article-content ul li {
  list-style: disc;
  margin-bottom: 5px;
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: 5px;
}

/* 表格样式 */
.article-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 15px 0;
}

.article-content table td,
.article-content table th {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}

/* 引用块 */
.article-content blockquote {
  margin: 15px 0;
  padding: 10px 15px;
  border-left: 4px solid var(--primary);
  background: #f9f9f9;
  color: #666;
}

/* 链接颜色 */
.article-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* 清理空 section 的多余间距 */
.article-content section:empty {
  display: none;
}

.news-detail .detail-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}

.news-detail .detail-footer a {
  font-size: 13px;
  color: #666;
}

.news-detail .detail-footer a:hover {
  color: var(--primary);
}

/* ========== 档案展示页 ========== */
.archive-page {
  padding: 30px 0;
}

.archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.archive-card {
  width: calc(33.333% - 14px);
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.archive-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.archive-card .card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.archive-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-card .card-image .placeholder {
  font-size: 48px;
  color: #ccc;
}

.archive-card .card-body {
  padding: 15px;
}

.archive-card .card-body .card-category {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 1px 8px;
  margin-bottom: 8px;
}

.archive-card .card-body h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card .card-body p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.archive-card .card-body .card-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 8px;
}

/* ========== 档案详情页 ========== */
.archive-detail {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 40px 50px;
  margin: 30px 0;
}

.archive-detail .detail-title {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.archive-detail .detail-info {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.archive-detail .detail-info span {
  margin: 0 12px;
}

.archive-detail .detail-image {
  text-align: center;
  margin: 20px 0;
}

.archive-detail .detail-image .placeholder-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 48px;
}

.archive-detail .detail-content {
  font-size: 15px;
  line-height: 2;
  color: #444;
}

.archive-detail .detail-content p {
  margin-bottom: 15px;
  text-indent: 2em;
}

.archive-detail .detail-content strong {
  color: var(--primary);
}

/* ========== 视频页 ========== */
.video-page {
  padding: 30px 0;
}

.video-main {
  background: #fff;
  border: 1px solid #e8e8e8;
  margin-bottom: 25px;
}

.video-player-box {
  width: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-player-box video {
  width: 100%;
  max-height: 500px;
}

.video-player-box .no-video {
  color: #666;
  text-align: center;
  padding: 80px 20px;
}

.video-player-box .no-video .icon {
  font-size: 56px;
  margin-bottom: 15px;
}

.video-player-box .no-video p {
  font-size: 16px;
}

.video-info {
  padding: 20px 25px;
}

.video-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}

.video-info p {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
}

.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.video-card {
  width: calc(33.333% - 14px);
  background: #fff;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.video-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.video-card .card-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.video-card .card-thumb .thumb-video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .card-thumb .play-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb),0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.video-card .card-thumb .play-icon::before {
  content: "▶";
  margin-left: 4px;
}

.video-card .card-body {
  padding: 12px 15px;
}

.video-card .card-body .card-category {
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 5px;
}

.video-card .card-body h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card .card-body p {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ========== 茶叶推广页 ========== */
.tea-page {
  padding: 30px 0;
}

.tea-banner {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 40px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.tea-banner::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.tea-banner h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.tea-banner p {
  font-size: 14px;
  line-height: 2;
  opacity: 0.9;
  max-width: 900px;
}

.tea-products {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 30px;
}

.tea-card {
  width: calc(25% - 19px);
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.tea-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.tea-card .card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tea-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tea-card .card-image .placeholder {
  font-size: 48px;
  color: #81c784;
}

.tea-card .card-body {
  padding: 18px;
}

.tea-card .card-body h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.tea-card .card-body .price {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 8px;
}

.tea-card .card-body .price .unit {
  font-size: 12px;
  color: #999;
  font-weight: normal;
}

.tea-card .card-body p {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tea-buy-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  transition: background 0.2s;
}

.tea-buy-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ========== 村情概况页 ========== */
.about-page {
  padding: 30px 0;
}

.about-content {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 40px 50px;
}

.about-content h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 25px 0 15px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 15px;
  line-height: 2.2;
  color: #444;
  margin-bottom: 15px;
  text-indent: 2em;
}

.about-info-table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.about-info-table th {
  background: #f5f5f5;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  color: #333;
  border: 1px solid #e8e8e8;
  width: 160px;
}

.about-info-table td {
  padding: 12px 15px;
  font-size: 14px;
  color: #555;
  border: 1px solid #e8e8e8;
}

/* ========== 联系我们页 ========== */
.contact-page {
  padding: 30px 0;
}

.contact-content {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 40px 50px;
}

.contact-info {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.contact-info .info-item {
  flex: 1;
  padding: 25px;
  background: #fafafa;
  border-left: 4px solid var(--primary);
}

.contact-info .info-item h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.contact-info .info-item p {
  font-size: 14px;
  color: #666;
  line-height: 2;
}

/* ========== 底部 ========== */
.footer {
  background: #2c2c2c;
  color: #999;
  padding: 30px 0 20px;
  margin-top: 0;
}

.footer .footer-links {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
}

.footer .footer-links a {
  color: #bbb;
  font-size: 13px;
  margin: 0 15px;
}

.footer .footer-links a:hover {
  color: #fff;
}

.footer .footer-info {
  text-align: center;
  font-size: 13px;
  line-height: 2;
  color: #888;
}

.footer .footer-info p {
  margin: 3px 0;
}

.footer .footer-info a {
  color: #888;
}

.footer .footer-info a:hover {
  color: #ccc;
}

/* ========== 后台管理样式 ========== */
.admin-body {
  background: #f0f0f0;
}

.admin-header {
  background: #2c2c2c;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.admin-header .admin-logo {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.admin-header .admin-logo span {
  color: var(--primary);
}

.admin-header .admin-user {
  color: #ccc;
  font-size: 13px;
}

.admin-header .admin-user a {
  color: #ccc;
  margin-left: 15px;
}

.admin-header .admin-user a:hover {
  color: #fff;
}

.admin-container {
  display: flex;
  min-height: calc(100vh - 56px);
}

.admin-sidebar {
  width: 220px;
  background: #383838;
  flex-shrink: 0;
  padding-top: 10px;
}

.admin-sidebar .menu-group-title {
  color: #888;
  font-size: 12px;
  padding: 15px 20px 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-sidebar a {
  display: block;
  color: #ccc;
  font-size: 14px;
  padding: 12px 20px 12px 40px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover {
  background: #444;
  color: #fff;
}

.admin-sidebar a.active {
  background: #444;
  color: #fff;
  border-left-color: var(--primary);
}

.admin-main {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

.admin-page-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 统计卡片 */
.stat-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  flex: 1;
  background: #fff;
  padding: 25px;
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--primary);
}

.stat-card .stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-card .stat-num {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.stat-card .stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 5px;
}

/* 管理表格 */
.admin-table {
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-collapse: collapse;
}

.admin-table th {
  background: #f5f5f5;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  color: #333;
  border-bottom: 2px solid var(--primary);
  font-weight: bold;
}

.admin-table td {
  padding: 12px 15px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.admin-table .actions a {
  margin-right: 10px;
  font-size: 13px;
}

.admin-table .actions .btn-edit {
  color: var(--accent);
}

.admin-table .actions .btn-delete {
  color: var(--primary);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-default {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.btn-default:hover {
  background: #e8e8e8;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* 表单 */
.admin-form {
  background: #fff;
  padding: 30px;
  border: 1px solid #e8e8e8;
  max-width: 800px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: bold;
}

.form-group label .required {
  color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.8;
}

.form-group input[type="file"] {
  font-size: 13px;
}

.form-actions {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.form-actions .btn {
  margin-right: 10px;
}

/* 登录页 */
.login-body {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 400px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.login-box .login-title {
  text-align: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: bold;
}

.login-box .login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-bottom: 25px;
}

.login-box .error-msg {
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
}

.login-box .btn-login {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 4px;
  transition: background 0.2s;
}

.login-box .btn-login:hover {
  background: var(--primary-dark);
}

.login-box .login-tip {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
}

/* 提示消息 */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 13px;
  border: 1px solid;
}

.alert-success {
  background: #f0f9eb;
  border-color: #e1f3d8;
  color: #67c23a;
}

.alert-error {
  background: #fef0f0;
  border-color: #fde2e2;
  color: #f56c6c;
}

/* 404 页面 */
.not-found {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
}

.not-found h1 {
  font-size: 80px;
  color: var(--primary);
  margin-bottom: 20px;
}

.not-found p {
  font-size: 18px;
  color: #888;
  margin-bottom: 20px;
}

/* ========== 富文本编辑器 ========== */
.rich-editor {
  border: 1px solid #ddd;
  background: #fff;
  position: relative;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.rich-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  border-radius: 3px;
  transition: all 0.15s;
  position: relative;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.rich-editor-btn:hover {
  background: #fff;
  border-color: #ddd;
  color: var(--primary);
}

.rich-editor-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.rich-editor-select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.rich-editor-select:hover {
  border-color: var(--primary);
}

.rich-editor-color-wrap {
  position: relative;
  display: inline-flex;
}

.rich-editor-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #ddd;
  margin: 0 3px;
}

.rich-editor-body {
  padding: 16px 20px;
  min-height: 300px;
  outline: none;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  overflow-y: auto;
}

.rich-editor-body:empty:before {
  content: attr(data-placeholder);
  color: #ccc;
}

.rich-editor-body p {
  margin-bottom: 12px;
}

.rich-editor-body h1 { font-size: 24px; font-weight: bold; margin: 16px 0 10px; }
.rich-editor-body h2 { font-size: 20px; font-weight: bold; margin: 16px 0 10px; }
.rich-editor-body h3 { font-size: 18px; font-weight: bold; margin: 14px 0 8px; }
.rich-editor-body h4 { font-size: 16px; font-weight: bold; margin: 14px 0 8px; }

.rich-editor-body ul,
.rich-editor-body ol {
  padding-left: 2em;
  margin: 10px 0;
}

.rich-editor-body ul li { list-style: disc; }
.rich-editor-body ol li { list-style: decimal; }

.rich-editor-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.rich-editor-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.rich-editor-body table td,
.rich-editor-body table th {
  border: 1px solid #ddd;
  padding: 8px;
}

.rich-editor-body blockquote {
  margin: 10px 0;
  padding: 10px 15px;
  border-left: 4px solid var(--primary);
  background: #f9f9f9;
  color: #666;
}

.rich-editor-body pre {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
}

.rich-editor-body a {
  color: var(--primary);
  text-decoration: underline;
}

.rich-editor-source {
  width: 100%;
  min-height: 300px;
  padding: 16px 20px;
  border: none;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.rich-editor-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.rich-editor-fullscreen .rich-editor-body {
  flex: 1;
}

.rich-editor-fullscreen .rich-editor-source {
  flex: 1;
}

/* ========== AJAX上传按钮组件 ========== */
.upload-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.upload-btn:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.upload-btn.uploading {
  background: var(--primary-light);
  color: var(--primary);
  pointer-events: none;
}

.upload-preview {
  margin-top: 8px;
}

.upload-preview img {
  max-height: 100px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.upload-preview video {
  max-width: 300px;
  max-height: 150px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* ========== 上传进度条 ========== */
.upload-progress-wrap {
  margin-top: 8px;
  display: none;
}

.upload-progress-bar {
  width: 100%;
  height: 24px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 0%;
  transition: width 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.upload-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #333;
  font-weight: bold;
  z-index: 2;
}

.upload-progress-info {
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

/* 压缩中的动画 */
.upload-progress-fill.compressing {
  width: 100% !important;
  background: linear-gradient(90deg, #1a5490, #15447a);
  animation: compress-pulse 1.5s ease-in-out infinite;
}

@keyframes compress-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========== 档案视频样式 ========== */
.archive-detail-video {
  margin: 20px 0;
  text-align: center;
}

.archive-detail-video video {
  width: 100%;
  max-width: 800px;
  max-height: 500px;
  border: 1px solid #e8e8e8;
}

/* ========== 排序输入框 ========== */
.sort-order-input {
  width: 50px;
  text-align: center;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
}

.sort-order-input:focus {
  border-color: var(--primary);
  outline: none;
}

/* ========== 轮播图图片层 ========== */
.banner .banner-slide .slide-img-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner .banner-slide .slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========== 移动端汉堡菜单按钮（默认隐藏） ========== */
.nav-toggle {
  display: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 后台侧边栏切换按钮（默认隐藏） */
.admin-sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1001;
  font-size: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* ========== 移动端适配 ========== */

/* 平板（≤992px） */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 12px;
  }

  /* 顶部条 */
  .top-bar {
    height: auto;
    padding: 4px 0;
  }
  .top-bar .container {
    flex-wrap: wrap;
    gap: 2px;
  }
  .top-bar .welcome {
    font-size: 11px;
  }
  .top-bar .links a {
    margin-left: 8px;
    font-size: 11px;
  }

  /* 头部 */
  .header .container {
    padding: 12px 0;
    min-height: auto;
  }
  .header .logo {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-right: 10px;
  }
  .header .site-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
  .header .site-subtitle {
    font-size: 12px;
  }
  .header .header-right {
    display: none;
  }

  /* 导航栏 - 汉堡菜单 */
  .nav-bar {
    position: relative;
    z-index: 1000;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-bar .container {
    padding: 0;
  }
  .nav-bar ul {
    display: none;
    flex-direction: column;
    height: auto;
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    background: var(--primary);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-bar ul.open {
    display: flex;
  }
  .nav-bar li {
    width: 100%;
  }
  .nav-bar li a {
    padding: 0 20px;
    line-height: 44px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-bar li a::after {
    display: none;
  }

  /* 轮播图 */
  .banner {
    height: 220px;
  }
  .banner .banner-slide .slide-content h2 {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .banner .banner-slide .slide-content p {
    font-size: 14px;
  }

  /* 静态横幅 */
  .static-banner {
    height: 180px;
  }
  .static-banner .banner-text h1 {
    font-size: 26px;
    letter-spacing: 3px;
  }
  .static-banner .banner-text p {
    font-size: 13px;
  }

  /* 页面横幅 */
  .page-banner,
  .page-banner-carousel {
    height: 130px;
  }
  .page-banner-carousel {
    z-index: 3;
  }
  .page-banner h1,
  .page-banner-carousel .page-banner-title h1 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .page-banner-carousel .page-banner-title h1 {
    font-size: 22px;
  }

  /* 首页两栏布局改为单栏 */
  .home-section {
    flex-direction: column;
    gap: 15px;
  }
  .col-right {
    width: 100%;
    flex-shrink: 0;
  }

  /* 快捷入口 */
  .quick-links {
    gap: 8px;
  }
  .quick-links .quick-link {
    height: 70px;
  }
  .quick-links .quick-link .icon {
    font-size: 22px;
  }
  .quick-links .quick-link .text {
    font-size: 12px;
  }

  /* 特色专栏 */
  .feature-grid .feature-item {
    width: 100%;
  }

  /* 档案卡片 - 两列 */
  .archive-card {
    width: calc(50% - 10px);
  }
  .archive-card .card-image {
    height: 140px;
  }

  /* 视频卡片 - 两列 */
  .video-card {
    width: calc(50% - 10px);
  }

  /* 茶叶卡片 - 两列 */
  .tea-card {
    width: calc(50% - 13px);
  }

  /* 新闻详情/档案详情 */
  .news-detail,
  .archive-detail {
    padding: 20px 18px;
    margin: 15px 0;
  }
  .news-detail .detail-title,
  .archive-detail .detail-title {
    font-size: 20px;
  }
  .news-detail .detail-content,
  .archive-detail .detail-content {
    font-size: 15px;
  }

  /* 村情概况/联系我们 */
  .about-content,
  .contact-content {
    padding: 20px 18px;
  }
  .about-content h2 {
    font-size: 18px;
  }
  .about-content p {
    font-size: 14px;
  }

  /* 联系信息 */
  .contact-info {
    flex-direction: column;
    gap: 15px;
  }

  /* 视频播放器 */
  .video-player-box video {
    max-height: 300px;
  }
  .video-info {
    padding: 15px;
  }
  .video-info h3 {
    font-size: 17px;
  }

  /* 茶叶横幅 */
  .tea-banner {
    padding: 25px 20px;
  }
  .tea-banner h2 {
    font-size: 22px;
  }
  .tea-banner p {
    font-size: 13px;
  }

  /* 底部 */
  .footer {
    padding: 20px 0 15px;
  }
  .footer .footer-links a {
    margin: 0 8px;
    font-size: 12px;
  }
  .footer .footer-info {
    font-size: 12px;
  }

  /* ========== 后台管理适配 ========== */
  .admin-header {
    padding: 0 12px;
    height: 50px;
  }
  .admin-header .admin-logo {
    font-size: 15px;
  }
  .admin-header .admin-user {
    font-size: 12px;
  }
  .admin-header .admin-user a {
    margin-left: 8px;
  }

  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 200px;
    height: calc(100vh - 50px);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-sidebar-toggle {
    display: block;
  }
  .admin-sidebar-overlay.open {
    display: block;
  }
  .admin-main {
    padding: 15px 12px;
    width: 100%;
  }

  /* 统计卡片 */
  .stat-cards {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stat-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
    padding: 15px;
  }
  .stat-card .stat-num {
    font-size: 22px;
  }

  /* 管理表格横向滚动 */
  .admin-main {
    overflow-x: auto;
  }
  .admin-table {
    min-width: 500px;
  }

  /* 表单 */
  .admin-form {
    padding: 18px 15px;
    max-width: 100%;
  }

  /* 富文本编辑器工具栏 */
  .rich-editor-toolbar {
    gap: 1px;
    padding: 4px;
  }
  .rich-editor-btn {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
    padding: 0 4px;
  }
  .rich-editor-select {
    height: 28px;
    font-size: 12px;
  }
  .rich-editor-body {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* 登录页 */
  .login-box {
    width: 90%;
    max-width: 360px;
    padding: 25px 20px;
  }

  /* 分类标签横向滚动 */
  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }
  .category-tabs a {
    padding: 10px 18px;
    white-space: nowrap;
    font-size: 13px;
  }

  /* 排序输入框 */
  .sort-order-input {
    width: 40px;
  }
}

/* 手机（≤576px） */
@media screen and (max-width: 576px) {
  body {
    font-size: 13px;
  }

  .container {
    padding: 0 10px;
  }

  /* 顶部条隐藏欢迎语，只保留链接 */
  .top-bar .welcome {
    display: none;
  }
  .top-bar .container {
    justify-content: center;
  }

  /* 头部 logo 更小 */
  .header .logo {
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-right: 8px;
  }
  .header .site-title {
    font-size: 18px;
    letter-spacing: 0;
  }
  .header .site-subtitle {
    font-size: 11px;
  }

  /* 轮播图更矮 */
  .banner {
    height: 180px;
  }
  .banner .banner-slide .slide-content {
    bottom: 15px;
  }
  .banner .banner-slide .slide-content h2 {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .banner .banner-dots {
    bottom: 12px;
  }
  .banner .banner-dots span {
    width: 8px;
    height: 8px;
  }

  /* 页面横幅 */
  .page-banner,
  .page-banner-carousel {
    height: 100px;
  }
  .page-banner-carousel {
    z-index: 3;
  }
  .page-banner h1,
  .page-banner-carousel .page-banner-title h1 {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .page-banner-carousel .page-banner-title h1 {
    font-size: 18px;
  }

  /* 面包屑 */
  .breadcrumb {
    font-size: 12px;
    height: 36px;
    line-height: 36px;
  }

  /* 内容区域 padding */
  .content-area {
    padding: 15px 0;
  }

  /* 档案卡片 - 单列 */
  .archive-card {
    width: 100%;
  }
  .archive-card .card-image {
    height: 180px;
  }

  /* 视频卡片 - 单列 */
  .video-card {
    width: 100%;
  }
  .video-card .card-thumb {
    height: 180px;
  }

  /* 茶叶卡片 - 单列 */
  .tea-card {
    width: 100%;
  }

  /* 快捷入口 - 两列 */
  .quick-links {
    flex-wrap: wrap;
  }
  .quick-links .quick-link {
    flex: 1 1 calc(50% - 4px);
    height: 65px;
  }

  /* 新闻列表 */
  .news-page .news-table li {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .news-page .news-table li a {
    font-size: 14px;
    white-space: normal;
    padding-right: 0;
  }
  .news-page .news-table li .date {
    font-size: 12px;
  }

  /* 新闻详情 */
  .news-detail .detail-title {
    font-size: 18px;
  }
  .news-detail .detail-meta span {
    margin: 0 6px;
    display: inline-block;
  }
  .news-detail .detail-content {
    font-size: 14px;
  }

  /* 档案详情 */
  .archive-detail .detail-title {
    font-size: 18px;
  }
  .archive-detail .detail-info span {
    margin: 0 6px;
    display: inline-block;
  }

  /* 视频播放器 */
  .video-player-box video {
    max-height: 220px;
  }
  .video-player-box .no-video {
    padding: 40px 15px;
  }
  .video-player-box .no-video .icon {
    font-size: 40px;
  }
  .video-info h3 {
    font-size: 16px;
  }

  /* 茶叶横幅 */
  .tea-banner {
    padding: 20px 15px;
  }
  .tea-banner h2 {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .tea-buy-btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  /* 村情概况表格 */
  .about-info-table {
    font-size: 12px;
  }
  .about-info-table th,
  .about-info-table td {
    padding: 8px 10px;
  }
  .about-info-table th {
    width: 100px;
  }

  /* 底部 */
  .footer .footer-links {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .footer .footer-links a {
    margin: 0 6px;
    font-size: 11px;
    display: inline-block;
    line-height: 2.4;
  }
  .footer .footer-info p {
    font-size: 11px;
    line-height: 1.8;
  }

  /* 后台统计卡片 - 单列 */
  .stat-cards {
    flex-direction: column;
  }
  .stat-card {
    flex: 1 1 100%;
    min-width: auto;
  }

  /* 后台页面标题 */
  .admin-page-title {
    font-size: 17px;
  }

  /* 登录页 */
  .login-box {
    padding: 20px 15px;
  }
  .login-box .login-title {
    font-size: 18px;
  }

  /* 404 */
  .not-found h1 {
    font-size: 56px;
  }
  .not-found p {
    font-size: 15px;
  }
}

/* ========== 触摸设备优化 ========== */
@media (hover: none) and (pointer: coarse) {
  /* 触摸设备取消hover效果，避免粘滞 */
  .nav-bar li a:hover {
    background: transparent;
  }
  .nav-bar li a.active {
    background: var(--primary-dark);
  }
  .archive-card:hover,
  .video-card:hover,
  .tea-card:hover {
    box-shadow: none;
  }
  .quick-links .quick-link:hover {
    border-color: #e8e8e8;
    background: #fff;
  }
}
