/* 开云体育官方 - kaiyunplaywin.com */
:root {
  --green: #0a7a3e;
  --green-dark: #065c2e;
  --green-light: #e8f5ee;
  --gold: #c9a227;
  --gold-soft: #f7f0d8;
  --ink: #1a1f1c;
  --muted: #5a6560;
  --line: #d6e0d9;
  --bg: #f4f7f5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(10, 60, 30, 0.08);
  --max: 1120px;
  --header-h: 68px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.6rem;
  color: var(--green-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37, #b8921f);
  color: #1a1508;
}

.btn-gold:hover {
  color: #1a1508;
  filter: brightness(1.05);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(6, 92, 46, 0.92) 0%, rgba(10, 122, 62, 0.78) 45%, rgba(10, 80, 50, 0.55) 100%),
    url("/images/足球.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.25), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  max-width: 36em;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 38em;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green);
}

.breadcrumb span {
  margin: 0 0.35rem;
  color: var(--line);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-intro {
  max-width: 48em;
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 52em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--ink);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.feature-item h3 {
  margin-top: 0;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Category / product cards as interaction containers */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.cat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-link:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--green-dark);
}

.cat-link img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.cat-link span {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Download steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  counter-reset: step;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.85rem;
  height: 1.85rem;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

/* Partner logos */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
  align-items: center;
}

.partner-grid img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
}

/* Promo images */
.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.media-row figure {
  margin: 0;
}

.media-row img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.media-row figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* FAQ */
.faq-list {
  margin-top: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  padding: 2.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: white;
  border: none;
  display: block;
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
  margin: 0 auto 1.25rem;
}

.cta-band .hero-cta {
  justify-content: center;
}

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: white;
  padding: 2.25rem 0 1.75rem;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 40em;
}

/* Auth forms */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}

.auth-form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-form-box h2 {
  margin-top: 0;
  border: none;
  display: block;
  font-size: 1.35rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafcfb;
}

.form-group input:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
  background: white;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.auth-seo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.auth-seo h2 {
  margin-top: 0;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  margin-bottom: 0.75rem;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: #0d2a1a;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: white;
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  padding: 0.2rem 0;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #e8c84a;
  text-decoration: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-brand strong {
  color: white;
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
}

/* TOC / anchor nav */
.toc {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.toc a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: white;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
  text-align: left;
}

.data-table th {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
}

.data-table tr:nth-child(even) {
  background: #fafcfb;
}

/* Image + text showcase */
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.showcase.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.showcase.reverse .showcase-media {
  order: 2;
}

.showcase-media img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  max-height: 340px;
}

.showcase-body h3 {
  margin-top: 0;
}

.showcase-body p:last-child {
  margin-bottom: 0;
}

.shot-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.shot-wall figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-wall img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.shot-wall figcaption {
  padding: 0.65rem 0.85rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.shot-wall figcaption strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin: 1.5rem 0;
}

.promo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.promo-card .promo-body {
  padding: 1rem 1.1rem 1.2rem;
}

.promo-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.promo-card p {
  margin: 0;
  font-size: 0.92rem;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.club-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.club-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fafcfb;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.club-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.club-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

.cat-link img {
  height: 120px;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    gap: 0.15rem;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .showcase,
  .showcase.reverse {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-media {
    order: 0;
  }

  .shot-wall {
    grid-template-columns: 1fr 1fr;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .shot-wall {
    grid-template-columns: 1fr;
  }

  .shot-wall img,
  .promo-card img {
    height: 200px;
  }
}
