/* ============================================
   群众监督网站 - 政府风格样式表
   ============================================ */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #c7000b;
  --primary-blue: #1a3c6e;
  --secondary-blue: #2d5a9e;
  --accent-gold: #c9a227;
  --light-blue: #e8f0fe;
  --bg-gray: #f5f6f8;
  --card-bg: #ffffff;
  --text-dark: #2c3e50;
  --text-medium: #5a6c7d;
  --text-light: #8a9bae;
  --border-color: #e2e6ec;
  --success: #52c41a;
  --warning: #faad14;
  --error: #f5222d;
  --info: #1890ff;
  --light-yellow: #fffde6;
  --header-height: 120px;
  --nav-height: 50px;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-gray);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   顶部头部区域
   ============================================ */
.site-header {
  background: #ffffff;
  color: var(--text-dark);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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='%231a3c6e' fill-opacity='0.02'%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");
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo .logo-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  border: 3px solid rgba(255,255,255,0.3);
}

.site-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.header-title h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
  color: var(--primary-blue);
}

.header-title p {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-light);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-user .user-info {
  text-align: right;
  font-size: 13px;
}

.header-user .user-info .user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

.header-user .user-info .user-role {
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================
   导航栏
   ============================================ */
.nav-bar {
  background: var(--primary-blue);
  height: var(--nav-height);
  border-bottom: 1px solid #14405f;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item {
  color: #fff;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-item:first-child {
  border-left: 1px solid rgba(255,255,255,0.15);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0,0,0,0.2);
}

.nav-item.active {
  border-bottom: 3px solid var(--accent-gold);
}

/* ============================================
   通用容器
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-wrapper {
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - 60px);
  padding: 20px 0;
}

/* ============================================
   卡片
   ============================================ */
.card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-text {
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: flex-start;
  gap: 10px;
}

.card-title-text::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  color: var(--primary-blue);
  text-align: left;
}

