:root {
  --primary-color: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f1f3d;
  --accent-color: #f6ad55;
  --accent-hover: #e8932e;
  --bg-color: #f5f6fa;
  --bg-white: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --border-color: #e2e8f0;
  --success-color: #48bb78;
  --danger-color: #f56565;
  --warning-color: #ecc94b;
  --sidebar-width: 240px;
  --header-height: 64px;
  --font-title: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", serif;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

button, .btn, [role="button"] {
  touch-action: manipulation;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--primary-color);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-overlay {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: var(--font-title);
  font-size: 0.9rem;
  margin: 2px 8px;
  text-decoration: none;
}

.nav-item i {
  width: 24px;
  margin-right: 12px;
  font-size: 1.1rem;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: var(--accent-color);
  color: var(--primary-dark);
  font-weight: 600;
}

.footer-announcement {
  position: relative;
  flex-shrink: 0;
}

.footer-announcement-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}

.footer-announcement-header:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.footer-announcement-header i:first-child {
  font-size: 0.75rem;
}

.footer-announcement-arrow {
  transition: transform 0.3s ease;
  font-size: 0.55rem;
}

.footer-announcement.collapsed .footer-announcement-arrow {
  transform: rotate(180deg);
}

.footer-announcement-list {
  position: fixed;
  background: var(--primary-color);
  border-radius: var(--radius);
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.footer-announcement:not(.collapsed) .footer-announcement-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-announcement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.footer-announcement-item i {
  font-size: 0.4rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.footer-announcement-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 4px;
  margin-left: auto;
}

/* ========== 布局 ========== */
.layout-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--bg-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  padding-left: calc(24px + var(--safe-area-left));
  padding-right: calc(24px + var(--safe-area-right));
  box-shadow: var(--shadow-sm);
  gap: 16px;
}

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

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: none;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
  text-decoration: none;
}

.header-center {
  flex: 1;
  display: flex;
  max-width: 480px;
  margin: 0 12px;
}

.search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-size: max(16px, 0.875rem);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.15);
}

.search-btn {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.header-right a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
}

.header-right a:hover {
  color: var(--primary-color);
  background: var(--bg-color);
}

.header-icon {
  font-size: 1.1rem;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.header-icon:hover {
  color: var(--primary-color);
  background: var(--bg-color);
}

.notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
  background: var(--danger-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
}

.user-dropdown {
  position: relative;
  cursor: pointer;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.user-name:hover {
  background: var(--bg-color);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 8px 0;
  display: none;
  z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--bg-color);
  color: var(--primary-color);
}

.dropdown-menu a.text-danger {
  color: var(--danger-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  gap: 6px;
}

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

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

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

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

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

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

.btn-sm {
  padding: 4px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.main-content {
  flex: 1;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-area-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.carousel-section {
  margin-bottom: 32px;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--primary-color);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 32px 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-date {
  font-size: 0.875rem;
  opacity: 0.85;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.dot.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  width: 28px;
  border-radius: 5px;
}

.news-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
}

.section-header h2 i {
  color: var(--accent-color);
}

.sort-tabs {
  display: flex;
  gap: 4px;
}

.sort-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-color);
  transition: var(--transition);
}

.sort-tab.active {
  background: var(--primary-color);
  color: #fff;
}

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

.sort-tab.active:hover {
  color: #fff;
}

.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.all-news-filters {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.filter-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-search-input {
  flex: 1;
}

.filter-search-btn {
  white-space: nowrap;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 120px;
}

.filter-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-white);
  font-size: 0.85rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 176, 5, 0.15);
}

/* ========== 投稿表单选择器（芯片式）========== */
.chip-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  min-height: 44px;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.chip-item:hover {
  border-color: var(--accent-color);
  background: #fef9e7;
}

.chip-check {
  display: none;
}

.chip-check:checked + span {
  color: var(--primary-dark);
  font-weight: 600;
}

