/* kysports.lat — 开云体育官网 */
:root {
  --brand: #0a6b3c;
  --brand-dark: #064a2a;
  --brand-light: #12a05a;
  --ink: #121812;
  --muted: #4a554c;
  --line: #d8e0d9;
  --paper: #f6f8f5;
  --white: #ffffff;
  --accent: #c9a227;
  --danger: #b42318;
  --shadow: 0 12px 40px rgba(6, 40, 24, 0.12);
  --radius: 14px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "Barlow Condensed", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-light);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.logo span {
  color: var(--brand);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.nav-desktop a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  background: #b8911c;
  color: var(--ink);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(18, 24, 18, 0.45);
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-panel {
  background: var(--white);
  padding: 1.25rem 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-mobile-panel a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.nav-mobile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.nav-mobile-actions .btn {
  flex: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #063522;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 30, 18, 0.35) 0%, rgba(4, 30, 18, 0.78) 55%, rgba(4, 30, 18, 0.94) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(18, 160, 90, 0.25), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.35em;
  text-transform: uppercase;
}

.brand-mark em {
  font-style: normal;
  color: #7dffb4;
}

.hero-lead {
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.download-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.download-item h3 {
  margin-top: 0.4rem;
}

.download-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.download-item .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Feature / content grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-block {
  padding: 0.25rem 0;
}

.feature-block h3 {
  color: var(--brand-dark);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.game-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  color: #fff;
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}

.game-tile:hover img {
  transform: scale(1.05);
}

.game-tile-body {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78) 100%);
}

.game-tile h3 {
  margin: 0 0 0.35rem;
  color: #fff;
}

.game-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Partners */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
}

.partner-strip img {
  width: 100%;
  max-height: 72px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  filter: grayscale(0.15);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.partner-strip img:hover {
  filter: none;
  transform: translateY(-2px);
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.club-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.club-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.club-grid figcaption {
  padding: 0.65rem 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

/* Pros */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pro {
  background: linear-gradient(160deg, #ffffff, #eef6f0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.pro h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.pro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Long SEO article */
.seo-article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.seo-article h2,
.seo-article h3 {
  margin-top: 1.5rem;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.toc {
  background: var(--paper);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 1.75rem;
  border-radius: 0 10px 10px 0;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}

.toc a {
  display: block;
  padding: 0.2rem 0;
  color: var(--muted);
}

.toc a:hover {
  color: var(--brand);
}

.inline-shot {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.inline-shot img {
  width: 100%;
}

.inline-shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--paper);
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(6, 74, 42, 0.92), rgba(10, 107, 60, 0.88)),
    url("/足球.jpg") center/cover;
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, #e8f4ec, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.4rem;
}

.page-hero p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.content-wrap {
  padding: 2.5rem 0 4rem;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 2rem;
}

.related-links {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.related-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

/* Auth forms */
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.auth-card .sub {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid rgba(10, 107, 60, 0.25);
  border-color: var(--brand);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1.1rem;
  font-size: 0.9rem;
}

.auth-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-side img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.auth-side-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.auth-side-body h2 {
  font-size: 1.3rem;
}

.auth-side-body ul {
  color: var(--muted);
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0c1a12;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #7dffb4;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .download-grid,
  .games-grid,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pros-grid,
  .footer-grid,
  .auth-layout {
    grid-template-columns: 1fr 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .download-grid,
  .games-grid,
  .steps,
  .feature-grid,
  .pros-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
  }

  .brand-mark {
    font-size: 2.4rem;
  }

  .cta-band {
    text-align: left;
  }
}

/* Top ads bar — from ty.html */
.ads-top {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.5rem 0.35rem;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
