/* ===== 开云电竞 (Kaiyun Esports) 完整样式表 ===== */
/* 基座与重置 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #121212;
  color: #e0e0e0;
}

a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff9900;
}

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

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

/* 按钮通用 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

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

.dark .card {
  background: #1e1e1e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* 弹性布局 */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* 毛玻璃效果 */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

/* 渐变背景 */
.gradient-bg {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* 文本居中 */
.text-center {
  text-align: center;
}

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

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

/* 统计数字 */
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .stat-number {
  -webkit-text-fill-color: #ff6600;
  background: none;
  color: #ff6600;
}

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

nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

nav .nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  font-size: 0.95rem;
  color: #ccc;
}

nav .nav-links a {
  color: #ccc;
  font-weight: normal;
  transition: color 0.3s, font-weight 0.3s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #ff6600;
  font-weight: 600;
}

/* 暗黑模式切换按钮 */
#darkModeToggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

#darkModeToggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 移动导航按钮 */
#mobileNavToggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero 区域 ===== */
#hero {
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

#hero h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

#hero h1 span {
  background: linear-gradient(135deg, #ff6600, #ff9900);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  color: #aaa;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* Banner 滑动容器 */
.banner-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  height: 400px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.8s ease;
}

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

.dot.active {
  background: #ff6600;
}

/* ===== 品牌介绍 ===== */
#brand .card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ff6600;
}

#brand .card p {
  color: #666;
  line-height: 1.8;
}

.dark #brand .card p {
  color: #bbb;
}

/* ===== 核心团队 ===== */
#team {
  background: #f0f2f5;
}

.dark #team {
  background: #1a1a1a;
}

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

#team .card h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

#team .card p:first-of-type {
  color: #ff6600;
  font-weight: 600;
}

#team .card p:last-of-type {
  color: #666;
  margin-top: 10px;
}

.dark #team .card p:last-of-type {
  color: #bbb;
}

/* ===== 产品与服务 ===== */
#products .card svg {
  margin-bottom: 15px;
}

#products .card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#products .card p {
  color: #666;
}

.dark #products .card p {
  color: #bbb;
}

/* ===== 核心优势 ===== */
#advantages {
  background: #f0f2f5;
}

.dark #advantages {
  background: #1a1a1a;
}

#advantages .card p:first-of-type {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 10px;
}

#advantages .card p:last-of-type {
  color: #666;
}

.dark #advantages .card p:last-of-type {
  color: #bbb;
}

/* ===== 解决方案 ===== */
#solutions .card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ff6600;
}

#solutions .card p {
  color: #666;
}

.dark #solutions .card p {
  color: #bbb;
}

/* ===== 服务行业 ===== */
#industries {
  background: #f0f2f5;
}

.dark #industries {
  background: #1a1a1a;
}

#industries .card svg {
  margin: 0 auto 15px;
}

#industries .card h3 {
  font-size: 1.3rem;
}

/* ===== 平台数据 ===== */
#statistics {
  color: #fff;
}

#statistics .section-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

#statistics .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#statistics .stat-number {
  font-size: 3.5rem;
}

#statistics .card p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* ===== 成功案例 ===== */
#cases .card svg {
  border-radius: 15px;
  margin-bottom: 15px;
}

#cases .card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

#cases .card p {
  color: #666;
}

.dark #cases .card p {
  color: #bbb;
}

/* ===== 合作伙伴 ===== */
#partners {
  background: #f0f2f5;
}

.dark #partners {
  background: #1a1a1a;
}

#partners .card {
  padding: 20px;
}

#partners .card p {
  margin-top: 10px;
  font-weight: 600;
}

/* ===== 客户评价 ===== */
#testimonials blockquote.card svg {
  margin-bottom: 10px;
}

#testimonials blockquote.card p {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.dark #testimonials blockquote.card p {
  color: #bbb;
}

#testimonials footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

#testimonials footer svg {
  border-radius: 50%;
}

#testimonials footer span {
  color: #999;
  display: block;
}

/* ===== 最新资讯 ===== */
#news {
  background: #f0f2f5;
}

.dark #news {
  background: #1a1a1a;
}

#news .card svg {
  border-radius: 15px;
  margin-bottom: 15px;
}

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

#news .card p {
  color: #666;
}

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

#news .card a {
  color: #ff6600;
  font-weight: 600;
}

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

.faq-item.card {
  margin-bottom: 15px;
  cursor: pointer;
}

.faq-item h3 {
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ff6600;
}

.faq-item h3 span {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-answer {
  margin-top: 15px;
  color: #666;
  display: none;
}

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

/* ===== 使用指南 ===== */
#howto {
  background: #f0f2f5;
}

.dark #howto {
  background: #1a1a1a;
}

#howto .card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ff6600;
}

#howto .card p {
  color: #666;
}

.dark #howto .card p {
  color: #bbb;
}

/* ===== 联系我们 ===== */
#contact {
  color: #fff;
}

#contact .section-title {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

#contact .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ff6600;
}

#contact .card p {
  margin-bottom: 10px;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #ff6600;
  background: rgba(255, 255, 255, 0.15);
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#contact textarea {
  resize: vertical;
}

#contact .btn {
  width: 100%;
  font-size: 1.1rem;
}

/* ===== 页脚 ===== */
footer {
  background: #0d0d1a;
  color: #aaa;
  padding: 60px 0 30px;
}

footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

footer p {
  line-height: 1.8;
}

footer ul {
  list-style: none;
  line-height: 2.2;
}

footer ul a {
  color: #aaa;
  transition: color 0.3s;
}

footer ul a:hover {
  color: #ff6600;
}

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

footer .border-top p {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6600, #ff9900);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(255, 102, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 102, 0, 0.6);
}

/* ===== 搜索框 ===== */
.search-box {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
}

.dark .search-box {
  background: #1e1e1e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.search-box input {
  padding: 10px;
  border: 2px solid #ff6600;
  border-radius: 10px;
  width: 250px;
  font-size: 1rem;
  background: transparent;
  color: inherit;
}

.dark .search-box input {
  color: #e0e0e0;
}

.search-box button {
  padding: 10px 20px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* ===== 相关文章推荐 ===== */
.related-articles {
  text-align: center;
  margin-top: 30px;
}

.related-articles a {
  color: #ff6600;
  margin: 0 10px;
}

/* ===== 上一篇/下一篇 ===== */
.prev-next {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.prev-next a {
  color: #ff6600;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  #hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #hero h1 {
    font-size: 2.8rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  #hero .flex {
    justify-content: center;
  }

  .banner-slider {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  #hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

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

  .banner-slider {
    height: 280px;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    padding: 20px;
    z-index: 999;
  }

  #mobileNavToggle {
    display: block;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-item h3 {
    font-size: 1.1rem;
  }

  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }

  .search-box {
    right: 10px;
    left: 10px;
  }

  .search-box input {
    width: 100%;
  }

  .search-box button {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
}

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

  #hero h1 {
    font-size: 1.8rem;
  }

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

  .banner-slider {
    height: 220px;
  }

  .card {
    padding: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== 打印样式 ===== */
@media print {
  header,
  footer,
  #backToTop,
  .search-box {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}