/* ===== 壹号娱乐官网 style.css ===== */
/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body.dark {
  background: #0f0f1a;
  color: #e0e0e0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

/* 辅助 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 通用区块 */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e94560, #1a1a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .section-title {
  background: linear-gradient(135deg, #ff6b81, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

body.dark .section-subtitle {
  color: #aaa;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #e94560, #c23152);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid #e94560;
  color: #e94560;
}

.btn-outline:hover {
  background: #e94560;
  color: #fff;
}

body.dark .btn-outline {
  border-color: #ff6b81;
  color: #ff6b81;
}

body.dark .btn-outline:hover {
  background: #ff6b81;
  color: #0f0f1a;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  transition: all 0.4s;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

body.dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* 网格系统 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 滚动动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}

body.dark .header {
  background: rgba(15,15,26,0.85);
  border-color: rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #1a1a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .logo {
  background: linear-gradient(135deg, #ff6b81, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s;
}

.nav a:hover, .nav a.active {
  color: #e94560;
}

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

body.dark .nav a:hover, body.dark .nav a.active {
  color: #ff6b81;
}

body.dark .nav a::after {
  background: #ff6b81;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: #1a1a2e;
  border-radius: 3px;
  transition: all 0.3s;
}

body.dark .nav-toggle span {
  background: #e0e0e0;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 暗黑模式切换 */
.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  padding: 5px;
  transition: transform 0.3s;
}

.dark-toggle:hover {
  transform: scale(1.1);
}

/* Hero区域 */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

body.dark .hero {
  background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0f3460 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(233,69,96,0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0,0); }
  100% { transform: translate(30px, 30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero .btn {
  margin: 0 10px;
}

/* Banner轮播 */
.hero-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  margin-top: 40px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

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

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.banner-dot.active {
  background: #e94560;
  transform: scale(1.2);
}

/* 面包屑 */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
  color: #999;
}

.breadcrumb a {
  color: #e94560;
}

body.dark .breadcrumb a {
  color: #ff6b81;
}

.breadcrumb span {
  margin: 0 8px;
}

/* 搜索框 */
.search-box {
  display: flex;
  max-width: 500px;
  margin: 30px auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #fff;
}

body.dark .search-box input {
  background: #1a1a2e;
  color: #e0e0e0;
}

.search-box button {
  padding: 14px 28px;
  background: #e94560;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #c23152;
}

/* 关于我们 */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

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

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

.stat-item {
  padding: 30px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e94560, #1a1a2e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark .stat-number {
  background: linear-gradient(135deg, #ff6b81, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 8px;
}

body.dark .stat-label {
  color: #aaa;
}

/* 案例卡片 */
.case-card {
  padding: 0;
  overflow: hidden;
}

.case-card svg {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.case-card .card-body {
  padding: 25px;
}

.case-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.case-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .case-card p {
  color: #bbb;
}

/* 合作伙伴 */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.partner-item svg {
  width: 120px;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.partner-item svg:hover {
  opacity: 1;
}

/* 客户评价 */
.testimonial-card {
  text-align: center;
}

.testimonial-card svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial-card h4 {
  font-weight: 600;
}

.testimonial-card span {
  color: #999;
  font-size: 0.9rem;
}

/* FAQ手风琴 */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  cursor: pointer;
}

body.dark .faq-item {
  border-color: #333;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-top: 10px;
  color: #666;
}

body.dark .faq-answer {
  color: #bbb;
}

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

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

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

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

body.dark .howto-step::before {
  background: #ff6b81;
}

.howto-step h3 {
  margin-bottom: 8px;
}

/* 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

.contact-info svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 60px 0 30px;
}

body.dark .footer {
  background: #0a0a14;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

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

.footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer a:hover {
  color: #e94560;
}

body.dark .footer a:hover {
  color: #ff6b81;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-bottom a {
  display: inline;
  margin: 0 10px;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* 友情链接 */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.friend-links a {
  font-size: 0.9rem;
  color: #999;
}

.friend-links a:hover {
  color: #e94560;
}

/* 站点地图链接 */
.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.sitemap-links a {
  font-size: 0.9rem;
  color: #999;
}

.sitemap-links a:hover {
  color: #e94560;
}

/* 新闻卡片 */
.news-card {
  padding: 0;
  overflow: hidden;
}

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

.news-card .card-body {
  padding: 25px;
}

.news-card .date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.news-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.news-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .news-card p {
  color: #bbb;
}

/* 团队卡片 */
.team-card {
  text-align: center;
}

.team-card svg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.team-card h3 {
  margin-bottom: 5px;
}

.team-card span {
  color: #999;
  font-size: 0.9rem;
}

/* 产品卡片 */
.product-card {
  text-align: center;
}

.product-card svg {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

.product-card h3 {
  margin-bottom: 10px;
}

.product-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .product-card p {
  color: #bbb;
}

/* 优势卡片 */
.advantage-card {
  text-align: center;
}

.advantage-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.advantage-card h3 {
  margin-bottom: 10px;
}

.advantage-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .advantage-card p {
  color: #bbb;
}

/* 服务卡片 */
.service-card {
  text-align: center;
}

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

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .service-card p {
  color: #bbb;
}

/* 解决方案卡片 */
.solution-card {
  text-align: center;
}

.solution-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.solution-card h3 {
  margin-bottom: 10px;
}

.solution-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .solution-card p {
  color: #bbb;
}

/* 行业卡片 */
.industry-card {
  text-align: center;
}

.industry-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.industry-card h3 {
  margin-bottom: 10px;
}

.industry-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .industry-card p {
  color: #bbb;
}

/* 文化卡片 */
.culture-card {
  text-align: center;
}

.culture-card svg {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.culture-card h3 {
  margin-bottom: 10px;
}

.culture-card p {
  color: #666;
  font-size: 0.95rem;
}

body.dark .culture-card p {
  color: #bbb;
}

/* 品牌故事内容 */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* 响应式微调 */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-banner {
    height: 250px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}