/* EA Corner — portal styles */
:root {
  --bg-page: #f4f7f4;
  --bg-card: #ffffff;
  --bg-header: #1a2f23;
  --bg-header-soft: #243d2f;
  --accent: #3d8b5a;
  --accent-hover: #2f6f47;
  --accent-light: #e8f3ec;
  --gold: #c9a227;
  --text: #1c1f1d;
  --text-muted: #5c6560;
  --border: #dce5df;
  --shadow: 0 1px 3px rgba(26, 47, 35, 0.08);
  --radius: 8px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Top bar */
.top-bar {
  background: var(--bg-header);
  color: #c8d4cc;
  font-size: 12px;
  padding: 6px 0;
}

.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-bar a {
  color: #e8f0ea;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.top-bar__sep {
  opacity: 0.4;
}

/* Header main */
.site-header {
  background: linear-gradient(180deg, var(--bg-header-soft) 0%, var(--bg-header) 100%);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

@media (min-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #2a5c3e 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand__text h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand__text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9fb5a8;
}

.search-block {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .search-block {
    grid-column: auto;
  }
}

.search-form {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 420px;
}

.search-form input {
  flex: 1;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.search-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.search-form button {
  border: 0;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--accent-hover);
}

.hot-tags {
  margin-top: 8px;
  font-size: 12px;
  color: #9fb5a8;
}

.hot-tags span {
  margin-right: 6px;
}

.hot-tags a {
  color: #c8e0d2;
  margin-right: 10px;
}

.hot-tags a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: #e8f0ea;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--primary {
  background: var(--gold);
  color: #1a1f1a;
  border-color: #b8921f;
}

.btn--primary:hover {
  filter: brightness(1.05);
  color: #1a1f1a;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

/* Nav */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.main-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list.is-open {
  display: flex;
  padding-bottom: 12px;
}

@media (min-width: 900px) {
  .nav-list {
    display: flex;
    padding: 0;
  }
}

.nav-list > li > a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius);
}

.nav-list > li > a:hover,
.nav-list > li > a.is-active {
  background: var(--accent-light);
  color: var(--accent-hover);
  text-decoration: none;
}

.nav-list .has-sub > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

/* EA下载 悬停下拉 */
.nav-list > li.nav-dropdown {
  position: relative;
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .nav-dropdown .nav-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(26, 47, 35, 0.14);
    z-index: 300;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    display: block;
  }

  .nav-dropdown:hover > a,
  .nav-dropdown:focus-within > a,
  .nav-dropdown > a.is-active:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
    text-decoration: none;
  }

  .nav-submenu li:not(.nav-submenu__sep) a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-radius: 0;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .nav-submenu li:not(.nav-submenu__sep) a:hover {
    background: linear-gradient(90deg, var(--accent-light) 0%, #f0faf3 100%);
    color: var(--accent-hover);
    text-decoration: none;
  }

  .nav-submenu__sep {
    padding: 8px 16px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    pointer-events: none;
  }

  .nav-submenu__sep span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
  }
}

@media (max-width: 899px) {
  .nav-dropdown .nav-submenu {
    display: block;
    width: 100%;
    margin: 4px 0 8px 8px;
    padding: 4px 0 8px 12px;
    border-left: 3px solid var(--accent);
    background: var(--bg-page);
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .nav-dropdown .nav-submenu a {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
  }

  .nav-dropdown .nav-submenu a:active,
  .nav-dropdown .nav-submenu a:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
    text-decoration: none;
  }

  .nav-submenu__sep {
    padding: 8px 10px 4px;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
  }

  .nav-submenu__sep span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
  }
}

/* Quick strip */
.quick-strip {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.quick-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  line-height: 1.8;
}

.quick-strip a {
  color: var(--text-muted);
  margin-right: 10px;
  white-space: nowrap;
}

.quick-strip a:hover {
  color: var(--accent-hover);
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

/* Hero */
.hero {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #1e3d2a 0%, #2d5a40 45%, #3d8b5a 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  position: relative;
}

.hero p {
  margin: 0;
  opacity: 0.92;
  max-width: 560px;
  position: relative;
}

.hero__cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.hero .btn--light {
  background: #fff;
  color: var(--accent-hover);
}

.hero .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Section cards */
.section {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fafcfa 0%, #f0f5f2 100%);
  border-bottom: 1px solid var(--border);
}

.section__head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--bg-header);
}

.section__head a {
  font-size: 12px;
  font-weight: 600;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.post-item:last-child {
  border-bottom: 0;
}

.post-item:hover {
  background: #fafcfa;
}

.post-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-item__meta .tag {
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
}

.post-item__meta .tag:hover {
  text-decoration: none;
  background: #d4eadc;
}

.post-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.post-item__title a {
  color: var(--text);
}

.post-item__title a:hover {
  color: var(--accent);
}

.post-item__excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item__stats {
  font-size: 12px;
  color: #8a948c;
}

/* Sidebar */
.sidebar .section {
  margin-bottom: 16px;
}

.sidebar .section:last-child {
  margin-bottom: 0;
}

.side-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.side-list li a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 13px;
  border-left: 3px solid transparent;
}

