/* k-y.bio — 开云体育官方官网 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a2540;
  --primary-light: #123a5e;
  --accent: #d4a017;
  --accent-hover: #e8b422;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.10);
  --radius: 8px;
  --max-width: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -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); }
ul, ol { padding-left: 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.site-logo img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.site-logo span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700;
  padding: 0.45rem 1.1rem !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: var(--primary) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); }

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.page-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.75rem; }
.page-header p { font-size: 1.05rem; opacity: 0.9; max-width: 680px; margin: 0 auto; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a6b 60%, #1a5080 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero-inner { max-width: var(--max-width); margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-align: center;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-img {
  max-width: 800px;
  margin: 2.5rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Sections ── */
.section { padding: 3rem 0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.section h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.section h3 {
  font-size: 1.2rem;
  color: var(--primary-light);
  margin: 1.5rem 0 0.75rem;
}

.section p { margin-bottom: 1rem; color: var(--text); }

/* ── Cards Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.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 32px rgba(10,37,64,0.15); }

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

.card-body { padding: 1.25rem; }
.card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--primary); }
.card-body p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* ── Feature boxes ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.feature-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.feature-box p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ── Partners ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

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

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

.partner-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── FAQ ── */
.faq-list { margin: 2rem 0; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* ── Timeline ── */
.timeline { margin: 2rem 0; }

.timeline-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.timeline-date {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  height: fit-content;
  white-space: nowrap;
}

.timeline-content h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--primary); }
.timeline-content p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* ── Content article ── */
.content-article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.content-article h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
}

.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 1.15rem; color: var(--primary-light); margin: 1.25rem 0 0.6rem; }
.content-article p { margin-bottom: 1rem; }
.content-article ul, .content-article ol { margin-bottom: 1rem; }
.content-article li { margin-bottom: 0.4rem; }

.content-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

/* ── Form pages ── */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-card h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.25rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.2);
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--accent-hover); }

.form-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-side img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-banner h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }

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

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.error-page h1 { font-size: 1.5rem; color: var(--primary); margin: 1rem 0; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ── Media block (image + text alternating) ── */
.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

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

.media-img img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 4px 16px rgba(10,37,64,0.12);
}

.media-text h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.media-text p { color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.97rem; }
.media-text p:last-child { margin-bottom: 0; }

/* ── Full-width image showcase ── */
.img-showcase {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.img-showcase img { width: 100%; height: auto; }

.img-showcase-caption {
  padding: 1.5rem 2rem;
}

.img-showcase-caption h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.img-showcase-caption p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ── Promo grid (large promo images) ── */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.promo-card:hover { transform: translateY(-3px); }

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

.promo-card-body { padding: 1.25rem; }
.promo-card-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.promo-card-body p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ── Supplier logo grid ── */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.supplier-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.supplier-item:hover { transform: scale(1.04); }

.supplier-item img {
  width: 100%;
  height: 56px;
  object-fit: contain;
  margin: 0 auto;
}

.supplier-item p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Steps guide ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-card img { width: 100%; height: 180px; object-fit: cover; }
.step-card-body { padding: 1.1rem; }
.step-card-body h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.step-card-body p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── Game detail rows ── */
.game-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.game-detail:nth-child(even) { direction: rtl; }
.game-detail:nth-child(even) > * { direction: ltr; }

.game-detail-img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

.game-detail-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-detail-text h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.75rem; }
.game-detail-text p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.game-detail-text p:last-child { margin-bottom: 0; }

/* ── App ad bar ── */
.app-ad-bar {
  background: linear-gradient(180deg, #fff9e6 0%, #ffffff 100%);
  border-bottom: 2px solid var(--accent);
  padding: 0.85rem 1.25rem 1rem;
  text-align: center;
}

.app-ad-bar .applist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
  letter-spacing: 0.02em;
}

.app-ad-bar .applist-title::before {
  content: "📲 ";
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

#ads figure {
  margin: 0;
}

#ads a {
  display: block;
  border-radius: 18px;
  line-height: 0;
  cursor: pointer;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.18);
  border: 2px solid #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(212, 160, 23, 0.35);
}

#ads .caption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 480px) {
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
  #ads .caption { max-width: 72px; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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

@media (max-width: 900px) {
  .media-block { grid-template-columns: 1fr; }
  .media-block.reverse .media-img { order: 0; }
  .media-block.reverse .media-text { order: 0; }
  .game-detail { grid-template-columns: 1fr; }
  .game-detail:nth-child(even) { direction: ltr; }
  .game-detail-img img { min-height: 200px; }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 0.75rem 1rem; }

  .timeline-item { flex-direction: column; }
  .content-article { padding: 1.25rem; }
}
