/* 大哥影院 - 完整样式表 */
:root {
  --bg-main: #f5f7fa;
  --bg-card: #ffffff;
  --bg-header: #0f2a43;
  --bg-footer: #0f2a43;
  --bg-glass: rgba(255,255,255,0.75);
  --text-strong: #1a2a3a;
  --text-body: #1e2b39;
  --text-aux: #2d3f50;
  --text-heading: #0b1a2a;
  --text-link: #1a4b7a;
  --text-white: #ffffff;
  --border-light: #d0dae6;
  --accent: #1a4b7a;
  --accent-dark: #0e2e4f;
  --accent-light: #3b82c4;
  --accent-glow: rgba(59,130,196,0.25);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.12);
  --hero-gradient: linear-gradient(145deg, #0e2a44 0%, #1a3f66 50%, #2d5a8a 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 暗黑模式变量 */
body.dark {
  --bg-main: #0d1b26;
  --bg-card: #152837;
  --bg-header: #0a1a28;
  --bg-footer: #0a1a28;
  --bg-glass: rgba(21,40,55,0.75);
  --text-strong: #f1f5f9;
  --text-body: #e2e8f0;
  --text-aux: #cbd5e1;
  --text-heading: #ffffff;
  --text-link: #9ac8ff;
  --border-light: #2e4357;
  --accent: #3b82c4;
  --accent-dark: #1e4a75;
  --accent-light: #60a5fa;
  --accent-glow: rgba(96,165,250,0.25);
  --shadow: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.4);
  --hero-gradient: linear-gradient(145deg, #0a1a28 0%, #132c44 50%, #1e3f5e 100%);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.75;
  transition: background 0.4s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* 文字排版 */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.5rem 0 1.2rem;
  border-left: 5px solid var(--accent);
  padding-left: 1.2rem;
  position: relative;
  overflow: hidden;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-light);
  border-radius: 3px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.5rem 0 0.8rem;
  color: var(--text-strong);
  font-weight: 600;
}

h4 {
  font-size: 1.15rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--text-strong);
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-body);
}

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-body);
}

li {
  margin-bottom: 0.4rem;
}

/* 容器 */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* 头部导航 */
.header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