.side-list li a:hover {
  background: var(--accent-light);
  border-left-color: var(--accent);
  text-decoration: none;
}

.notice-box {
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.notice-box strong {
  color: var(--accent-hover);
}

.qr-placeholder {
  margin: 12px 16px 16px;
  padding: 24px;
  background: var(--bg-page);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Featured grid */
.featured-grid {
  display: grid;
  gap: 12px;
  padding: 12px 16px 16px;
}

@media (min-width: 600px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafcfa;
}

.feature-card__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #dfe9e3, #c5d9cc);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.feature-card__body {
  padding: 10px 12px;
}

.feature-card__body h4 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
}

.feature-card__body h4 a {
  color: var(--text);
}

.feature-card__body h4 a:hover {
  color: var(--accent);
}

.feature-card__body p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--bg-header);
  color: #9fb5a8;
  font-size: 12px;
  padding: 28px 16px;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.site-footer a {
  color: #c8d4cc;
}

.site-footer a:hover {
  color: #fff;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(61, 139, 90, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--accent-hover);
}

/* Auth pages (login / register) */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #e8f0ea 0%, var(--bg-page) 40%, #dfe9e3 100%);
}

.auth-page {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--bg-header);
}

.auth-brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.auth-brand .brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #2a5c3e 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}

.auth-brand__text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-card {
  padding: 0;
}

.auth-card__head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafcfa 0%, #fff 100%);
}

.auth-card__title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--bg-header);
}

.auth-card__sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-alert {
  margin: 12px 22px 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: #fdeaea;
  color: #a32020;
  border: 1px solid #f0c8c8;
}

.auth-card > .auth-alert + .auth-alert {
  margin-top: 8px;
}

.auth-alert--ok {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: #b8dcc6;
}

.auth-form {
  padding: 20px 22px 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61, 139, 90, 0.15);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #d4a0a0;
}

.form-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-row--between {
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check--block {
  display: flex;
  margin-bottom: 18px;
}

.form-check input {
  margin-top: 3px;
}

.form-check a {
  color: var(--accent);
}

.auth-link-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-link-muted:hover {
  color: var(--accent);
}

.btn--submit {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.btn--submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn--submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-footer-links {
  margin: 0;
  padding: 16px 22px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.auth-sep {
  margin: 0 6px;
  opacity: 0.5;
}

.auth-legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.auth-legal a {
  color: var(--accent);
}

/* Logged-in header */
.user-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-bar__name {
  color: #e8f0ea;
  font-weight: 600;
}

.header-actions .btn--user {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.header-actions .btn--user:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

.header-actions .btn--logout {
  background: transparent;
  color: #e8f0ea;
  border-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.header-actions .btn--logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.top-bar__coin {
  color: #f0e6b4;
  font-weight: 600;
  text-decoration: none;
}

.top-bar__coin:hover {
  color: #fff;
  text-decoration: none;
}

.top-bar__coin strong {
  color: var(--gold);
  font-weight: 700;
}

/* 会员下拉（顶栏 / 头部操作区） */
.member-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.member-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.member-dropdown__trigger::after {
  content: "▾";
  font-size: 9px;
  opacity: 0.75;
  line-height: 1;
}

.member-dropdown--topbar .member-dropdown__trigger {
  color: #e8f0ea;
  font-weight: 600;
  font-size: 12px;
}

.member-dropdown--topbar .member-dropdown__trigger:hover {
  color: #fff;
}

.member-dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 140px;
}

.member-dropdown__menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.member-dropdown__menu a:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

@media (min-width: 900px) {
  .member-dropdown .member-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(26, 47, 35, 0.14);
    z-index: 400;
  }

  .member-dropdown:hover .member-dropdown__menu,
  .member-dropdown:focus-within .member-dropdown__menu {
    display: block;
  }

  .member-dropdown--header .member-dropdown__menu {
    left: auto;
    right: 0;
  }
}

@media (max-width: 899px) {
  .member-dropdown .member-dropdown__menu {
    display: block;
    margin-top: 6px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .member-dropdown--header .member-dropdown__menu {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    max-width: 220px;
  }

  .member-dropdown--topbar .member-dropdown__menu {
    width: 100%;
    max-width: 200px;
  }
}

/* Recharge / VIP service pages */
.svc-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.svc-main {
  flex: 1;
  padding: 20px 16px 40px;
}

.forex-jin10-banner {
  margin-bottom: 24px;
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-light);
  background: linear-gradient(135deg, #f8fbf9 0%, #eef6f1 100%);
}

.forex-jin10-banner__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--bg-header);
}

.forex-jin10-banner__text {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.forex-jin10-banner__text a {
  font-weight: 600;
}

.forex-jin10-banner__btn {
  padding: 12px 22px;
}

.forex-news-inner .ea-dl-hero__desc strong {
  color: inherit;
}

.tv-widget-block {
  margin-bottom: 28px;
}

.tv-widget-block__title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--bg-header);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
}

.tv-widget-block__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.forex-news-page .tradingview-widget-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.forex-news-page .tradingview-widget-container--tall {
  min-height: 400px;
}

.forex-news-page .tradingview-widget-copyright {
  font-size: 11px !important;
  padding: 4px 8px !important;
  color: var(--text-muted);
}

.forex-news-page .tradingview-widget-copyright a {
  color: var(--accent-hover);
}

.svc-inner {
  max-width: 960px;
  margin: 0 auto;
}

.svc-inner--wide {
  max-width: 1100px;
}

.svc-balance {
  margin: 0 0 16px !important;
  font-size: 14px;
  color: var(--accent-hover);
}

.svc-balance__num {
  margin-left: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.svc-section {
  margin-bottom: 16px;
}

.user-space-hero {
  margin: 0 0 20px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #1e3d2a 0%, #2d5a40 45%, #3d8b5a 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.user-space-hero__name {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
}

.user-space-hero__meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.55;
}

.user-space-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.user-space-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--bg-header);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.user-space-dl {
  display: grid;
  gap: 10px 12px;
}

