/* ===== C7娱乐官方网站 style.css ===== */
/* 全局重置与变量 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0b1a;
  --bg2: #1a1530;
  --text: #e8e0f0;
  --text2: #b0a8c8;
  --accent: #6c3bd9;
  --accent2: #9b6eff;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: rgba(0,0,0,0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.25,0.1,0.25,1);
}

[data-theme="light"] {
  --bg: #f5f0ff;
  --bg2: #ede7ff;
  --text: #1a1030;
  --text2: #5a4a7a;
  --glass: rgba(108,59,217,0.06);
  --glass-border: rgba(108,59,217,0.15);
  --shadow: rgba(108,59,217,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

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

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

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 通用区块 */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent2), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 600px;
  margin-bottom: 48px;
}

/* 卡片 */
.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s;
  box-shadow: 0 8px 32px var(--shadow);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow);
  background: rgba(108,59,217,0.08);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(108,59,217,0.4);
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(108,59,217,0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent2);
  color: var(--accent2);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 网格布局 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 60px 0;
  }
}

/* ===== 头部导航 ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15,11,26,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}

[data-theme="light"] header {
  background: rgba(245,240,255,0.85);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent2), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

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

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

.nav-links a.active {
  color: var(--accent2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle,
.search-toggle,
.menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover,
.search-toggle:hover {
  color: var(--accent2);
}

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent2), #c084fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Banner 轮播 */
.hero-banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 60px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}

.carousel-slide {
  display: none;
  padding: 60px 40px;
  text-align: center;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-slide svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.carousel-slide h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.carousel-slide p {
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.carousel-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text2);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots span.active {
  background: var(--accent2);
  transform: scale(1.2);
}

/* ===== 品牌介绍 ===== */
.brand-intro .grid-2 {
  align-items: center;
}

.brand-intro svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* 时间线 */
.story-timeline {
  position: relative;
  padding-left: 40px;
  border-left: 2px solid var(--accent);
}

.story-item {
  margin-bottom: 40px;
  position: relative;
}

.story-item::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent2);
  border: 3px solid var(--bg);
}

.story-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.story-item p {
  color: var(--text2);
}

/* 文化网格 */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.culture-item {
  text-align: center;
  padding: 32px 16px;
}

.culture-item svg {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

/* 团队网格 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 32px 16px;
}

.team-card svg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--glass);
  padding: 8px;
}

/* ===== 产品中心 ===== */
.product-showcase .grid-3 {
  gap: 24px;
}

.product-card {
  text-align: center;
  padding: 40px 24px;
}

.product-card svg {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}

/* 产品优势 */
.advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.advantage-item svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* 解决方案 */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* 行业应用 */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.industry-item svg {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

/* 数据统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent2), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 案例 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.case-card {
  padding: 32px;
}

.case-card svg {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--glass);
}

/* 客户标志 */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

.client-logos svg {
  width: 100px;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.client-logos svg:hover {
  opacity: 1;
}

/* 评价 */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  position: relative;
}

.testimonial-card svg.quote {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* 新闻 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.article-card {
  padding: 24px;
}

.article-card svg {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--glass);
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s;
  color: var(--text2);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

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

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

/* 使用指南步骤 */
.howto-steps {
  counter-reset: step;
}

.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  background: var(--accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info svg {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent2);
}

/* ===== 页脚 ===== */
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 60px 0;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 700px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text2);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text2);
  font-size: 0.85rem;
}

/* ===== 回到顶部 ===== */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(108,59,217,0.4);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== 搜索弹窗 ===== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-modal.open {
  display: flex;
}

.search-modal input {
  width: 80%;
  max-width: 500px;
  padding: 18px 24px;
  border-radius: 50px;
  border: none;
  font-size: 1.2rem;
  background: var(--bg2);
  color: var(--text);
  outline: 2px solid var(--accent2);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text2);
  flex-wrap: wrap;
}

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

.breadcrumb span {
  color: var(--accent2);
}

/* ===== EEAT 区块 ===== */
.eeat-section {
  background: var(--glass);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
  border: 1px solid var(--glass-border);
}

.eeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.eeat-item {
  text-align: center;
}

.eeat-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

/* ===== 懒加载动画 ===== */
.lazy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.lazy.loaded {
  opacity: 1;
  transform: translateY(0);
}