/* =========================================================
   饼干姐姐剧场 - 温暖治愈系风格样式表
   设计理念：奶油饼干色系 · 圆润柔边 · 治愈微光
   支持：响应式 / 暗色模式 / 过渡动画
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #f5efe6;
  --surface: #ffffff;
  --surface-soft: #fdf9f3;
  --text-main: #1f2937;
  --text-title: #111827;
  --text-sub: #334155;
  --text-link: #1e4a6f;
  --brand: #b06e4f;
  --brand-accent: #8a4f32;
  --brand-light: #e8cfc0;
  --border: #d9c8b8;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(255, 250, 245, 0.9);
  --footer-bg: #2e241f;
  --footer-text: #f1f0ec;
  --footer-sub: #d6cfc7;
  --btn-text: #ffffff;
  --btn-bg: #b06e4f;
  --gradient-banner: linear-gradient(135deg, #f5e1d3, #ecd6c0, #f0dcc8);
  --gradient-card-hover: linear-gradient(145deg, #fff9f4, #fdf1e7);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --ring: rgba(176, 110, 79, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色主题变量覆盖 */
[data-theme="dark"] {
  --bg: #1c1917;
  --surface: #24211f;
  --surface-soft: #2a2624;
  --text-main: #e2e8f0;
  --text-title: #f8fafc;
  --text-sub: #cbd5e1;
  --text-link: #a7c8e8;
  --brand: #c48b6e;
  --brand-accent: #e0b39a;
  --brand-light: #4b3b30;
  --border: #4b3f39;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(30, 27, 26, 0.92);
  --footer-bg: #15120f;
  --footer-text: #f1f0ec;
  --footer-sub: #bab0a8;
  --btn-text: #1f2937;
  --btn-bg: #d9a68b;
  --gradient-banner: linear-gradient(135deg, #3b2f2a, #4b3b30, #3d322c);
  --gradient-card-hover: linear-gradient(145deg, #2b2623, #322c28);
  --glass-bg: rgba(30, 27, 26, 0.6);
  --glass-border: rgba(75, 63, 57, 0.8);
  --ring: rgba(200, 139, 110, 0.2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.2s ease;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin: 2.2rem 0 1.2rem; }
h3 { font-size: 1.5rem; margin: 1.8rem 0 0.8rem; }
h4 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; }

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

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

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

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

li {
  margin-bottom: 0.4rem;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 通用分隔线 */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 2.5rem 0;
}

/* 高亮标记 */
::selection {
  background: var(--brand);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

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

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

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

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo svg {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.brand-logo:hover svg {
  transform: rotate(-2deg) scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.icon-btn:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--ring);
  border-color: var(--brand);
}

#mobileMenuBtn {
  display: none;
}

/* 搜索框 */
.search-box {
  display: flex;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 0.3rem 0.3rem 0.3rem 1.2rem;
  align-items: center;
  width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
  width: 260px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  flex: 1;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
}

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

.search-box button {
  background: var(--brand);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.search-box button:hover {
  background: var(--brand-accent);
  transform: rotate(8deg);
}

/* ---------- 首屏横幅 ---------- */
.banner {
  background: var(--gradient-banner);
  border-radius: var(--radius-xl);
  padding: 3rem 3rem;
  margin: 2.5rem 0;
  box-shadow: 0 16px 40px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(176, 110, 79, 0.15), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.banner h2 {
  border-left: none;
  padding-left: 0;
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.banner p {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.banner .btn {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
}

.banner:hover {
  box-shadow: 0 20px 50px var(--shadow-hover);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px var(--ring);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  background: var(--brand-accent);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--ring);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--ring);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--brand);
  transition: height 0.4s ease;
  border-radius: 0 4px 4px 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-hover);
  border-color: var(--brand-light);
  background-image: var(--gradient-card-hover);
}

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

.card h3 {
  margin-top: 0.2rem;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

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

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- 表格 ---------- */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8rem 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
}

.info-table th,
.info-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-main);
}

