/* ============================================
   大发娱乐平台 - style.css
   顶级在线互动娱乐与趣味挑战社区
   风格：现代科技 + 渐变 + 毛玻璃 + 暗色模式
   ============================================ */

/* === 全局重置与基础 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #1F2937;
  background: #F9FAFB;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

body.dark-mode {
  background: #0F172A;
  color: #E2E8F0;
}

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

a {
  color: #4F46E5;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #6366F1;
}

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

/* === 头部导航 === */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: background 0.4s ease, border-color 0.4s ease;
}
body.dark-mode header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo svg {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #4B5563;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}
body.dark-mode .nav-links a {
  color: #CBD5E1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.nav-links a.active,
.nav-links a:hover {
  color: #4F46E5;
}
body.dark-mode .nav-links a.active,
body.dark-mode .nav-links a:hover {
  color: #818CF8;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
}
body.dark-mode .nav-actions button {
  color: #CBD5E1;
}

.nav-actions button:hover {
  background: rgba(79, 70, 229, 0.08);
  transform: scale(1.05);
}
body.dark-mode .nav-actions button:hover {
  background: rgba(129, 140, 248, 0.12);
}

.nav-actions button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.menu-toggle {
  display: none;
}

/* 搜索栏 */
.search-bar {
  padding: 16px 24px;
  background: #F3F4F6;
  border-top: 1px solid #E5E7EB;
  transition: all 0.4s ease;
}
body.dark-mode .search-bar {
  background: #1E293B;
  border-top: 1px solid #334155;
}

.search-bar form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #D1D5DB;
  border-radius: 30px;
  font-size: 15px;
  background: white;
  color: #1F2937;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
body.dark-mode .search-bar input {
  background: #334155;
  color: #E2E8F0;
  border-color: #475569;
}

.search-bar input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}
body.dark-mode .search-bar input:focus {
  border-color: #818CF8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

.search-bar button {
  padding: 12px 28px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.search-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

/* 面包屑 */
.breadcrumb {
  padding: 12px 24px;
  background: #F3F4F6;
  font-size: 14px;
  border-bottom: 1px solid #E5E7EB;
}
body.dark-mode .breadcrumb {
  background: #1E293B;
  border-bottom: 1px solid #334155;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.breadcrumb li + li::before {
  content: '›';
  color: #9CA3AF;
  font-size: 18px;
}

.breadcrumb a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 500;
}
body.dark-mode .breadcrumb a {
  color: #818CF8;
}

.breadcrumb span {
  color: #6B7280;
}
body.dark-mode .breadcrumb span {
  color: #94A3B8;
}

/* === Hero Banner === */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.banner-slide.active {
  display: block;
  animation: fadeInBanner 0.8s ease-out;
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.banner-slide svg {
  width: 100%;
  height: auto;
  min-height: 600px;
  object-fit: cover;
}

.banner-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
  z-index: 10;
}

.banner-controls button {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.banner-controls button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
  border-color: white;
}

.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: white;
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* === 通用段落 === */
section {
  padding: 80px 0;
  position: relative;
}

section:nth-child(even) {
  background: #F3F4F6;
}
body.dark-mode section:nth-child(even) {
  background: #1E293B;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  color: #4F46E5;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
body.dark-mode h1 {
  color: #818CF8;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  letter-spacing: -0.01em;
}
body.dark-mode h2 {
  color: #F1F5F9;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  border-radius: 4px;
  margin: 16px auto 0;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1F2937;
}
body.dark-mode h3 {
  color: #E2E8F0;
}

p {
  margin-bottom: 16px;
  color: #4B5563;
  line-height: 1.7;
}
body.dark-mode p {
  color: #94A3B8;
}

/* === 毛玻璃卡片通用 === */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}
body.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12);
}
body.dark-mode .glass-card:hover {
  box-shadow: 0 16px 48px rgba(129, 140, 248, 0.1);
}

