/* ===================================
   图书出版网站 - 精致书卷风格
   =================================== */

/* --- 字体 & 变量 --- */
:root {
  --bg-primary: #FAF7F2;        /* 温暖米白 */
  --bg-secondary: #F0EBE3;     /* 浅褐 */
  --bg-card: #FFFFFF;
  --text-primary: #2C2416;      /* 深棕 */
  --text-secondary: #6B5D4D;    /* 中棕 */
  --text-muted: #9B8E7E;
  --accent: #C4883A;             /* 古铜金 */
  --accent-dark: #A36E28;
  --border: #E2D9CC;
  --shadow: rgba(44, 36, 22, 0.08);
  --radius: 6px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --max-w: 1200px;
}

/* --- 重置 & 基线 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* --- 滚动条 --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- 布局工具 --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- 导航栏 --- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w);
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary);
}
.navbar-brand .icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.navbar-nav { display: flex; gap: 32px; }
.navbar-nav a {
  font-size: 0.9rem; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--accent); }
.navbar-nav a.active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}

/* --- 汉堡菜单按钮 --- */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  gap: 5px; z-index: 110;
}
.navbar-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.navbar-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 移动端导航遮罩 --- */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(44, 36, 22, 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-overlay.active {
  opacity: 1; visibility: visible;
}

/* --- 移动端导航面板 --- */
.mobile-nav {
  position: fixed; top: 0; right: -280px;
  width: 260px; height: 100vh;
  background: var(--bg-card); z-index: 105;
  padding: 80px 24px 24px;
  box-shadow: -4px 0 20px var(--shadow);
  transition: right 0.3s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
  display: block; padding: 14px 16px;
  font-size: 1rem; color: var(--text-secondary);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(196, 136, 58, 0.08);
  color: var(--accent);
}
.mobile-nav .admin-link {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Hero 区域 --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196, 136, 58, 0.06), transparent);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(196, 136, 58, 0.3);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(196, 136, 58, 0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: #D94F4F; color: #fff; }
.btn-danger:hover { background: #C23A3A; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- 卡片 --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.14);
  transform: translateY(-3px);
}

/* --- 服务卡片网格 --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* --- 服务图标动画 --- */
.service-icon {
  display: inline-block;
  transition: transform 0.4s ease;
}
.card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* --- 出版流程网格 --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

/* --- 出版流程编号脉冲 --- */
.step-circle {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.15); opacity: 0.3; }
}
.step-item:hover .step-circle {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(196, 136, 58, 0.3);
}

/* --- 表单 --- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem; color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 136, 58, 0.12);
}
.form-control.error { border-color: #D94F4F; }
.form-error { font-size: 0.75rem; color: #D94F4F; margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
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='%236B5D4D' d='M6 8L1 3h10z'/%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: 16px; }
.captcha-row { display: flex; gap: 10px; align-items: flex-end; }
.captcha-row .form-group { flex: 1; margin-bottom: 0; }
.captcha-img {
  height: 42px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.captcha-img:hover { border-color: var(--accent); }

/* --- 模态框 --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44, 36, 22, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  overscroll-behavior: contain;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(44, 36, 22, 0.25);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-secondary);
  transition: background 0.2s; cursor: pointer;
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* --- 新闻列表页 --- */
.section { padding: 48px 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
}
.section-title::before {
  content: ''; display: inline-block;
  width: 4px; height: 1em;
  background: var(--accent); border-radius: 2px;
  margin-right: 10px; vertical-align: middle;
}

/* --- 新闻卡片 --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { cursor: pointer; }
.news-card-img {
  height: 180px; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 2.5rem;
  overflow: hidden;
  position: relative;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(196, 136, 58, 0.1));
  opacity: 0; transition: opacity 0.4s ease;
}
.news-card:hover .news-card-img::after { opacity: 1; }
.news-card-body { padding: 20px; }
.news-card-meta {
  font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.news-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.4; margin-bottom: 8px;
  color: var(--text-primary);
}
.news-card-excerpt {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-tag {
  display: inline-block; padding: 2px 8px;
  background: var(--bg-secondary);
  border-radius: 3px; font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- 文章详情 --- */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-hero { text-align: center; padding: 48px 0 32px; }
.article-hero .article-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.3;
  margin-bottom: 16px;
}
.article-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 16px; justify-content: center; }
.article-content {
  font-size: 1rem; line-height: 1.9; color: var(--text-secondary);
}
.article-content p { margin-bottom: 1em; }

/* --- 出版意向表单 --- */
.intent-section { background: var(--bg-secondary); padding: 64px 0; }
.intent-card { max-width: 560px; margin: 0 auto; }
.intent-card .card-body { padding: 40px; }

