/* 51吃瓜 - 品牌官网 完整样式表 */
/* 风格：温馨自然、健康活力，以橙色/绿色为主调，结合毛玻璃与圆角卡片 */
/* 暗色模式支持，响应式布局，滚动动画与hover动画 */

/* ========== CSS变量与重置 ========== */
:root {
  --primary: #f5a623;
  --primary-dark: #e0941a;
  --secondary: #4caf50;
  --accent: #ff7043;
  --bg: #ffffff;
  --bg-alt: #f9f9f9;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

/* 暗色模式变量 */
[data-theme="dark"] {
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --text-lighter: #888;
  --border: #333;
  --shadow: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.5);
  --glass-bg: rgba(30,30,50,0.7);
  --glass-border: rgba(255,255,255,0.1);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ========== 导航栏 ========== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar .logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

#navbar .logo-area svg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

#navbar .logo-area span {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

#navbar .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

#navbar .nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

#navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

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

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

#navbar .search-box {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 16px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 180px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#navbar .search-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

#navbar .search-box::placeholder {
  color: var(--text-lighter);
}

#darkModeToggle {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform 0.2s;
  flex-shrink: 0;
}

#darkModeToggle:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 4px;
}

/* 移动菜单 */
#mobileMenu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
}

#mobileMenu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* ========== Banner轮播 ========== */
#home {
  position: relative;
  overflow: hidden;
  height: 420px;
  background: linear-gradient(135deg, #fef3e2 0%, #ffe0b2 100%);
}

#bannerContainer {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

#bannerContainer .banner-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  position: relative;
}

#bannerContainer .banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

#bannerContainer .banner-slide:nth-child(1) {
  background: linear-gradient(135deg, #f5a623 0%, #f7b731 50%, #f5a623 100%);
}

#bannerContainer .banner-slide:nth-child(2) {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 50%, #43a047 100%);
}

#bannerContainer .banner-slide:nth-child(3) {
  background: linear-gradient(135deg, #ff7043 0%, #ff8a65 50%, #f4511e 100%);
}

#bannerContainer .banner-slide h1,
#bannerContainer .banner-slide h2 {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

#bannerContainer .banner-slide p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), transform 0.2s;
  border: 2px solid transparent;
}

.banner-dots .dot.active {
  background: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.15);
}

.banner-dots .dot:hover {
  background: rgba(255,255,255,0.8);
  transform: scale(1.1);
}

/* ========== 通用节标题 ========== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  width: 100%;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.8;
}

/* ========== 关于我们 ========== */
#about {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

#about .about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--glass-shadow);
}

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

#about .about-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
  padding-bottom: 10px;
}

#about .about-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

#about .about-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
}

#about .brand-logo {
  margin-top: 48px;
  text-align: center;
}

#about .brand-logo svg {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

#about .brand-logo p {
  margin-top: 12px;
  color: var(--text-lighter);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ========== 产品 ========== */
#products {
  padding: 80px 24px;
  background: var(--bg-alt);
}

#products .products-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

#products .product-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

#products .product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

#products .product-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 14px rgba(245,166,35,0.3);
  transition: transform var(--transition);
}

#products .product-card:hover .icon-wrap {
  transform: scale(1.08) rotate(-5deg);
}

#products .product-card .icon-wrap svg {
  width: 36px;
  height: 36px;
}

#products .product-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

#products .product-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

#products .advantages {
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#products .advantages h3 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

#products .advantages ul {
  display: grid;
  gap: 12px;
}

#products .advantages ul li {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

#products .advantages ul li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

/* ========== 解决方案 ========== */
#solutions {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

#solutions .solution-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

#solutions .solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

#solutions .solution-card:nth-child(1) {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
}

#solutions .solution-card:nth-child(1)::before {
  background: var(--secondary);
}

#solutions .solution-card:nth-child(2) {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 1px solid #ffcc80;
}

#solutions .solution-card:nth-child(2)::before {
  background: var(--primary);
}

#solutions .solution-card:nth-child(3) {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid #90caf9;
}

