```css
/* ===== 蜜糖漫画 全站样式 ===== */
/* 随机风格：糖果质感 + 柔和渐变 + 毛玻璃 */

:root {
  /* 明亮模式 */
  --bg-light: #FFF9F5;
  --bg-dark: #1A1520;
  --text-primary-light: #3D2C3A;
  --text-secondary-light: #6B5568;
  --text-heading-light: #2D1B2E;
  --text-link-light: #B84A8C;
  --border-light: #F0D9E8;
  --card-bg-light: rgba(255, 255, 255, 0.65);
  --card-bg-solid-light: #FFFFFF;
  --hero-grad-light: linear-gradient(135deg, #FFE5F1 0%, #FFD6E8 40%, #FFC7DF 100%);
  --btn-bg: linear-gradient(135deg, #FF6B9D, #C4457E);
  --btn-text: #FFFFFF;
  --footer-bg: #2D1B2E;
  --footer-text: #F5E1EC;
  --shadow-light: 0 8px 32px rgba(180, 70, 120, 0.08);
  --glass-light: rgba(255, 255, 255, 0.6);
  --glass-border-light: rgba(255, 255, 255, 0.8);

  /* 暗色模式 */
  --text-primary-dark: #F0E6EE;
  --text-secondary-dark: #CDB8C8;
  --text-heading-dark: #FFFFFF;
  --text-link-dark: #FFA8D4;
  --border-dark: #4A3548;
  --card-bg-dark: rgba(45, 27, 46, 0.6);
  --card-bg-solid-dark: #2D1B2E;
  --hero-grad-dark: linear-gradient(135deg, #2D1B2E 0%, #3A2340 50%, #4A2A50 100%);
  --btn-bg-dark: linear-gradient(135deg, #FF6B9D, #C4457E);
  --footer-bg-dark: #1A1520;
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-dark: rgba(45, 27, 46, 0.6);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
}

* {
  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', 'Microsoft YaHei', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary-light);
  line-height: 1.75;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFB3D1, #E08AB4);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6B4A6B, #4A3548);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ===== 排版 ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading-light);
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
  word-break: break-word;
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6 {
  color: var(--text-heading-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #FF6B9D, #FFB3D1);
  border-radius: 2px;
}

body.dark h2 {
  border-bottom-color: var(--border-dark);
}

h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

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

body.dark p {
  color: var(--text-primary-dark);
}

a {
  color: var(--text-link-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

body.dark a {
  color: var(--text-link-dark);
}

a:hover {
  color: #FF6B9D;
  border-bottom-color: currentColor;
  text-decoration: none;
}

body.dark a:hover {
  color: #FFA8D4;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary-light);
}

body.dark ul, body.dark ol {
  color: var(--text-primary-dark);
}

li {
  margin-bottom: 0.4rem;
}

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

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

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-light);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border-light);
  transition: all 0.4s ease;
}

body.dark .navbar {
  background: var(--glass-dark);
  border-bottom-color: var(--glass-border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  gap: 1rem;
}

.logo {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B9D, #C4457E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.dark .logo {
  background: linear-gradient(135deg, #FFA8D4, #FF6B9D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  transition: all 0.3s ease;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary-light);
  padding: 0.4rem 0.2rem;
  position: relative;
  border-bottom: none;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B9D, #FFB3D1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a:hover {
  color: #FF6B9D;
  border-bottom: none;
}

body.dark .nav-links a:hover {
  color: #FFA8D4;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-heading-light);
  transition: transform 0.3s ease;
  line-height: 1;
}

body.dark .menu-toggle {
  color: var(--text-heading-dark);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 0.3rem 0.8rem;
  background: var(--card-bg-solid-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.search-box:focus-within {
  border-color: #FF6B9D;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

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

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

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

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

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-primary-light);
  transition: transform 0.3s ease;
  padding: 0.2rem;
}

body.dark .search-box button {
  color: var(--text-primary-dark);
}

.search-box button:hover {
  transform: scale(1.2);
  color: #FF6B9D;
}

/* 暗色模式切换按钮 */
.dark-mode-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-heading-light);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .dark-mode-btn {
  color: var(--text-heading-dark);
}

.dark-mode-btn:hover {
  transform: rotate(20deg) scale(1.15);
  background: rgba(255, 107, 157, 0.1);
}

/* ===== Hero 区域 ===== */
.hero {
  background: var(--hero-grad-light);
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  text-align: center;
  border-radius: 0 0 50px 50px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

body.dark .hero {
  background: var(--hero-grad-dark);
}

.hero::before {
  content: '🍬';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 12rem;
  opacity: 0.06;
  transform: rotate(20deg);
  pointer-events: none;
}

.hero::after {
  content: '💖';
  position: absolute;
  bottom: -40px;
  left: -20px;
  font-size: 10rem;
  opacity: 0.05;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #2D1B2E;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

body.dark .hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #5A3D58;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

body.dark .hero p {
  color: #E0D0DE;
}

/* ===== 按钮 ===== */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
  color: #FFFFFF;
  border-bottom: none;
}

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

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

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

.card {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

body.dark .card {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B9D, #FFB3D1, #FF6B9D);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 40px rgba(180, 70, 120, 0.15);
  border-color: #FFB3D1;
}

body.dark .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: #6B4A6B;
}

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

.card h3 {
  color: var(--text-heading-light);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

body.dark .card h3 {
  color: var(--text-heading-dark);
}

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

body.dark .card p {
  color: var(--text-primary-dark);
}

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

.article-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0.5rem;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding-left: 1rem;
  padding-right: 1rem;
}

body.dark .article-item {
  border-bottom-color: var(--border-dark);
}

.article-item:hover {
  background: rgba(255, 107, 157, 0.04);
  padding-left: 1.5rem;
  border-left: 3px solid #FF6B9D;
}

body.dark .article-item:hover {
  background: rgba(255, 107, 157, 0.08);
}

.article-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.article-item:hover h3 {
  color: #FF6B9D;
}

body.dark .article-item:hover h3 {
  color: #FFA8D4;
}

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

body.dark .article-item .meta {
  color: var(--text-secondary-dark);
}

.article-item p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.article-item a {
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
}

.article-item a:hover {
  gap: 0.6rem;
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--card-bg-light);
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

body.dark .faq-item {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.faq-item:hover {
  border-color: #FFB3D1;
  transform: translateX(4px);
}

body.dark .faq-item:hover {
  border-color: #6B4A6B;
}

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

body.dark .faq-question {
  color: var(--text-heading-dark);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #FF6B9D;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 0.8rem;
  color: var(--text-primary-light);
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

body.dark .faq-answer {
  color: var(--text-primary-dark);
  border-top-color: var(--border-dark);
}

/* ===== 表格 ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  background: var(--card-bg-solid-light);
  transition: background 0.3s ease;
}

body.dark table {
  background: var(--card-bg-solid-dark);
  box-shadow: var(--shadow-dark);
}

th, td {
  padding: 0.9rem 1.2rem;
  border: none;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  transition: background 0.3s ease;
}

body.dark th, body.dark td {
  border-bottom-color: var(--border-dark);
}

th {
  background: linear-gradient(135deg, #FFF0F7, #FFE5F1);
  color: var(--text-heading-light);
  font-weight: 600;
  font-size: 0.95rem;
}

body.dark th {
  background: linear-gradient(135deg, #3A2340, #2D1B2E);
  color: var(--text-heading-dark);
}

td {
  color: var(--text-primary-light);
}

body.dark td {
  color: var(--text-primary-dark);
}

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

tr:hover td {
  background: rgba(255, 107, 157, 0.03);
}

body.dark tr:hover td {
  background: rgba(255, 107, 157, 0.08);
}

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

body.dark .breadcrumb {
  color: var(--text-secondary-dark);
}

.breadcrumb a {
  color: var(--text-link-light);
  border-bottom: none;
}

body.dark .breadcrumb a {
  color: var(--text-link-dark);
}

.breadcrumb a:hover {
  color: #FF6B9D;
  border-bottom: none;
}

.breadcrumb span {
  font-weight: 500;
}

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

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

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B9D, #FFB3D1, #C4457E, #FF6B9D);
  background-size: 300% 100%;
  animation: gradientMove 6s ease infinite;
}

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

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

.footer-grid h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #FF6B9D, #FFB3D1);
  border-radius: 2px;
}

.footer-grid a {
  color: var(--footer-text);
  display: inline-block;
  margin-bottom: 0.5rem;
  border-bottom: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-grid a:hover {
  color: #FFB3D1;
  transform: translateX(4px);
  border-bottom: none;
}

.copyright {
  text-align: center;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.1);
}

/* ===== 返回顶部按钮 ===== */
#backTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--btn-bg);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  display: none;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  line-height: 1;
}

#backTop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

/* ===== 滚动动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

/* ===== 联系信息 ===== */
#contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

#contact .contact-card {
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body.dark #contact .contact-card {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}

#contact .contact-card:hover {
  transform: translateY(-4px);
  border-color: #FFB3D1;
}

body.dark #contact .contact-card:hover {
  border-color: #6B4A6B;
}

#contact .contact-card h4 {
  margin-bottom: 0.5rem;
  color: #FF6B9D;
}

body.dark #contact .contact-card h4 {
  color: #FFA8D4;
}

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

/* ===== 友情链接区域 ===== */
.friend-links {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

body.dark .friend-links {
  border-top-color: var(--border-dark);
}

.friend-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  background: var(--card-bg-light);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 0.9rem;
  margin: 0.3rem;
  transition: all 0.3s ease;
  border-bottom: none;
}

body.dark .friend-links a {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}

.friend-links a:hover {
  background: linear-gradient(135deg, #FF6B9D, #C4457E);
  color: #FFFFFF;
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

body.dark .friend-links a:hover {
  color: #FFFFFF;
}

/* ===== 教程区域 ===== */
#howto ol {
  background: var(--card-bg-light);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark #howto ol {
  background: var(--card-bg-dark);
  border-color: var(--border-dark);
}

#howto ol li {
  padding: 0.4rem 0;
  position: relative;
}

#howto ol li::before {
  content: '🍬';
  position: absolute;
  left: -1.8rem;
  font-size: 0.8rem;
  top: 0.6rem;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav-inner {
    padding: 0.8rem 1.5rem;
  }
  
  .nav-links {
    gap: 1.2rem;
  }
  
  .search-box input {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-inner {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
    order: 3;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    align-items: flex-start;
  }
  
  body.dark .nav-links {
    background: var(--glass-dark);
    border-top-color: var(--border-dark);
  }
  
  .nav-links.active {
    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;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .search-box {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .search-box input {
    flex: 1;
    width: auto;
  }
  
  .hero {
    padding: 2.5rem 1.5rem;
    border-radius: 0 0 30px 30px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .article-item {
    padding: 1.2rem 0.5rem;
  }
  
  .article-item:hover {
    padding-left: 1rem;
  }
  
  .faq-item {
    padding: 1rem 1.2rem;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.7rem 0.8rem;
  }
  
  #backTop {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem 2rem;
  }
  
  .dark-mode-btn {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  #contact .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
}

/* ===== 性能优化：减少重绘 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 选中文字样式 ===== */
::selection {
  background: rgba(255, 107, 157, 0.3);
  color: var(--text-heading-light);
}

body.dark ::selection {
  background: rgba(255, 107, 157, 0.5);
  color: #FFFFFF;
}

/* ===== 聚焦可见性 ===== */
:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 打印样式 ===== */
@media print {
  .navbar, footer, #backTop, .btn, .search-box, .menu-toggle, .dark-mode-btn {
    display: none !important;
  }
  
  body {
    background: #FFFFFF;
    color: #000000;
  }
  
  .card, .faq-item, .article-item {
    box-shadow: none;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
  }
  
  a {
    color: #000000;
    text-decoration: underline;
  }
}
```