/* 开云体育 kai-yun.my 站点样式 */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a42;
  --accent: #f5c518;
  --accent-hover: #e6b800;
  --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;
}

*, *::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;
}

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); text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,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; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.logo-text { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; }
.logo-text span { color: var(--accent); }

.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,0.9);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dark) !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-hover) !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-grid {
  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;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(245,197,24,0.4);
}

.btn-primary:hover { background: var(--accent-hover); color: var(--primary-dark); }

.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; }

.hero-img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 1.85rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* 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);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,95,42,0.12); }

.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-item h3 { font-size: 1.05rem; color: var(--primary-dark); margin-bottom: 8px; }
.feature-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Content Article */
.content-article {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.content-article h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.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); }
.content-article li { margin-bottom: 8px; }

.content-img {
  border-radius: var(--radius);
  margin: 24px auto;
  box-shadow: var(--shadow);
}

/* Partners */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.partner-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partner-logos img:hover { opacity: 1; filter: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }

/* Form Pages */
.form-page { padding: 50px 0 80px; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h1 { font-size: 1.6rem; color: var(--primary-dark); margin-bottom: 8px; }
.form-card .form-desc { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.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.1);
}

.form-submit { width: 100%; margin-top: 8px; }
.form-links { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

.seo-sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.seo-sidebar h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 16px; }
.seo-sidebar p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.seo-sidebar img { border-radius: var(--radius); margin: 16px 0; }

/* Error Pages */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 60px;
}

.error-page-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-title { font-size: 1.5rem; margin: 16px 0; color: var(--primary-dark); }
.error-desc { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; }
.error-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-btn-outline { color: var(--primary); border-color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p { font-size: 0.9rem; opacity: 0.8; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  color: var(--accent);
  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,0.75); font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* 顶部广告栏 */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0 8px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: transparent;
  margin: 0;
}

#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(26, 95, 42, 0.15);
  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;
  line-height: 0;
}

#ads a:hover { text-decoration: none; }

#ads img:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(26, 95, 42, 0.22);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

/* Internal links block */
.internal-links {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.internal-links h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 14px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.internal-links a { font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .form-layout { grid-template-columns: 1fr; }
  .hero-img-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@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; }
  .content-article { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
