/* 开云体育 kai-yun.sbs - 全局样式 */
:root {
  --primary: #1a3a6b;
  --primary-dark: #0f2447;
  --accent: #d4a017;
  --accent-hover: #f0c040;
  --text: #333;
  --text-light: #666;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e0e4ea;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 8px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img { height: 48px; width: auto; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  white-space: nowrap;
}

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

.header-actions { display: flex; gap: 10px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}

.menu-toggle:hover { background: rgba(255,255,255,.18); }

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

body.nav-open .menu-toggle .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle .menu-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

.mobile-nav-actions {
  display: none;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}

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

.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5298 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero .subtitle {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 50px 0; }
.section-alt { background: var(--white); }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

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

.card-body { padding: 20px; }
.card-body h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.15rem; }
.card-body p { color: var(--text-light); font-size: .95rem; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-item .icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-item h3 { color: var(--primary); margin-bottom: 8px; }
.feature-item p { color: var(--text-light); font-size: .9rem; }

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
}

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

.partner-item img { max-height: 80px; margin: 0 auto; object-fit: contain; }
.partner-item p { font-size: .8rem; color: var(--text-light); margin-top: 8px; }

/* Content Article */
.content-article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.content-article h1 { color: var(--primary); font-size: 2rem; margin-bottom: 20px; }
.content-article h2 { color: var(--primary); font-size: 1.4rem; margin: 30px 0 14px; border-left: 4px solid var(--accent); padding-left: 12px; }
.content-article h3 { color: var(--primary); font-size: 1.15rem; margin: 20px 0 10px; }
.content-article p { margin-bottom: 14px; color: var(--text); }
.content-article ul, .content-article ol { margin: 10px 0 14px 24px; }
.content-article li { margin-bottom: 6px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

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

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
}

.faq-item summary::before { content: "▸ "; color: var(--accent); }
.faq-item[open] summary::before { content: "▾ "; }

.faq-item p { padding: 0 24px 18px; color: var(--text-light); }

/* Form Pages */
.form-page {
  padding: 50px 0;
  min-height: 60vh;
}

.form-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-wrapper h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.form-wrapper .form-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: .95rem;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--text); }

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

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,.1);
}

.form-submit { width: 100%; margin-top: 8px; }

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .9rem;
  color: var(--text-light);
}

/* SEO Content Block (below forms) */
.seo-content {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.seo-content h2 { color: var(--primary); font-size: 1.3rem; margin-bottom: 12px; }
.seo-content p { color: var(--text-light); margin-bottom: 12px; font-size: .95rem; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 30px 0; }

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
  font-size: 1.1rem;
}

.step h3 { color: var(--primary); margin-bottom: 8px; font-size: 1rem; }
.step p { color: var(--text-light); font-size: .88rem; }

/* App showcase */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-showcase img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: .88rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 50px 0 20px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 { color: var(--accent); margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .logo img { height: 40px; }

  .menu-toggle { display: flex; margin-left: auto; }

  .header-actions { display: none; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    z-index: 1100;
    padding: 72px 0 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,.25);
  }

  body.nav-open .main-nav { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 12px;
  }

  .main-nav li { border-bottom: 1px solid rgba(255,255,255,.08); }

  .main-nav li:last-child { border-bottom: none; }

  .main-nav a {
    display: block;
    padding: 16px 18px;
    font-size: 1rem;
    border-radius: 0;
  }

  .main-nav a.active {
    background: rgba(212,160,23,.15);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .mobile-nav-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  body.nav-open { overflow: hidden; }

  .hero h1 { font-size: 1.6rem; }
  .app-showcase { grid-template-columns: 1fr; }
  .content-article { padding: 24px; }
  .form-wrapper { padding: 28px 20px; }
  .img-text-row { grid-template-columns: 1fr !important; }
  .img-text-row.reverse .img-text-img { order: 0; }
  .screenshot-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-bar { flex-direction: column; gap: 16px; }
}

/* Image + Text alternating rows */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.img-text-row:last-child { margin-bottom: 0; }

.img-text-row.reverse { direction: ltr; }
.img-text-row.reverse .img-text-img { order: 2; }
.img-text-row.reverse .img-text-content { order: 1; }

.img-text-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.img-text-content h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.img-text-content p {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: .95rem;
}

.img-text-content ul {
  margin: 10px 0 16px 20px;
  color: var(--text-light);
  font-size: .93rem;
}

.img-text-content li { margin-bottom: 6px; }

/* Screenshot gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-item {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}

.screenshot-item:hover { transform: translateY(-4px); }

.screenshot-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.screenshot-item figcaption {
  padding: 12px 10px;
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Promo expanded grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.promo-card-body {
  padding: 20px;
  flex: 1;
}

.promo-card-body h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.promo-card-body p {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 12px;
}

.promo-card-body a {
  font-size: .88rem;
  font-weight: 600;
}

/* Game providers */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.provider-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

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

.provider-item img {
  max-height: 50px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.provider-item span {
  font-size: .75rem;
  color: var(--text-light);
  display: block;
}

/* Stats bar */
.stat-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin-top: 4px;
}

/* Content article with inline images */
.content-img-block {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.content-img-block img { width: 100%; }

.content-img-caption {
  background: var(--bg);
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--text-light);
  text-align: center;
}

.content-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.content-img-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

@media (max-width: 768px) {
  .content-img-row { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
}

/* APP 推荐广告 */
.ads-banner {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

#applist { text-align: center; }

#applist .applist-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: .5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
}

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

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(26,58,107,.15);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  border: 2px solid rgba(255,255,255,.9);
  background: #fff;
  cursor: pointer;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  line-height: 0;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(26,58,107,.22);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ads-banner {
    top: 60px;
    padding: 12px 0 8px;
  }

  #ads { gap: 10px 14px; }

  #ads > div { width: 72px; }

  #ads img {
    width: 64px;
    height: 64px;
  }

  #ads .caption {
    max-width: 72px;
    font-size: 10px;
  }
}
.footer-bottom a{
  color: var(--accent);
}
.subtitle a{
  color: var(--accent);
}