:root {
  --bg: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.gt-hidden-bar { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.site-header { background: var(--bg); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; }
.brand-badge { background: var(--accent); padding: 0.25rem 0.5rem; border-radius: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid #334155; color: #fff; padding: 0.35rem 0.6rem; border-radius: 6px; }
.nav-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.nav-list a, .dropdown-btn { color: #e2e8f0; background: none; border: none; font: inherit; cursor: pointer; padding: 0.35rem 0.5rem; }
.has-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #1e293b;
  min-width: 210px; border-radius: 8px; padding: 0.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.dropdown-menu.dropdown-wide { min-width: 420px; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
.has-dropdown.open > .dropdown-menu { display: block; }
.has-dropdown.open > .dropdown-menu.dropdown-wide { display: grid; }
.dropdown-menu a { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; }
.lang-select, .rate-select { padding: 0.35rem 0.6rem; border-radius: 6px; border: 1px solid var(--border); }
.adsense-banner { max-width: 1200px; margin: 0.75rem auto; padding: 0 1rem; }
.article-layout {
  max-width: 1200px; margin: 1.5rem auto; padding: 0 1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start;
}
.article-main, .page-container {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
}
.page-container { max-width: 1100px; margin: 1.5rem auto; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pill { background: #eff6ff; color: var(--accent); padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.pill-muted { background: #f1f5f9; color: var(--muted); }
.listen-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid var(--border); padding: 0.85rem 1rem; border-radius: 10px; margin: 1.25rem 0;
}
.listen-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.btn-listen, .btn-primary { background: var(--accent); color: #fff; border: none; padding: 0.5rem 0.9rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-secondary { background: #e2e8f0; color: var(--text); border: none; padding: 0.5rem 0.8rem; border-radius: 8px; cursor: pointer; }
.article-hero-figure img, .article-gallery img { width: 100%; height: auto; border-radius: 10px; display: block; }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
figure { margin: 1.25rem 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4rem; }
.toc-card, .sidebar-card, .contact-box {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin: 1.5rem 0;
}
.faq-grid, .related-grid, .cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem;
}
.faq-card, .related-card, .item-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.6rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit;
}
.site-footer { background: var(--bg); color: #cbd5e1; margin-top: 3rem; padding: 2.5rem 1rem 1.5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer-grid h3 { color: #fff; margin-top: 0; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: #93c5fd; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid #1e293b; text-align: center; font-size: 0.9rem; }
@media (max-width: 900px) {
  .article-layout, .footer-grid, .form-row, .article-gallery { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
}
