/* 开云体育官方平台 - 全局样式 */
:root {
  --primary: #1a5fb4;
  --primary-dark: #0d3d7a;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg-dark: #0f1923;
  --bg-card: #1a2733;
  --bg-light: #f4f7fa;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.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-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  color: var(--text-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.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, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: var(--accent);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2d7dd2 100%);
  color: var(--text-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("/images/开云体育首页.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--text-white);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.section-dark .section-title h2 {
  color: var(--accent);
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--text-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-img {
  height: 180px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-box {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-box .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-box h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* Content article */
.article-content {
  max-width: 900px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin: 12px 0 16px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content img {
  margin: 20px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--text-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item h3 {
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--primary-dark);
  background: #f0f4f8;
  cursor: pointer;
}

.faq-item p {
  padding: 0 20px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Partners */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.partner-grid img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partner-grid img:hover {
  opacity: 1;
}

/* Download section */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--text-white);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.download-card img {
  max-height: 200px;
  margin: 0 auto 20px;
  border-radius: var(--radius);
}

/* Page header (sub pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
}

/* Form styles */
.form-section {
  max-width: 480px;
  margin: 0 auto;
  background: var(--text-white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  color: var(--text);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
}

.error-page h2 {
  font-size: 1.5rem;
  margin: 16px 0;
  color: var(--text);
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Internal links highlight */
.internal-links {
  background: #eef3f9;
  padding: 24px;
  border-radius: var(--radius);
  margin: 30px 0;
}

.internal-links h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.internal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 40px 0;
}

.cta-banner h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

/* 广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ads-bar .container {
  display: flex;
  justify-content: center;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px 20px;
  background: transparent;
}

#ads .ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  padding: 2px;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(26, 95, 180, 0.25);
}

#ads .caption {
  margin-top: 6px;
  height: 15px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 15px;
}

@media (max-width: 768px) {
  #ads {
    gap: 12px 16px;
  }

  #ads .ads-item {
    width: 72px;
  }

  #ads img {
    width: 64px;
    height: 64px;
  }
}

/* Two-column page layout */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 12px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .header-actions {
    display: none;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero::after {
    display: none;
  }

  .section {
    padding: 40px 0;
  }
}
