/* ==========================================================
   喵漫画趣 - 完整样式表
   风格：暖萌手绘风 + 现代卡片式布局
   ========================================================== */

/* ---------- CSS 变量与主题 ---------- */
:root {
  --primary: #f8b500;
  --primary-dark: #e0a000;
  --primary-light: #ffdd77;
  --primary-soft: #fdeecf;
  --bg: #fffdf8;
  --bg-card: #ffffff;
  --text: #222222;
  --text-light: #555555;
  --border: #f0e0c0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --header-bg: rgba(248, 181, 0, 0.92);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.4);
  --footer-bg: #222222;
  --footer-text: #dddddd;
  --footer-link: #cccccc;
}

/* 暗色模式变量 */
body.dark {
  --primary: #f8b500;
  --primary-dark: #d49400;
  --primary-light: #ffdd77;
  --primary-soft: #2a2a2a;
  --bg: #1a1a1a;
  --bg-card: #2a2a2a;
  --text: #eeeeee;
  --text-light: #bbbbbb;
  --border: #444444;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(26, 26, 26, 0.92);
  --glass-bg: rgba(42, 42, 42, 0.6);
  --glass-border: rgba(68, 68, 68, 0.4);
  --footer-bg: #111111;
  --footer-text: #cccccc;
  --footer-link: #aaaaaa;
}

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

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

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

img,
svg {
  max-width: 100%;
  display: block;
}

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

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

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

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

/* ---------- 标题样式 ---------- */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin: 30px 0 20px;
  border-left: 10px solid var(--primary);
  padding-left: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 20px;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 100px;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 25px 0 15px;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

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

strong {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 吸顶导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

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

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

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}

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

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

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 4px 4px 4px 14px;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.2);
  border-color: var(--primary);
}

.search-box input {
  border: none;
  outline: none;
  width: 130px;
  padding: 6px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
  transition: width 0.3s ease;
}

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

.search-box input:focus {
  width: 160px;
}

.search-box button {
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  color: #1e1e1e;
}

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

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dark-toggle {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.4rem;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.2s ease;
  line-height: 1;
}

.dark-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 0.9rem;
  margin: 20px 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Banner 轮播 ---------- */
.banner {
  background: linear-gradient(135deg, #fdeecf 0%, #ffdd77 50%, #f8b500 100%);
  padding: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

body.dark .banner {
  background: linear-gradient(135deg, #2a2a2a 0%, #333333 50%, #3a3a3a 100%);
}

.banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  animation: bannerGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bannerGlow {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(10%); }
}

.banner-slide {
  display: none;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: #1e1e1e;
  padding: 10px 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

body.dark .banner-slide {
  color: #eee;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-slide.active {
  display: block;
  animation: slideFade 0.6s ease;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot:hover {
  background: rgba(30, 30, 30, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(248, 181, 0, 0.5);
  transform: scale(1.2);
}

body.dark .dot {
  background: rgba(255, 255, 255, 0.3);
}

body.dark .dot.active {
  background: var(--primary);
}

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

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

.card svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--primary-soft);
  transition: transform 0.3s ease;
}

.card:hover svg {
  transform: scale(1.02);
}

.card h3,
.card h4 {
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

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

.card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #1e1e1e;
  padding: 10px 22px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(248, 181, 0, 0.3);
  text-align: center;
}

.btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(248, 181, 0, 0.4);
  color: #1e1e1e;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(248, 181, 0, 0.3);
}

/* ---------- 新闻文章列表 ---------- */
article {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

article:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

article strong {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
}

article a {
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 6px;
}

article p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ---------- FAQ 样式 ---------- */
.faq-item {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  padding: 18px 20px;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: color 0.2s ease;
  font-family: inherit;
}

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

.faq-question span {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-question[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
  color: var(--text-light);
}

.faq-answer.open {
  max-height: 1000px;
  padding-bottom: 20px;
}

.faq-answer p {
  margin-bottom: 0;
}

/* ---------- 数字统计 ---------- */
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

/* ---------- HowTo 教程样式 ---------- */
#howto ol {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px 24px 24px 48px;
  border: 1px solid var(--border);
  margin: 20px 0;
}

#howto ol li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}

#howto ol li:last-child {
  border-bottom: none;
}

#howto ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 联系区域 ---------- */
#contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0;
}

#contact p:last-of-type {
  border-bottom: none;
}

#contact a {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0 30px;
  margin-top: 60px;
  transition: background 0.4s ease;
}

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

