/* kysports.one — 开云体育官方平台 */
:root {
  --brand: #0c6b3e;
  --brand-dark: #085230;
  --brand-light: #e8f5ee;
  --accent: #c9a227;
  --ink: #1a1f1c;
  --muted: #5a635c;
  --line: #d8e0db;
  --bg: #f7faf8;
  --surface: #ffffff;
  --danger: #b42318;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(12, 40, 24, 0.08);
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.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-light);
  color: var(--brand-dark);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 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);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 50, 28, 0.88), rgba(12, 107, 62, 0.72)),
    url("/开云体育首页.jpg") center / cover no-repeat;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0;
  font-size: 1.08rem;
  opacity: 0.95;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn-primary {
  background: var(--accent);
  color: #1a1400;
}

.hero .btn-primary:hover {
  background: #b8911c;
  color: #1a1400;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  scroll-margin-top: 88px;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #2d342f;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #2d342f;
}

.prose li {
  margin-bottom: 0.4rem;
}

.toc {
  background: var(--brand-light);
  border: 1px solid #cfe6d8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  color: var(--brand-dark);
}

/* Cards / grids */
.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card .body {
  padding: 16px 18px 20px;
}

.media-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.media-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile span {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-weight: 700;
  font-size: 1.05rem;
}

.category-tile:hover {
  text-decoration: none;
  color: #fff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.partner-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.partner-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.ambassador {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.ambassador img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0c6b3e, #0a4d2e);
  color: #fff;
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
}

.download-panel h2,
.download-panel p {
  color: #fff;
}

.download-panel p {
  opacity: 0.92;
}

.download-panel .btn-primary {
  background: var(--accent);
  color: #1a1400;
}

.download-shot {
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--brand);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "−";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-band {
  text-align: center;
  padding: 48px 24px;
  background:
    linear-gradient(120deg, rgba(12, 107, 62, 0.92), rgba(8, 70, 40, 0.9)),
    url("/足球.jpg") center / cover no-repeat;
  color: #fff;
  border-radius: 14px;
}

.cta-band h2 {
  margin: 0 0 10px;
}

.cta-band p {
  margin: 0 0 20px;
  opacity: 0.95;
}

.breadcrumb {
  padding: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0 56px;
}

.auth-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-form h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.auth-form .lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid #9fd4b5;
  border-color: var(--brand);
}

.form-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.auth-aside h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.auth-aside ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  color: #2d342f;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}

.error-page .code {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0;
}

.error-page h1 {
  margin: 12px 0;
}

.error-page p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  background: #10261a;
  color: #d7e4dc;
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: #c7d8ce;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}

.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.88rem;
  color: #9fb3a6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 0;
  font-size: 0.92rem;
}

.keyword-box {
  background: #fff;
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 0 8px 8px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
}

th {
  background: var(--brand-light);
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel,
  .auth-layout,
  .ambassador {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    box-shadow: var(--shadow);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 12px 14px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }
}

/* Top ads bar — 利于点击 */
.ads-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 8px;
  position: relative;
  z-index: 50;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#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;
}
