/* 开云体育 ky-go365.com - 全局样式 */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a42;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a6b5e;
  --border: #e2ebe4;
  --shadow: 0 4px 20px rgba(26, 95, 42, 0.08);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active { background: rgba(26, 95, 42, 0.08); color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover { background: var(--accent-hover); color: #1a1a1a; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hero-img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 3px solid rgba(255,255,255,0.15);
}

/* Sections */
section { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-alt { background: var(--bg-card); }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 95, 42, 0.12);
}

.card h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card img {
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(26, 95, 42, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* TOC */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc h2 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 14px; }

.toc ol {
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li { margin-bottom: 8px; }

/* Content article */
.article-content { max-width: 860px; margin: 0 auto; }

.article-content h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 28px 0 12px;
}

.article-content p { margin-bottom: 16px; color: var(--text); }

.article-content ul, .article-content ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}

.article-content li { margin-bottom: 8px; }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.partner-item img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
  max-width: calc(var(--max-width) - 40px);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner h2 { font-size: 1.75rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.88; max-width: 600px; margin: 0 auto; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.75); padding-top: 0; text-align: left; }
.page-hero .breadcrumb a { color: #fff; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* Form */
.form-page { max-width: 520px; margin: 0 auto; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.12);
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--primary-dark); }

.form-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SEO content block on form pages */
.seo-block {
  max-width: 860px;
  margin: 48px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { width: 48px; border-radius: 8px; margin-bottom: 14px; }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.75rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Legal pages */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 32px 0 12px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul { margin-left: 24px; margin-bottom: 16px; }

.legal-content .updated { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 32px; }

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.download-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.download-card-body { padding: 24px; }

.download-card h3 { color: var(--primary-dark); margin-bottom: 10px; }

/* Internal links highlight */
.inline-links a { font-weight: 500; border-bottom: 1px dashed var(--primary-light); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a { padding: 14px 16px; }
  .nav-cta { margin-left: 0 !important; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 48px 0; }
}

/* 顶部广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 10px;
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ads-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.ads-bar-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(26, 95, 42, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.2;
  text-align: center;
  min-width: 52px;
}

#ads {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  flex: 1;
  background: transparent;
  margin: 0;
  padding: 2px 4px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#ads::-webkit-scrollbar { display: none; }

#ads .ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  flex-shrink: 0;
  box-sizing: border-box;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(24, 24, 24, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  line-height: 0;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(26, 95, 42, 0.22);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ads-bar { padding: 10px 0 8px; }
  .ads-bar-label { font-size: 0.7rem; padding: 5px 8px; min-width: 44px; }
  #ads { gap: 12px; }
  #ads .ads-item { width: 68px; }
  #ads img { width: 64px; height: 64px; border-radius: 14px; }
  #ads .caption { max-width: 68px; }
}