@media (min-width: 560px) {
  .user-space-dl {
    grid-template-columns: 120px 1fr;
  }
}

.user-space-dl dt {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.user-space-dl dd {
  margin: 0;
  font-size: 14px;
  word-break: break-all;
}

.user-space-records {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.user-space-records li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.user-space-records li:last-child {
  border-bottom: 0;
}

.user-space-records__delta--pos {
  color: var(--accent-hover);
  font-weight: 600;
}

.user-space-records__delta--neg {
  color: #b45309;
  font-weight: 600;
}

.svc-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: normal;
}

.pkg-grid {
  display: grid;
  gap: 14px;
  padding: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .pkg-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pkg-grid--vip {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .pkg-grid--vip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pkg-card {
  position: relative;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafcfa;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pkg-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(61, 139, 90, 0.12);
}

.pkg-card--hot {
  border-color: #c9a227;
  background: linear-gradient(180deg, #fffdf5 0%, #faf8f0 100%);
}

.pkg-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold);
  color: #1a1f1a;
  font-weight: 700;
}

.pkg-card__coins {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-header);
  line-height: 1.2;
}

.pkg-card__unit {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pkg-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-hover);
  margin-bottom: 6px;
}

.pkg-card__hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn--pkg {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.btn--pkg:hover {
  background: var(--accent-hover);
}

.vip-hero {
  margin-bottom: 20px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #2a2418 0%, #4a3f28 40%, #6b5a32 100%);
  color: #f5ecd4;
  text-align: center;
  box-shadow: var(--shadow);
}

.vip-hero__title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
}

.vip-hero__desc {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

.vip-hero__desc strong {
  color: #ffe08a;
}

.vip-benefits {
  padding: 8px 16px 18px;
  display: grid;
  gap: 10px;
}

@media (min-width: 600px) {
  .vip-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vip-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.vip-benefit__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.vip-plan {
  position: relative;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.vip-plan--hot {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.vip-plan__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--bg-header);
}

.vip-plan__price {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-hover);
}

.vip-plan__n {
  color: var(--gold);
}

.vip-plan__sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn--vip {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #d4af37 0%, #b8922e 100%);
  color: #1a1a12;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 146, 46, 0.35);
}

.btn--vip:hover {
  filter: brightness(1.06);
}

.svc-notes {
  margin: 0;
  padding: 14px 16px 20px 32px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

.svc-notes a {
  font-weight: 600;
}

.svc-footnote {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.svc-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 90%;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-header);
  color: #e8f0ea;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Payment modal — 微信 / 支付宝 */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pay-modal[hidden] {
  display: none;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 47, 35, 0.55);
  backdrop-filter: blur(2px);
}

.pay-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 22px 20px 20px;
}

.pay-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pay-modal__x:hover {
  background: var(--border);
  color: var(--text);
}

.pay-modal__title {
  margin: 0 32px 8px 0;
  font-size: 1.2rem;
  color: var(--bg-header);
}

.pay-modal__title--sm {
  font-size: 1.05rem;
  text-align: center;
}

.pay-modal__order {
  margin: 0 0 18px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-page);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.5;
}

.pay-methods {
  display: grid;
  gap: 12px;
}

.pay-method {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fafcfa;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pay-method:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(61, 139, 90, 0.12);
}

.pay-method--wx:hover {
  border-color: #07c160;
}

.pay-method--ali:hover {
  border-color: #1677ff;
}

.pay-method__logo {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: block;
}

.pay-method__logo--wx {
  background: linear-gradient(145deg, #07c160 0%, #06ae56 100%);
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.35);
}