.chip-item:has(.chip-check:checked) {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========== 投稿表单选择器（旧）========== */
.form-select[size] {
  min-height: 120px;
  padding: 4px;
}

.form-select[size] option {
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.form-select[size] option:checked {
  background: var(--accent-color);
  color: var(--primary-dark);
}

.form-select[size] option:hover {
  background: var(--bg-color);
}

/* ========== 原有空状态 ========== */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.news-empty i {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}

.news-empty p {
  font-size: 1rem;
  margin-bottom: 8px;
}

.news-empty .empty-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

.welcome-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.welcome-banner i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.welcome-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.welcome-banner p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 500px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--bg-color);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
}

.news-card-placeholder i {
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.badge-pinned {
  background: var(--danger-color);
}

.badge-hot {
  background: var(--accent-color);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

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

.news-card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-wrapper {
  position: relative;
}

.news-card-wrapper .history-delete-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.news-card-wrapper .btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.news-card-wrapper .btn-icon:hover {
  background: var(--danger-color);
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg-white);
  transition: var(--transition);
}

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

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

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

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.messages {
  margin-bottom: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.message-success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.message-error {
  background: #fed7d7;
  color: #822727;
  border: 1px solid #feb2b2;
}

.message-warning {
  background: #fefcbf;
  color: #744210;
  border: 1px solid #faf089;
}

.message-info {
  background: #bee3f8;
  color: #2a4365;
  border: 1px solid #90cdf4;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.15);
}

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

select.form-control {
  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='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

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

.announcement-modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.announcement-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-header h3 i {
  color: var(--accent-color);
}

.announcement-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.announcement-close:hover {
  background: var(--danger-color);
  color: #fff;
}

.announcement-body {
  padding: 24px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.announcement-body p {
  margin: 0 0 4px 0;
  text-indent: 2em;
}

.announcement-body h4 {
  text-indent: 0;
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: var(--text-color);
}

.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
}

.announcement-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.announcement-footer .btn {
  margin-left: auto;
}

.reject-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.reject-dialog {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  width: 400px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
}

.reject-dialog h4 {
  margin-bottom: 12px;
  color: var(--danger-color);
  font-size: 1rem;
}

.reject-dialog textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
}

.reject-dialog textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(250, 176, 5, 0.15);
}

.reject-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.site-footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 16px;
  padding-left: calc(16px + var(--safe-area-left));
  padding-right: calc(16px + var(--safe-area-right));
  text-align: center;
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  flex-shrink: 0;
  line-height: 1.8;
  min-height: 36px;
}

.site-footer span {
  white-space: nowrap;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  padding: 0 4px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-color);
}

.footer-sep {
  padding: 0 4px;
  opacity: 0.35;
  font-size: 0.7rem;
}

/* ========== 个人中心 ========== */
.profile-page {
  max-width: 820px;
  margin: 0 auto;
}

.profile-header-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.profile-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border: 3px solid var(--border-color);
}

.profile-name-role h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.profile-role-badge {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 2px 10px;
  background: var(--bg-color);
  border-radius: 12px;
}

.profile-stats-mini {
  display: flex;
  gap: 32px;
}

.stat-mini-item {
  text-align: center;
}

.stat-mini-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-mini-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.profile-card-header i {
  font-size: 1.1rem;
  color: var(--accent-color);
}

.profile-card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== 资讯详情 ========== */
.news-detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail-header {
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.detail-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.detail-tags {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg-color);
  border-radius: 14px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.detail-tag:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
}