/* --- 状态标签 --- */
.status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.72rem; font-weight: 600;
}
.status-PENDING { background: #FFF3E0; color: #E65100; }
.status-APPROVED { background: #E8F5E9; color: #2E7D32; }
.status-REJECTED { background: #FFEBEE; color: #C62828; }
.status-PUBLISHED { background: #E3F2FD; color: #1565C0; }
.status-DRAFT { background: var(--bg-secondary); color: var(--text-muted); }

/* --- 管理员后台 --- */
.admin-layout { display: flex; min-height: 100vh; position: relative; }
.admin-sidebar {
  width: 220px; background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-logo {
  padding: 0 20px 20px;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem; color: var(--text-secondary);
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.admin-nav-item.active {
  background: rgba(196, 136, 58, 0.08);
  color: var(--accent);
  border-left-color: var(--accent);
}
.admin-toggle {
  display: none;
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-primary);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.admin-toggle:hover {
  border-color: var(--accent); color: var(--accent);
}
.admin-sidebar-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(44, 36, 22, 0.3);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.admin-sidebar-overlay.active {
  opacity: 1; visibility: visible;
}
.admin-main {
  flex: 1; margin-left: 220px;
  background: var(--bg-primary);
}
.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-page-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.admin-content { padding: 28px; }
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}
.admin-table th, .admin-table td {
  padding: 12px 16px; text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: var(--bg-secondary);
  font-weight: 600; color: var(--text-secondary);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(196, 136, 58, 0.03); }
.table-actions { display: flex; gap: 6px; }
.table-actions .btn-sm { padding: 4px 10px; font-size: 0.75rem; }

/* --- 分页 --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 0.8rem; color: var(--text-muted); padding: 0 12px; }

/* --- 通知提示 --- */
.toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.15);
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
.toast-success { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #4CAF50; }
.toast-error { background: #FFEBEE; color: #C62828; border-left: 3px solid #F44336; }
.toast-info { background: #E3F2FD; color: #1565C0; border-left: 3px solid #2196F3; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- 加载态 --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 3px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loading-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: absolute; inset: 0;
  background: rgba(250, 247, 242, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

/* --- 空状态 --- */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 0.9rem; }

/* --- 页面切换动画 --- */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted); font-size: 0.8rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px;
}

/* ===================================
   粒子画布
   =================================== */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===================================
   滚动进入动画
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   可访问性
   =================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: -1px;
}

/* 鼠标悬停技巧提示 */
[data-tooltip] { position: relative; }
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  pointer-events: none;
}
[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 768px) {
  /* 导航 */
  .navbar-toggle { display: flex; }
  .navbar-nav { display: none; }

  /* 容器 */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 48px 0 36px; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* 区块标题 */
  .section-header { flex-direction: column; gap: 8px; }

  /* 新闻网格 */
  .news-grid { grid-template-columns: 1fr; }

  /* 服务卡片 */
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; }

  /* 流程步骤 */
  .steps-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  /* 表单 */
  .form-row { grid-template-columns: 1fr; }
  .captcha-row { flex-direction: column; align-items: stretch; }
  .captcha-img { margin-top: 0 !important; height: 48px; width: auto; max-width: 200px; align-self: flex-start; }

  /* 出版意向卡片 */
  .intent-card .card-body { padding: 24px; }

  /* 文章详情 */
  .article-hero { padding: 32px 0 24px; }

  /* 模态框 */
  .modal { max-width: 100%; margin: 0 12px; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 16px 20px; }
  .modal-footer { padding: 12px 20px; }

  /* Toast */
  .toast-container { right: 12px; left: 12px; top: 72px; }
  .toast { max-width: 100%; }

  /* 触摸友好尺寸 */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .pagination button { width: 44px; height: 44px; }

  /* 空状态 */
  .empty-state { padding: 40px 16px; }

  /* 后台管理 */
  .admin-sidebar { width: 0; overflow: hidden; transition: width 0.3s; }
  .admin-main { margin-left: 0; }
  .admin-sidebar.open { width: 220px; box-shadow: 2px 0 12px var(--shadow); }
  .admin-toggle { display: inline-flex; }
  .admin-header { padding: 12px 16px; gap: 10px; }
  .admin-content { padding: 16px; }
  .admin-table th,
  .admin-table td { padding: 10px 12px; font-size: 0.8rem; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }

  /* CTA */
  .intent-section { padding: 48px 0; }
  .intent-section h2 { font-size: 1.4rem; }

  /* 文章 */
  .article-content { font-size: 0.95rem; }

  /* 页脚 */
  .footer { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 0 28px; }
  .hero-eyebrow { font-size: 0.65rem; }
  .hero-title { font-size: 1.4rem; }
  .hero-sub { font-size: 0.88rem; margin-bottom: 24px; }

  .section { padding: 32px 0; }
  .section-title { font-size: 1.2rem; }

  .services-grid { grid-template-columns: 1fr !important; }

  .steps-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

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

  .modal { margin: 0 8px; }
  .modal-body { padding: 16px; }

  .footer { padding: 24px 0; }

  /* 后台表格水平滚动 */
  .admin-table { min-width: 600px; }
  .admin-table-wrap { margin: 0 -12px; }
  .admin-table th,
  .admin-table td { padding: 8px 10px; font-size: 0.75rem; }

  .toast-container { top: 60px; right: 8px; left: 8px; }
}

/* ===================================
   动效偏好（无障碍）
   =================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .particle-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
  .step-circle::after { display: none; }
}
