/* Kaiyun Sports - k-y.love Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0d47a1;
  --primary-dark: #002171;
  --primary-light: #1565c0;
  --accent: #ff6f00;
  --accent-hover: #e65100;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #212121;
  --text-muted: #616161;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
  --header-h: 70px;
}

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);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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 { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  height: var(--header-h);
}

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

.logo img { height: 48px; width: auto; border-radius: 10px;}

.main-nav { display: flex; gap: 8px; list-style: none; }

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active { background: var(--primary); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 8px;
  margin-left: auto;
}

.header-inner { position: relative; }

/* APP ad banner */
.ad-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 999;
}

#applist { text-align: center; }

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

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

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
}

#ads a:hover img {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#ads .caption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.hero h1 { font-size: 2rem; line-height: 1.3; margin-bottom: 16px; }

.hero p { font-size: 1.05rem; opacity: 0.92; margin-bottom: 24px; }

.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 12px;
}

.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Sections */
section { padding: 56px 0; }

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

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

/* TOC */
.toc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.toc h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: 12px; }

.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }

.toc li { margin-bottom: 6px; }

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

.card {
  background: var(--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 24px 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; color: var(--primary-dark); margin-bottom: 8px; }

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

/* Content blocks */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.content-block h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

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

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

.content-block ul, .content-block ol { margin: 12px 0 14px 24px; }

.content-block li { margin-bottom: 6px; }

.content-img {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 12px; }

.feature-item h3 { color: var(--primary-dark); margin-bottom: 8px; }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  align-items: center;
}

.partner-item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.partner-item img { max-height: 80px; margin: 0 auto; object-fit: contain; }

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  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 summary::before { content: "＋ "; color: var(--accent); }

.faq-item[open] summary::before { content: "－ "; }

.faq-answer { padding: 0 20px 16px; color: var(--text-muted); }

/* Download section */
.download-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.download-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-card img { border-radius: var(--radius); margin: 0 auto 16px; max-height: 200px; object-fit: cover; }

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

.breadcrumb a { color: var(--primary-light); }

/* Form pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 { font-size: 1.75rem; margin-bottom: 8px; }

.form-section { padding: 48px 0; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-box {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-box h2 { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 20px; }

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

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

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.form-links { margin-top: 16px; font-size: 0.9rem; }

.form-links a { margin-right: 16px; }

.seo-content {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-content h2 { font-size: 1.3rem; color: var(--primary-dark); margin: 24px 0 12px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { margin-bottom: 12px; color: var(--text-muted); }

/* Legal pages */
.legal-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 32px 0 56px;
}

.legal-content h2 { font-size: 1.25rem; color: var(--primary-dark); margin: 28px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 10px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 14px; }

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code { font-size: 6rem; font-weight: 700; color: var(--primary-light); line-height: 1; }
.error-title { font-size: 1.5rem; color: var(--primary-dark); margin: 16px 0 8px; }
.error-desc { color: var(--text-muted); margin-bottom: 24px; }

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

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

.footer-brand img { height: 50px;width: 50px; margin-bottom: 12px; border-radius: 4px; }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; }

.footer-links h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }

.footer-links ul { list-style: none; }

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

.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--accent); }

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

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  margin: 32px 0;
}

.cta-banner h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cta-banner p { margin-bottom: 20px; opacity: 0.95; }

.cta-banner .btn { background: var(--white); color: var(--accent); }
.cta-banner .btn:hover { background: var(--primary-dark); color: var(--white); }

/* Alt section bg */
.bg-white { background: var(--white); }
.bg-gray { background: var(--bg); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .form-layout,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-grid .hero-img { order: -1; }

  .toc ol { columns: 1; }

  .btn-outline { margin-left: 0; }
}

/* Media row - image + text alternating */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

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

.media-img img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  max-height: 360px;
}

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

.media-text p { color: var(--text-muted); margin-bottom: 12px; }

/* Sponsor feature blocks */
.sponsor-list { display: flex; flex-direction: column; gap: 28px; }

.sponsor-feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  align-items: start;
}

.sponsor-feature img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

.sponsor-feature h3 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 10px; }
.sponsor-feature p { color: var(--text-muted); margin-bottom: 8px; }

/* Step guide */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

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

.step-card .step-num {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  font-weight: 700;
  margin: 16px 0 8px;
}

.step-card h3 { font-size: 1.1rem; color: var(--primary-dark); padding: 0 16px; }
.step-card p { padding: 8px 16px 20px; color: var(--text-muted); font-size: 0.95rem; }

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

.supplier-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.supplier-item img { max-height: 56px; margin: 0 auto 8px; object-fit: contain; }
.supplier-item span { font-size: 0.8rem; color: var(--text-muted); display: block; }

/* Showcase gallery */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-item img { width: 100%; height: 280px; object-fit: cover; }

.showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  padding: 40px 20px 16px;
}

.showcase-caption h3 { font-size: 1.1rem; margin-bottom: 4px; }
.showcase-caption p { font-size: 0.9rem; opacity: 0.9; }

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

  .header-inner > nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow);
  }

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

  .hero h1 { font-size: 1.5rem; }

  .section-title { font-size: 1.4rem; }

  .legal-content { padding: 24px; }

  .media-row,
  .sponsor-feature { grid-template-columns: 1fr; }

  .media-row.reverse .media-img,
  .media-row.reverse .media-text { order: unset; }

  .step-grid,
  .showcase-grid { grid-template-columns: 1fr; }
}
.hero a{
  color: var(--white);
  text-decoration: underline;
}