/* ===== 糖心vlog 全局样式 ===== */
:root {
  --primary: #f8a5c2;
  --primary-dark: #e5739f;
  --primary-light: #ffd6e5;
  --bg: #fff;
  --bg-soft: #faf7f8;
  --bg-card: #faf7f8;
  --text: #222;
  --text-muted: #888;
  --text-light: #666;
  --border: #eee;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(248,165,194,0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-bg: rgba(255,255,255,0.85);
  --footer-bg: #2d2d2d;
  --footer-text: #ccc;
  --footer-link: #aaa;
  --footer-heading: #fff;
  --gradient-hero-1: linear-gradient(135deg, #ffecd2, #fcb69f);
  --gradient-hero-2: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  --gradient-hero-3: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.3);
}

/* 暗色模式变量 */
body.dark {
  --bg: #1e1e1e;
  --bg-soft: #2a2a2a;
  --bg-card: #2a2a2a;
  --text: #ddd;
  --text-muted: #999;
  --text-light: #bbb;
  --border: #444;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.5);
  --header-bg: rgba(42,42,42,0.9);
  --footer-bg: #1a1a1a;
  --footer-text: #aaa;
  --footer-link: #888;
  --footer-heading: #eee;
  --glass-bg: rgba(30,30,30,0.6);
  --glass-border: rgba(255,255,255,0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

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

img, svg, video {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

input {
  font-family: inherit;
}

/* ===== 辅助类 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

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

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

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

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

/* ===== 导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

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

.nav-brand svg {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(248, 165, 194, 0.3);
  transition: transform 0.3s ease;
}

.nav-brand a:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

.brand-name {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 2px;
  transition: color 0.3s ease;
}

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

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

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

.nav-search form {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(248, 165, 194, 0.2);
}

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

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

.nav-search input:focus {
  width: 200px;
}

.nav-search button {
  background: var(--primary);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.dark-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.dark-toggle:hover {
  background: var(--primary-light);
  transform: rotate(20deg) scale(1.1);
}

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

.menu-toggle:hover {
  background: var(--bg-soft);
}

/* ===== Hero 轮播 ===== */
.hero-slider {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  background: var(--gradient-hero-1);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transform: scale(1.02);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-content {
  max-width: 600px;
  padding: 40px 50px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.8s ease both;
}

.slide-content h1,
.slide-content h2 {
  font-size: 2.6rem;
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
}

.slide-content p {
  font-size: 1.15rem;
  color: #444;
  margin: 12px 0 24px;
  line-height: 1.8;
}

.btn-light {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 12px 36px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-light:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 轮播指示器（可选） */
.hero-slider::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  animation: sliderProgress 5s infinite;
}

@keyframes sliderProgress {
  0% { width: 0; }
  100% { width: 60px; }
}

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

/* ===== 通用区块 ===== */
.brand-intro,
.topic-cluster,
.testimonials,
.article-hub,
.faq-section,
.howto,
.contact-section {
  padding: 70px 0;
  position: relative;
}

.brand-intro {
  background: var(--bg);
}

.topic-cluster {
  background: var(--bg-soft);
}

.testimonials {
  background: var(--bg);
}

.article-hub {
  background: var(--bg-soft);
}

.faq-section {
  background: var(--bg);
}

.howto {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.contact-section {
  background: var(--bg-soft);
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  color: var(--text);
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
  margin: 12px auto 0;
}

h3 {
  color: var(--text);
  font-weight: 700;
}

/* ===== 品牌介绍 ===== */
.brand-intro p {
  max-width: 800px;
  margin: 0 auto 16px;
  color: var(--text-light);
  line-height: 1.9;
  text-align: center;
}

.brand-intro strong {
  color: var(--primary);
}

/* ===== 主题集群卡片 ===== */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cluster-item {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  border-left: 6px solid var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.cluster-item::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cluster-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-dark);
}

.cluster-item:hover::before {
  opacity: 0.3;
}

.cluster-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cluster-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ===== 案例评价 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

blockquote {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  font-style: italic;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  position: absolute;
  top: -10px;
  left: 15px;
  opacity: 0.3;
  font-family: Georgia, serif;
}

blockquote:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}

blockquote p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ===== 文章列表 ===== */
.article-list {
  max-width: 900px;
  margin: 0 auto;
}

.post-item {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.post-item:hover {
  background: var(--bg-card);
  padding-left: 28px;
  box-shadow: var(--shadow);
}

.post-item h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.post-item h3 a {
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.post-item h3 a:hover {
  color: var(--primary);
}

.post-item h3 a::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.3s ease, margin-left 0.3s ease;
  display: inline-block;
}

.post-item h3 a:hover::after {
  opacity: 1;
  margin-left: 4px;
}

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

.meta::before {
  content: '📅';
  font-size: 0.8rem;
}

.post-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--bg-card);
  padding: 18px 22px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.faq-list details:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

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

.faq-list details p {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.4s ease;
}

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

/* ===== HowTo 教程 ===== */
.howto .container {
  max-width: 800px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.howto h2 {
  text-align: left;
}

.howto h2::after {
  margin: 12px 0 0;
}

.howto p {
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.8;
}

.howto strong {
  color: var(--primary);
}

.howto ol {
  margin: 20px 0 20px 20px;
  counter-reset: howto;
}

.howto ol li {
  padding: 10px 0 10px 10px;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  line-height: 1.7;
  position: relative;
  counter-increment: howto;
  padding-left: 40px;
}

.howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

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

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid > div {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-grid p {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-grid strong {
  color: var(--text);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-links h4 {
  color: var(--footer-heading);
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-links a {
  color: var(--footer-link);
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '›';
  margin-right: 6px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.footer-links a:hover::before {
  opacity: 1;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--footer-text);
  line-height: 1.8;
}

.copyright + p {
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-text);
  opacity: 0.7;
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(248, 165, 194, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(248, 165, 194, 0.5);
}

/* ===== 暗色模式调整 ===== */
body.dark .nav-links a {
  color: var(--text);
}

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

body.dark .slide-content h1,
body.dark .slide-content h2 {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark .slide-content p {
  color: rgba(255, 255, 255, 0.9);
}

body.dark .btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

body.dark .btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

body.dark .nav-search form {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

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

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

body.dark .cluster-item,
body.dark .faq-list details,
body.dark blockquote,
body.dark .contact-grid > div,
body.dark .howto .container {
  background: var(--bg-card);
  border-color: var(--border);
}

body.dark .post-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 16px;
  }

  .nav-links {
    gap: 16px;
  }

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

  .nav-search input:focus {
    width: 150px;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 2.2rem;
  }

  .hero-slider {
    height: 55vh;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    gap: 0;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

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

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

  .nav-search {
    order: 2;
  }

  .nav-search form {
    width: 100%;
  }

  .nav-search input {
    width: 100%;
    flex: 1;
  }

  .nav-search input:focus {
    width: 100%;
  }

  .nav-brand {
    order: 1;
  }

  .dark-toggle {
    order: 4;
  }

  .hero-slider {
    height: 50vh;
    min-height: 300px;
  }

  .slide-content {
    padding: 24px 20px;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 1.7rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .brand-intro,
  .topic-cluster,
  .testimonials,
  .article-hub,
  .faq-section,
  .howto,
  .contact-section {
    padding: 50px 0;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .cluster-grid,
  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .howto .container {
    padding: 24px 20px;
  }

  .howto ol li {
    padding-left: 35px;
  }

  .howto ol li::before {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

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

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

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

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

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-brand svg {
    width: 32px;
    height: 32px;
  }

  .hero-slider {
    height: 45vh;
    min-height: 260px;
  }

  .slide-content {
    padding: 20px 16px;
  }

  .slide-content h1,
  .slide-content h2 {
    font-size: 1.4rem;
  }

  .slide-content p {
    font-size: 0.9rem;
    margin: 8px 0 16px;
  }

  .btn-light {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .cluster-item {
    padding: 20px 16px;
  }

  blockquote {
    padding: 20px;
  }

  .post-item {
    padding: 16px 12px;
  }

  .faq-list details {
    padding: 14px 16px;
  }

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

/* ===== 动画 ===== */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动进入动画 */
.brand-intro,
.topic-cluster,
.testimonials,
.article-hub,
.faq-section,
.howto,
.contact-section {
  animation: fadeInUp 0.8s ease both;
}

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

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

/* ===== 打印样式 ===== */
@media print {
  .site-header,
  .hero-slider,
  .back-to-top,
  .dark-toggle,
  .menu-toggle,
  .nav-search {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: 100%;
  }
}