.pay-method__logo--wx::after {
  content: "微";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.pay-method__logo--ali {
  background: linear-gradient(145deg, #1677ff 0%, #0958d9 100%);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.35);
}

.pay-method__logo--ali::after {
  content: "支";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.pay-method__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.pay-method__sub {
  font-size: 11px;
  color: var(--text-muted);
  grid-column: 2;
}

.pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0 10px;
}

.pay-qr {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background-size: 20px 20px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pay-qr--wx {
  background-color: #f6fffb;
  background-image:
    linear-gradient(90deg, rgba(7, 193, 96, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(7, 193, 96, 0.12) 1px, transparent 1px);
}

.pay-qr--wx::after {
  content: "微信收款码（演示）";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #05945a;
  font-weight: 600;
  line-height: 1.4;
}

.pay-qr--ali {
  background-color: #f0f7ff;
  background-image:
    linear-gradient(90deg, rgba(22, 119, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(22, 119, 255, 0.12) 1px, transparent 1px);
}

.pay-qr--ali::after {
  content: "支付宝收款码（演示）";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #1677ff;
  font-weight: 600;
  line-height: 1.4;
}

.pay-modal__amount {
  margin: 0 0 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-hover);
}

.pay-modal__hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.pay-modal__done {
  margin-bottom: 10px;
}

.pay-modal__back {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.pay-modal__back:hover {
  text-decoration: underline;
}

/* Admin recharge */
.admin-login {
  padding: 16px 20px 20px;
}

.admin-login__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-login__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-login__row .form-input {
  flex: 1;
  min-width: 200px;
}

.admin-login__row .btn--pkg {
  width: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section__head .admin-mini {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.section__head .admin-mini:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 0 12px 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-page);
  color: var(--text-muted);
  font-weight: 600;
}

.admin-table--compact th,
.admin-table--compact td {
  padding: 8px 10px;
}

.admin-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 20px !important;
}

.admin-actions {
  white-space: nowrap;
}

.btn-admin {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-admin--ok {
  background: var(--accent);
  color: #fff;
}

.btn-admin--ok:hover {
  background: var(--accent-hover);
}

.btn-admin--no {
  background: #f0f0f0;
  color: #666;
}

.btn-admin--no:hover {
  background: #e5e5e5;
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge--wait {
  background: #fff8e6;
  color: #b8860b;
}

.admin-badge--ok {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.admin-badge--no {
  background: #fdeaea;
  color: #a32020;
}

/* Admin recharge page — 站长工作台 */
.admin-page .js-login-panel[hidden] {
  display: none !important;
}

.admin-login-card {
  max-width: 440px;
  margin: 0 auto 24px;
  padding: 0;
  overflow: hidden;
}

.admin-login-card__inner {
  padding: 28px 24px 24px;
}

.admin-login-card__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--bg-header);
}

.admin-login-card__sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-field {
  margin-bottom: 14px;
}

.admin-pass-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.admin-pass-wrap .form-input {
  flex: 1;
}

.admin-toggle-pass {
  flex-shrink: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
}

.admin-toggle-pass:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.admin-remember {
  margin-bottom: 14px !important;
}

.admin-login-submit {
  margin-top: 8px;
}

.admin-login-foot {
  margin: 16px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

.admin-login-foot code {
  font-size: 11px;
  background: var(--bg-page);
  padding: 1px 4px;
  border-radius: 3px;
}

@keyframes admin-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.admin-shake {
  animation: admin-shake 0.35s ease;
  border-color: #c44 !important;
}

.admin-top-ok {
  color: #9fd4a8;
  font-size: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.admin-stat--gold {
  border-color: rgba(201, 162, 39, 0.45);
  background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
}

.admin-stat__val {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bg-header);
  line-height: 1.2;
}

.admin-stat--gold .admin-stat__val {
  color: #8a6a1a;
}

.admin-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tab {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
}

.admin-tab:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.admin-tab.is-active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
}

.admin-code {
  font-size: 11px;
  background: var(--bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

.admin-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-admin--detail {
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-admin--detail:hover {
  background: var(--accent-hover);
}

.admin-review-modal .pay-modal__panel {
  max-width: 480px;
}

.admin-review-panel {
  text-align: left;
}

.admin-dl {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--bg-page);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 13px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 10px;
}

.admin-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-dl dd {
  margin: 0;
  word-break: break-word;
}

.admin-review-coins {
  color: var(--gold);
  font-size: 1.1rem;
}

.admin-textarea {
  resize: vertical;
  min-height: 72px;
  margin-bottom: 14px;
  font-family: inherit;
}

.admin-review-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-btn-reject {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  border: 2px solid #d4a0a0;
  color: #a32020;
}

.admin-btn-reject:hover {
  background: #fff5f5;
}

.admin-note {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-block;
  max-width: 200px;
  vertical-align: top;
}

.section__head .btn--ghost {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.section__head .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.admin-pwd-section .admin-pwd-card {
  padding: 8px 16px 20px;
}

.admin-pwd-status {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--accent-hover);
  font-weight: 600;
}

.admin-pwd-h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--bg-header);
}

.admin-pwd-tip {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.admin-pwd-tip code {
  font-size: 11px;
  background: var(--bg-page);
  padding: 1px 4px;
  border-radius: 3px;
}

.admin-pwd-save {
  max-width: 240px;
}

.admin-pwd-divider {
  margin: 24px 0 18px;
  border: 0;
  border-top: 1px dashed var(--border);
}

.admin-pwd-section .admin-btn-reject {
  max-width: 240px;
}

/* EA 下载分类页 */
.ea-dl-page {
  background: var(--bg-page);
}

.ea-dl-main {
  padding: 20px 16px 48px;
}

.ea-dl-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ea-dl-hero {
  margin-bottom: 24px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #1e3d2a 0%, #2d5a40 50%, #3d6b4f 100%);
  color: #e8f0ea;
  box-shadow: var(--shadow);
}

.ea-dl-hero__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.ea-dl-hero__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 720px;
}

.ea-dl-block {
  margin-bottom: 18px;
}

.ea-cat-grid {
  display: grid;
  gap: 14px;
  padding: 14px 16px 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .ea-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ea-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ea-cat-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .ea-cat-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ea-cat-card {
  position: relative;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafcfa;
  scroll-margin-top: 88px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ea-cat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(61, 139, 90, 0.1);
}

.ea-cat-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.ea-cat-card__badge--gold {
  background: linear-gradient(135deg, #fff6d9, #ffe9a8);
  color: #7a5a10;
}

.ea-cat-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.ea-cat-card__title a {
  color: var(--bg-header);
  text-decoration: none;
}

.ea-cat-card__title a:hover {
  color: var(--accent);
}

.ea-cat-card__desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.ea-cat-card__go {
  font-size: 12px;
  font-weight: 600;
}

.ea-cat-card--wide .ea-cat-card__desc {
  min-height: 2.8em;
}

.ea-dl-footnote {
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* EA 分类列表页（参考分类站列表布局） */
.ea-list-main {
  padding: 16px 16px 40px;
}

.ea-list-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ea-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ea-breadcrumb a {
  color: var(--accent);
  font-weight: 500;
}

.ea-breadcrumb__sep {
  margin: 0 4px;
  opacity: 0.7;
}

.ea-breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.ea-list-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .ea-list-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.ea-list-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ea-list-sidebar__head {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-header);
  background: linear-gradient(180deg, #fafcfa 0%, #f0f5f2 100%);
  border-bottom: 1px solid var(--border);
}

.ea-list-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ea-list-nav li:not(.ea-list-nav__sep) a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.ea-list-nav li:not(.ea-list-nav__sep) a:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.ea-list-nav li:not(.ea-list-nav__sep) a.is-active {
  background: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 11px;
}

.ea-list-nav__sep {
  padding: 10px 14px 4px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.ea-list-content {
  min-width: 0;
}

.ea-list-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}

.ea-list-header__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--bg-header);
}

.ea-list-header__intro {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.ea-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ea-post-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.ea-post-item:last-child {
  border-bottom: 0;
}

.ea-post-item__title {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-header);
  text-decoration: none;
  margin-bottom: 8px;
}

.ea-post-item__title:hover {
  color: var(--accent);
}

.ea-post-item__excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ea-post-item__meta {
  font-size: 12px;
  color: #8a948c;
}

.ea-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0 12px;
  font-size: 13px;
}

.ea-pagination a,
.ea-pagination span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.ea-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

.ea-pagination__active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ea-pagination__disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ea-list-disclaimer {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* EA 详情文章页（参考下载站 post 布局） */
.ea-article-page .site-header .site-header__inner {
  grid-template-columns: 1fr auto;
}

.ea-article-main {
  padding: 20px 16px 48px;
  background: var(--bg-page);
}

.ea-article-inner {
  max-width: 820px;
  margin: 0 auto;
}

.ea-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 32px;
}

.ea-article-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ea-article-h1 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--bg-header);
}

.ea-article-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.ea-article-meta__sep {
  margin: 0 8px;
  opacity: 0.5;
}

.ea-article-meta strong {
  color: var(--accent-hover);
}

.ea-article-figure {
  margin: 0 0 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e8f0ea, #d5e5dc);
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.ea-article-figure--photo {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #0a1520;
  border: 1px solid var(--border);
}

.ea-article-figure--photo img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: auto;
  vertical-align: middle;
}

.ea-article-figure--photo.ea-article-figure--wide img {
  max-width: min(920px, 100%);
}

.ea-article-caption {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
}

.ea-article-figure--sm {
  min-height: 120px;
  margin-top: 12px;
}

.ea-article-section {
  margin-bottom: 22px;
}

.ea-article-h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--bg-header);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
}

.ea-article-h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--accent-hover);
}