/* ============================================
   统计卡片
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-blue);
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--secondary-blue);
}

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

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

.stat-card.warning { border-top-color: var(--warning); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success { border-top-color: var(--success); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.danger { border-top-color: var(--error); }
.stat-card.danger .stat-value { color: var(--error); }

/* ============================================
   表单
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-blue);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

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

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

.btn-danger:hover {
  background: #d32f2f;
}

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

.btn-success:hover {
  background: #46a813;
}

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

.btn-warning:hover {
  background: #d99a0e;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-medium);
}

.btn-outline:hover {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   表格
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

table.data-table th {
  background: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

table.data-table tr:hover {
  background: #fafbfc;
}

table.data-table tr.discipline-row {
  background: #fff8e6;
}

table.data-table tr.discipline-row:hover {
  background: #fff3d6;
}

/* ============================================
   标签/徽章
   ============================================ */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-pending { background: #fff4e6; color: #d46b08; }
.badge-processing { background: #e6f7ff; color: #1890ff; }
.badge-resolved { background: #f0fff0; color: #389e0d; }
.badge-withdrawn { background: #f5f5f5; color: #999; }
.badge-approved { background: #f0fff0; color: #389e0d; }
.badge-rejected { background: #fff1f0; color: #cf1322; }
.badge-warning { background: #fff4e6; color: #d46b08; }
.badge-success { background: #f0fff0; color: #389e0d; }
.badge-danger { background: #fff1f0; color: #cf1322; }
.badge-info { background: #e6f7ff; color: #1890ff; }

.badge-type-consultation { background: #e6f7ff; color: #1890ff; }
.badge-type-complaint { background: #fff1f0; color: #cf1322; }
.badge-type-help { background: #fffbe6; color: #d4b106; }
.badge-type-report { background: #f9f0ff; color: #722ed1; }
.badge-type-suggestion { background: #f0fff0; color: #389e0d; }

.badge-discipline {
  background: var(--primary-red);
  color: #fff;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   登录/注册页面
   ============================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--bg-gray) 0%, #e8eef5 100%);
}

.auth-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 440px;
  padding: 40px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-red);
}

.auth-title {
  text-align: center;
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 30px;
  font-weight: 700;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   选项卡
   ============================================ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-item {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-medium);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--primary-blue);
}

.tab-item.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   意见类型选择卡片
   ============================================ */
.opinion-types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.opinion-type-card {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.opinion-type-card:hover {
  border-color: var(--secondary-blue);
  background: var(--light-blue);
}

.opinion-type-card.selected {
  border-color: var(--primary-red);
  background: #fff5f5;
}

.opinion-type-card .type-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.opinion-type-card .type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.opinion-type-card .type-desc {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   纪委直送选项
   ============================================ */
.discipline-option {
  border: 2px solid var(--primary-red);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff8f8;
  position: relative;
}

.discipline-option::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center/contain no-repeat;
}

.discipline-option .discipline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 8px;
}

.discipline-option .discipline-desc {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.discipline-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.discipline-checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-red);
}

.discipline-confirm-box {
  margin-top: 12px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  font-size: 13px;
  color: #856404;
}

.discipline-confirm-box input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-red);
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 18px;
  color: var(--primary-blue);
}

.modal-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   消息提示
   ============================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,0.1);
  animation: slideIn 0.3s;
  min-width: 200px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: var(--info); }
.toast.warning { background: var(--warning); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--secondary-blue);
  color: var(--secondary-blue);
}

.pagination button.active {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-info {
  margin: 0 12px;
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================
   搜索栏
   ============================================ */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-bar .form-control {
  width: auto;
  min-width: 180px;
}

.search-bar .search-input {
  flex: 1;
  min-width: 200px;
}

/* ============================================
   首页特色区域
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-section p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-actions .btn {
  padding: 14px 36px;
  font-size: 16px;
}

.hero-actions .btn-light {
  background: #fff;
  color: var(--primary-blue);
}

.hero-actions .btn-light:hover {
  background: #f0f0f0;
}

.hero-actions .btn-outline-light {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

/* 首页内容区 */
.home-content {
  max-width: 1200px;
  margin: -30px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.home-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 30px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-blue);
}

.section-header h3 {
  font-size: 20px;
  color: var(--primary-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.section-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary-red);
  margin-right: 12px;
  border-radius: 2px;
}

.section-header .more-link {
  font-size: 13px;
  color: var(--text-light);
}

/* 信息卡片网格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.info-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}

.info-card:hover {
  border-color: var(--secondary-blue);
}

.info-card .info-image {
  width: 100%;
  height: 160px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--secondary-blue);
  overflow: hidden;
}

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

.info-card .info-body {
  padding: 16px;
}

.info-card .info-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card .info-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

/* 代表性意见展示 */
.rep-opinion-card {
  background: #f8fafe;
  border-left: 4px solid var(--primary-red);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}

.rep-opinion-card .rep-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.rep-opinion-card .rep-content {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rep-opinion-card .rep-reply {
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 8px;
  border: 1px solid var(--border-color);
}

.rep-opinion-card .rep-reply::before {
  content: '部门回复：';
  font-weight: 600;
  color: var(--secondary-blue);
}

.rep-opinion-card .rep-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ============================================
   意见详情
   ============================================ */
.opinion-detail {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.opinion-detail .detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.opinion-detail .detail-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.opinion-detail .detail-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.opinion-detail .detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.reply-list {
  margin-top: 24px;
}

.reply-item {
  background: #f8fafe;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 3px solid var(--secondary-blue);
}

.reply-item.admin-reply {
  border-left-color: var(--primary-red);
  background: #fff8f8;
}

.reply-item .reply-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reply-item .reply-author {
  font-weight: 600;
  font-size: 14px;
}

.reply-item .reply-time {
  font-size: 12px;
  color: var(--text-light);
}

.reply-item .reply-content {
  font-size: 14px;
  color: var(--text-medium);
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state .empty-text {
  font-size: 15px;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: var(--primary-blue);
  color: rgba(255,255,255,0.7);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
}

.site-footer .footer-links {
  margin-bottom: 12px;
}

.site-footer .footer-links a {
  color: rgba(255,255,255,0.7);
  margin: 0 12px;
}

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

/* ============================================
   二维码展示
   ============================================ */
.qr-display {
  text-align: center;
  padding: 20px;
}

.qr-display img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.qr-display .qr-info {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-medium);
}

.qr-display .qr-url {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
  word-break: break-all;
  padding: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .header-title h1 {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .opinion-types {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-container {
    overflow-x: auto;
  }

  .nav-item {
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-section h2 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar .form-control {
    width: 100%;
  }
}

/* ============================================
   加载动画
   ============================================ */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

/* ============================================
   审核操作区
   ============================================ */
.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.review-box {
  background: #fff8f8;
  border: 1px solid #ffd6d6;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.review-box.approve {
  background: #f0fff0;
  border-color: #b7eb8f;
}

/* ============================================
   文件上传
   ============================================ */
.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-area:hover {
  border-color: var(--secondary-blue);
  background: var(--light-blue);
}

.file-upload-area .upload-icon {
  font-size: 36px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.file-upload-area .upload-text {
  font-size: 14px;
  color: var(--text-medium);
}

.file-upload-area .upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.image-preview {
  margin-top: 12px;
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* ============================================
   侧边栏布局
   ============================================ */
.portal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.sidebar {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 4px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--text-medium);
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-menu a:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.sidebar-menu a.active {
  background: var(--primary-blue);
  color: #fff;
}

.sidebar-menu .menu-badge {
  margin-left: auto;
  background: var(--primary-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.portal-content {
  min-width: 0;
}

@media (max-width: 768px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-menu {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .sidebar-menu li {
    margin-bottom: 0;
    white-space: nowrap;
  }
}

/* ============================================
   Iconify 图标样式
   ============================================ */
.iconify-inline {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
}
.iconify-inline svg {
  display: block;
}
.iconify-inline + * {
  margin-left: 2px;
}
.nav-item .iconify-inline,
.btn .iconify-inline {
  margin-right: 6px;
  margin-left: 0;
}
.stat-icon .iconify-inline svg {
  width: 28px !important;
  height: 28px !important;
}
.logo-icon-svg svg {
  width: 28px !important;
  height: 28px !important;
}
.empty-icon-svg svg {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.3;
}
.card-title .iconify-inline,
.sidebar-menu .iconify-inline {
  margin-right: 8px;
}