#solutions .solution-card:nth-child(3)::before {
  background: #42a5f5;
}

#solutions .solution-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

#solutions .solution-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

#solutions .solution-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
}

#solutions .cases {
  margin-top: 48px;
}

#solutions .cases h3 {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

#solutions .cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#solutions .case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: var(--bg);
  transition: transform var(--transition), box-shadow var(--transition);
}

#solutions .case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#solutions .case-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

#solutions .case-card p strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

/* ========== 新闻中心 ========== */
#news {
  padding: 80px 24px;
  background: var(--bg-alt);
}

#news .news-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

#news article {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

#news article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

#news article h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

#news article time {
  font-size: 13px;
  color: var(--text-lighter);
  margin-bottom: 12px;
  display: block;
}

#news article p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

#news article a {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

#news article a:hover {
  gap: 8px;
}

#news article a::after {
  content: '→';
  transition: transform var(--transition);
}

/* ========== FAQ ========== */
#faq {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}

#faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
  background: var(--bg);
}

#faq details:hover {
  box-shadow: var(--shadow);
}

#faq details[open] {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

#faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
  background: var(--bg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

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

#faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

#faq details[open] summary {
  background: rgba(245,166,35,0.05);
  border-bottom: 1px solid var(--border);
}

#faq details p {
  padding: 16px 20px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  background: var(--bg);
}

/* ========== HowTo ========== */
#howto {
  padding: 80px 24px;
  background: var(--bg-alt);
}

#howto .howto-container {
  max-width: 800px;
  margin: 0 auto;
}

#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

#howto ol li {
  counter-increment: step;
  padding: 16px 20px 16px 56px;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  transition: transform var(--transition), box-shadow var(--transition);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

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

#howto ol li strong {
  color: var(--text);
}

#howto .summary-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(76,175,80,0.1));
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* ========== 页脚 ========== */
footer#contact {
  background: linear-gradient(135deg, #2c2c3e 0%, #1a1a2e 100%);
  color: #e0e0e0;
  padding: 48px 24px;
}

footer#contact .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}

footer#contact h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

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

footer#contact p {
  font-size: 14px;
  line-height: 2;
  color: #b0b0b0;
}

footer#contact a {
  color: #b0b0b0;
  transition: color var(--transition);
}

footer#contact a:hover {
  color: var(--primary);
}

footer#contact .footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  font-size: 13px;
  color: #888;
}

/* ========== 返回顶部 ========== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245,166,35,0.4);
  transition: transform 0.2s, box-shadow var(--transition);
  z-index: 100;
}

#backToTop:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245,166,35,0.5);
}

#backToTop:active {
  transform: scale(0.95);
}

/* ========== 滚动动画 ========== */
.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);
}

/* 为各卡片添加动画延迟 */
.about-card:nth-child(1),
.product-card:nth-child(1),
.solution-card:nth-child(1),
.case-card:nth-child(1),
.news-grid article:nth-child(1) {
  transition-delay: 0.05s;
}

.about-card:nth-child(2),
.product-card:nth-child(2),
.solution-card:nth-child(2),
.case-card:nth-child(2),
.news-grid article:nth-child(2) {
  transition-delay: 0.1s;
}

.about-card:nth-child(3),
.product-card:nth-child(3),
.solution-card:nth-child(3),
.case-card:nth-child(3),
.news-grid article:nth-child(3) {
  transition-delay: 0.15s;
}

.product-card:nth-child(4),
.news-grid article:nth-child(4) {
  transition-delay: 0.2s;
}

.news-grid article:nth-child(5) {
  transition-delay: 0.25s;
}

.news-grid article:nth-child(6) {
  transition-delay: 0.3s;
}

.news-grid article:nth-child(7) {
  transition-delay: 0.35s;
}

.news-grid article:nth-child(8) {
  transition-delay: 0.4s;
}

.news-grid article:nth-child(9) {
  transition-delay: 0.45s;
}

