/* 开云体育 kyun-sports.com — 官方正版站点样式 */
:root {
  --brand: #0a7a3e;
  --brand-dark: #065c2e;
  --brand-light: #12a354;
  --ink: #0f1a14;
  --ink-soft: #3a4a40;
  --paper: #f6f8f5;
  --line: #d5e0d8;
  --accent: #c8a45c;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(10, 40, 20, 0.12);
  --radius: 10px;
  --header-h: 72px;
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(18, 163, 84, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(200, 164, 92, 0.1), transparent 55%),
    linear-gradient(180deg, #eef4ef 0%, var(--paper) 40%, #e9f0ea 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-light);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Top ads bar */
.ads-wrap {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 4px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
  margin: 0 auto;
  max-width: var(--max);
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 224, 216, 0.9);
  box-shadow: 0 2px 16px rgba(10, 40, 20, 0.04);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

.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);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
  background: rgba(10, 122, 62, 0.08);
}

.nav-cta {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(10, 122, 62, 0.28);
}

.btn-outline {
  background: var(--white);
  color: var(--brand-dark) !important;
  border-color: var(--brand);
}

.btn-accent {
  background: linear-gradient(135deg, #d4b36e, #a8863f);
  color: #1a1408 !important;
  box-shadow: 0 8px 24px rgba(168, 134, 63, 0.28);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #062416;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 36, 22, 0.35) 0%, rgba(6, 36, 22, 0.72) 55%, rgba(6, 36, 22, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 36, 22, 0.7) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 88px;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.35;
  color: #e8f7ee;
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--ink-soft);
  max-width: 46em;
  font-size: 1.05rem;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 96px;
}

.prose p {
  margin: 0 0 1.1em;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--ink);
}

/* Feature strips / media rows */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-item {
  padding: 8px 0;
}

.feature-item h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
}

.media-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.media-row:nth-child(even) {
  grid-template-columns: 1fr 1.05fr;
}

.media-row:nth-child(even) .media-copy {
  order: -1;
}

.media-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0a1f14;
}

.media-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-visual:hover img {
  transform: scale(1.04);
}

.media-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.media-copy p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 6px 12px;
  background: rgba(10, 122, 62, 0.08);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Partner / category visuals */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-wall img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  filter: grayscale(0.15);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo-wall img:hover {
  filter: none;
  transform: translateY(-2px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 160px;
  isolation: isolate;
}

.category-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.45s ease;
}

.category-item:hover img {
  transform: scale(1.08);
}

.category-item span {
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Internal links */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
}

.internal-links a {
  font-weight: 700;
  border-bottom: 1px solid rgba(10, 122, 62, 0.35);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 56px 0 40px;
  background:
    linear-gradient(135deg, rgba(10, 122, 62, 0.12), transparent 50%),
    linear-gradient(180deg, #e4efe7, transparent);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  max-width: 42em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--brand-dark);
}

/* Forms */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0 72px;
}

.auth-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-panel h2 {
  margin: 0 0 8px;
}

.auth-panel .hint {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fbfcfb;
}

.form-group input:focus {
  outline: 2px solid rgba(10, 122, 62, 0.25);
  border-color: var(--brand);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.auth-seo h2 {
  margin-top: 0;
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0 0 8px;
  color: var(--brand);
}

.error-page p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  background: #0a1a12;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 800;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* TOC */
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.toc a {
  font-weight: 600;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-cta {
    margin: 8px 0 0;
    flex-direction: column;
  }

  .feature-grid,
  .category-grid,
  .footer-grid,
  .auth-layout,
  .media-row,
  .media-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .media-row:nth-child(even) .media-copy {
    order: 0;
  }

  .hero-content {
    padding: 48px 0 64px;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand span {
    font-size: 1rem;
  }
}