.info-table th {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tbody tr:hover {
  background: var(--surface-soft);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  padding: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: var(--brand-light);
  box-shadow: 0 4px 16px var(--shadow);
}

.faq-question {
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-question span {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: var(--brand);
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-item.open {
  border-color: var(--brand);
  box-shadow: 0 8px 24px var(--ring);
}

.faq-item.open .faq-question {
  color: var(--brand-accent);
  background: var(--surface-soft);
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 0;
  color: var(--text-main);
  display: none;
  padding: 0 1.5rem 1.2rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
  animation: fadeInUp 0.3s ease;
}

.faq-item.open .faq-answer {
  display: block;
}

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

/* ---------- 文章列表 ---------- */
.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  margin-bottom: 1.2rem;
  padding: 1.5rem 1.8rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.article-list li:hover {
  transform: translateX(6px);
  border-color: var(--brand-light);
  box-shadow: 0 8px 24px var(--shadow);
  background: var(--surface-soft);
}

.article-list li a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-title);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-list li a:hover {
  color: var(--brand-accent);
}

.article-list small {
  color: var(--text-sub);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.3rem;
}

.article-list p {
  margin-top: 0.6rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* ---------- 徽章 ---------- */
.badge {
  background: var(--brand);
  color: #fff;
  padding: 0.25rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
  box-shadow: 0 2px 8px var(--ring);
}

/* ---------- 统计数字 ---------- */
.stat-number {
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--brand-accent);
  line-height: 1.2;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-sub { color: var(--text-sub); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

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

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

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

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

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer .footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-sub {
  color: var(--footer-sub);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- 联系方式区块 ---------- */
#contact .contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
}

.contact-col {
  flex: 1;
  min-width: 220px;
}

.contact-col h4 {
  color: var(--brand-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
}

.contact-col p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-col a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-col a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

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

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

/* ---------- 响应式适配 ---------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .banner {
    padding: 2.5rem 2rem;
  }

  .search-box {
    width: 180px;
  }

  .search-box:focus-within {
    width: 220px;
  }
}

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

  #mobileMenuBtn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow);
  }

  .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 {
    width: 100%;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

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

  .search-box {
    width: 150px;
  }

  .search-box:focus-within {
    width: 180px;
  }

  .banner {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
  }

  .banner h2 {
    font-size: 1.8rem;
  }

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

  .card {
    padding: 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
  h3 { font-size: 1.3rem; }

  .article-list li {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  #contact .contact-grid {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .footer .container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .faq-question {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.2rem 1rem;
  }
}

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

  .nav-wrap {
    padding: 0.6rem 0;
  }

  .brand-logo svg {
    height: 36px;
  }

  .search-box {
    display: none;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .banner {
    padding: 1.8rem 1.2rem;
  }

  .banner h2 {
    font-size: 1.6rem;
  }

  .banner p {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }

  .info-table th,
  .info-table td {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  .badge {
    display: block;
    margin-bottom: 0.4rem;
    width: fit-content;
  }

  .contact-col h4 {
    font-size: 1rem;
  }
}

/* ---------- 无障碍优化 ---------- */
:focus-visible {
  outline: 3px solid var(--brand);
  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;
  }
}

/* ---------- 打印优化 ---------- */
@media print {
  .site-header,
  .footer,
  .banner,
  .btn,
  .icon-btn {
    display: none !important;
  }

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

  .card,
  .faq-item,
  .article-list li {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e5e5e5;
  }

  h1, h2, h3, h4 {
    color: #000;
    break-after: avoid;
  }
}

/* ---------- 微交互增强 ---------- */
.card,
.banner,
.faq-item,
.article-list li,
.btn,
.icon-btn {
  -webkit-tap-highlight-color: transparent;
}

/* 悬停时的微光效果 */
.card:hover,
.faq-item:hover {
  position: relative;
}

.card:hover::after,
.faq-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--ring), transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

/* 暗色模式下微调 */
[data-theme="dark"] .card:hover::after,
[data-theme="dark"] .faq-item:hover::after {
  background: radial-gradient(circle at top right, rgba(200, 139, 110, 0.1), transparent 60%);
}

/* 自适应字体大小 */
@media (min-width: 1400px) {
  body {
    font-size: 17px;
  }
}

/* 确保所有交互元素都有合适的点击区域 */
@media (max-width: 768px) {
  .nav-links a,
  .icon-btn,
  .faq-question {
    min-height: 44px;
  }
}

/* 平滑的图片加载 */
img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* 链接下划线动画 */
.text-link {
  text-decoration: none;
  position: relative;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.3s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* 列表项间距优化 */
.article-list li small {
  color: var(--text-sub);
  opacity: 0.8;
}

/* 强调色块 */
.highlight-box {
  background: var(--surface-soft);
  border-left: 4px solid var(--brand);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin-bottom: 0.5rem;
}

/* 暗色模式下的微调 */
[data-theme="dark"] .highlight-box {
  background: var(--surface);
}

/* 小屏设备上的横向滚动优化 */
@media (max-width: 640px) {
  .info-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-list li p {
    white-space: normal;
  }
}

/* 最后再补充品牌色点缀 */
.brand-text {
  color: var(--brand-accent);
  font-weight: 600;
}

/* 返回顶部按钮样式（预留） */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--ring);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--ring);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* 动画关键帧集合 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

/* 结束 */
/* =========================================================
   饼干姐姐剧场 · 温暖治愈系
   设计完成 · 2025
   ========================================================= */