.ea-article-section p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.ea-download-hint {
  margin: 0 0 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--bg-soft, #f4f7f5);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.ea-article-download {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.ea-article-download:hover {
  background: var(--accent-hover);
}

.ea-article-ul,
.ea-article-ol {
  margin: 0 0 12px;
  padding-left: 1.35em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.ea-article-ul li {
  margin-bottom: 6px;
}

.ea-article-disclaimer {
  margin: 24px 0;
  padding: 16px 18px;
  background: #faf8f0;
  border: 1px solid #e8dfc8;
  border-radius: var(--radius);
}

.ea-article-ol {
  padding-left: 1.5em;
}

.ea-article-ol li {
  margin-bottom: 8px;
}

.ea-article-tags {
  margin: 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.ea-article-tags__label {
  font-weight: 700;
  margin-right: 8px;
}

.ea-article-tags a {
  margin-right: 8px;
}

.ea-article-pager {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

@media (min-width: 600px) {
  .ea-article-pager {
    flex-direction: row;
    justify-content: space-between;
  }
}

.ea-article-pager__link {
  font-size: 13px;
}

.ea-article-back {
  margin: 0;
  font-size: 14px;
}

.ea-post-item__title[href]:not([href="#"]) {
  color: var(--accent);
}

.ea-post-item__title[href]:not([href="#"]):hover {
  color: var(--accent-hover);
}


/* MT5 compiled badge on list */
.ea-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f3d2e;
  background: #d8f3e7;
  border-radius: 3px;
  vertical-align: middle;
}
.ea-dl-btns .ea-article-download { margin-right: 0.6rem; margin-bottom: 0.5rem; display: inline-block; }
.muted { opacity: 0.75; font-size: 0.92em; }


/* 跟单 EA 侧栏子级 */
.ea-list-nav__sub > a {
  padding-left: 1.35rem;
  font-size: 0.92em;
  opacity: 0.92;
}
.ea-list-nav__sub > a::before {
  content: "└ ";
  opacity: 0.55;
}
.ea-hub-children {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.ea-hub-children li {
  margin: 0.35rem 0;
}

/* ========================================================================
   Home page — layout inspired by EA Corner (D:/zhipu/index.html)
   Scoped under .home-page to avoid breaking other portal pages
   ======================================================================== */
.home-page {
  --home-green-900: #1b4332;
  --home-green-800: #1d6a4a;
  --home-green-700: #2d6a4f;
  --home-green-600: #40916c;
  --home-green-500: #52b788;
  --home-green-300: #95d5b2;
  --home-green-200: #b7e4c7;
  --home-green-100: #d8f3dc;
  --home-green-50: #f0f9f3;
  --home-gold: #d4a017;
  --home-gold-dark: #b8860b;
  --home-gold-soft: #f5e6c8;
  --home-up: #16a34a;
  --home-r: 14px;
  --home-r-lg: 22px;
  --home-r-pill: 999px;
  --home-shadow: 0 4px 16px rgba(22, 39, 31, 0.08);
  --home-shadow-lg: 0 12px 32px rgba(22, 39, 31, 0.12);
}

.home-page .top-bar__register {
  color: var(--home-green-300) !important;
  font-weight: 700;
}

.home-page .top-bar__ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  gap: 14px;
  font-size: 12px;
}

.home-ticker-pair {
  white-space: nowrap;
  color: #cfe8d8;
}

.home-ticker-sym {
  color: #fff;
  font-weight: 600;
}

.home-ticker-up { color: #4ade80; }
.home-ticker-down { color: #f87171; }

.home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-up { color: var(--home-up) !important; }
.home-hot { color: #dc2626 !important; }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--home-green-900) 0%, var(--home-green-800) 55%, var(--home-green-700) 100%);
  color: #eaf6ef;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(116, 198, 157, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(212, 160, 23, 0.16), transparent 40%);
  pointer-events: none;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}

.home-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--home-r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.home-badge-pill__dot {
  width: 8px;
  height: 8px;
  background: var(--home-green-300);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(149, 213, 178, 0.25);
}

.home-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--home-gold);
}

.home-hero__lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: #c7e3d2;
  max-width: 520px;
  line-height: 1.7;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero .btn--lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: var(--home-r-pill);
}

.home-hero .btn--light {
  background: #fff;
  color: var(--home-green-700);
  border: none;
}

.home-hero .btn--light:hover {
  background: var(--home-green-50);
  text-decoration: none;
}

.home-hero .btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.home-hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

.home-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-mini-stats__num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.home-mini-stats__lbl {
  font-size: 12.5px;
  color: #9fc4b0;
}

.home-hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--home-r-lg);
  padding: 20px;
  backdrop-filter: blur(6px);
}

