:root {
  --bg: #f7f8fb;
  --panel: #eef3f9;
  --line: rgba(15, 23, 42, 0.1);
  --text: #1e293b;
  --text-body: #334155;
  --heading: #0f172a;
  --muted: #64748b;
  --accent: #1d6fdc;
  --accent-hover: #1558b8;
  --link: #1d6fdc;
  --site-chrome-height: 4.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-chrome-height);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}

/* 顶栏异步加载前的占位，避免首屏被固定栏遮挡 */
#site-header:empty {
  height: var(--site-chrome-height);
  pointer-events: none;
}

.site-chrome-spacer {
  height: var(--site-chrome-height);
  flex-shrink: 0;
  pointer-events: none;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  max-width: 54rem;
  padding: 2.6rem 0 1.2rem;
}

.breadcrumb {
  margin: 0 0 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.45;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.45rem;
  color: var(--muted);
  opacity: 0.72;
}

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

.breadcrumb a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text-body);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: stretch;
  padding-bottom: 2rem;
}

.article-body {
  max-width: 54rem;
}

section {
  scroll-margin-top: calc(var(--site-chrome-height) + 0.75rem);
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.012em;
  color: var(--heading);
}

.meta {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta time {
  color: #475569;
}

p {
  margin: 0 0 1.1rem;
  color: var(--text-body);
}

h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  color: var(--heading);
}

h3 {
  margin: 1.6rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--heading);
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--text-body);
}

li {
  margin: 0.45rem 0;
}

strong {
  color: var(--heading);
}

.toc-aside {
  position: relative;
}

.toc {
  position: sticky;
  top: calc(var(--site-chrome-height) + 1.25rem);
  z-index: 10;
  margin: 0;
  padding: 0.85rem 0 0.85rem 0.75rem;
  max-height: calc(100vh - var(--site-chrome-height) - 2.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left: 2px solid var(--line);
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.toc::-webkit-scrollbar {
  width: 4px;
}

.toc::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}

.toc-title {
  margin: 0 0 0.65rem;
  padding-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-body);
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  background: var(--panel);
}

.toc a.is-active {
  font-weight: 600;
  border-left: 2px solid var(--accent);
  margin-left: -2px;
  padding-left: calc(0.5rem + 2px);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc-aside {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .toc {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, var(--panel));
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .toc a.is-active {
    border-left: none;
    margin-left: 0;
    padding-left: 0.5rem;
  }

  .toc-title {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--heading);
  }

  .toc a {
    font-size: 0.95rem;
  }
}

.tip {
  margin: 1.2rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: var(--text-body);
}

.footer {
  margin-top: 2.6rem;
  padding: 1.2rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.to-top:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(29, 111, 220, 0.35);
}

.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top__icon {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .to-top {
    transition: none;
  }

  .to-top.is-visible {
    transform: none;
  }
}

/* 404 error page */
.page-error {
  --surface: #ffffff;
  --accent-soft: #eff6ff;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 6px 20px rgba(29, 111, 220, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.2rem 4rem;
}

.error-panel {
  width: min(100%, 36rem);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #dbeafe;
}

.error-panel h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--heading);
}

.error-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.page-error .site-footer {
  margin-top: 0;
}

/* Shared site chrome (nav homepage + articles) */
.page-article .site-footer {
  margin-top: 0;
}

.page-article #main-content {
  outline: none;
}

/* Navigation homepage */
.page-nav {
  --surface: #ffffff;
  --accent-soft: #eff6ff;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 6px 20px rgba(29, 111, 220, 0.1);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
}

.wrap {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.wrap--wide {
  max-width: 72rem;
}

.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  background: #ffffff;
  box-shadow: var(--shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.site-chrome .site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

/* 旧版头尾片段未包 site-chrome 时的兜底 */
body > .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--accent);
}

