/* YABOTIYU - yabo.boats */
:root {
  --primary: #1a5f2a;
  --primary-dark: #0f3d1a;
  --primary-light: #2d8a42;
  --accent: #f5a623;
  --accent-hover: #e09510;
  --bg: #f8faf8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e0e8e0;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 10px;
  --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.7;
  -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(--primary-light); }

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

/* Ads bar */
.ads-bar {
  background: linear-gradient(180deg, #fff 0%, #f4f8f4 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 12px;
  position: sticky;
  top: 68px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
#applist { text-align: center; }
#applist .applist-title {
  font-weight: 700;
  font-size: .92rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: transparent;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  border: 2px solid #fff;
}
#ads a {
  display: block;
  padding: 4px;
  border-radius: 18px;
  -webkit-tap-highlight-color: transparent;
}
#ads a:hover img,
#ads a:active img {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(26,95,42,.22);
}
#ads .caption {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .ads-bar { top: 60px; padding: 12px 16px 10px; }
  #ads > div { width: 72px; }
  #ads img { width: 64px; height: 64px; }
  #ads .caption { max-width: 72px; font-size: 10px; }
}

/* Header */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px 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 { height: 44px; width: auto; border-radius: 6px; }
.logo-text { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

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

.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; line-height: 1.3; }
.hero .subtitle { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .92; max-width: 720px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--accent-hover); color: #1a1a1a; }
.btn-outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sections */
section { padding: 56px 0; }
section:nth-child(even) { background: #fff; }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }

.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: .92rem; margin-bottom: 14px; }
.card-body .btn { padding: 8px 18px; font-size: .85rem; }

/* Platform links */
.platform-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.platform-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color .2s;
}
.platform-item:hover { border-color: var(--primary-light); }
.platform-item img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 14px; border-radius: 12px; }
.platform-item h3 { font-size: 1rem; margin-bottom: 6px; }
.platform-item p { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }

/* Features */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-item { text-align: center; padding: 24px 16px; }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-dark); }
.feature-item p { font-size: .9rem; color: var(--text-muted); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-dark);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--text-muted); font-size: .93rem; }

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

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.testimonial p { font-style: italic; color: var(--text-muted); margin-bottom: 16px; font-size: .93rem; }
.testimonial .author { font-weight: 600; color: var(--primary-dark); }
.testimonial .role { font-size: .85rem; color: var(--text-muted); }

/* News */
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.news-date { color: var(--primary); font-weight: 600; font-size: .85rem; white-space: nowrap; min-width: 110px; }
.news-content h3 { font-size: .98rem; margin-bottom: 4px; }
.news-content p { font-size: .88rem; color: var(--text-muted); }

/* Showcase */
.showcase-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

/* Page (subpages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }

.breadcrumb {
  padding: 14px 0;
  font-size: .88rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.page-content h2 { font-size: 1.3rem; color: var(--primary-dark); margin: 32px 0 12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.1rem; color: var(--text); margin: 24px 0 10px; }
.page-content p, .page-content li { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code { font-size: 6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h1 { font-size: 1.5rem; margin: 16px 0 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Image + Text rows */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.img-text-row:last-child { margin-bottom: 0; }
.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }
.img-text-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.img-text-row h3 { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 12px; }
.img-text-row p { color: var(--text-muted); font-size: .93rem; margin-bottom: 10px; }
.img-text-row ul { padding-left: 18px; margin: 12px 0; }
.img-text-row li { color: var(--text-muted); font-size: .9rem; margin-bottom: 6px; list-style: disc; }

/* Preview gallery */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.preview-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.preview-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.preview-card figcaption {
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--text-muted);
}
.preview-card figcaption strong { display: block; color: var(--primary-dark); margin-bottom: 4px; font-size: 1rem; }

/* Promo banner */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #f0f7f0 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.promo-banner img { border-radius: 8px; box-shadow: var(--shadow); }
.promo-banner h3 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 12px; }
.promo-banner p { color: var(--text-muted); font-size: .93rem; margin-bottom: 10px; }
.promo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.promo-tag {
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
}

/* Version list */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.version-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
}
.version-item time { color: var(--primary); font-weight: 600; }
.version-item span { color: var(--text-muted); }

/* SEO content block */
.seo-block {
  max-width: 900px;
  margin: 0 auto;
}
.seo-block h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 16px; }
.seo-block h3 { font-size: 1.1rem; color: var(--text); margin: 24px 0 10px; }
.seo-block p { color: var(--text-muted); font-size: .93rem; margin-bottom: 12px; }
.seo-block ul { padding-left: 20px; margin-bottom: 16px; }
.seo-block li { color: var(--text-muted); font-size: .9rem; margin-bottom: 6px; list-style: disc; }

/* App compare */
.app-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.app-compare-item {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.app-compare-item img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; border-radius: 12px; }
.app-compare-item h4 { font-size: .95rem; color: var(--primary-dark); margin-bottom: 6px; }
.app-compare-item p { font-size: .82rem; color: var(--text-muted); }

/* Full-width showcase */
.showcase-full { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 24px 0; }

/* Responsive */
@media (max-width: 768px) {
  .img-text-row, .promo-banner { grid-template-columns: 1fr; }
  .img-text-row.reverse { direction: ltr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
  .hero { padding: 48px 20px 56px; }
  section { padding: 40px 0; }
}