.detail-cover {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-cover img {
  width: 100%;
  display: block;
}

.detail-content {
  margin-bottom: 32px;
}

.detail-video-wrapper {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-video-wrapper video {
  width: 100%;
  display: block;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.detail-gallery img {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body table th,
.article-body table td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 0.9rem;
}

.article-body table th {
  background: var(--bg-color);
  font-weight: 600;
}

.article-body video,
.article-body iframe {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-color);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.detail-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.detail-action-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.detail-action-btn.liked {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========== 相关推荐 ========== */
.related-news {
  margin-bottom: 32px;
}

.related-news h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.related-news h3 i {
  color: var(--accent-color);
  margin-right: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-card-img {
  height: 130px;
  overflow: hidden;
  background: var(--bg-color);
}

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

.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

.related-card h4 {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 评论区域 ========== */
.comment-section {
  margin-top: 8px;
}

.comment-section h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.comment-section h3 i {
  color: var(--accent-color);
  margin-right: 8px;
}

.comment-form-wrapper {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.comment-form-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-muted);
}

.comment-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-form-body {
  flex: 1;
}

.comment-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 16px;
  font-size: max(16px, 0.9rem);
  font-family: var(--font-body);
  resize: vertical;
  outline: none;
  transition: var(--transition);
  min-height: 80px;
}

.comment-form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(250, 176, 5, 0.12);
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.comment-form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-login-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--bg-color);
  border-radius: var(--radius);
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comment-login-hint i {
  font-size: 1.2rem;
}

.comment-login-hint a {
  color: var(--accent-color);
  font-weight: 600;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comment-card {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.comment-card:first-child {
  padding-top: 0;
}

.comment-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.comment-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-card-body {
  flex: 1;
  min-width: 0;
}

.comment-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-card-name {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comment-staff-badge {
  font-size: 0.7rem;
  padding: 1px 8px;
  background: var(--accent-color);
  color: var(--primary-dark);
  border-radius: 10px;
  font-weight: 600;
}

.comment-card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-card-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
  word-break: break-word;
}

.comment-card-footer {
  display: flex;
  gap: 20px;
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.15s ease;
}

.comment-action:hover {
  color: var(--accent-color);
}

.comment-action.liked {
  color: var(--accent-color);
}

.comment-replies {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-color);
  border-radius: var(--radius);
}

.comment-reply-item {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}

.comment-reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-reply-item strong {
  color: var(--text-primary);
  margin-right: 6px;
}

.reply-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.comment-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

.comment-empty p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .profile-cards {
    grid-template-columns: 1fr;
  }
  .profile-header-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .profile-avatar-section {
    flex-direction: column;
  }
  .detail-header h1 {
    font-size: 1.35rem;
  }
  .detail-meta {
    font-size: 0.78rem;
    gap: 4px 12px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-body {
    font-size: 0.95rem;
  }
}

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-area-top));
    left: 0;
    height: calc(100vh - var(--header-height) - var(--safe-area-top));
    height: calc(100dvh - var(--header-height) - var(--safe-area-top));
    transform: translateX(-100%);
    z-index: 200;
    padding-bottom: var(--safe-area-bottom);
    padding-left: var(--safe-area-left);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .layout-wrapper {
    margin-left: 0;
  }

  .header-center {
    max-width: 280px;
    margin: 0 8px;
  }

  .top-header {
    padding: 0 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    gap: 8px;
  }

  .header-right {
    gap: 4px;
  }

  .header-right a {
    padding: 5px 8px;
    font-size: 0.82rem;
  }

  .header-icon {
    font-size: 1rem;
    padding: 5px;
  }

  .btn-sm {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

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

  .carousel-container {
    height: 300px;
  }

  .logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .header-center {
    max-width: 200px;
    margin: 0 4px;
  }

  .search-input {
    font-size: 16px;
    font-size: max(16px, 0.8rem);
    padding: 8px 12px 8px 34px;
  }

  .search-btn {
    left: 8px;
    font-size: 0.8rem;
  }

  .header-right a {
    padding: 4px 7px;
    font-size: 0.78rem;
  }

  .header-icon {
    font-size: 0.95rem;
    padding: 4px;
  }

  .logo {
    font-size: 1rem;
  }

  .btn-sm {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .carousel-container {
    height: 220px;
  }

  .top-header {
    padding: 0 10px;
    padding-left: calc(10px + var(--safe-area-left));
    padding-right: calc(10px + var(--safe-area-right));
    gap: 4px;
  }

  .header-center {
    flex: 1;
    max-width: none;
    margin: 0 4px;
  }

  .header-right {
    gap: 2px;
  }

  .header-right a {
    padding: 4px 6px;
    font-size: 0.75rem;
  }

  .header-icon {
    font-size: 0.9rem;
    padding: 3px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .main-content {
    padding: 14px;
    padding-bottom: calc(14px + var(--safe-area-bottom));
  }

  .carousel-title {
    font-size: 1rem;
  }

  .carousel-overlay {
    padding: 30px 16px 16px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }

  .btn-sm {
    padding: 3px 7px;
    font-size: 0.72rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 1px 12px;
    padding: 6px 10px;
    padding-left: calc(10px + var(--safe-area-left));
    padding-right: calc(10px + var(--safe-area-right));
    font-size: 0.68rem;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-announcement-header span {
    display: none;
  }

  .footer-announcement-header {
    padding: 3px 6px;
  }
}

@media (max-width: 400px) {
  .header-left {
    gap: 4px;
  }

  .sidebar-toggle {
    font-size: 1.1rem;
    padding: 2px;
  }

  .header-center {
    max-width: 160px;
    margin: 0 2px;
  }

  .search-input {
    padding: 6px 10px 6px 28px;
    border-radius: 16px;
  }

  .search-btn {
    left: 6px;
    font-size: 0.75rem;
  }

  .header-right a {
    padding: 4px 5px;
    font-size: 0.72rem;
  }

  .header-right {
    gap: 1px;
  }

  .header-icon {
    font-size: 0.85rem;
    padding: 2px;
  }

  .logo {
    font-size: 0.9rem;
  }

  .btn-sm {
    padding: 3px 6px;
    font-size: 0.7rem;
  }

  .top-header {
    padding: 0 8px;
    padding-left: calc(8px + var(--safe-area-left));
    padding-right: calc(8px + var(--safe-area-right));
    gap: 2px;
    height: 52px;
    --header-height: 52px;
  }

  :root {
    --header-height: 52px;
  }
}

@media (max-width: 360px) {
  .header-center {
    max-width: 130px;
  }

  .search-input {
    font-size: 16px;
    font-size: max(16px, 0.7rem);
    padding: 6px 8px 6px 26px;
  }

  .search-btn {
    left: 5px;
    font-size: 0.7rem;
  }

  .header-right a {
    padding: 3px 4px;
    font-size: 0.7rem;
  }

  .logo {
    font-size: 0.82rem;
  }

  .header-icon {
    font-size: 0.8rem;
  }

  .btn-sm {
    padding: 2px 5px;
    font-size: 0.68rem;
  }

  .top-header {
    padding: 0 6px;
    padding-left: calc(6px + var(--safe-area-left));
    padding-right: calc(6px + var(--safe-area-right));
    gap: 1px;
    height: 48px;
  }
}

@media (min-width: 993px) {
  .sidebar-toggle {
    display: none;
  }
}

@media (max-width: 576px) {
  .auth-page {
    padding-top: 30px;
    padding-left: 12px;
    padding-right: 12px;
    min-height: auto;
    align-items: flex-start;
  }

  .auth-card {
    padding: 24px 20px;
    max-width: 100%;
    border-radius: 12px;
  }

  .auth-card h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }

  .auth-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .input-with-btn {
    flex-direction: column;
    gap: 6px;
  }

  .input-with-btn .btn {
    width: 100%;
    justify-content: center;
  }
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  min-height: 70vh;
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-size: max(16px, 0.875rem);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn .form-input {
  flex: 1;
  min-width: 0;
}

.input-with-btn .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.form-input:disabled,
.form-input[readonly] {
  background: var(--bg-color);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border-color);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 0.85rem;
}

.auth-links a {
  color: var(--text-muted);
}

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

/* ========== 审核管理页 ========== */
.review-section {
  max-width: 900px;
  margin: 0 auto;
}

.review-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
}

.review-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-tab:hover {
  color: var(--text-color);
}

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

.tab-count {
  background: var(--bg-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 10px;
}

.review-tab.active .tab-count {
  background: var(--primary-color);
  color: #fff;
}

.review-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.review-loading i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.review-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.review-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  color: var(--success-color);
}

.review-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.review-card-header h4 {
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.review-card-author {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.review-card-news {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.review-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.review-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 4px 14px;
  font-size: 0.8rem;
}

/* ========== 留言广场 ========== */
.forum-section {
  max-width: 720px;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 12px;
}

.forum-composer {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.forum-composer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-color);
}

.forum-composer-header i {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.forum-textarea {
  width: 100%;
  min-height: 90px;
  padding: 16px;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 16px;
  font-size: max(16px, 0.9rem);
  color: var(--text-color);
  background: transparent;
}

.forum-textarea::placeholder {
  color: #adb5bd;
}

.forum-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
}

.forum-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.forum-login-hint {
  text-align: center;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.forum-login-hint i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.forum-login-hint a {
  color: var(--primary-color);
  font-weight: 500;
}

.forum-card {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: var(--transition);
}

.forum-card:hover {
  border-color: var(--primary-light);
}

.forum-card-new {
  animation: forumFadeIn 0.5s ease;
}

@keyframes forumFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.forum-card-avatar i {
  font-size: 2.2rem;
  color: var(--primary-light);
}

.forum-card-body {
  flex: 1;
  min-width: 0;
}

.forum-card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.forum-username {
  font-size: 0.9rem;
  color: var(--text-color);
}

.forum-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.forum-content {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 8px;
  word-break: break-word;
}

.forum-card-actions {
  display: flex;
  gap: 16px;
}

.forum-like-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.forum-like-btn:hover {
  color: var(--danger-color);
}

.forum-like-btn i {
  font-size: 0.85rem;
}

.forum-replies {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-color);
  border-radius: var(--radius);
}

.forum-reply {
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--text-secondary);
}

.forum-reply strong {
  color: var(--text-color);
  margin-right: 6px;
}

.forum-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.forum-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

.forum-empty-hint {
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: 0.7;
}

.forum-page-header {
  text-align: center;
  margin-bottom: 24px;
}

.forum-page-header h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 4px;
}

.forum-page-header h2 i {
  color: var(--accent-color);
  margin-right: 8px;
}

.forum-page-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.forum-login-nudge {
  text-align: center;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.forum-login-nudge i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.forum-login-nudge a {
  color: var(--accent-color);
  font-weight: 600;
}

.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.forum-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.forum-sort {
  display: flex;
  gap: 4px;
}

.forum-sort-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.forum-sort-btn i {
  font-size: 0.75rem;
}

.forum-sort-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.forum-sort-btn.active {
  background: var(--accent-color);
  color: var(--primary-dark);
  border-color: var(--accent-color);
  font-weight: 600;
}

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

.forum-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--accent-color);
  color: var(--primary-dark);
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.forum-card-pinned {
  border-color: var(--accent-color);
  background: #fffdf5;
}

.forum-like-btn.liked {
  color: var(--danger-color);
}

.forum-like-btn.liked i {
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.forum-admin-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
}

.forum-admin-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.forum-delete-btn:hover {
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.forum-pin-btn:hover {
  border-color: var(--accent-color);
  color: #d4a800;
}

/* ========== 投稿表单布局 ========== */
.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 180px;
}

/* ========== 富文本编辑器 ========== */
.re-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}

.re-btn:hover {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.re-btn.active {
  background: var(--accent-color);
  color: var(--primary-dark);
  border-color: var(--accent-color);
}

.re-btn i {
  font-size: 0.85rem;
}

.re-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border-color);
  margin: 0 4px;
}