.site-brand__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.site-brand:hover .site-brand__mark {
  transform: translateY(-1px);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__title {
  font-size: 0.95rem;
  font-weight: 800;
}

.site-brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--lg {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.btn--primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn--secondary {
  color: var(--accent);
  background: var(--surface);
  border-color: #bfdbfe;
}

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: #93c5fd;
  color: var(--accent-hover);
}

.btn--ghost {
  color: var(--heading);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-disclaimer {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-nav h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  color: var(--heading);
  line-height: 1.2;
}

.hero-band--nav {
  padding: 2.4rem 0 2.8rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-copy {
  max-width: none;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: #94a3b8;
}

.hero-panel {
  padding: 1.25rem 1.3rem;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-hover);
}

.hero-panel__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.hero-panel__stats li {
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(29, 111, 220, 0.12);
}

.hero-panel__stats strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.hero-panel__stats span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-panel__subtitle {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
}

.hero-panel__path {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--text-body);
}

.hero-panel__path li {
  margin: 0.4rem 0;
}

.hero-panel__path a {
  font-weight: 600;
  text-decoration: none;
}

.hero-panel__path a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hub-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.hub-search__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--text-body);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hub-search__input:focus {
  outline: 2px solid rgba(29, 111, 220, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hub-search__btn {
  flex-shrink: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: var(--accent-soft);
  border-color: #93c5fd;
  color: var(--accent-hover);
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-desc {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-visual--photo {
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center center;
}

.hero-visual--card {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-hover);
}

.hero-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-panel__stats--inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 111, 220, 0.12);
}

.hero-stat__num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.hero-stat__label {
  font-size: 0.84rem;
  color: var(--muted);
}

.section {
  padding: 2.6rem 0;
}

.section--soft {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--heading);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-cta {
  margin: 1.5rem 0 0;
  text-align: center;
}

.hub-console {
  display: grid;
  gap: 1.25rem;
}

.hub-console__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hub-filter {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hub-filter:hover {
  border-color: #bfdbfe;
  color: var(--accent);
}

.hub-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.hub-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hub-console__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-card[hidden] {
  display: none;
}

.hub-console-empty {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.path-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-step {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.path-step__num {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.path-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.path-step p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.path-step a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.path-step a:hover {
  text-decoration: underline;
}

.device-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.device-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.device-card--accent {
  border-color: #bfdbfe;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
}

.device-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.device-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

.device-card:hover .device-card__title {
  color: var(--accent);
}

.device-card__desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.mql5-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.mql5-guide {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mql5-guide h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--heading);
}

.mql5-guide__list {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

.mql5-guide__list li {
  margin: 0.45rem 0;
}

.mql5-guide__links {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.check-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-body);
  font-size: 0.92rem;
}

.check-list li {
  margin: 0.4rem 0;
}

.check-list code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--panel);
}

.topic-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.topic-card__label {
  font-weight: 700;
  color: var(--heading);
}

.topic-card:hover .topic-card__label {
  color: var(--accent);
}

.topic-card__count {
  font-size: 0.82rem;
  color: var(--muted);
}

.article-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.article-grid--3 {
  grid-template-columns: 1fr;
}

.article-card a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.article-card a:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-card__tag {
  align-self: flex-start;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.article-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--heading);
}

.article-card a:hover h4 {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.article-card time {
  font-size: 0.8rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
}

.about-panel {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: var(--heading);
}

.about-panel > p {
  margin: 0 0 0.85rem;
  color: var(--text-body);
}

.about-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-list li {
  margin: 0.4rem 0;
}

.about-list code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--panel);
}

.platform-groups {
  display: grid;
  gap: 1.25rem;
}

.platform-group__label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.platform-group__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.platform-pill:hover {
  border-color: #bfdbfe;
  color: var(--accent);
  transform: translateY(-1px);
}

.platform-pill--accent {
  border-color: #bfdbfe;
  background: var(--accent-soft);
  color: var(--accent);
}

.mql5-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-hover);
}

.mql5-map__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.mql5-map__dash {
  color: #93c5fd;
  font-weight: 700;
}

.mql5-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mql5-node:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.mql5-node--hub {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  min-width: 7.5rem;
}

.mql5-node--hub:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.webterminal-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.webterminal-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--heading);
}

.webterminal-copy p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-illustration {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-illustration__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center center;
}

.webterminal-visual {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}

.webterminal-visual--photo {
  background: var(--surface);
}

.webterminal-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center center;
}

.webterminal-visual__svg {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-hub {
  display: grid;
  gap: 1.25rem;
}

.tutorial-feature {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-hover);
}

.tutorial-feature__tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.tutorial-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.tutorial-feature h3 a {
  color: var(--heading);
  text-decoration: none;
}

.tutorial-feature h3 a:hover {
  color: var(--accent);
}

.tutorial-feature p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.tutorial-feature__meta {
  margin-bottom: 1rem !important;
  font-size: 0.86rem !important;
}

.tutorial-list-compact {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.tutorial-list-compact li + li {
  border-top: 1px solid var(--line);
}

.tutorial-list-compact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--heading);
  text-decoration: none;
  transition: background 0.15s ease;
}

.tutorial-list-compact a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.tutorial-list-compact__title {
  font-size: 0.92rem;
  font-weight: 600;
}

.tutorial-list-compact__title--more {
  color: var(--accent);
}

.tutorial-list-compact__date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.site-footer__logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.site-footer__desc {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.site-footer__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin: 0.35rem 0;
}

.site-footer__links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #94a3b8;
}

.entry-grid {
  display: grid;
  gap: 0.85rem;
}

.entry-grid--3 {
  grid-template-columns: 1fr;
}

.entry-grid--6 {
  grid-template-columns: repeat(2, 1fr);
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.entry-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.entry-card__label {
  font-weight: 700;
  color: var(--heading);
}

.entry-card__desc {
  font-size: 0.84rem;
  color: var(--muted);
}

.feature-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--heading);
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card--link {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card--link:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-card--link:hover h3 {
  color: var(--accent);
}

.site-footer {
  padding: 2rem 0 1.5rem;
  background: var(--heading);
  color: #cbd5e1;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .entry-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hub-console__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .hero-panel__stats--inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hub-console {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: start;
  }

  .hub-console__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-filter {
    text-align: left;
  }

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

  .webterminal-grid {
    grid-template-columns: 1fr 1.05fr;
  }

  .tutorial-hub {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .mql5-layout {
    grid-template-columns: 1fr 1fr;
  }

  .path-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 560px) {
  .hub-console__grid {
    grid-template-columns: 1fr;
  }
}
