/* ---------- 97影院 全局样式 ---------- */
/* 全局重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #e2e8f0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f0f4f8;
  color: #1e293b;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 暗黑模式变量 */
:root {
  --bg-page: #f0f4f8;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-hero: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
  --bg-footer: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-heading: #0f172a;
  --text-link: #2563eb;
  --text-footer: #e2e8f0;
  --text-footer-muted: #94a3b8;
  --border-light: rgba(100, 116, 139, 0.2);
  --btn-bg: linear-gradient(135deg, #2563eb, #1d4ed8);
  --btn-bg-hover: linear-gradient(135deg, #1d4ed8, #1e40af);
  --btn-text: #ffffff;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --tag-bg: #eff6ff;
  --tag-text: #1d4ed8;
  --table-head-bg: #e2e8f0;
  --hero-text-shadow: none;
}

body.dark {
  --bg-page: #0b1420;
  --bg-card: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-hero: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-heading: #f8fafc;
  --text-link: #93c5fd;
  --text-footer: #f1f5f9;
  --text-footer-muted: #94a3b8;
  --border-light: rgba(148, 163, 184, 0.2);
  --btn-bg: linear-gradient(135deg, #3b82f6, #2563eb);
  --btn-bg-hover: linear-gradient(135deg, #2563eb, #1d4ed8);
  --btn-text: #ffffff;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(148, 163, 184, 0.2);
  --tag-bg: #1e293b;
  --tag-text: #93c5fd;
  --table-head-bg: #334155;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

/* 标题 */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.3;
  transition: color 0.2s;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.5rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 6px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-weight: 800;
  position: relative;
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
  font-weight: 600;
}

p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-light);
}

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  width: 100%;
}

/* ========== 头部导航 ========== */
.header {
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-heading);
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent) 20%, #7c3aed 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.2s;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: var(--accent);
}

.menu {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.2s;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu a:hover {
  color: var(--accent);
  border-color: transparent;
  text-decoration: none;
}

.menu a:hover::after {
  width: 100%;
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.search-box input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 0.4rem 0.5rem;
  outline: none;
  width: 150px;
  font-size: 0.95rem;
}

.search-box input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.search-box button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.2rem;
}

.search-box button:hover {
  transform: scale(1.15);
}

/* 暗黑模式切换按钮 */
.dark-toggle {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.dark-toggle:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.2rem 0.5rem;
}

/* ========== 英雄区 Banner ========== */
.hero {
  background: var(--bg-hero);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-radius: 0 0 50px 50px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle, color-mix(in srgb, #7c3aed 10%, transparent) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 400px;
  text-shadow: var(--hero-text-shadow);
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-heading) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.2rem;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #ffffff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px color-mix(in srgb, var(--accent) 30%, transparent); }
  50% { box-shadow: 0 4px 25px color-mix(in srgb, var(--accent) 50%, transparent); }
}

.hero-svg {
  flex: 1 1 300px;
  min-width: 250px;
  position: relative;
  z-index: 1;
}

.hero-svg svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.hero-svg:hover svg {
  transform: scale(1.03) rotate(-1deg);
}

/* ========== 卡片系统 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration: none;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ========== 文章列表 ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem 0;
}

.article-item {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.article-item::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
  border-left-color: #7c3aed;
}

.article-item:hover::after {
  opacity: 1;
}

.article-item h4 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.article-item h4:hover {
  color: var(--accent);
}

.article-item p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== FAQ 手风琴 ========== */
.faq-details {
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-details:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--accent) 10%, transparent);
}

.faq-question {
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  user-select: none;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question span {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
  display: inline-block;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.faq-details.active .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 0.5rem;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-light);
  padding-top: 0.8rem;
  display: none;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}

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

/* ========== 表格 ========== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 16px;
}

th, td {
  border: 1px solid var(--border-light);
  padding: 1rem 1.2rem;
  text-align: left;
  color: var(--text-primary);
  font-size: 0.95rem;
}

th {
  background: var(--table-head-bg);
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

td {
  transition: background 0.2s;
}

tr:hover td {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed, var(--accent));
  animation: gradientMove 3s ease infinite;
  background-size: 200% 100%;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer p {
  color: var(--text-footer-muted);
  line-height: 1.8;
}

.footer a {
  color: #93c5fd;
  transition: color 0.2s;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer .copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: var(--text-footer-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ========== 回到顶部按钮 ========== */
.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--btn-bg);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.go-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ========== 面包屑 ========== */
.breadcrumb {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
  display: inline-block;
  color: var(--text-secondary);
}

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

/* ========== 滚动动画 ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 图片占位符 ========== */
.svg-img {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 分节标题装饰 ========== */
section {
  margin-bottom: 3rem;
}

section > .container {
  padding-top: 1rem;
}

/* ========== 列表样式 ========== */
ol, ul {
  padding-left: 1.5rem;
  color: var(--text-primary);
}

ol li, ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* ========== 引用块 ========== */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 0 12px 12px 0;
  margin: 1.5rem 0;
  font-style: italic;
}

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}

/* ========== 视频容器（备用） ========== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin: 1.5rem 0;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== 分割线 ========== */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 2rem 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .nav-wrap {
    gap: 0.8rem;
  }
  
  .menu {
    gap: 1rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    flex: 1 1 100%;
  }
  
  .hero-text p {
    margin: 0 auto 1rem;
  }
  
  .hero-svg {
    flex: 1 1 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    padding: 0.6rem 0.8rem;
  }
  
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
  }
  
  .menu.active {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
    order: 3;
  }
  
  .search-box {
    order: 2;
  }
  
  .search-box input {
    width: 100px;
  }
  
  .dark-toggle {
    order: 4;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  .logo {
    font-size: 1.5rem;
    order: 1;
  }
  
  .hero {
    border-radius: 0 0 30px 30px;
    padding: 2.5rem 0;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .article-item {
    padding: 1rem 1.2rem;
  }
  
  .faq-details {
    padding: 0.6rem 1rem;
  }
  
  .go-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 1.4rem;
    padding-left: 0.8rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  th, td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer .container > div {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    flex-wrap: wrap;
  }
  
  .search-box {
    width: 100%;
    order: 5;
    margin-top: 0.5rem;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .dark-toggle {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}

/* ========== 动画 ========== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* 骨架屏效果 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--table-head-bg) 50%, var(--bg-card) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 5px;
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* 选中文本 */
::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text-heading);
}

/* 焦点可见性 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 减少动态偏好 */
@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;
  }
  
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ========== 工具类 ========== */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 2.5rem; padding-right: 2.5rem; }

/* 高对比度模式 */
@media (prefers-contrast: more) {
  :root {
    --border-light: rgba(0, 0, 0, 0.4);
    --text-secondary: #1e293b;
  }
  
  body.dark {
    --border-light: rgba(255, 255, 255, 0.4);
    --text-secondary: #e2e8f0;
  }
  
  a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .btn, .dark-toggle, .go-top {
    border: 2px solid var(--text-heading);
  }
}