/* 开云体育 k-y.club - 全局样式 */
:root {
  --primary: #0d7a3e;
  --primary-dark: #065a2c;
  --primary-light: #12a855;
  --accent: #f5a623;
  --bg-dark: #0a1628;
  --bg-card: #111d32;
  --bg-section: #0f1a2e;
  --text: #e8edf5;
  --text-muted: #8b9cb8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 72px;
}

*, *::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;
  background: var(--bg-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(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo-text span { color: var(--primary-light); }

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

.main-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary-light);
}

.btn-outline:hover { background: rgba(13, 122, 62, 0.15); color: var(--text); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.1); color: #fff; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2840 50%, var(--bg-dark) 100%);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(13, 122, 62, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 800;
}

.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image img { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-section); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 122, 62, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(13, 122, 62, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Service showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.showcase-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.showcase-item .showcase-body { padding: 20px; }
.showcase-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.showcase-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.partner-item img { max-height: 60px; width: auto; object-fit: contain; }

/* Image + text alternating blocks */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.media-block:last-child { margin-bottom: 0; }

.media-block.reverse .media-img { order: 2; }
.media-block.reverse .media-text { order: 1; }

.media-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.media-text h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text);
}

.media-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.media-text ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.media-text li { margin-bottom: 6px; }

/* Promo cards with images */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 122, 62, 0.4);
}

.promo-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.promo-card-body { padding: 22px; }

.promo-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.promo-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.promo-card .tag {
  display: inline-block;
  background: rgba(13, 122, 62, 0.2);
  color: var(--primary-light);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* Full-width highlight */
.highlight-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  margin-bottom: 40px;
}

.highlight-banner img { width: 100%; max-height: 420px; object-fit: cover; }

.highlight-banner .highlight-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.95));
}

.highlight-banner h3 { font-size: 1.4rem; margin-bottom: 10px; }
.highlight-banner p { color: var(--text-muted); max-width: 680px; font-size: 0.95rem; }

/* Vendor logos */
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.vendor-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.vendor-item img { max-height: 44px; width: auto; object-fit: contain; }

/* Content article */
.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--primary-light);
}

.article-content p { margin-bottom: 16px; color: var(--text-muted); }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); }

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--primary-light); }

.faq-item[open] summary::after { content: "−"; }

.faq-answer { padding: 0 24px 18px; color: var(--text-muted); font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { margin: 0 8px; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--bg-section), var(--bg-dark));
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 680px; }

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 80px;
}

.auth-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.auth-form-wrap h2 { font-size: 1.4rem; margin-bottom: 8px; }
.auth-form-wrap .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-seo-content h2 { font-size: 1.3rem; margin-bottom: 16px; }
.auth-seo-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.auth-seo-content ul { margin: 0 0 14px 20px; color: var(--text-muted); font-size: 0.95rem; }

.auth-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* Legal pages */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--primary-light); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 16px; }
.legal-content .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Error pages */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page h1 { font-size: 1.6rem; margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 0 0 48px;
}

.cta-banner h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; }
.cta-banner .btn { background: #fff; color: var(--primary-dark); }
.cta-banner .btn:hover { background: var(--accent); color: #fff; }

/* Internal links block */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0;
}

.internal-links h3 { font-size: 1.1rem; margin-bottom: 16px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.link-grid a {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-grid a:hover { background: rgba(13, 122, 62, 0.15); color: var(--primary-light); }

/* Footer */
.site-footer {
  background: #060e1a;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { width: 48px; border-radius: 8px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .auth-layout, .media-block { grid-template-columns: 1fr; }
  .media-block.reverse .media-img,
  .media-block.reverse .media-text { order: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-image { order: -1; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }

  .header-actions { display: none; }
  .header-actions.mobile-show { display: flex; position: absolute; top: calc(var(--header-h) + 200px); left: 16px; right: 16px; }

  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 48px 0; }
  .cta-banner { padding: 32px 20px; }
}
