/* 开云体育官网 - k-y.skin */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a3e;
  --accent: #f5a623;
  --accent-hover: #e09010;
  --bg: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e8e2;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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(--bg);
  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); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); text-decoration: underline; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.logo-link:hover { color: #fff; text-decoration: none; opacity: 0.9; }

.logo-link img { height: 40px; width: auto; border-radius: 4px; }

.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; }

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

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: #1a1a1a !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #1a1a1a !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero-inner { max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main { flex: 1; }

.section { padding: 48px 0; }

.section-alt { background: var(--bg-card); }

.section-title {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.card-img { width: 100%; height: 180px; object-fit: cover; }

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* Content Article */
.content-article {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.content-article h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.content-article h2:first-child { margin-top: 0; }

.content-article h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 24px 0 10px;
}

.content-article p { margin-bottom: 14px; color: var(--text); }

.content-article ul, .content-article ol {
  margin: 12px 0 16px 24px;
  color: var(--text);
}

.content-article li { margin-bottom: 8px; }

.content-article img {
  border-radius: var(--radius);
  margin: 20px auto;
  box-shadow: var(--shadow);
}

/* Feature List */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-item h3 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-item p { color: var(--text-muted); font-size: 0.92rem; }

/* Partners */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.partner-grid img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s;
}

.partner-grid img:hover { filter: none; }

/* FAQ */
.faq-list { list-style: none; padding: 0; }

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

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
}

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

.faq-item p {
  padding: 0 20px 16px;
  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(--primary); }

/* Form Pages */
.form-page {
  max-width: 520px;
  margin: 0 auto;
}

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

.form-card h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: center;
}

.form-card .form-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

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

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

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.12);
}

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.form-submit:hover { background: var(--primary-light); }

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

.form-preview-img {
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* SEO Content Sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-box ul { list-style: none; padding: 0; }

.sidebar-box li { margin-bottom: 8px; }

.sidebar-box a { font-size: 0.92rem; }

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

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }

.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: auto;
}

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

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-col p { font-size: 0.92rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* Internal Links Block */
.internal-links {
  background: linear-gradient(135deg, #eef5f0 0%, #f8faf9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.internal-links h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.internal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.internal-links a { font-size: 0.92rem; font-weight: 500; }

/* Media Block - 图文交替 */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.media-block.reverse { direction: rtl; }
.media-block.reverse > * { direction: ltr; }

.media-block-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.media-block-text h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

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

.media-block-text .btn-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--primary);
}

/* Figure with caption */
.figure-block {
  margin: 28px 0;
  text-align: center;
}

.figure-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 100%;
}

.figure-block figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.benefit-card:hover { transform: translateY(-3px); }

.benefit-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.benefit-card-body { padding: 18px 20px; }

.benefit-card-body h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.benefit-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Club Sponsorship */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.club-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.club-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 10px;
}

.club-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Supplier logos */
.supplier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
}

.supplier-grid img {
  height: 48px;
  width: auto;
  object-fit: contain;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.supplier-grid img:hover { transform: scale(1.05); }

/* Game category tabs visual */
.game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.game-showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.game-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.game-showcase-item:hover img { transform: scale(1.05); }

.game-showcase-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 24px 12px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* Steps guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.step-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
}

.step-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.step-card p { font-size: 0.88rem; color: var(--text-muted); }

/* APP 广告推荐 */
.ads-banner {
  background: linear-gradient(135deg, #fff 0%, #f0f7f2 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.ads-banner .container {
  display: flex;
  justify-content: center;
}

#applist {
  text-align: center;
  width: 100%;
  max-width: 480px;
}

#applist .applist-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

#applist .applist-title::before {
  content: "📲 ";
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
  min-height: 90px;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  box-sizing: border-box;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(26, 95, 42, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#ads a:hover img,
#ads a:active img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(26, 95, 42, 0.25);
}

#ads figcaption,
#ads .caption {
  margin-top: 6px;
  height: auto;
  min-height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.open { display: flex; }

  .main-nav a { width: 100%; text-align: center; }

  .page-with-sidebar { grid-template-columns: 1fr; }

  .sidebar { position: static; }

  .content-article { padding: 24px 20px; }

  .hero { padding: 40px 20px; }

  .media-block,
  .media-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}
.hero-inner p a {
  color: #e09010;
}