/* 开云体育 kaiyun.rest - 全局样式 */
:root {
  --primary: #1a6b3c;
  --primary-dark: #0f4d2a;
  --primary-light: #2d9b5a;
  --accent: #f5a623;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6270;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

*, *::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.8;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

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

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-link:hover { color: #fff; opacity: 0.9; }

.logo-link img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

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

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/开云体育背景.avif") center/cover no-repeat;
  opacity: 0.12;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #1a1a2e;
}

.btn-primary:hover { color: #1a1a2e; box-shadow: 0 4px 16px rgba(245,166,35,0.4); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

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

main { padding: 40px 0 60px; }

/* Section */
.section { margin-bottom: 48px; }

.section-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-light);
  display: inline-block;
}

.section h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 24px 0 12px;
}

.section p { margin-bottom: 14px; color: var(--text); }

.section ul, .section ol {
  margin: 12px 0 16px 24px;
  color: var(--text);
}

.section li { margin-bottom: 8px; }

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

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

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

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

.card-body { padding: 20px; }

.card-body h3 { margin-top: 0; font-size: 1.05rem; }

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  background: var(--card);
  padding: 18px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary-light);
  box-shadow: var(--shadow);
}

.feature-list strong { color: var(--primary-dark); }

/* Image figure */
.content-figure {
  margin: 28px 0;
  text-align: center;
}

.content-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.content-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Partners */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partners img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partners img:hover { opacity: 1; }

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

.faq-item h3 {
  padding: 16px 20px;
  margin: 0;
  font-size: 1rem;
  background: #f0f7f3;
  color: var(--primary-dark);
}

.faq-item p {
  padding: 14px 20px 18px;
  margin: 0;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  margin: 40px 0;
}

.cta-banner h2 { margin-bottom: 12px; font-size: 1.4rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 20px; }

/* Form pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.page-hero h1 { font-size: 1.8rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.form-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  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-light);
  box-shadow: 0 0 0 3px rgba(45,155,90,0.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 0.2s;
}

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

.form-links {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.seo-content {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-content h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 24px 0 12px;
}

.seo-content h2:first-child { margin-top: 0; }

/* Legal pages */
.legal-content {
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 40px auto;
}

.legal-content h1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.legal-content .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }

.legal-content h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 28px 0 12px;
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-brand img { width: 48px; border-radius: 8px; margin-bottom: 12px; }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-nav h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.footer-nav ul { list-style: none; }

.footer-nav li { margin-bottom: 8px; }

.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }

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

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 16px 0; }

.steps li {
  counter-increment: step;
  padding: 14px 14px 14px 52px;
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Mobile nav */
@media (max-width: 768px) {
  .site-header { position: sticky; }

  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 2;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
  }

  .nav-list {
    display: none;
    position: static;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .nav-list.open { display: flex; }

  .form-section { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .legal-content { padding: 24px; margin: 24px 16px; }
}

/* APP 推荐广告 */
#applist {
  text-align: center;
  margin-bottom: 24px;
}

#applist .applist-title {
  font-weight: bold;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
  margin: 10px 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#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: 12px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