.news-grid article:nth-child(10) {
  transition-delay: 0.5s;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  #navbar .nav-links a {
    font-size: 14px;
  }
  
  #navbar .search-box {
    width: 140px;
  }
  
  #bannerContainer .banner-slide h1,
  #bannerContainer .banner-slide h2 {
    font-size: 36px;
  }
  
  #bannerContainer .banner-slide p {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 0 16px;
    height: 56px;
  }
  
  #navbar .nav-links {
    display: none;
  }
  
  #navbar .search-box {
    display: none;
  }
  
  #menuToggle {
    display: block;
  }
  
  #mobileMenu {
    display: none;
  }
  
  #home {
    height: 320px;
  }
  
  #bannerContainer .banner-slide h1,
  #bannerContainer .banner-slide h2 {
    font-size: 28px;
  }
  
  #bannerContainer .banner-slide p {
    font-size: 16px;
  }
  
  .banner-dots .dot {
    width: 10px;
    height: 10px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .section-subtitle {
    font-size: 14px;
    padding: 0 16px;
  }
  
  #about,
  #products,
  #solutions,
  #news,
  #faq,
  #howto {
    padding: 48px 16px;
  }
  
  #about .about-grid,
  #products .products-grid,
  #solutions .solutions-grid,
  #news .news-grid {
    gap: 16px;
  }
  
  #products .advantages ul li {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  #howto ol li {
    padding: 14px 14px 14px 48px;
    font-size: 14px;
  }
  
  #howto ol li::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
    left: 12px;
  }
  
  footer#contact .footer-grid {
    gap: 24px;
  }
  
  #backToTop {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  #navbar .logo-area span {
    font-size: 18px;
  }
  
  #navbar .logo-area svg {
    width: 30px;
    height: 30px;
  }
  
  #home {
    height: 260px;
  }
  
  #bannerContainer .banner-slide h1,
  #bannerContainer .banner-slide h2 {
    font-size: 22px;
  }
  
  #bannerContainer .banner-slide p {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  #about .about-card {
    padding: 20px 16px;
  }
  
  #about .about-card h3 {
    font-size: 18px;
  }
  
  #products .product-card {
    padding: 20px 16px;
  }
  
  #products .product-card h3 {
    font-size: 18px;
  }
  
  #solutions .solution-card {
    padding: 20px 16px;
  }
  
  #news article {
    padding: 16px;
  }
  
  #faq summary {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  #faq details p {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  footer#contact {
    padding: 32px 16px;
  }
  
  footer#contact h4 {
    font-size: 16px;
  }
}

/* ========== 暗色模式额外适配 ========== */
[data-theme="dark"] #navbar {
  border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] #home {
  background: linear-gradient(135deg, #2c2c3e, #1a1a2e);
}

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

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

[data-theme="dark"] #about .about-card,
[data-theme="dark"] #products .product-card,
[data-theme="dark"] #solutions .case-card,
[data-theme="dark"] #news article,
[data-theme="dark"] #faq details,
[data-theme="dark"] #howto ol li {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] #solutions .solution-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(76,175,80,0.05));
  border-color: rgba(76,175,80,0.3);
}

[data-theme="dark"] #solutions .solution-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05));
  border-color: rgba(245,166,35,0.3);
}

[data-theme="dark"] #solutions .solution-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(66,165,245,0.15), rgba(66,165,245,0.05));
  border-color: rgba(66,165,245,0.3);
}

[data-theme="dark"] #products .advantages ul li {
  background: rgba(255,255,255,0.05);
}

[data-theme="dark"] #howto .summary-box {
  background: rgba(245,166,35,0.08);
  border-left-color: var(--primary);
}

[data-theme="dark"] #faq details[open] summary {
  background: rgba(245,166,35,0.1);
}

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

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ========== 打印样式 ========== */
@media print {
  #navbar,
  #backToTop,
  #mobileMenu,
  .banner-dots {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  #home {
    height: auto;
    padding: 40px 20px;
    background: #f5a623 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  #home .banner-slide h1,
  #home .banner-slide h2,
  #home .banner-slide p {
    color: #fff !important;
  }
}