/* 重置与基础样式 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #f0f2f5; color: #1a1a2e; line-height: 1.6; transition: background 0.3s, color 0.3s; }

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  body { background: #0d0d1a; color: #e0e0e0; }
  .header-inner, .container, .product-card, .case-card, .faq-item, footer { background: rgba(255,255,255,0.05) !important; backdrop-filter: blur(10px); border-color: rgba(255,255,255,0.1) !important; }
  .hero-banner .banner-slide { background: linear-gradient(135deg, #0a0a1a, #12122a) !important; }
  .stat-item { background: rgba(255,255,255,0.05); }
  .partner-logos svg rect { fill: #333; }
  .partner-logos svg text { fill: #aaa; }
  .banner-prev, .banner-next, #back-to-top { background: rgba(255,255,255,0.1); }
  .faq-question { color: #e0e0e0; }
  .faq-answer { border-color: rgba(255,255,255,0.1); }
  a { color: #80bfff; }
  a:visited { color: #b380ff; }
}

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
section { padding: 1rem 0; }

/* 头部 */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(26,26,46,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0.5rem 1rem; }
.logo svg { display: block; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { color: #fff; text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0; transition: color 0.3s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #ffd700; transition: width 0.3s; }
nav a:hover::after, nav a:focus::after { width: 100%; }
nav a:hover, nav a:focus { color: #ffd700; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(26,26,46,0.95); backdrop-filter: blur(10px); padding: 1rem; gap: 0.5rem; }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
}

/* 首页横幅 */
.hero { padding-top: 60px; }
.hero-banner { position: relative; overflow: hidden; height: 70vh; min-height: 400px; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.8s ease; }
.banner-slide.active { opacity: 1; }
.banner-content { text-align: center; color: #fff; padding: 2rem; max-width: 800px; }
.banner-content h1, .banner-content h2 { font-size: 2.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.banner-content p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.btn { display: inline-block; padding: 0.8rem 2rem; background: #ffd700; color: #1a1a2e; text-decoration: none; border-radius: 50px; font-weight: 600; transition: transform 0.3s, box-shadow 0.3s; }
.btn:hover, .btn:focus { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,215,0,0.3); }
.banner-prev, .banner-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s; z-index: 10; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.6); }
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.banner-dots span.active { background: #ffd700; transform: scale(1.3); }
@media (max-width: 768px) {
  .hero-banner { height: 50vh; min-height: 300px; }
  .banner-content h1, .banner-content h2 { font-size: 1.8rem; }
  .banner-content p { font-size: 1rem; }
}

/* 通用标题 */
h2 { font-size: 2rem; margin-bottom: 1.5rem; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: #ffd700; margin-top: 0.5rem; border-radius: 2px; }
h3 { font-size: 1.4rem; margin: 1.5rem 0 1rem; }

/* 产品卡片 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin: 2rem 0; }
.product-card { background: #fff; border-radius: 20px; padding: 2rem; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(0,0,0,0.05); }
.product-card:hover, .product-card:focus-within { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.product-card svg { margin-bottom: 1rem; }
.product-card h3 { margin-bottom: 0.8rem; }
.product-card p { color: #666; font-size: 0.95rem; }
@media (prefers-color-scheme: dark) {
  .product-card p { color: #bbb; }
}

/* 案例卡片 */
.case-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 20px; padding: 1.5rem; margin: 1rem 0; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 1.5rem; transition: transform 0.3s; }
.case-card:hover { transform: translateX(5px); }
.case-card svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .case-card { flex-direction: column; text-align: center; }
}

/* 数据统计 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; text-align: center; margin: 2rem 0; }
.stat-item { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); padding: 2rem 1rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #ffd700; }
.stat-item span { font-size: 1.2rem; color: #ffd700; }
.stat-item p { margin-top: 0.5rem; font-size: 1rem; }

/* 合作伙伴 */
.partner-logos { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; align-items: center; margin: 2rem 0; }
.partner-logos svg { transition: transform 0.3s, filter 0.3s; }
.partner-logos svg:hover { transform: scale(1.1); filter: brightness(1.2); }

/* 评价 */
blockquote { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-left: 4px solid #ffd700; padding: 1.5rem; margin: 1.5rem 0; border-radius: 0 20px 20px 0; }
blockquote p { font-style: italic; font-size: 1.1rem; }
blockquote cite { display: block; margin-top: 0.5rem; color: #ffd700; font-style: normal; }

/* FAQ */
.faq-item { background: #fff; border-radius: 20px; margin: 1rem 0; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05); }
.faq-question { width: 100%; text-align: left; padding: 1.2rem 1.5rem; background: none; border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1a1a2e; transition: background 0.3s; }
.faq-question:hover { background: rgba(255,215,0,0.1); }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.faq-answer[hidden] { display: none; }

/* 使用指南 */
ol { padding-left: 1.5rem; margin: 1rem 0; }
ol li { margin: 0.5rem 0; }

/* 搜索 */
form[role="search"] { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
form[role="search"] label { font-weight: 600; }
form[role="search"] input[type="search"] { flex: 1; min-width: 200px; padding: 0.8rem 1rem; border: 2px solid #ddd; border-radius: 50px; font-size: 1rem; transition: border-color 0.3s; }
form[role="search"] input[type="search"]:focus { border-color: #ffd700; outline: none; }
form[role="search"] button { padding: 0.8rem 2rem; background: #ffd700; color: #1a1a2e; border: none; border-radius: 50px; font-weight: 600; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; }
form[role="search"] button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,215,0,0.3); }

/* 面包屑 */
#breadcrumb nav ol { display: flex; list-style: none; padding: 0; gap: 0.5rem; flex-wrap: wrap; }
#breadcrumb nav ol li::after { content: '›'; margin-left: 0.5rem; color: #999; }
#breadcrumb nav ol li:last-child::after { content: ''; }
#breadcrumb nav a { color: #ffd700; text-decoration: none; }
#breadcrumb nav a:hover { text-decoration: underline; }
#breadcrumb nav [aria-current="page"] { color: #999; }

/* 网站地图和友情链接 */
#sitemap ul, #friendship-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
#sitemap a, #friendship-links a { color: #ffd700; text-decoration: none; }
#sitemap a:hover, #friendship-links a:hover { text-decoration: underline; }

/* 联系我们 */
#contact ul { list-style: none; margin: 1rem 0; }
#contact ul li { padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
#contact ul li:last-child { border-bottom: none; }

/* 页脚 */
footer { background: #1a1a2e; color: #ccc; padding: 2rem 1rem; margin-top: 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-inner a { color: #ffd700; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-inner p { margin: 0.5rem 0; font-size: 0.9rem; }

/* 返回顶部 */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,215,0,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.3s, opacity 0.3s; opacity: 0; visibility: hidden; z-index: 999; }
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px); }

/* 滚动动画 (使用Intersection Observer的备用样式) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
section { animation: fadeInUp 0.6s ease both; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }

/* 响应式调整 */
@media (max-width: 768px) {
  .container { padding: 1.5rem 1rem; }
  h2 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logos { gap: 1rem; }
  form[role="search"] { flex-direction: column; }
  form[role="search"] input[type="search"] { width: 100%; }
  #sitemap ul, #friendship-links ul { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .banner-content h1, .banner-content h2 { font-size: 1.4rem; }
  .banner-content p { font-size: 0.9rem; }
}