/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a2e;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #0d0d1a;
  color: #e0e0e0;
}

/* 头部导航 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #f0c040;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-actions button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Hero 区域 */
.hero {
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d4059 50%, #0f3460 100%);
  color: #fff;
}

.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.banner-slide {
  display: none;
  padding: 4rem 2rem;
  text-align: center;
}

.banner-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.banner-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.banner-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background: #f0c040;
  color: #1a1a2e;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #f0c040;
  color: #f0c040;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(240, 192, 64, 0.4);
}

.banner-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.banner-controls button {
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.banner-controls button:hover {
  background: rgba(240, 192, 64, 0.8);
}

/* 通用区块 */
.section {
  padding: 4rem 2rem;
}

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

.bg-dark {
  background: #1a1a2e;
  color: #e0e0e0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* 毛玻璃卡片 */
.glass {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* 网格布局 */
.about-grid, .products-grid, .services-grid, .solutions-grid, .cases-grid, .testimonials-grid, .news-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card, .product-card, .service-card, .solution-card, .case-card, .testimonial-card, .news-card, .related-card {
  text-align: center;
}

.about-card svg, .product-card svg, .service-card svg, .solution-card svg, .case-card svg, .testimonial-card svg {
  margin-bottom: 1rem;
}

.news-card h3, .related-card h3 {
  margin: 1rem 0 0.5rem;
}

.news-card time {
  display: block;
  color: #999;
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
}

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

.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  color: inherit;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(240, 192, 64, 0.1);
}

.faq-icon {
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1rem;
}

/* 教程 */
.howto-content {
  max-width: 800px;
  margin: 0 auto;
}

.howto-content h3 {
  margin-top: 1.5rem;
  color: #f0c040;
}

.howto-content ul, .howto-content ol {
  margin-left: 2rem;
}

/* 联系 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.contact-qr svg {
  margin: 1rem auto;
  display: block;
}

/* 页脚 */
footer {
  background: #0d0d1a;
  color: #999;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #f0c040;
  text-decoration: none;
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #f0c040;
  color: #1a1a2e;
  border: none;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s;
  z-index: 999;
}

#backToTop.show {
  display: block;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }
  .section {
    padding: 2rem 1rem;
  }
}