/* ===== 抖漫 style.css - 完整样式表 ===== */
/* ---------- 基础变量与重置 ---------- */
:root {
  --primary: #2b6de8;
  --primary-light: #5b8ef0;
  --primary-dark: #1e4fae;
  --secondary: #e86b2b;
  --accent: #2ba6e8;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --blur: blur(20px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #2b6de8 0%, #7c3aed 50%, #e86b2b 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 暗色模式变量 */
[data-theme="dark"] {
  --primary: #5b8ef0;
  --primary-light: #7ba5f5;
  --primary-dark: #3d6fd9;
  --secondary: #f07a3d;
  --accent: #4db8e8;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #1a2332 100%);
}

/* ---------- 全局样式 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1rem;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
  border: 2px solid var(--bg);
}

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

/* 选中状态 */
::selection {
  background: var(--primary);
  color: #fff;
}

/* 通用容器 */
section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
}

/* 通用标题样式 */
section > h2 {
  position: relative;
  padding-left: 20px;
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

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

.main-nav a:hover {
  color: var(--primary);
  background: rgba(43, 109, 232, 0.08);
}

.main-nav a:hover::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-actions button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.nav-actions button:hover::before {
  width: 40px;
  height: 40px;
}

.nav-actions button:hover {
  color: var(--primary);
  background: rgba(43, 109, 232, 0.08);
}

.nav-actions svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none !important;
}

/* 搜索框 */
.search-box {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(43, 109, 232, 0.1);
}

.search-box button {
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 109, 232, 0.3);
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 109, 232, 0.4);
}

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: clamp(300px, 60vh, 500px);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
}

/* 轮播指示器 */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

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

.slider-dots .dot.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* Hero 标题 */
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 30px 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
  animation: zoomIn 0.8s ease;
}

.hero-caption h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-weight: 800;
}

.hero-caption p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.95;
  margin-bottom: 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* ---------- 品牌介绍 ---------- */
