/* 亚博体育 yabo.lol - 全局样式 */
: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, 0.08);
  --radius: 12px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  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(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

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

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.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: 10px; }
.logo-link img { height: 44px; width: auto; border-radius: 6px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.95rem;
  border-radius: 8px;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active { background: #edf7ef; color: var(--primary); }

.nav-cta { display: flex; gap: 8px; margin-left: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1a2e; }
.btn-accent:hover { background: var(--accent-hover); color: #1a1a2e; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d9a4a 100%);
  color: #fff;
  padding: 72px 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-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 2.5rem; line-height: 1.25; margin-bottom: 20px; font-weight: 800; }
.hero-desc { font-size: 1.1rem; opacity: 0.92; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-card); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; 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);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { height: 180px; object-fit: cover; width: 100%; }
.card-body { padding: 24px; }
.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; }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #edf7ef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--primary-dark); }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* App section */
.app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.app-card img { margin: 0 auto 20px; max-height: 200px; object-fit: contain; }
.app-card h3 { color: var(--primary-dark); margin-bottom: 12px; }
.app-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

/* 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: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* Content article */
.content-page { padding: 48px 0 80px; }
.content-page .container { max-width: 860px; }
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.content-page h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 16px; }
.content-page .lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.content-page h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 36px 0 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.content-page h2:first-of-type { border-top: none; padding-top: 0; }
.content-page h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.content-page p { margin-bottom: 16px; color: var(--text); }
.content-page ul, .content-page ol { margin: 0 0 16px 24px; color: var(--text); }
.content-page li { margin-bottom: 8px; }

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.auth-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-form-wrap h1 { font-size: 1.75rem; color: var(--primary-dark); margin-bottom: 8px; }
.auth-form-wrap .subtitle { 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;
  font-family: var(--font);
  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-footer { margin-top: 24px; text-align: center; font-size: 0.9rem; color: var(--text-muted); }
.auth-seo-content h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 14px; }
.auth-seo-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }
.auth-seo-content ul { margin: 0 0 16px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }

/* Internal links */
.internal-links {
  background: #edf7ef;
  padding: 32px;
  border-radius: var(--radius);
  margin: 40px 0;
}
.internal-links h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 12px; }
.internal-links ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; }
.internal-links a { font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #c8cdd6;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c8cdd6; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2d3348;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 1.75rem; margin: 16px 0 12px; color: var(--primary-dark); }
.error-page p { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* Image-rich homepage sections */
.banner-showcase {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}
.banner-showcase img { width: 100%; max-height: 480px; object-fit: cover; }
.banner-showcase-caption {
  background: linear-gradient(to top, rgba(15,61,26,0.92), rgba(15,61,26,0.6));
  color: #fff;
  padding: 32px;
  margin-top: -4px;
}
.banner-showcase-caption h2 { font-size: 1.5rem; margin-bottom: 10px; }
.banner-showcase-caption p { opacity: 0.92; font-size: 0.98rem; line-height: 1.8; }

.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.img-text-row:last-child { margin-bottom: 0; }
.img-text-row.reverse .img-text-media { order: 2; }
.img-text-row.reverse .img-text-body { order: 1; }
.img-text-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.img-text-body h3 { font-size: 1.35rem; color: var(--primary-dark); margin-bottom: 14px; }
.img-text-body p { color: var(--text-muted); margin-bottom: 14px; font-size: 0.98rem; }
.img-text-body ul { margin: 0 0 16px 20px; color: var(--text-muted); font-size: 0.95rem; }
.img-text-body li { margin-bottom: 6px; }

.triple-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.showcase-card img { width: 100%; height: 220px; object-fit: cover; }
.showcase-card-body { padding: 20px; }
.showcase-card-body h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; }
.showcase-card-body p { font-size: 0.9rem; color: var(--text-muted); }

.product-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-item {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  transition: box-shadow 0.2s;
}
.product-item:hover { box-shadow: var(--shadow); }
.product-item img {
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.product-item h3 { font-size: 0.95rem; color: var(--primary-dark); margin-bottom: 6px; }
.product-item p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.full-img-block {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.full-img-block img { width: 100%; }
.full-img-caption {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 24px 28px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.full-img-caption h3 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 8px; }
.full-img-caption p { font-size: 0.95rem; color: var(--text-muted); }

.app-section-3 { grid-template-columns: repeat(3, 1fr); }

.seo-article-img {
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: var(--shadow);
}

/* Responsive */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner, .app-section, .auth-grid, .footer-grid, .promo-grid,
  .img-text-row, .triple-showcase, .product-matrix, .app-section-3 { grid-template-columns: 1fr; }
  .img-text-row.reverse .img-text-media,
  .img-text-row.reverse .img-text-body { order: unset; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 1.85rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .nav-cta { margin-left: 0; margin-top: 8px; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
.nav-cta a:nth-child(2){
  color: #fff;
}

/* APP 推荐广告栏 */
.ad-bar-wrap {
  background: linear-gradient(180deg, #fff9ed 0%, #fff 100%);
  border-bottom: 1px solid #f0e6d0;
  padding: 10px 0;
  position: sticky;
  top: 69px;
  z-index: 90;
}

#applist {
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

#applist .applist-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

#applist .applist-title::before {
  content: "🔥 ";
}

#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: 80px;
  box-sizing: border-box;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px 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: 18px;
  padding: 2px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(26, 95, 42, 0.22);
}

#ads figcaption,
#ads .caption {
  margin-top: 6px;
  height: 20px;
  line-height: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ad-bar-wrap { top: 61px; padding: 8px 0; }
  #ads { gap: 10px 12px; }
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
}
.hero-desc a,a{
  color: #347eff;
}