/* ============================================================
   青漫漫画 - 完整样式表
   风格：清新少女风 · 渐变 · 毛玻璃 · 响应式 · 暗色模式
   ============================================================ */

/* ---------- CSS变量与重置 ---------- */
:root {
  --primary: #2b4c7e;
  --primary-dark: #1d3a5e;
  --primary-light: #4a6fa5;
  --accent: #f2c94c;
  --accent-soft: #fff3d6;
  --pink: #f2a5a5;
  --pink-soft: #fde8e8;
  --bg: #f9fafc;
  --bg-soft: #eef3fb;
  --card-bg: #ffffff;
  --card-border: #edf2f7;
  --text: #1e2b3c;
  --text-light: #3f4e60;
  --text-muted: #6b7a8c;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(255,255,255,0.85);
  --glass-bg: rgba(255,255,255,0.7);
  --gradient-primary: linear-gradient(135deg, #eef3fb 0%, #d9e6f5 100%);
  --gradient-accent: linear-gradient(135deg, #fdf0e9 0%, #fde8e8 100%);
  --gradient-green: linear-gradient(135deg, #e5f3e8 0%, #d1ecdc 100%);
}

[data-theme="dark"] {
  --bg: #121a24;
  --bg-soft: #1d2a3a;
  --card-bg: #1d2a3a;
  --card-border: #2a3b4f;
  --text: #dfe7f0;
  --text-light: #bcd0e8;
  --text-muted: #8a9bb0;
  --nav-bg: rgba(20,28,38,0.92);
  --glass-bg: rgba(29,42,58,0.7);
  --gradient-primary: linear-gradient(135deg, #1d2a3a 0%, #15222e 100%);
  --gradient-accent: linear-gradient(135deg, #2a1e1e 0%, #1d2a3a 100%);
  --gradient-green: linear-gradient(135deg, #1a2e24 0%, #1d2a3a 100%);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.4);
}

/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

/* ---------- 通用标题 ---------- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 60px 0 24px;
  padding-left: 18px;
  border-left: 6px solid var(--accent);
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 4px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(43, 76, 126, 0.3);
  letter-spacing: 0.02em;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 76, 126, 0.4);
}

.btn:active {
  transform: translateY(0);
}

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

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

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  border-radius: 40px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(43, 76, 126, 0.2);
}

/* ---------- 吸顶导航 ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

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

.logo svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: var(--transition);
}

.logo:hover svg {
  transform: rotate(-5deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

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

/* 搜索框 */
.search-box {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 40px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 76, 126, 0.1);
}

.search-box input {
  border: none;
  padding: 10px 18px;
  width: 200px;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  transition: var(--transition);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--primary-dark);
}

/* 菜单按钮 */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  padding: 4px;
}

.menu-toggle:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* ---------- Hero区域 ---------- */
.hero {
  background: var(--gradient-primary);
  padding: 60px 0;
  border-radius: 0 0 50px 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242, 165, 165, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

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

.hero-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 350px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.hero-svg {
  flex: 1 1 250px;
  text-align: center;
  position: relative;
}

.hero-svg svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
  animation: float 4s ease-in-out infinite;
}

/* ---------- 轮播Banner ---------- */
.banner-carousel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin: 40px 0;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  padding: 50px 30px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.slide:nth-child(2) {
  background: var(--gradient-accent);
}

.slide:nth-child(3) {
  background: var(--gradient-green);
}

.slide::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite;
}

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

/* 轮播指示器 */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-indicators span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-border);
  transition: var(--transition);
  cursor: pointer;
}

.carousel-indicators span.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ---------- 卡片网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
  border-radius: 3px 3px 0 0;
}

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

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
  transition: var(--transition);
}

.card:hover h3 {
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card .badge {
  margin-top: 12px;
  display: inline-block;
}

/* 评价卡片特殊样式 */
.card:has(h3) .badge {
  margin-top: 12px;
}

/* ---------- 文章列表 ---------- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.article-item {
  background: var(--card-bg);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.article-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

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

.article-item h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta::before {
  content: "📅";
  font-size: 0.9rem;
}

.article-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

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

/* ---------- FAQ折叠面板 ---------- */
details {
  background: var(--card-bg);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--card-border);
  transition: var(--transition);
  overflow: hidden;
}

details:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--primary);
  background: var(--card-bg);
}

summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding-right: 30px;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
  font-weight: 300;
}

details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

details p {
  margin-top: 14px;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- HowTo教程卡片 ---------- */
.card.reveal:has(h3) {
  padding: 32px;
}

.card strong {
  color: var(--primary);
  font-weight: 600;
}

.card .btn {
  margin-top: 16px;
}

/* ---------- 联系卡片 ---------- */
.card h3 + p {
  margin-bottom: 16px;
}

/* ---------- 页脚 ---------- */
footer {
  background: #1b2b3f;
  color: #cbd5e1;
  margin-top: 80px;
  padding: 60px 0 0;
  border-radius: 40px 40px 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-grid a {
  color: #a8c0d8;
  text-decoration: none;
  display: block;
  margin: 8px 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(4px);
}

.copyright {
  border-top: 1px solid #355070;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.copyright p {
  margin-bottom: 8px;
  color: #8a9bb0;
}

/* ---------- 返回顶部按钮 ---------- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(43, 76, 126, 0.3);
}

#backToTop:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(43, 76, 126, 0.4);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 交错动画延迟 */
.grid-2 .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid-2 .reveal:nth-child(3) { transition-delay: 0.2s; }
.grid-2 .reveal:nth-child(4) { transition-delay: 0.3s; }

.article-item.reveal:nth-child(2) { transition-delay: 0.05s; }
.article-item.reveal:nth-child(3) { transition-delay: 0.1s; }
.article-item.reveal:nth-child(4) { transition-delay: 0.15s; }
.article-item.reveal:nth-child(5) { transition-delay: 0.2s; }
.article-item.reveal:nth-child(6) { transition-delay: 0.25s; }
.article-item.reveal:nth-child(7) { transition-delay: 0.3s; }
.article-item.reveal:nth-child(8) { transition-delay: 0.35s; }
.article-item.reveal:nth-child(9) { transition-delay: 0.4s; }
.article-item.reveal:nth-child(10) { transition-delay: 0.45s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 20px 20px;
    gap: 8px;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
  }

  .nav-links a {
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
  }

  .nav-links a:hover {
    background: rgba(43, 76, 126, 0.08);
  }

  .menu-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero {
    padding: 40px 0;
    border-radius: 0 0 30px 30px;
  }

  .search-box input {
    width: 120px;
  }

  .section-title {
    font-size: 1.6rem;
    margin: 40px 0 16px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 22px;
  }

  .slide {
    padding: 30px 20px;
    font-size: 1.1rem;
  }

  .article-item {
    padding: 18px 20px;
  }

  .footer-grid {
    gap: 24px;
    padding-bottom: 24px;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

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

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  .search-box {
    display: none;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }
}

/* ---------- 暗色模式 ---------- */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg);
    color: var(--text);
  }

  .nav-bar {
    background: var(--nav-bg);
  }

  .card,
  .article-item,
  details,
  .banner-carousel {
    background: var(--card-bg);
    border-color: var(--card-border);
  }

  .hero {
    background: var(--gradient-primary);
  }

  .search-box {
    background: var(--card-bg);
    border-color: var(--card-border);
  }

  .search-box input {
    color: var(--text);
  }

  .search-box input::placeholder {
    color: var(--text-muted);
  }

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

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

  .badge {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
  }
}

/* ---------- 动画效果增强 ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 卡片悬浮粒子效果 */
.card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

/* 图片懒加载占位 */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy.loaded {
  opacity: 1;
}

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

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 链接通用样式 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* 选中文本样式 */
::selection {
  background: var(--accent);
  color: var(--primary-dark);
}

/* 打印优化 */
@media print {
  .nav-bar,
  .banner-carousel,
  #backToTop,
  footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .article-item,
  details {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}