/* 开云体育官网 - kai-yun.one */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a3e;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 12px;
  --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;
  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 .2s; }
a:hover { color: var(--accent); }

.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 12px 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-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.logo-text { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }
.logo-text span { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,.9);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* 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-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: .92;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(245,166,35,.4);
}

.btn-primary:hover { color: var(--primary-dark); box-shadow: 0 6px 20px rgba(245,166,35,.5); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}

.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-card); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* Download Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.download-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.download-card img { width: 100%; height: 200px; object-fit: cover; }
.download-card-body { padding: 24px; }
.download-card h3 { color: var(--primary-dark); margin-bottom: 12px; }
.download-card p { color: var(--text-muted); margin-bottom: 16px; font-size: .95rem; }

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.partner-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: .85;
  transition: filter .2s, opacity .2s;
}

.partner-logos img:hover { filter: none; opacity: 1; }

/* Content Article */
.content-article {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.content-article h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.content-article h2:first-child { margin-top: 0; }

.content-article h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 24px 0 12px;
}

.content-article p { margin-bottom: 16px; color: var(--text); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.content-article li { margin-bottom: 8px; }

.content-article img {
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { opacity: .9; font-size: 1.05rem; }

/* Form */
.form-section { padding: 48px 0 80px; }

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h2 {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.form-card .form-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: .95rem;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: .9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,42,.15);
}

.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 .2s;
}

.form-submit:hover { background: var(--primary-dark); }

.form-links {
  text-align: center;
  margin-top: 20px;
  font-size: .9rem;
  color: var(--text-muted);
}

.form-links a { font-weight: 500; }

.form-seo-content {
  max-width: 800px;
  margin: 48px auto 0;
}

/* Error Pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.8rem; margin-bottom: 12px; color: var(--primary-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img { width: 56px; border-radius: 8px; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; opacity: .8; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  opacity: .7;
}

/* Internal Links Box */
.internal-links {
  background: linear-gradient(135deg, rgba(26,95,42,.06), rgba(45,138,62,.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.internal-links h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.internal-links a { font-size: .9rem; font-weight: 500; }

/* Responsive */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Ads Bar */
.ads-bar {
  background: linear-gradient(180deg, #fff9f0 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
}

.ads-bar-label {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-hover);
  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: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  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: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
}

#ads a:hover img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(245, 166, 35, 0.35);
}

#ads .caption {
  margin-top: 6px;
  height: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 16px;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 12px;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 16px; }

  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 48px 0; }
  .content-article { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
}