.re-editor {
  min-height: 350px;
  max-height: 600px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card-bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-color);
  overflow-y: auto;
  outline: none;
  transition: border-color 0.2s;
}

.re-editor:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(250, 176, 5, 0.1);
}

.re-editor:empty::before {
  content: attr(placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.re-editor h1 { font-size: 1.6rem; margin: 16px 0 8px; font-weight: 700; }
.re-editor h2 { font-size: 1.35rem; margin: 14px 0 6px; font-weight: 700; }
.re-editor h3 { font-size: 1.15rem; margin: 12px 0 4px; font-weight: 600; }
.re-editor p { margin: 4px 0 8px; }
.re-editor ul, .re-editor ol { padding-left: 24px; margin: 8px 0; }
.re-editor blockquote { border-left: 4px solid var(--accent-color); margin: 8px 0; padding: 4px 16px; color: var(--text-secondary); background: var(--bg-color); border-radius: 0 4px 4px 0; }
.re-editor a { color: var(--primary-color); text-decoration: underline; }

.re-editor img.re-img {
  max-width: 100%;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.re-editor img.re-img:hover {
  box-shadow: 0 0 0 3px var(--accent-color);
}

.re-video-wrapper {
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.re-video-wrapper:hover {
  box-shadow: 0 0 0 3px var(--accent-color);
}

.re-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px auto;
}

.re-table td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  min-width: 60px;
}

.re-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}