/* =====================================================
   伟贤大学纪委网站样式表
   ===================================================== */

/* ====== 重置与基础 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;   /* 防止任何子元素溢出视口导致右侧空白 */
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  background: #f0f2f5;
  -webkit-text-size-adjust: 100%;   /* iOS Safari 防止默认字号自动放大 */
}

.site-header,
.main-nav,
.site-footer,
.main-content,
.top-bar {
  width: 100%;
  display: block;
}

a {
  color: #b92d2d;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #8a1f1f; }

img { max-width: 100%; height: auto; }

/* 防止任何元素溢出视口（移动端右侧空白根因之一） */
img, table, pre, code {
  max-width: 100%;
}
table { table-layout: auto; word-break: break-word; }

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

/* ====== 顶部栏 ====== */
.top-bar {
  background: #2c2c2c;
  color: #ccc;
  font-size: 12px;
  height: 36px;
  line-height: 36px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #ccc;
  margin: 0 4px;
}
.top-bar a:hover { color: #fff; }
.top-bar .divider { color: #555; margin: 0 2px; }

/* ====== 网站头部 ====== */
.site-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 3px solid #b92d2d;
  width: 100%;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b92d2d, #8a1f1f);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
}
.logo-text h1 {
  font-size: 26px;
  color: #b92d2d;
  font-weight: bold;
}
.logo-text p {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.5px;
}
.header-contact {
  text-align: right;
}
.header-contact .contact-item {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}
.header-contact .contact-item i {
  color: #b92d2d;
  margin-right: 5px;
}

/* ====== 导航栏 ====== */
.main-nav {
  background: #b92d2d;
  height: 50px;
  width: 100%;
}
.nav-list {
  list-style: none;
  display: flex;
  height: 50px;
  flex-wrap: wrap;
}
.nav-list li { flex: 1; text-align: center; min-width: 0; }
.nav-list li a {
  display: block;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}
.nav-list li a:hover,
.nav-list li a.active {
  background: #8a1f1f;
  color: #fff;
}

/* ====== 主体内容 ====== */
.main-content {
  min-height: 500px;
  padding: 25px 0;
}

/* ====== Hero Banner ====== */
.hero-banner {
  background: linear-gradient(135deg, #8a1f1f 0%, #b92d2d 50%, #d43838 100%);
  border-radius: 12px;
  padding: 50px 40px;
  margin-bottom: 25px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%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");
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* ====== 首页网格布局 ====== */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 25px;
}
.home-main,
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ====== 区块标题 ====== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #b92d2d;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.section-header h3 {
  font-size: 18px;
  color: #333;
}
.section-header h3 i {
  color: #b92d2d;
  margin-right: 8px;
}
.more-link {
  font-size: 13px;
  color: #999;
}
.more-link:hover { color: #b92d2d; }

/* ====== 新闻列表 ====== */
.news-list { background: #fff; border-radius: 8px; padding: 15px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}
.news-item:last-child { border-bottom: none; }
.news-item a { color: #333; flex: 1; }
.news-item a:hover { color: #b92d2d; }
.news-item .news-title {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item .news-title::before {
  content: '▪ ';
  color: #b92d2d;
}
.news-date { color: #999; font-size: 13px; margin-left: 10px; flex-shrink: 0; }

/* ====== 侧边栏卡片 ====== */
.sidebar-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sidebar-card h3 {
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.sidebar-card h3 i { color: #b92d2d; margin-right: 8px; }
.report-card {
  background: linear-gradient(135deg, #b92d2d, #8a1f1f);
  color: #fff;
  text-align: center;
}
.report-card h3 { border-bottom: 1px solid rgba(255,255,255,0.2); color: #fff; }
.report-card .report-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.report-card p { font-size: 13px; opacity: 0.9; margin-bottom: 15px; }
.contact-list p { margin-bottom: 10px; font-size: 13px; line-height: 1.8; }
.contact-list strong { color: #555; }

/* ====== 规章制度列表 ====== */
.reg-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.reg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.reg-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.reg-icon {
  width: 45px; height: 45px;
  background: #fef0f0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #b92d2d; font-size: 20px;
  flex-shrink: 0;
}
.reg-info a { color: #333; }
.reg-info a:hover h4 { color: #b92d2d; }
.reg-info h4 { font-size: 15px; margin-bottom: 4px; }
.reg-info span { font-size: 12px; color: #999; }

/* ====== 按钮 ====== */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  line-height: 1.5;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #b92d2d; color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-default { background: #e8e8e8; color: #666; }
.btn-default:hover { color: #333; }
.btn-light { background: rgba(255,255,255,0.95); color: #b92d2d; }
.btn-light:hover { background: #fff; color: #8a1f1f; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* ====== 页面标题 ====== */
.page-title {
  text-align: center;
  margin-bottom: 25px;
}
.page-title h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
}
.page-title h2 i { color: #b92d2d; margin-right: 10px; }
.page-title p { color: #999; font-size: 14px; }

/* ====== 通知框 ====== */
.notice-box {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 25px;
}
.notice-box h4 { color: #d48806; margin-bottom: 10px; font-size: 16px; }
.notice-box ol, .notice-box ul { padding-left: 20px; }
.notice-box li { margin-bottom: 6px; font-size: 14px; color: #666; line-height: 1.8; }

/* ====== 提示框 ====== */
.alert {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.alert i { font-size: 16px; margin-top: 2px; }
.alert ul { margin-left: 10px; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-error { background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322; }
.alert-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }

/* ====== 举报表单 ====== */
.report-form {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  font-size: 17px;
  color: #b92d2d;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid #b92d2d;
}
.form-section-title i { margin-right: 8px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.form-group {
  margin-bottom: 15px;
}
.form-group-full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
  font-size: 14px;
}
.form-group label small { color: #999; font-weight: normal; }
.required { color: #e74c3c; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #b92d2d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(185, 45, 45, 0.1);
}
.form-group textarea { resize: vertical; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }

/* ====== 单选卡片 ====== */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.radio-card {
  flex: 1;
  min-width: 160px;
  cursor: pointer;
}
.radio-card input[type="radio"] {
  display: none;
}
.radio-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  color: #666;
  transition: all 0.3s;
}
.radio-card span i { font-size: 18px; }
.radio-card input[type="radio"]:checked + span {
  border-color: #b92d2d;
  background: #fef0f0;
  color: #b92d2d;
}
.radio-card:hover span { border-color: #d43838; }

/* ====== 匿名举报开关 ====== */
.anon-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #f6f8ff;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.anon-toggle-info { display: flex; align-items: center; gap: 12px; }
.anon-toggle-info > i {
  font-size: 24px; color: #5b6bdc; flex-shrink: 0;
}
.anon-toggle-info strong { display: block; font-size: 15px; color: #333; margin-bottom: 2px; }
.anon-toggle-info small { font-size: 12px; color: #888; line-height: 1.6; }
.switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #ccc; border-radius: 28px; transition: 0.3s;
}
.switch .slider::before {
  content: ''; position: absolute; height: 22px; width: 22px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.switch input:checked + .slider { background: #b92d2d; }
.switch input:checked + .slider::before { transform: translateX(24px); }

/* ====== 匿名标记 ====== */
.tag-anon {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  font-size: 12px; background: #f9f0ff; color: #722ed1;
}
.anon-hint { color: #888; font-size: 14px; padding: 6px 0; }
.anon-hint i { color: #722ed1; margin-right: 6px; }

/* ====== 验证码 ====== */
.captcha-box {
  width: 100px;
  height: 40px;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #b92d2d;
  font-style: italic;
  user-select: none;
}

/* ====== 表单操作 ====== */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

/* ====== 成功页 ====== */
.success-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.success-icon {
  font-size: 64px;
  color: #52c41a;
  margin-bottom: 15px;
}
.success-box h2 { color: #333; margin-bottom: 10px; }
.success-desc { color: #666; margin-bottom: 25px; }
.success-info {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #999; }
.info-value { font-weight: bold; color: #333; }
.query-code {
  font-size: 18px;
  color: #b92d2d;
  letter-spacing: 2px;
  font-family: monospace;
}

/* ====== 查询表单 ====== */
.query-form-box {
  max-width: 500px;
  margin: 0 auto 25px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.query-result {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.query-result h3 { color: #b92d2d; margin-bottom: 20px; }
.result-table { width: 100%; margin-bottom: 15px; }
.result-table td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.result-table td.label { width: 100px; color: #999; font-weight: 500; }

/* ====== 状态标签 ====== */
.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.status-pending { background: #fff7e6; color: #d48806; }
.status-reviewing { background: #e6f7ff; color: #1890ff; }
.status-investigating { background: #f9f0ff; color: #722ed1; }
.status-closed { background: #f6ffed; color: #389e0d; }
.status-archived { background: #f0f0f0; color: #888; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #f0f0f0;
  color: #666;
}

/* ====== 筛选栏 ====== */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.filter-bar a {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}
.filter-bar a.active,
.filter-bar a:hover {
  background: #b92d2d;
  color: #fff;
}
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-select, .filter-input {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}
.filter-input { min-width: 200px; }

/* ====== 新闻列表页 ====== */
.news-page-list { background: #fff; border-radius: 8px; padding: 10px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.news-page-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.news-page-item:last-child { border-bottom: none; }
.news-page-date {
  width: 60px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px;
  flex-shrink: 0;
}
.news-page-date .date-day {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #b92d2d;
  line-height: 1.2;
}
.news-page-date .date-month {
  display: block;
  font-size: 12px;
  color: #999;
}
.news-page-content h3 { margin-bottom: 6px; }
.news-page-content h3 a { color: #333; font-size: 16px; }
.news-page-content h3 a:hover { color: #b92d2d; }
.news-page-summary {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-page-meta span { font-size: 12px; color: #aaa; margin-right: 15px; }
.news-page-meta i { margin-right: 3px; }

/* ====== 文章详情 ====== */
.breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 15px;
  padding: 10px 0;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #b92d2d; }
.breadcrumb i { margin: 0 5px; font-size: 11px; }

.article-detail {
  background: #fff;
  border-radius: 8px;
  padding: 35px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.article-title {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.5;
}
.article-meta {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 25px;
}
.article-meta span {
  font-size: 13px;
  color: #999;
  margin: 0 10px;
}
.article-meta i { margin-right: 4px; }
.article-content {
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.article-content p { margin-bottom: 15px; }
.article-content h3, .article-content h4 { margin: 20px 0 10px; }
.article-content ul, .article-content ol { padding-left: 25px; margin-bottom: 15px; }
.article-content img { border-radius: 4px; margin: 10px 0; }
.article-nav { margin-top: 25px; text-align: center; }

/* ====== 规章制度页 ====== */
.reg-page-list { display: flex; flex-direction: column; gap: 10px; }
.reg-page-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.3s;
  color: #333;
}
.reg-page-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
  color: #b92d2d;
}
.reg-page-icon {
  width: 40px; height: 40px;
  background: #fef0f0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #b92d2d; font-size: 18px; flex-shrink: 0;
}
.reg-page-info h3 { font-size: 16px; margin-bottom: 4px; }
.reg-page-meta span { font-size: 12px; color: #aaa; margin-right: 12px; }

/* ====== 关于页面 ====== */
.about-content {
  background: #fff; border-radius: 8px; padding: 35px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.about-content h3 {
  font-size: 20px; color: #b92d2d; margin: 25px 0 12px;
  padding-left: 12px; border-left: 4px solid #b92d2d;
}
.about-content p { font-size: 15px; color: #555; margin-bottom: 12px; line-height: 2; }
.about-content ul, .about-content ol { padding-left: 25px; margin-bottom: 15px; }
.about-content li { margin-bottom: 8px; color: #555; line-height: 1.8; }
.duty-list li { margin-bottom: 10px; }
.duty-list strong { color: #333; }

.org-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 15px 0; }
.org-card {
  background: #f9f9f9; border-radius: 8px; padding: 20px; text-align: center;
  transition: all 0.3s;
}
.org-card:hover { background: #fef0f0; }
.org-icon {
  width: 50px; height: 50px; background: #b92d2d; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; margin: 0 auto 12px;
}
.org-card h4 { font-size: 15px; margin-bottom: 8px; }
.org-card p { font-size: 12px; color: #888; margin: 0; }

/* ====== 联系页面 ====== */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.contact-card {
  background: #fff; border-radius: 8px; padding: 30px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: all 0.3s;
}
.contact-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.contact-icon {
  width: 60px; height: 60px; background: #fef0f0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #b92d2d; font-size: 28px; margin: 0 auto 15px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 10px; }
.contact-value { font-size: 16px; color: #333; font-weight: 500; margin-bottom: 5px; }
.contact-note { font-size: 12px; color: #aaa; }

/* ====== 分页 ====== */
.pagination {
  display: flex; justify-content: center; gap: 5px; margin: 25px 0;
}
.pagination a, .pagination span {
  display: inline-block; padding: 7px 14px; border: 1px solid #ddd;
  border-radius: 4px; font-size: 14px; color: #666; transition: all 0.3s;
}
.pagination a:hover { background: #b92d2d; color: #fff; border-color: #b92d2d; }
.pagination .current { background: #b92d2d; color: #fff; border-color: #b92d2d; }

/* ====== 网站底部 ====== */
.site-footer {
  background: #2c2c2c; color: #aaa; margin-top: 40px; padding: 40px 0 20px;
}
.footer-content {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  padding-bottom: 25px; border-bottom: 1px solid #444;
}
.footer-col h4 { color: #ddd; margin-bottom: 15px; font-size: 16px; }
.footer-col p { font-size: 13px; margin-bottom: 8px; line-height: 1.8; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #fff; }
.footer-col i { margin-right: 6px; color: #b92d2d; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; color: #777; }

/* ====== 错误页 ====== */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 400px; }
.error-box { text-align: center; }
.error-box h2 { font-size: 80px; color: #b92d2d; margin-bottom: 15px; }
.error-box h3 { font-size: 22px; color: #555; margin-bottom: 25px; }

/* ====== 空文本 ====== */
.empty-text { text-align: center; padding: 40px 0; color: #999; }

/* ====== 文本省略 ====== */
.text-ellipsis {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* =====================================================
   后台管理样式
   ===================================================== */
.admin-body { background: #f0f2f5; }
.admin-layout { display: flex; min-height: 100vh; }

/* ====== 侧边栏 ====== */
.admin-sidebar {
  width: 230px; background: #001529; color: #ccc;
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-header {
  height: 60px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; background: #002140; color: #fff; font-size: 16px; font-weight: bold;
}
.sidebar-header i { font-size: 22px; color: #b92d2d; }
.sidebar-nav { flex: 1; padding: 15px 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; color: #aaa; font-size: 15px; transition: all 0.3s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.sidebar-nav a.active { background: #b92d2d; color: #fff; }
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-footer {
  padding: 15px 20px; border-top: 1px solid #002140; display: flex; flex-direction: column; gap: 5px;
}
.sidebar-footer a { color: #888; font-size: 13px; padding: 5px 0; }
.sidebar-footer a:hover { color: #fff; }
.sidebar-footer i { margin-right: 6px; }

/* ====== 主区域 ====== */
.admin-main { flex: 1; margin-left: 230px; display: flex; flex-direction: column; }
.admin-topbar {
  height: 60px; background: #fff; padding: 0 25px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 50;
}
.admin-topbar h2 { font-size: 18px; color: #333; }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; }
.admin-user i { font-size: 20px; color: #b92d2d; }
.role-badge {
  padding: 2px 8px; background: #fef0f0; color: #b92d2d;
  border-radius: 10px; font-size: 12px;
}
.admin-content { padding: 25px; }

/* ====== 统计卡片 ====== */
.stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-bottom: 25px;
}
.stat-card {
  background: #fff; border-radius: 8px; padding: 20px;
  display: flex; align-items: center; gap: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.stat-total .stat-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-pending .stat-icon { background: linear-gradient(135deg, #f6d365, #fda085); }
.stat-reviewing .stat-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-investigating .stat-icon { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.stat-closed .stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.stat-today .stat-icon { background: linear-gradient(135deg, #fa709a, #fee140); }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: bold; color: #333; line-height: 1.2; }
.stat-label { font-size: 13px; color: #999; }

/* ====== 管理面板 ====== */
.admin-panel {
  background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
}
.panel-header h3 { font-size: 16px; color: #333; }
.panel-header h3 i { color: #b92d2d; margin-right: 6px; }

/* ====== 管理表格 ====== */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px 10px; text-align: left; font-weight: 500;
  color: #555; background: #fafafa; border-bottom: 2px solid #f0f0f0; font-size: 14px;
}
.admin-table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.admin-table tr:hover { background: #fafafa; }

/* ====== 管理表单 ====== */
.admin-form { max-width: 800px; }
.admin-form .form-group input,
.admin-form .form-group textarea,
.admin-form .form-group select {
  width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9;
  border-radius: 6px; font-size: 14px;
}
.admin-form .form-group input:focus,
.admin-form .form-group textarea:focus,
.admin-form .form-group select:focus {
  border-color: #b92d2d; outline: none;
}
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 6px; }

/* ====== 详情页 ====== */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-section { background: #fafafa; border-radius: 8px; padding: 20px; }
.detail-title { font-size: 16px; color: #b92d2d; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.detail-title i { margin-right: 6px; }
.detail-table { width: 100%; }
.detail-table th { text-align: left; padding: 6px 0; color: #999; font-weight: normal; font-size: 13px; width: 90px; vertical-align: top; }
.detail-table td { padding: 6px 0; color: #333; font-size: 14px; }
.detail-box { background: #fff; padding: 20px; border-radius: 6px; }
.detail-box h3 { font-size: 18px; margin-bottom: 15px; color: #333; }
.report-content-text { white-space: pre-wrap; line-height: 2; color: #555; font-size: 14px; }
.evidence-list { display: flex; flex-wrap: wrap; gap: 10px; }
.evidence-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #fff; border: 1px solid #d9d9d9;
  border-radius: 6px; font-size: 13px; color: #1890ff;
}
.evidence-item:hover { background: #e6f7ff; border-color: #91d5ff; }
.danger-zone { border: 1px solid #ffa39e; background: #fff1f0; }
.danger-zone .detail-title { color: #cf1322; }

/* ====== 登录页 ====== */
.login-body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-box {
  background: #fff; border-radius: 12px; padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 30px; }
.login-logo {
  width: 70px; height: 70px; background: linear-gradient(135deg, #b92d2d, #8a1f1f);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; margin: 0 auto 15px;
}
.login-header h2 { color: #b92d2d; font-size: 24px; margin-bottom: 5px; }
.login-header p { color: #999; font-size: 14px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.login-form input {
  width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9;
  border-radius: 6px; font-size: 15px;
}
.login-form input:focus { border-color: #b92d2d; outline: none; box-shadow: 0 0 0 2px rgba(185,45,45,0.1); }
.login-footer { text-align: center; margin-top: 25px; font-size: 13px; color: #aaa; }

/* ====== wangEditor 样式调整 ====== */
#editor { border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; }
.w-e-toolbar { border: none !important; border-bottom: 1px solid #e8e8e8 !important; }
.w-e-text-container { border: none !important; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .reg-list { grid-template-columns: repeat(2, 1fr); }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar span, .sidebar-header span { display: none; }
  .admin-main { margin-left: 60px; }
}
@media (max-width: 768px) {
  /* ===== 全宽修复：确保所有区块撑满移动端视口 ===== */
  .top-bar .container { flex-direction: column; gap: 2px; font-size: 11px; }
  .header-content { flex-direction: column; gap: 15px; text-align: center; }
  .header-contact { text-align: center; width: 100%; }
  .logo-text h1 { font-size: 20px; }

  /* 导航栏：7个菜单项，移动端双列排布，填满宽度 */
  .nav-list {
    display: flex;
    flex-wrap: wrap;
    height: auto;
  }
  .nav-list li {
    flex: 1 0 33.333%;
    min-width: 0;
  }
  .nav-list li a {
    font-size: 14px;
    line-height: 44px;
    height: 44px;
    padding: 0 4px;
    word-break: keep-all;
  }
  .main-nav { height: auto; min-height: auto; }

  /* 首页网格 */
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .reg-list, .org-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .hero-banner { padding: 30px 20px; border-radius: 8px; margin-bottom: 20px; }
  .hero-content h2 { font-size: 22px; letter-spacing: 1px; }
  .hero-content p { font-size: 14px; }
  .report-form, .article-detail, .about-content { padding: 16px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }

  /* ===== 解决移动端"需要缩放"的核心：输入框字号≥16px，避免 iOS 聚焦自动放大 ===== */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="password"],
  .form-group input[type="date"],
  .form-group textarea,
  .form-group select,
  .login-form input,
  .filter-input,
  .filter-select,
  .query-form-box input,
  .admin-form input,
  .admin-form textarea,
  .admin-form select,
  .form-control { font-size: 16px; }

  /* 举报类型卡片：移动端两列排布，避免过宽 */
  .form-row { gap: 10px; }
  .radio-card { min-width: 0; flex: 1 0 45%; }
  .radio-card span { font-size: 14px; padding: 12px 8px; }

  /* 表单操作按钮整行堆叠，方便移动端点击 */
  .form-actions { flex-direction: column; gap: 10px; }
  .form-actions .btn { width: 100%; }

  /* 匿名开关在窄屏改为上下排列 */
  .anon-toggle { flex-direction: column; align-items: stretch; gap: 12px; }
  .anon-toggle-info { font-size: 14px; }
  .switch { align-self: flex-end; }

  /* 筛选栏在移动端堆叠并占满宽度 */
  .filter-form { flex-direction: column; align-items: stretch; }
  .filter-form .btn,
  .filter-select,
  .filter-input { width: 100%; }

  /* 后台表格横向滚动，避免撑破页面 */
  .admin-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 720px; }
  .admin-content { padding: 15px; }

  /* 详情表在移动端更易读 */
  .detail-table th { width: 80px; }

  /* 页面标题区 */
  .page-title { text-align: center; padding: 20px 16px; }
  .section-header { flex-direction: column; gap: 8px; text-align: center; }

  /* 侧边栏卡片全宽 */
  .sidebar-card { padding: 18px; }
  .contact-list p { font-size: 13px; }

  /* 通知/提示框 */
  .notice-box { padding: 16px; font-size: 13px; }
  .notice-box ol { padding-left: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .hero-content h2 { font-size: 19px; letter-spacing: 0.5px; }
  .hero-content p { font-size: 13px; }
  .page-title h2 { font-size: 20px; }
  .logo-text p { font-size: 9px; letter-spacing: 0; }
  .report-form, .article-detail, .about-content { padding: 14px; }

  /* 导航单列：超窄屏每行2个 */
  .nav-list li { flex: 1 0 50%; }
  .nav-list li a { font-size: 13px; line-height: 40px; height: 40px; }

  /* 举报类型卡片：超窄屏改为单列 */
  .radio-card { flex: 1 0 100%; }
  .radio-card span { font-size: 15px; padding: 16px 20px; }

  .success-box { padding: 25px 15px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-section-title { font-size: 15px; }

  /* header 紧凑化 */
  .site-header { padding: 14px 0; }
  .logo-icon { width: 48px; height: 48px; font-size: 24px; }
  .logo-text h1 { font-size: 18px; }
  .header-contact .contact-item { font-size: 13px; }

  /* 首页双栏改单列 */
  .home-grid { grid-template-columns: 1fr; }
}