.home-hero-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.home-hero-card__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--home-r-pill);
  background: rgba(82, 183, 136, 0.25);
  color: var(--home-green-200);
}

.home-feature-ea {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--home-r);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}

.home-feature-ea + .home-feature-ea {
  margin-top: 10px;
}

.home-feature-ea:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: inherit;
}

.home-feature-ea__ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 22px;
}

.home-feature-ea__meta {
  flex: 1;
  min-width: 0;
}

.home-feature-ea__name {
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
}

.home-pill-mt {
  font-size: 10px;
  background: #1e3a8a;
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  vertical-align: middle;
}

.home-feature-ea__desc {
  color: #9fc4b0;
  font-size: 12px;
  margin-top: 2px;
}

.home-feature-ea__perf {
  text-align: right;
}

.home-feature-ea__pct {
  font-weight: 800;
  font-size: 17px;
  color: #4ade80;
}

.home-feature-ea__lbl {
  font-size: 11px;
  color: #9fc4b0;
}

/* Sections */
.home-section {
  padding: 56px 0;
}

.home-section--tight {
  padding-top: 40px;
  padding-bottom: 8px;
}

.home-section--banner {
  padding-top: 28px;
  padding-bottom: 8px;
}

.home-section--tint {
  background: var(--home-green-50);
}