.brand-intro {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  margin: 40px auto;
  padding: 60px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.brand-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43, 109, 232, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.brand-intro h2 {
  margin-bottom: 30px;
}

.brand-intro p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.culture {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-top: 30px;
  border: 1px solid var(--border);
}

.culture h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.culture ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.culture li {
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.culture li:hover {
  transform: translateX(5px);
  border-left-color: var(--secondary);
}

/* ---------- 产品区域 ---------- */
.products {
  padding: 60px 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.product-grid article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-grid article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-grid article:hover::before {
  transform: scaleX(1);
}

.product-grid h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.product-grid p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- 解决方案 ---------- */
.solutions {
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.05) 0%, rgba(232, 107, 43, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 40px auto;
  border: 1px solid var(--border);
}

.solutions p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- 客户评价 ---------- */
.testimonials {
  padding: 60px 24px;
}

.testimonials blockquote {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px 40px;
  margin: 20px 0;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
}

.testimonials blockquote:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

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

.testimonials blockquote::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50% 0 var(--radius-md) 0;
  opacity: 0.1;
}

/* ---------- 文章区域 ---------- */
.content-hub {
  padding: 60px 24px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.article-list article {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-list article::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-list article:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.article-list article:hover::after {
  opacity: 1;
}

.article-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.article-list h3 a {
  color: var(--text);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.article-list h3 a:hover {
  color: var(--primary);
}

.article-list time {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-list time::before {
  content: '📅';
  font-size: 0.9rem;
}

.article-list p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ---------- FAQ 区域 ---------- */
.faq-section {
  padding: 60px 24px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 20px;
}

.faq-answer p {
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ---------- HowTo 区域 ---------- */
.howto {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 40px auto;
  box-shadow: var(--shadow-md);
}

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

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

.howto ol {
  margin: 20px 0;
  padding-left: 20px;
}

.howto ol li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
  counter-increment: step-counter;
  position: relative;
  padding-left: 45px;
}

.howto ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.howto ol li:hover {
  transform: translateX(5px);
  border-left-color: var(--secondary);
}

/* ---------- 联系区域 ---------- */
.contact {
  padding: 60px 24px;
}

.contact p {
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.contact p:hover {
  color: var(--text);
  transform: translateX(5px);
}

.contact p::before {
  content: '▸';
  color: var(--primary);
  font-size: 1rem;
}

/* ---------- 友情链接 ---------- */
.friend-links {
  padding: 40px 24px;
  text-align: center;
}

.friend-links h2 {
  text-align: center;
  margin-bottom: 25px;
  padding-left: 0;
}

.friend-links h2::before {
  display: none;
}

.friend-links a {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.friend-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 50px 24px;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-light);
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(43, 109, 232, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(43, 109, 232, 0.4);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1024px) {
  section {
    padding: 50px 20px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-container {
    padding: 10px 16px;
  }
  
  .main-nav a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 16px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .article-list {
    grid-template-columns: 1fr;
  }
  
  .nav-container {
    flex-wrap: wrap;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }
  
  .main-nav.open {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  
  .main-nav a {
    padding: 14px;
    border-radius: var(--radius-sm);
  }
  
  .main-nav a::after {
    display: none;
  }
  
  .main-nav a:hover {
    background: rgba(43, 109, 232, 0.08);
  }
  
  .menu-toggle {
    display: flex !important;
  }
  
  .nav-actions {
    gap: 4px;
  }
  
  .hero-caption {
    padding: 20px;
    border-radius: 15px;
  }
  
  .hero-caption h1 {
    font-size: 1.5rem;
  }
  
  .hero-caption p {
    font-size: 1rem;
  }
  
  .brand-intro,
  .solutions,
  .howto {
    padding: 40px 25px;
    border-radius: var(--radius-md);
  }
  
  .testimonials blockquote {
    padding: 20px 25px;
    font-size: 1rem;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 16px;
  }
  
  .search-box {
    flex-direction: column;
    padding: 16px;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .search-box button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  section {
    padding: 30px 12px;
  }
  
  .nav-container {
    padding: 8px 12px;
  }
  
  .logo img {
    width: 90px;
    height: auto;
  }
  
  .nav-actions button {
    padding: 8px;
  }
  
  .hero-caption h1 {
    font-size: 1.3rem;
  }
  
  .hero-caption p {
    font-size: 0.9rem;
  }
  
  .banner-slider {
    height: 250px;
  }
  
  .product-grid article {
    padding: 25px;
  }
  
  .article-list article {
    padding: 20px;
  }
  
  .culture {
    padding: 20px;
  }
  
  .culture li {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .howto ol li {
    padding: 10px 12px 10px 40px;
  }
  
  .howto ol li::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  
  .contact p {
    font-size: 0.9rem;
  }
  
  .friend-links a {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  
  .site-footer {
    padding: 30px 16px;
  }
}

/* ---------- 暗色模式适配 ---------- */
[data-theme="dark"] .nav-actions button:hover,
[data-theme="dark"] .main-nav a:hover {
  background: rgba(91, 142, 240, 0.1);
}

[data-theme="dark"] .slider-dots .dot {
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .slider-dots .dot.active {
  background: var(--primary-light);
}

[data-theme="dark"] .hero-caption {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .testimonials blockquote::before {
  color: var(--primary-light);
}

[data-theme="dark"] .faq-question::after {
  color: var(--primary-light);
}

[data-theme="dark"] .back-to-top {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  box-shadow: 0 4px 15px rgba(91, 142, 240, 0.3);
}

/* ---------- 打印样式 ---------- */
@media print {
  .site-header,
  .search-box,
  .banner-slider,
  .slider-dots,
  .breadcrumb,
  .back-to-top {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  section {
    margin: 20px 0;
    padding: 20px;
    box-shadow: none;
    border: none;
  }
  
  .product-grid article,
  .article-list article,
  .faq-item,
  .testimonials blockquote {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ---------- 无障碍优化 ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --text: #000;
    --text-light: #1a1a1a;
    --bg: #fff;
    --bg-card: #fff;
    --border: #000;
  }
  
  [data-theme="dark"] {
    --text: #fff;
    --text-light: #f0f0f0;
    --bg: #000;
    --bg-card: #0a0a0a;
    --border: #666;
  }
}

/* ---------- 工具类 ---------- */
.text-center {
  text-align: center;
}

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

.bg-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--secondary));
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  z-index: 10;
  animation: float 2s ease-in-out infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* 加载动画 */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 渐变文本 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 毛玻璃卡片 */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 30px;
}

[data-theme="dark"] .glass-card {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
}

/* 响应式字体 */
@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }
}

/* 移动端触控优化 */
@media (hover: none) {
  .product-grid article:hover {
    transform: none;
  }
  
  .article-list article:hover {
    transform: none;
  }
  
  .culture li:hover {
    transform: none;
  }
}

/* 动画性能优化 */
.animate-on-scroll,
.slide,
.product-grid article,
.article-list article,
.faq-item,
.testimonials blockquote {
  will-change: transform, opacity;
}

/* 滚动条优化 */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}

/* 暗色模式下的图片适配 */
[data-theme="dark"] img {
  filter: brightness(0.9) contrast(1.1);
}

/* 打印时的链接显示 */
@media print {
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state::before {
  content: '📚';
  display: block;
  font-size: 3rem;
  margin-bottom: 20px;
}

/* 错误状态 */
.error-state {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: var(--radius-md);
  padding: 30px;
  color: #c00;
  text-align: center;
  margin: 20px 0;
}

[data-theme="dark"] .error-state {
  background: #3a1a1a;
  border-color: #5a2a2a;
  color: #ff6b6b;
}

/* 成功状态 */
.success-state {
  background: #efd;
  border: 1px solid #ceb;
  border-radius: var(--radius-md);
  padding: 30px;
  color: #080;
  text-align: center;
  margin: 20px 0;
}

[data-theme="dark"] .success-state {
  background: #1a3a1a;
  border-color: #2a5a2a;
  color: #6bff6b;
}