:root {
  --page: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #111827;
  --muted: #5b6472;
  --line: #dfe5ec;
  --brand: #334155;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --focus: #2563eb;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: none;
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
  background: rgba(255, 255, 255, 0.95);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav,
.site-footer nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.nav-cta,
.primary-action,
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff !important;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 700;
}

.nav-cta:hover,
.primary-action:hover,
.sticky-cta a:hover {
  background: var(--accent-strong);
}

.nav-login {
  border: 1px solid #4f46e5;
  border-radius: 8px;
  color: #4f46e5 !important;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}

.nav-login:hover {
  background: #eef2ff;
}

.compare-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1976d2 !important;
  color: #ffffff !important;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 700;
}

.compare-action:hover {
  background: #125aa0 !important;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  list-style: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover {
  background: #f3f4f6;
  color: #4f46e5;
}

.language-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.language-menu a {
  border-radius: 6px;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 8px 10px;
  text-decoration: none;
}

.language-menu a:hover {
  background: #f5f3ff;
  color: #4f46e5;
}

.blog-hero,
.article-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 48%, #e0f2fe 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-hero-inner,
.article-hero-inner,
.content-band,
.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.article-hero-inner,
.article-shell {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--accent-strong);
  text-decoration: none;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.blog-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.blog-card a {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  text-decoration: none;
}

.blog-card time {
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
}

.blog-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.22rem;
  line-height: 1.32;
}

.blog-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.blog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.blog-card strong {
  color: var(--accent-strong);
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 650;
}

.article-shell {
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.article-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 700;
}

.article-note {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 14px 16px;
}

.article-content {
  color: #1f2937;
  font-size: 1.04rem;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 34px 0 12px;
  color: #0f172a;
  line-height: 1.24;
  letter-spacing: 0;
}

.article-content h2 {
  font-size: 1.55rem;
}

.article-content h3 {
  font-size: 1.28rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table {
  margin-top: 0;
  margin-bottom: 18px;
}

.article-content a {
  color: var(--accent-strong);
  font-weight: 650;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  padding: 14px 18px;
  color: #334155;
}

.blog-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #f1f5f9;
}

.language-panel {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.language-panel h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.language-list {
  display: grid;
  gap: 10px;
}

.language-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.language-list span {
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 800;
  padding: 4px 7px;
}

.empty-state,
.status-page {
  max-width: 760px;
  margin: 48px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 42px 24px;
  text-align: center;
}

.status-page a {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 700;
}

.sticky-cta {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 18px;
  box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
}

.sticky-cta span {
  font-weight: 800;
}

.sticky-cta a {
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .site-header-inner,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header-inner {
    padding: 12px 18px;
  }

  .main-nav,
  .header-actions {
    align-items: stretch;
  }

  .main-nav a {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
  }

  .language-menu div {
    left: 0;
    right: auto;
  }

  .blog-hero-inner,
  .article-hero-inner,
  .content-band,
  .article-shell {
    padding: 36px 18px;
  }

  .sticky-cta {
    justify-content: space-between;
  }
}