.home-section--risk {
  padding-top: 0;
  padding-bottom: 48px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.home-section-head--center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-green-700);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.home-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--home-green-500);
  border-radius: 2px;
}

.home-section-head--center .home-eyebrow::before {
  display: none;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--home-green-900);
}

.home-section-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 540px;
  font-size: 14px;
}

.home-more {
  color: var(--home-green-700);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.home-more:hover {
  color: var(--home-green-800);
}

/* Stats */
.home-stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--home-r);
  padding: 22px 18px;
  box-shadow: 0 1px 2px rgba(22, 39, 31, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-stat-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 22px;
}

.home-stat-card__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--home-green-900);
}

.home-stat-card__lbl {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

.home-stat-card__trend {
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

/* Promo banner */
.home-promo {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 28px 32px;
  border-radius: var(--home-r-lg);
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--home-shadow-lg);
  transition: transform 0.2s;
}

.home-promo:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.home-promo__ico {
  font-size: 42px;
  flex-shrink: 0;
}

.home-promo__body {
  flex: 1;
  min-width: 220px;
}

.home-promo__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 6px;
}

.home-promo__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.25rem;
}

.home-promo__desc {
  margin: 0;
  color: #dbeafe;
  font-size: 13.5px;
}

.home-promo__cta {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: var(--home-r-pill);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Grids & EA cards */
.home-grid {
  display: grid;
  gap: 18px;
}

.home-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-ea-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--home-r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.home-ea-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--home-green-500), var(--home-green-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.home-ea-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--home-shadow-lg);
  border-color: var(--home-green-200);
}

.home-ea-card:hover::after {
  transform: scaleX(1);
}

.home-ea-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-ea-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}

.home-ea-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--home-green-900);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-ea-card__name a {
  color: inherit;
}

.home-ea-card__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--home-r-pill);
  background: var(--home-gold-soft);
  color: var(--home-gold-dark);
}

.home-ea-card__tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-ea-card__perf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 14px;
}

.home-ea-card__item {
  text-align: center;
}

.home-ea-card__v {
  font-size: 16px;
  font-weight: 800;
  color: var(--home-green-900);
}

.home-ea-card__k {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-ea-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-risk {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--home-r-pill);
}

.home-risk--low {
  background: var(--home-green-100);
  color: var(--home-green-700);
}

.home-risk--med {
  background: var(--home-gold-soft);
  color: var(--home-gold-dark);
}

.home-risk--high {
  background: #fee2e2;
  color: #dc2626;
}

.home-ea-card .btn--primary {
  border-radius: var(--home-r-pill);
  padding: 8px 16px;
  font-size: 13px;
}

/* Articles */
.home-art-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--home-r);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 39, 31, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow);
}

.home-art-card__thumb {
  height: 120px;
  display: grid;
  place-items: center;
  font-size: 40px;
}

.home-art-card__body {
  padding: 16px;
}

.home-art-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--home-green-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-art-card h3 {
  margin: 6px 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--home-green-900);
}

.home-art-card h3 a {
  color: inherit;
}

.home-art-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-art-card__meta {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Layout + sidebar */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--home-r);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(22, 39, 31, 0.06);
}

.home-widget--flush {
  padding: 0;
  overflow: hidden;
}

.home-widget h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--home-green-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-widget__ico {
  color: var(--home-green-600);
}

.home-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef4f0;
}

.home-rank-list li:last-child {
  border-bottom: 0;
}

.home-rank-list__rk {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--home-green-100);
  color: var(--home-green-700);
}