.footer-grid h4 {
  color: var(--footer-text);
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-grid a {
  color: var(--footer-link);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding-left: 0;
}

.footer-grid a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-grid p {
  color: var(--footer-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer .container:last-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.9rem;
}

.site-footer .container:last-child p {
  color: var(--footer-text);
  opacity: 0.8;
  margin-bottom: 0;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #1e1e1e;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  border: none;
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

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

/* 延迟动画类 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- 毛玻璃效果工具类 ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ---------- 响应式布局 ---------- */
/* 平板 */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    gap: 14px;
  }

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

  h1 {
    font-size: 2rem;
  }
}

/* 手机 */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .header-inner {
    position: relative;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    padding: 16px 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    gap: 4px;
    z-index: 100;
  }

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

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

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
    display: block;
    width: 100%;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .search-box {
    display: none;
  }

  .dark-toggle {
    order: 3;
  }

  .logo {
    order: 1;
    font-size: 1.3rem;
  }

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

  .banner {
    padding: 30px 0;
  }

  .banner-slide {
    font-size: 1.2rem;
    padding: 8px 12px;
  }

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

  .card {
    padding: 18px;
  }

  h1 {
    font-size: 1.6rem;
    padding-left: 14px;
    border-left-width: 8px;
    margin: 20px 0 16px;
  }

  h2 {
    font-size: 1.4rem;
    margin: 30px 0 16px;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 14px 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  article {
    padding: 16px;
  }

  .breadcrumb {
    margin: 14px 0;
    font-size: 0.85rem;
  }
}

/* 超小屏幕 */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .container {
    padding: 0 10px;
  }

  .logo {
    font-size: 1.1rem;
  }

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

  .banner {
    padding: 24px 0;
  }

  .banner-slide {
    font-size: 1.1rem;
  }

  .grid-card {
    grid-template-columns: 1fr;
  }

  .search-box {
    display: none;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header,
  .banner,
  .back-to-top,
  .dark-toggle,
  .menu-toggle,
  .search-box,
  .breadcrumb,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ---------- 无障碍与焦点样式 ---------- */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: #1e1e1e;
}

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

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--primary-dark));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ---------- 暗色模式滚动条 ---------- */
body.dark ::-webkit-scrollbar-track {
  background: #1a1a1a;
}

body.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(#444, #555);
  border-color: #1a1a1a;
}

/* ---------- 动画增强 ---------- */
@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;
  }
}

/* ---------- 装饰性背景元素 ---------- */
main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  top: 0;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(248, 181, 0, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ---------- 文章卡片 hover 动画增强 ---------- */
article a {
  position: relative;
  display: inline-block;
}

article a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

article a:hover::after {
  width: 100%;
}

/* ---------- 联系区域链接 hover ---------- */
#contact a:hover {
  text-decoration: underline;
}

/* ---------- 页脚底部版权区 ---------- */
.site-footer .container:last-child {
  text-align: center;
}

/* ---------- 面包屑当前页高亮 ---------- */
.breadcrumb span {
  color: var(--text-light);
  font-weight: 500;
}

/* ---------- 移动端导航链接分隔线 ---------- */
@media (max-width: 768px) {
  .nav-links a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ---------- 暗色模式下的卡片 hover ---------- */
body.dark .card:hover {
  border-color: var(--primary);
}

/* ---------- 搜索框占位符颜色 ---------- */
.search-box input::placeholder {
  opacity: 0.7;
}

/* ---------- FAQ 按钮过渡优化 ---------- */
.faq-question span {
  transition: transform 0.3s ease;
}

/* ---------- 标题与段落间距优化 ---------- */
section {
  margin-bottom: 20px;
}

/* ---------- 图片圆角 ---------- */
.card img,
article img {
  border-radius: var(--radius-sm);
}

/* ---------- 毛玻璃导航增强 ---------- */
@media (min-width: 769px) {
  .site-header {
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

/* ---------- 卡片网格间距优化 ---------- */
.grid-card + p {
  margin-top: 20px;
}

/* ---------- 列表样式增强 ---------- */
ul li::marker {
  color: var(--primary);
}

/* ---------- 区块标题动画 ---------- */
section:hover h2::after {
  width: 100px;
}

/* ---------- 暗色模式下边缘可见性 ---------- */
body.dark .card {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark article {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- 响应式字体 ---------- */
html {
  font-size: 16px;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* ---------- 高对比度模式 ---------- */
@media (prefers-contrast: high) {
  :root {
    --primary: #d49400;
    --primary-dark: #b07d00;
    --primary-light: #ffdd77;
  }
}

/* ---------- 结尾 ---------- */
/* 喵漫画趣 - 让每一段碎片时间更有趣 🐱 */