.logo a {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo span {
  color: #ffcc66;
  font-weight: 900;
}

.logo a::before {
  content: '🎬';
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-menu {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #f0f6fc;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffcc66;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: #ffcc66;
  transform: translateY(-1px);
}

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

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 4px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus-within {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 15px rgba(255,204,102,0.3);
}

.search-box input {
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: #fff;
  outline: none;
  width: clamp(120px, 15vw, 190px);
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: #a8c0d8;
  opacity: 1;
}

.search-box input:focus {
  border: none;
  outline: none;
}

.search-box button {
  background: linear-gradient(135deg, #ffcc66, #ffb84d);
  border: none;
  border-radius: 30px;
  padding: 7px 18px;
  color: #0b1a2a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.search-box button:hover {
  background: linear-gradient(135deg, #ffb84d, #ffcc66);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(255,204,102,0.4);
}

/* 主题切换按钮 */
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  border-radius: 30px;
  padding: 6px 16px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: #ffcc66;
  color: #ffcc66;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 移动菜单 */
.mobile-menu {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-menu button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}


/* 英雄区 */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: clamp(50px, 8vw, 80px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,204,102,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 2px 4px 15px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.01em;
}

.hero p {
  color: rgba(238,244,255,0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  max-width: 800px;
  margin: 1.2rem auto;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero .btn-group {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn-group .btn {
  margin: 0;
}

.hero p:last-child {
  margin-top: 2.5rem;
  color: #d3e4ff;
  font-size: 1rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* 按钮 */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffcc66, #ffb84d);
  color: #1f2a3a;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255,204,102,0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,204,102,0.5);
  color: #0b1a2a;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

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

.btn-outline {
  background: rgba(255,255,255,0.1);
  border: 2px solid #ffcc66;
  color: #ffcc66;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: #ffcc66;
  color: #0b1a2a;
  box-shadow: 0 8px 25px rgba(255,204,102,0.4);
}

.btn-outline::before {
  display: none;
}

/* 卡片区域 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  transition: height 0.4s ease;
  border-radius: 0 4px 4px 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.card:hover::before {
  height: 100%;
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card h4 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(26,75,122,0.3);
}

/* 图片占位 */
.svg-img {
  background: linear-gradient(135deg, #e0e8f0, #c8d6e4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  color: #1a2a3a;
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 3rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.svg-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.card:hover .svg-img {
  transform: scale(1.03);
}

.dark .svg-img {
  background: linear-gradient(135deg, #2a4055, #1e3042);
  color: #e2e8f0;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 文章列表 */
.article-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding-left 0.3s ease;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  padding-left: 10px;
}

.article-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.article-item .meta {
  font-size: 0.85rem;
  color: var(--text-aux);
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
}

.article-item .meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s ease;
}

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

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  transition: background 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

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

.faq-question span {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-body);
  padding: 15px 20px;
  background: var(--bg-main);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  animation: fadeInUp 0.3s ease-out;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border: 1px solid var(--border-light);
}

th {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

td {
  background: var(--bg-card);
  color: var(--text-body);
  transition: background 0.2s ease;
}

tr:hover td {
  background: var(--bg-main);
}

/* 页脚 */
.footer {
  background: var(--bg-footer);
  color: #d1dbe6;
  padding: 50px 0 25px;
  margin-top: 60px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), #ffcc66, var(--accent), transparent);
}

.footer h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer a {
  color: #c9d9eb;
  transition: all 0.3s ease;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  padding: 4px 0;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffcc66;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.copyright {
  border-top: 1px solid #2a4058;
  padding-top: 20px;
  text-align: center;
  color: #c2d0de;
  font-size: 0.9rem;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border: none;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(26,75,122,0.5);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.to-top:active {
  transform: translateY(-2px) scale(0.95);
}

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 毛玻璃效果 */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* 渐变Banner（通用） */
.gradient-banner {
  background: var(--hero-gradient);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .nav-menu, .search-box {
    display: none;
  }
  
  .mobile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .header-inner {
    padding: 10px 16px;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card {
    padding: 22px;
  }
  
  .footer-links {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
  
  h2 {
    font-size: 1.4rem;
    margin: 1.8rem 0 0.8rem;
  }
  
  .card {
    padding: 18px;
    border-radius: 12px;
  }
  
  .to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
  
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links a {
    display: block;
    padding: 4px 0;
  }
  
  th, td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .container {
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1.3rem;
  }
  
  .logo a::before {
    font-size: 1.3rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .svg-img {
    min-height: 100px;
    font-size: 2.5rem;
  }
  
  .card {
    padding: 16px;
  }
  
  .faq-question {
    font-size: 0.9rem;
  }
  
  .to-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}

/* 暗色模式适配 */
body.dark .header {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

body.dark .btn {
  color: #1a2a3a;
}

body.dark .search-box input::placeholder {
  color: #8a9db0;
}

body.dark .card {
  background: var(--bg-card);
}

body.dark .faq-answer {
  background: rgba(13,27,38,0.6);
}

/* 移动端菜单展开 */
.mobile-menu-active .nav-menu {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 16px;
  background: var(--bg-header);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  min-width: 180px;
  z-index: 100;
  animation: fadeInUp 0.3s ease-out;
}

.mobile-menu-active .nav-menu a {
  padding: 8px 0;
}

.mobile-menu-active .nav-menu a::after {
  display: none;
}

.mobile-menu-active .nav-menu a:hover {
  padding-left: 8px;
}

/* 打印样式 */
@media print {
  .header, .footer, .to-top, .search-box, .mobile-menu, .theme-toggle {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* 无障碍 */
@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;
  }
}

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

/* 隐藏滚动条但保留功能 */
.nav-menu::-webkit-scrollbar {
  display: none;
}

/* 顶部进度条效果（可选装饰） */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #ffcc66, transparent);
  opacity: 0.3;
  pointer-events: none;
}

/* 卡片内容间距优化 */
.card > *:last-child {
  margin-bottom: 0;
}

/* 链接箭头装饰 */
a[href="#"]:not(.btn):not(.logo a):not(.nav-menu a):not(.footer-links a)::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.3s ease, margin-left 0.3s ease;
  display: inline-block;
}

a[href="#"]:not(.btn):not(.logo a):not(.nav-menu a):not(.footer-links a):hover::after {
  opacity: 1;
  margin-left: 4px;
}

/* 图片懒加载效果 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --text-body: #000;
    --text-aux: #1a1a1a;
    --border-light: #000;
  }
  
  body.dark {
    --text-body: #fff;
    --text-aux: #e0e0e0;
    --border-light: #fff;
  }
}

/* 内容区块间距 */
section {
  margin-bottom: 20px;
}

section > .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* 特殊高亮文本 */
.highlight {
  background: linear-gradient(120deg, rgba(255,204,102,0.3), rgba(255,204,102,0.1));
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

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