/* 开云体育官网 - 全局样式 */
:root {
  --primary: #0d4a2e;
  --primary-light: #1a7a4c;
  --accent: #d4a017;
  --accent-hover: #f0c040;
  --bg-dark: #0a1628;
  --bg-card: #112240;
  --bg-light: #f5f7fa;
  --text: #2c3e50;
  --text-light: #8899aa;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --radius: 12px;
  --max-width: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.75;
  background: var(--bg-light);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo img { width: 48px; height: 48px; border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.main-nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-white);
  background: rgba(255,255,255,.12);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: var(--bg-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/足球.jpg") center/cover no-repeat;
  opacity: .15;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 30px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg-dark); }

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255,255,255,.6);
}

.btn-outline:hover { border-color: var(--text-white); color: var(--text-white); }

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Section */
.section { padding: 70px 0; }
.section-alt { background: var(--text-white); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }

.section-header { text-align: center; margin-bottom: 50px; }

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-dark .section-header h2 { color: var(--accent); }

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark .section-header p { color: rgba(255,255,255,.7); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .25s;
  border: 1px solid var(--border);
}

.card:hover { transform: translateY(-4px); }

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary); }
.card p { color: var(--text-light); font-size: .95rem; }

/* Feature blocks */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-block:nth-child(even) .feature-text { order: 2; }
.feature-block:nth-child(even) .feature-img { order: 1; }

.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

.feature-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-text p { margin-bottom: 14px; color: #555; }

/* TOC */
.toc-box {
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.toc-box h2 { font-size: 1.2rem; margin-bottom: 16px; color: var(--primary); }

.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  list-style: none;
}

.toc-list a { font-size: .95rem; }

/* Content article */
.article-content { max-width: 900px; margin: 0 auto; }

.article-content h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.article-content h3 {
  font-size: 1.25rem;
  color: var(--primary-light);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 16px; text-align: justify; }

.article-content ul, .article-content ol {
  margin: 12px 0 20px 24px;
}

.article-content li { margin-bottom: 8px; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; }

.faq-item {
  background: var(--text-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--accent); }

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
  color: #555;
}

.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

/* Download section */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--bg-card);
  color: var(--text-white);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.1);
}

.download-card img {
  width: 80px;
  margin: 0 auto 20px;
  border-radius: 16px;
}

.download-card h3 { margin-bottom: 12px; color: var(--accent); }
.download-card p { opacity: .8; margin-bottom: 24px; font-size: .95rem; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 16px;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label { opacity: .75; font-size: .9rem; margin-top: 6px; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary-light); }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  color: var(--text-white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { opacity: .8; }

/* Form pages */
.form-page { padding: 60px 0; }

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-wrapper h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: .95rem;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: .9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color .2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(26,122,76,.15);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.form-submit:hover { background: var(--primary-light); }

.form-links {
  text-align: center;
  margin-top: 20px;
  font-size: .9rem;
}

.form-links a { margin: 0 8px; }

.seo-content-block {
  max-width: 900px;
  margin: 50px auto 0;
  padding: 0 20px;
}

/* Legal pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 32px 0 12px;
}

.legal-content p, .legal-content li { margin-bottom: 12px; color: #444; }
.legal-content ul { margin-left: 24px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.error-page h1 { font-size: 1.8rem; margin: 16px 0; color: var(--primary); }
.error-page p { color: var(--text-light); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p { font-size: .9rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.internal-links a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
}

.internal-links a:hover { color: var(--accent); border-color: var(--accent); }

/* 顶部广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 72px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 22px rgba(13, 74, 46, .22);
}

#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

#ads a:hover + .caption,
#ads figure:hover .caption {
  color: var(--primary-light);
}

@media (max-width: 640px) {
  .ads-bar { top: 60px; padding: 10px 0; }
  #ads { gap: 6px 12px; }
  #ads > div { width: 68px; }
  #ads img { width: 58px; height: 58px; }
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 32px;
  padding: 20px 0;
}

.partner-logos img {
  height: 48px;
  width: auto;
  opacity: .85;
  transition: opacity .2s;
  filter: brightness(0) invert(1);
}

.partner-logos img:hover { opacity: 1; }

.section-alt .partner-logos img {
  filter: none;
}

/* Game showcase */
.game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.game-item {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s;
}

.game-item:hover { transform: translateY(-4px); }

.game-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.game-item-body { padding: 20px 24px; }

.game-item-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.game-item-body p {
  font-size: .92rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.65;
}

.game-item-body a {
  font-size: .9rem;
  font-weight: 600;
}

/* Account guide */
.account-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.account-step {
  text-align: center;
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
}

.account-step img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.account-step h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.account-step p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Promo gallery */
.promo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.promo-card {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.promo-card img { width: 100%; display: block; }

.promo-card-body { padding: 24px; }

.promo-card-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.promo-card-body p {
  font-size: .92rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Image banner row */
.banner-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 40px 0;
}

.banner-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-block img { width: 100%; display: block; }

.banner-caption {
  background: var(--text-white);
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.banner-caption h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.banner-caption p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Sponsor grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.sponsor-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--text-white);
}

.sponsor-item img { width: 100%; display: block; }

.sponsor-item p {
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 900px) {
  .hero-grid, .feature-block { grid-template-columns: 1fr; }
  .feature-block:nth-child(even) .feature-text,
  .feature-block:nth-child(even) .feature-img { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .account-steps { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }

  .main-nav.open { display: flex; }

  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 40px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