/* === About 关于我们 === */
.about {
  background: linear-gradient(180deg, #F9FAFB 0%, #EEF2FF 100%);
}
body.dark-mode .about {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

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

.about-card {
  composes: glass-card;
  text-align: center;
  padding: 40px 30px;
}

.about-card svg {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
}

.brand-history,
.corporate-culture {
  margin-top: 60px;
  padding: 40px;
  composes: glass-card;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.brand-history h2,
.corporate-culture h2 {
  text-align: left;
  margin-bottom: 20px;
}
.brand-history h2::after,
.corporate-culture h2::after {
  margin: 12px 0 0;
}

.team-members {
  margin-top: 60px;
}

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

.team-card {
  composes: glass-card;
  text-align: center;
  padding: 30px 20px;
}

.team-card svg {
  margin: 0 auto 16px;
  width: 80px;
  height: 80px;
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 14px;
  color: #6B7280;
}
body.dark-mode .team-card p {
  color: #94A3B8;
}

/* === Products 产品 === */
.products {
  background: white;
}
body.dark-mode .products {
  background: #0F172A;
}

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

.product-card {
  composes: glass-card;
  text-align: center;
  padding: 36px 24px;
}

.product-card svg {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 15px;
}

.product-advantages {
  margin-top: 60px;
  padding: 40px;
  composes: glass-card;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-advantages h2 {
  text-align: left;
  margin-bottom: 24px;
}
.product-advantages h2::after {
  margin: 12px 0 0;
}

.product-advantages ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-advantages li {
  padding: 12px 16px;
  background: rgba(79, 70, 229, 0.06);
  border-radius: 12px;
  font-size: 15px;
  color: #1F2937;
  display: flex;
  align-items: center;
  gap: 10px;
}
body.dark-mode .product-advantages li {
  background: rgba(129, 140, 248, 0.08);
  color: #E2E8F0;
}

.product-advantages li::before {
  content: '✓';
  color: #4F46E5;
  font-weight: bold;
  font-size: 18px;
}

/* === Services 服务 === */
.services {
  background: linear-gradient(180deg, #EEF2FF 0%, #F9FAFB 100%);
}
body.dark-mode .services {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

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

.service-card {
  composes: glass-card;
  text-align: center;
  padding: 36px 24px;
}

.service-card svg {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.solutions,
.scenarios {
  margin-top: 60px;
  padding: 40px;
  composes: glass-card;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.solutions h2,
.scenarios h2 {
  text-align: left;
  margin-bottom: 20px;
}
.solutions h2::after,
.scenarios h2::after {
  margin: 12px 0 0;
}

.scenarios ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.scenarios li {
  padding: 14px 18px;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 12px;
  font-size: 15px;
  color: #1F2937;
  border-left: 4px solid #4F46E5;
}
body.dark-mode .scenarios li {
  background: rgba(129, 140, 248, 0.06);
  color: #E2E8F0;
  border-left-color: #818CF8;
}

/* === Data Showcase 数据展示 === */
.data-showcase {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  padding: 80px 0;
}

.data-showcase h2 {
  color: white;
}
.data-showcase h2::after {
  background: rgba(255, 255, 255, 0.6);
}

.data-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}

.data-item {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 36px;
  border-radius: 24px;
  min-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.data-number {
  font-size: 44px;
  font-weight: 800;
  color: white;
  display: inline;
  letter-spacing: -0.02em;
}

.data-suffix {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 2px;
}

.data-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-top: 8px;
  font-weight: 500;
}

/* === Cases 案例 === */
.cases {
  background: white;
}
body.dark-mode .cases {
  background: #0F172A;
}

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

.case-card {
  composes: glass-card;
  overflow: hidden;
  padding: 0;
}

.case-card svg {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.case-card h3 {
  padding: 20px 24px 0;
  font-size: 20px;
}

.case-card p {
  padding: 8px 24px 24px;
  font-size: 15px;
}

/* === Clients 客户 === */
.clients {
  background: #F3F4F6;
}
body.dark-mode .clients {
  background: #1E293B;
}

.clients-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.client-logo {
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.client-logo:hover {
  opacity: 1;
  transform: scale(1.04);
}

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

.testimonial-card {
  composes: glass-card;
  text-align: center;
  padding: 36px 28px;
}

.testimonial-card svg {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 16px;
  color: #374151;
}
body.dark-mode .testimonial-card p {
  color: #CBD5E1;
}

.testimonial-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}
body.dark-mode .testimonial-card h4 {
  color: #E2E8F0;
}

.testimonial-card span {
  font-size: 14px;
  color: #6B7280;
}
body.dark-mode .testimonial-card span {
  color: #94A3B8;
}

/* === News 新闻 === */
.news {
  background: white;
}
body.dark-mode .news {
  background: #0F172A;
}

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

.news-card {
  composes: glass-card;
  overflow: hidden;
  padding: 0;
}

.news-card svg {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.news-card h3 {
  padding: 20px 24px 0;
  font-size: 18px;
  line-height: 1.4;
}

.news-card p {
  padding: 8px 24px 0;
  font-size: 15px;
}

.news-card time {
  display: block;
  padding: 12px 24px 20px;
  font-size: 13px;
  color: #6B7280;
}
body.dark-mode .news-card time {
  color: #94A3B8;
}

/* === FAQ === */
.faq {
  background: #F3F4F6;
}
body.dark-mode .faq {
  background: #1E293B;
}

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

.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 0;
  transition: border-color 0.3s ease;
}
body.dark-mode .faq-item {
  border-color: #334155;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1F2937;
  padding: 4px 0;
  transition: color 0.3s ease;
}
body.dark-mode .faq-question {
  color: #E2E8F0;
}

.faq-question:hover {
  color: #4F46E5;
}
body.dark-mode .faq-question:hover {
  color: #818CF8;
}

.faq-icon {
  font-size: 28px;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: #4F46E5;
}
body.dark-mode .faq-icon {
  color: #818CF8;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 16px 0 8px;
  font-size: 16px;
  color: #4B5563;
  line-height: 1.7;
}
body.dark-mode .faq-answer {
  color: #94A3B8;
}

/* === HowTo === */
.howto {
  background: white;
}
body.dark-mode .howto {
  background: #0F172A;
}

.howto-steps {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.howto-steps li {
  counter-increment: step;
  padding: 20px 24px 20px 60px;
  position: relative;
  margin-bottom: 16px;
  composes: glass-card;
  font-size: 16px;
  color: #1F2937;
}
body.dark-mode .howto-steps li {
  color: #E2E8F0;
}

.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.howto-steps li strong {
  color: #4F46E5;
}
body.dark-mode .howto-steps li strong {
  color: #818CF8;
}

/* === Contact 联系 === */
.contact {
  background: #F3F4F6;
}
body.dark-mode .contact {
  background: #1E293B;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  composes: glass-card;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info strong {
  color: #1F2937;
  min-width: 100px;
}
body.dark-mode .contact-info strong {
  color: #E2E8F0;
}

.map-placeholder {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  composes: glass-card;
  padding: 0;
}

.map-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

/* === Sitemap & Friends === */
.sitemap,
.friends {
  background: white;
}
body.dark-mode .sitemap,
body.dark-mode .friends {
  background: #0F172A;
}

.sitemap ul,
.friends ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.sitemap a,
.friends a {
  padding: 10px 20px;
  composes: glass-card;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
}

.sitemap a:hover,
.friends a:hover {
  color: white;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-color: transparent;
}

/* === 页脚 === */
footer {
  background: #1E293B;
  color: #E2E8F0;
  padding: 60px 0 30px;
  border-top: 1px solid #334155;
}
body.dark-mode footer {
  background: #0F172A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-about h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
}

.footer-about p {
  color: #94A3B8;
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-about strong {
  color: #CBD5E1;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer-links a:hover {
  color: #818CF8;
}

.footer-contact p {
  color: #94A3B8;
  font-size: 15px;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 24px;
  margin-top: 24px;
}

.footer-bottom p {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #818CF8;
}

/* === 返回顶部 === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.4);
}

.back-to-top:active {
  transform: scale(0.95);
}

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

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

/* 为卡片添加初始状态 */
.about-card,
.product-card,
.service-card,
.case-card,
.news-card,
.testimonial-card,
.team-card,
.data-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s ease, transform 0.4s ease;
}

.about-card.animate,
.product-card.animate,
.service-card.animate,
.case-card.animate,
.news-card.animate,
.testimonial-card.animate,
.team-card.animate,
.data-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画 */
.about-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3) { transition-delay: 0.2s; }

.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

.case-card:nth-child(2) { transition-delay: 0.1s; }
.case-card:nth-child(3) { transition-delay: 0.2s; }

.news-card:nth-child(2) { transition-delay: 0.1s; }
.news-card:nth-child(3) { transition-delay: 0.2s; }

.data-item:nth-child(2) { transition-delay: 0.1s; }
.data-item:nth-child(3) { transition-delay: 0.2s; }
.data-item:nth-child(4) { transition-delay: 0.3s; }

/* === 暗色模式额外调整 === */
body.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(51, 65, 85, 0.3);
}

body.dark-mode .nav-container {
  border-bottom: none;
}

body.dark-mode .search-bar input::placeholder {
  color: #64748B;
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  .nav-links a {
    font-size: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
  }
  body.dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid #334155;
  }

  .nav-links.open {
    display: flex;
  }

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

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(79, 70, 229, 0.06);
  }
  body.dark-mode .nav-links a:hover {
    background: rgba(129, 140, 248, 0.08);
  }

  .menu-toggle {
    display: flex;
  }

  .banner-controls {
    padding: 0 16px;
  }

  .banner-controls button {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .banner-dots {
    bottom: 16px;
    gap: 10px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 26px;
  }

  section {
    padding: 60px 0;
  }

  .about-grid,
  .products-grid,
  .services-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .product-advantages ul {
    grid-template-columns: 1fr;
  }

  .scenarios ul {
    grid-template-columns: 1fr;
  }

  .data-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .data-item {
    width: 100%;
    max-width: 280px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .howto-steps li {
    padding: 16px 16px 16px 52px;
    font-size: 15px;
  }

  .howto-steps li::before {
    width: 28px;
    height: 28px;
    font-size: 14px;
    left: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-container {
    padding: 12px 16px;
  }

  .logo svg {
    height: 36px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  .glass-card {
    padding: 24px 20px;
  }

  .about-card,
  .product-card,
  .service-card,
  .case-card,
  .news-card,
  .testimonial-card {
    padding: 24px 20px;
  }

  .brand-history,
  .corporate-culture,
  .product-advantages,
  .solutions,
  .scenarios {
    padding: 24px 20px;
  }

  .search-bar input {
    width: 100%;
    font-size: 14px;
  }

  .search-bar button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .banner-controls button {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* === 打印样式 === */
@media print {
  header,
  .back-to-top,
  .banner-controls,
  .banner-dots {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    backdrop-filter: none;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}