/* 开云体育官网 - kai-yun.art */
:root {
  --primary: #0d4a2e;
  --primary-light: #1a7a4a;
  --accent: #f0b429;
  --accent-hover: #d9a020;
  --dark: #0a1628;
  --dark-light: #132035;
  --text: #e8edf2;
  --text-muted: #9aa8b8;
  --border: rgba(255,255,255,0.08);
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --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);
  background: var(--dark);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.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 { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: rgba(240,180,41,0.08); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: var(--dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--dark-light) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/开云体育首页.jpg") center/cover no-repeat;
  opacity: 0.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: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
  color: #fff;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { color: var(--dark); background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: rgba(240,180,41,0.1); color: var(--accent); }

.hero-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }

/* Sections */
section { padding: 64px 0; }
section:nth-child(even) { background: var(--dark-light); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(240,180,41,0.15);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: rgba(240,180,41,0.3); }

.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; color: #fff; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(240,180,41,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-item h3 { font-size: 1rem; color: #fff; margin-bottom: 6px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-grid img {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 12px;
  height: 70px;
  width: 100%;
  object-fit: contain;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Content pages */
.page-hero {
  background: linear-gradient(135deg, var(--dark-light), var(--primary));
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.content-section { padding: 48px 0 64px; }

.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; color: #fff; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.15rem; color: var(--accent); margin: 24px 0 10px; }
.prose p { color: var(--text-muted); margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }

/* Form pages */
.form-page { padding: 48px 0 80px; }

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.form-wrapper h1 { font-size: 1.6rem; color: #fff; text-align: center; margin-bottom: 8px; }
.form-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 6px; font-weight: 500; }

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--accent-hover); }

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.seo-content {
  max-width: 860px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.seo-content h2 { font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.seo-content p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* Footer */
.site-footer {
  background: #060e1a;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand img { width: 56px; border-radius: 8px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 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(--accent); line-height: 1; }
.error-page h1 { font-size: 1.8rem; color: #fff; margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* App download section */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.app-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.app-card img { width: 100%; border-radius: 10px; margin-bottom: 20px; }
.app-card h3 { color: #fff; margin-bottom: 12px; }
.app-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }

/* Sponsor timeline */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.sponsor-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.sponsor-card img { width: 100%; height: 200px; object-fit: cover; }
.sponsor-card .sponsor-body { padding: 20px; }
.sponsor-card h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.sponsor-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Internal links block */
.internal-links {
  background: rgba(240,180,41,0.06);
  border: 1px solid rgba(240,180,41,0.2);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.internal-links h3 { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.internal-links a {
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text);
}
.internal-links a:hover { background: rgba(240,180,41,0.15); color: var(--accent); }

/* Ad banner */
.ad-banner {
  background: linear-gradient(180deg, rgba(240,180,41,0.08) 0%, rgba(10,22,40,0.6) 100%);
  border-bottom: 1px solid rgba(240,180,41,0.15);
  padding: 14px 0 10px;
}

.ad-banner .container {
  display: flex;
  justify-content: center;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
  width: 100%;
}

#ads > div {
  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: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(240,180,41,0.25);
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(240,180,41,0.3);
  border-color: var(--accent);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 16px;
}

@media (max-width: 480px) {
  #ads { gap: 10px 14px; }
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}