.home-rank-list li:nth-child(1) .home-rank-list__rk {
  background: linear-gradient(135deg, #f6d365, #d4a017);
  color: #fff;
}

.home-rank-list li:nth-child(2) .home-rank-list__rk {
  background: linear-gradient(135deg, #d8d8d8, #a8a8a8);
  color: #fff;
}

.home-rank-list li:nth-child(3) .home-rank-list__rk {
  background: linear-gradient(135deg, #e0a572, #b87333);
  color: #fff;
}

.home-rank-list__info {
  flex: 1;
  min-width: 0;
}

.home-rank-list__n {
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-rank-list__s {
  font-size: 11.5px;
  color: var(--text-muted);
}

.home-rank-list__v {
  font-weight: 800;
  font-size: 13px;
}

.home-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-tag-cloud a {
  padding: 6px 12px;
  border-radius: var(--home-r-pill);
  background: var(--home-green-50);
  color: var(--home-green-700);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.home-tag-cloud a:hover {
  background: var(--home-green-700);
  color: #fff;
  border-color: var(--home-green-700);
  text-decoration: none;
}

.home-widget--cta {
  background: linear-gradient(150deg, var(--home-green-700), var(--home-green-900));
  color: #eaf6ef;
  border: none;
}

.home-widget--cta h3 {
  color: #fff;
}

.home-widget--cta p {
  color: #c7e3d2;
  font-size: 13.5px;
  margin: 0 0 14px;
}

.btn--gold {
  background: linear-gradient(135deg, var(--home-gold), var(--home-gold-dark));
  color: #fff !important;
  border: none;
  border-radius: var(--home-r-pill);
}

.btn--gold:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn--block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.home-side-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-side-links li + li {
  margin-top: 8px;
}

.home-side-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--home-green-700);
}

/* Topic table */
.home-table-wrap {
  overflow-x: auto;
}

.home-topic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.home-topic-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
}

.home-topic-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef4f0;
  vertical-align: middle;
  font-size: 13.5px;
}

.home-topic-table tr:hover td {
  background: var(--home-green-50);
}

.home-topic-table__title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-topic-table__title a {
  color: var(--text);
}

.home-pin {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--home-r-pill);
  background: var(--home-gold-soft);
  color: var(--home-gold-dark);
}

.home-topic-table__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.home-topic-table__av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--home-green-200);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-green-800);
}

.home-topic-table__num {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Why + risk */
.home-feature-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-feature-block__item {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--home-r-lg);
}

.home-feature-block__ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.home-feature-block__item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--home-green-900);
}

.home-feature-block__item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-risk-notice {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--home-gold);
  border-radius: var(--home-r);
  padding: 22px 24px;
}

.home-risk-notice h3 {
  margin: 0 0 10px;
  color: #9a3412;
  font-size: 16px;
}

.home-risk-notice p {
  margin: 0;
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.7;
}

/* Footer */
.home-footer {
  background: var(--home-green-900);
  color: #9fc4b0;
  padding: 48px 0 0;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.home-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.home-footer__brand:hover {
  color: #fff;
  text-decoration: none;
}

.home-footer__brand b {
  color: var(--home-green-300);
}

.home-footer__brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #7fae93;
}

.home-footer__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 340px;
}

.home-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
}

.home-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-footer ul li {
  margin-bottom: 10px;
}

.home-footer ul a {
  font-size: 13.5px;
  color: #9fc4b0;
}

.home-footer ul a:hover {
  color: var(--home-green-300);
}

.home-footer__bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #7fae93;
}

@media (max-width: 1024px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero-card {
    order: -1;
  }

  .home-stat-band,
  .home-grid--3,
  .home-feature-block,
  .home-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-stat-band,
  .home-grid--3,
  .home-feature-block,
  .home-footer__grid {
    grid-template-columns: 1fr;
  }

  .home-page .top-bar__ticker {
    display: none;
  }

  .home-hero__grid {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}


.install-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}
.install-card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.install-card p {
  margin: 0 0 10px;
  line-height: 1.7;
}
.install-path {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  background: #f4f7f4;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
  font-size: 14px;
  color: #1f3d2a;
}

.qa-mail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.qa-mail-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.qa-mail-card p { margin: 0 0 14px; color: var(--text-muted); }
.qa-hint { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0 0 14px; }
.pm-layout { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .pm-layout { grid-template-columns: 280px 1fr; align-items: start; }
}
.pm-list { list-style: none; margin: 0; padding: 8px; max-height: 70vh; overflow: auto; }
.pm-list__empty { padding: 16px; color: var(--text-muted); }
.pm-list__item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 12px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.pm-list__item span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pm-list__item:hover, .pm-list__item.is-active { background: var(--accent-light); }
.pm-bubble { background: #f4f7f4; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.pm-bubble--staff { background: #e8f3ec; }
.pm-bubble__meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.pm-list__item strong { display: flex; align-items: center; gap: 8px; }
.pm-list__badge {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #1f6b3a;
  background: #d9eedf;
  border-radius: 999px;
  padding: 1px 8px;
}
.section__head .js-pm-refresh,
.section__head .js-pm-admin-refresh {
  font-size: 13px;
}
