/* 开云体育 kaiyun-sd.com */
:root {
  --brand: #0d4a2e;
  --brand-light: #1a7a4a;
  --accent: #c9a227;
  --accent-hover: #e0b83d;
  --bg: #f5f7f6;
  --bg-dark: #0a1f14;
  --text: #1a1a1a;
  --text-muted: #5a6b62;
  --white: #ffffff;
  --border: #dde5e0;
  --shadow: 0 4px 24px rgba(13, 74, 46, 0.08);
  --radius: 6px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --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: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand);
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.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 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-link img { height: 44px; width: auto; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.nav-desktop { display: flex; align-items: center; gap: 1.75rem; }

.nav-desktop a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--brand-light); }

.nav-actions { display: flex; gap: 0.75rem; margin-left: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg-dark);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.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); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-mobile.open { transform: translateX(0); }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.nav-mobile .nav-actions-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.nav-mobile .nav-actions-mobile .btn { width: 100%; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .nav-mobile { display: block; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--brand) 50%, #0f5c38 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/开云体育首页.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,31,20,0.92) 0%, rgba(10,31,20,0.6) 60%, rgba(10,31,20,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  color: var(--white);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.6;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-cta .btn { padding: 0.85rem 2rem; font-size: 1rem; }

/* Sections */
section { padding: 4.5rem 0; }

section:nth-child(even) { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.content-block { max-width: 860px; margin: 0 auto; }

.content-block p { color: var(--text); text-align: justify; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Product showcase */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-text h2 { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase.reverse { direction: ltr; }
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.partner-logo:hover { box-shadow: var(--shadow); }

.partner-logo img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.faq-item p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* Internal links block */
.internal-links {
  background: linear-gradient(180deg, #eef3f0 0%, var(--bg) 100%);
  padding: 3rem 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-grid a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-grid a:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  color: var(--brand-light);
}

/* Page template (legal, about) */
.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--bg-dark) 100%);
  padding: 3rem 0;
  color: var(--white);
}

.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.25rem); }

.page-hero .breadcrumb {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.page-hero .breadcrumb a { color: var(--accent); }

.page-content {
  padding: 3rem 0 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
}

.page-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: var(--brand-light);
}

/* Auth pages */
.auth-section {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: linear-gradient(160deg, #eef3f0 0%, var(--bg) 50%, #e8f0eb 100%);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.auth-info h1 { margin-bottom: 1rem; }

.auth-info p { color: var(--text-muted); }

.auth-info ul { color: var(--text-muted); font-size: 0.95rem; }

.auth-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-form-wrap h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-light);
}

.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-form-wrap { padding: 1.75rem; }
}

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(160deg, var(--bg) 0%, #eef3f0 100%);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 { margin-bottom: 1rem; }

.error-page p { color: var(--text-muted); max-width: 480px; margin: 0 auto 2rem; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img { height: 40px; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.55); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.8s ease-out; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Site ads bar */
.site-ads-bar {
  background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: relative;
  z-index: 10;
}

.site-ads-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.site-ads-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  background: transparent;
  width: 100%;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  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);
  cursor: pointer;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(13, 74, 46, 0.22);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.35rem;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .site-ads-bar { padding: 0.6rem 0; }
  #ads { gap: 0.5rem 0.65rem; }
  #ads > div { width: 68px; }
  #ads img { width: 58px; height: 58px; }
}
