/* ==========================================================================
   QuickQ · 品牌主题与专属组件
   在 main.css 之后加载；覆盖暖色品牌变量并补充 QuickQ 首页/连接面板样式。
   ========================================================================== */

:root {
  --brand: #00b578;
  --brand-strong: #009a66;
  --brand-soft: #e8fbf3;
  --brand-softer: #f3fdf9;
  --ink: #071b26;
  --ink-2: #1b3440;
  --muted: #617682;
  --muted-2: #8b9da7;
  --line: #e0ece6;
  --line-strong: #cdded6;
  --surface-2: #f6fbf8;
  --surface-3: #edf7f2;
  --dark: #061a23;
  --green: #00b578;
  --shadow-sm: 0 6px 18px rgba(6, 32, 25, 0.06);
  --shadow-md: 0 18px 44px rgba(6, 32, 25, 0.1);
  --shadow-lg: 0 34px 80px rgba(5, 28, 24, 0.16);
}

::selection {
  color: #fff;
  background: #009a66;
}

body {
  background: #f8fcfa;
}

.admin-body {
  background: #f4fbf8;
}

.admin-body::before {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 181, 120, 0.12), transparent 28%),
    radial-gradient(circle at 94% 15%, rgba(113, 233, 255, 0.12), transparent 27%);
}

.site-header {
  border-bottom-color: #e0ece6;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(6, 32, 25, 0.08);
}

.brand__icon {
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 181, 120, 0.22);
}

.main-nav > a:not(.btn):hover,
.main-nav > a.is-active {
  color: var(--brand-strong);
}

.main-nav > a.is-active::after {
  background: var(--brand);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #00c98a 0%, #00a36a 100%);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(0, 181, 120, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #00b57c 0%, #008a5a 100%);
  box-shadow: 0 16px 36px rgba(0, 181, 120, 0.3);
}

.btn--ghost {
  border-color: #cfded7;
}

.eyebrow {
  color: var(--brand-strong);
  background: rgba(0, 181, 120, 0.09);
  border-color: rgba(0, 181, 120, 0.16);
}

.eyebrow__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 181, 120, 0.12);
}

.text-gradient {
  color: #00d295;
  background: linear-gradient(105deg, #00d295 0%, #71e9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.text-gradient::after {
  background: linear-gradient(90deg, #00c98a, #6fe7ff);
}

.section--tint {
  background:
    radial-gradient(circle at 86% 12%, rgba(0, 181, 120, 0.07), transparent 28%),
    #f3faf6;
}

.kicker {
  color: var(--brand-strong);
}

.feature-card {
  border-color: #e0ece6;
}

.feature-card:hover {
  border-color: #b9e6d4;
  box-shadow: 0 20px 48px rgba(0, 90, 65, 0.1);
}

.feature-card--wide {
  background:
    radial-gradient(circle at 80% 25%, rgba(0, 210, 149, 0.3), transparent 33%),
    linear-gradient(138deg, #0b222b 0%, #06161f 68%);
  border-color: #12323a;
}

.feature-card--wide::after {
  border-color: rgba(94, 255, 202, 0.12);
  box-shadow: 0 0 0 40px rgba(94, 255, 202, 0.025),
    0 0 0 82px rgba(94, 255, 202, 0.018);
}

.feature-card--wide .feature-icon {
  color: #95ffdb;
  background: rgba(0, 210, 149, 0.13);
}

.feature-icon {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.feature-card--cta {
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 210, 149, 0.24), transparent 35%),
    linear-gradient(145deg, #0a222b, #061820);
  border-color: #123039;
}

.feature-card--cta h3,
.feature-card--cta .feature-note,
.feature-card--cta .feature-card__content {
  color: #f4fffb;
}

.feature-card--cta p {
  color: #b6cbc3;
}

.feature-card--cta .feature-note {
  color: #9bf5d7;
}

.cta-orbit__ring {
  border-color: rgba(100, 255, 207, 0.24);
}

.hero-stats,
.stat + .stat::before {
  border-color: #dbe9e2;
}

.stat strong em,
.stat strong {
  color: var(--ink);
}

.cta-band {
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 216, 153, 0.3), transparent 32%),
    linear-gradient(130deg, #09222b 0%, #061720 68%);
  border-color: #12313a;
  box-shadow: 0 30px 70px rgba(4, 25, 22, 0.18);
}

.cta-band::before {
  border-color: rgba(109, 255, 213, 0.12);
}

.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.post-card {
  border-color: #e0ece6;
}

.post-card:hover {
  border-color: #bfe8d8;
  box-shadow: 0 20px 45px rgba(0, 90, 65, 0.09);
}

.post-card__badge,
.article-category {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.post-card__more,
.text-link,
.copy-link:hover {
  color: var(--brand-strong);
}

.site-footer {
  background:
    radial-gradient(circle at 86% 10%, rgba(0, 161, 108, 0.16), transparent 32%),
    #061a23;
}

.footer-badge {
  color: #9bf5d7;
  background: rgba(0, 210, 149, 0.1);
  border-color: rgba(0, 210, 149, 0.2);
}

.footer-col a:hover,
.footer-friend a:hover,
.footer-bottom a:hover {
  color: #8affd8;
}

.footer-friend__divider {
  background: rgba(255, 255, 255, 0.16);
}

.page-hero {
  background:
    radial-gradient(circle at 84% 0%, rgba(0, 181, 120, 0.1), transparent 32%),
    linear-gradient(180deg, #f5fcf8 0%, #eef9f3 100%);
  border-bottom-color: #e0ece6;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--brand-strong);
}

.download-hero__meta span {
  color: #5f766f;
  background: rgba(255, 255, 255, 0.72);
  border-color: #dfece5;
}

.platform-card {
  border-color: #e0ece6;
}

.platform-card:hover {
  border-color: #b9e6d4;
  box-shadow: 0 20px 48px rgba(0, 90, 65, 0.1);
}

.platform-card::after {
  background: linear-gradient(135deg, rgba(0, 201, 138, 0.18), rgba(113, 233, 255, 0.03));
}

.platform-icon {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.install-guide,
.requirements,
.faq-item {
  border-color: #e0ece6;
}

.guide-note {
  color: #426056;
  background: #f2fbf6;
  border-color: #d8eee3;
}

.step::before {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(0, 181, 120, 0.1);
}

.step::after {
  background: #d9ebe3;
}

.faq-item summary:hover {
  color: var(--brand-strong);
}

.faq-item[open] summary {
  color: var(--brand-strong);
}

.filter-btn.is-active,
.category-chip.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.resource-card {
  border-color: #e0ece6;
}

.resource-card:hover {
  border-color: #bfe8d8;
  box-shadow: 0 20px 44px rgba(0, 90, 65, 0.09);
}

.resource-card__icon {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.links-external-badge {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: #cceede;
}

.article-hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 181, 120, 0.09), transparent 30%),
    linear-gradient(180deg, #f5fcf8, #eef9f3);
}

.article-cta {
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 210, 149, 0.25), transparent 32%),
    linear-gradient(135deg, #09222b, #06171f);
}

.article-tags a:hover,
.related-list a:hover {
  color: var(--brand-strong);
}

.sidebar-help {
  background: #f0fbf5;
  border-color: #d9eee4;
}

.sidebar-help a {
  color: var(--brand-strong);
}

/* --------------------------------------------------------------------------
   QuickQ 首页专属组件
   -------------------------------------------------------------------------- */

.q-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 77% 23%, rgba(0, 176, 121, 0.23), transparent 27%),
    radial-gradient(circle at 91% 80%, rgba(43, 179, 186, 0.16), transparent 30%),
    linear-gradient(130deg, #061923 0%, #071e26 48%, #05251f 100%);
  isolation: isolate;
}

.q-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 255, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 255, 211, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 90%);
  content: "";
}

.q-hero::after {
  position: absolute;
  top: -12%;
  right: -8%;
  z-index: -1;
  width: 720px;
  height: 720px;
  pointer-events: none;
  border: 1px solid rgba(92, 255, 206, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 100px rgba(92, 255, 206, 0.018),
    0 0 0 210px rgba(92, 255, 206, 0.012);
  content: "";
}

.q-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  padding: 40px 0 58px;
}

.q-hero__copy {
  max-width: 640px;
}

.q-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  margin-bottom: 24px;
  color: #a8f9df;
  background: rgba(0, 210, 149, 0.09);
  border: 1px solid rgba(0, 210, 149, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.q-eyebrow i {
  width: 7px;
  height: 7px;
  background: #33f3b8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(51, 243, 184, 0.12);
}

.q-hero h1 {
  max-width: 650px;
  margin: 0 0 22px;
  font-size: clamp(43px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.q-hero h1 span {
  color: #6fffd2;
  background: linear-gradient(100deg, #6fffd2 0%, #6fe7ff 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.q-hero__lead {
  max-width: 580px;
  margin: 0 0 30px;
  color: #b3c9c2;
  font-size: 16.5px;
  line-height: 1.85;
}

.q-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.q-hero .btn--ghost {
  color: #e4fff5;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.q-hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.q-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  color: #a5bdb5;
  font-size: 12.5px;
  list-style: none;
}

.q-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.q-hero__points svg {
  width: 15px;
  height: 15px;
  color: #50eab8;
}

.q-console-wrap {
  position: relative;
  width: min(100%, 490px);
  margin-left: auto;
}

.q-console-wrap::before {
  position: absolute;
  top: 8%;
  left: -7%;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(84, 255, 204, 0.11);
  border-radius: 50%;
  content: "";
}

.q-console-wrap::after {
  position: absolute;
  right: -12%;
  bottom: -12%;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 210, 149, 0.19), transparent 66%);
  content: "";
}

.q-console {
  position: relative;
  z-index: 2;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(178, 255, 229, 0.17);
  border-radius: 26px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.q-console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.q-console__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eafff7;
  font-size: 12px;
  font-weight: 700;
}

.q-console__brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.q-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  color: #77ffcf;
  background: rgba(0, 210, 149, 0.1);
  border: 1px solid rgba(0, 210, 149, 0.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.q-status i {
  width: 6px;
  height: 6px;
  background: #44efb7;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(68, 239, 183, 0.13);
}

.q-console__main {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 4px 17px;
}

.q-meter {
  position: relative;
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border: 1px solid rgba(89, 255, 206, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0, 210, 149, 0.08);
}

.q-meter::before {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(111, 255, 212, 0.18);
  border-radius: 50%;
  content: "";
}

.q-meter::after {
  position: absolute;
  inset: -7px;
  border: 2px solid transparent;
  border-top-color: #47efba;
  border-right-color: rgba(71, 239, 186, 0.24);
  border-radius: 50%;
  transform: rotate(28deg);
  content: "";
}

.q-meter strong {
  display: block;
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.q-meter span {
  display: block;
  margin-top: 7px;
  color: #83aa9c;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-align: center;
}

.q-node-list {
  display: grid;
  gap: 9px;
}

.q-node {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
}

.q-node i {
  width: 6px;
  height: 6px;
  background: #4ceab8;
  border-radius: 50%;
}

.q-node span {
  overflow: hidden;
  color: #d6eee6;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.q-node small {
  color: #a9c8be;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.q-node em {
  display: block;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.q-node em::after {
  display: block;
  width: var(--w, 60%);
  height: 100%;
  background: linear-gradient(90deg, #16d89c, #74f3d0);
  border-radius: inherit;
  content: "";
}

.q-node--best {
  border-color: rgba(73, 241, 182, 0.25);
  background: rgba(0, 210, 149, 0.08);
}

.q-console__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fae9f;
  font-size: 10px;
}

.q-console__bottom strong {
  color: #c2eadc;
  font-weight: 600;
}

.q-console__bottom span {
  color: #71d9b4;
}

.q-console-note {
  margin: 10px 2px 0;
  color: #70877f;
  font-size: 9.5px;
  text-align: right;
}

.q-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.q-stat {
  position: relative;
  padding: 22px 20px 28px;
}

.q-stat + .q-stat::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
  content: "";
}

.q-stat strong {
  display: block;
  margin-bottom: 3px;
  color: #f4fffb;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.q-stat span {
  color: #8fa99f;
  font-size: 11.5px;
}

.q-feature-wide {
  min-height: 300px;
}

.q-mesh {
  position: relative;
  z-index: 2;
  width: min(42%, 280px);
  flex: 0 0 auto;
  opacity: 0.94;
}

.q-mesh svg {
  width: 100%;
  height: auto;
}

.q-platform-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.q-platform {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  background: #fff;
  border: 1px solid #e0ece6;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.q-platform:hover {
  border-color: #bfe8d8;
  box-shadow: 0 12px 28px rgba(0, 90, 65, 0.08);
  transform: translateY(-2px);
}

.q-platform__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 11px;
}

.q-platform__icon svg {
  width: 21px;
  height: 21px;
}

.q-platform strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.q-platform small {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.45;
}

.q-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.q-scene {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e0ece6;
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.q-scene:hover {
  border-color: #bfe8d8;
  box-shadow: 0 18px 38px rgba(0, 90, 65, 0.08);
  transform: translateY(-3px);
}

.q-scene__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 12px;
}

.q-scene__icon svg {
  width: 21px;
  height: 21px;
}

.q-scene h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.q-scene p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.q-scene__tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #b1c2ba;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.q-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: qstep;
}

.q-step {
  position: relative;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #e0ece6;
  border-radius: 18px;
}

.q-step::before {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(0, 181, 120, 0.08);
  font-size: 12px;
  font-weight: 700;
  counter-increment: qstep;
  content: counter(qstep, decimal-leading-zero);
}

.q-step h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.q-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.q-legal {
  max-width: 860px;
  margin: 26px auto 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.8;
  text-align: center;
}

.q-legal a {
  color: var(--brand-strong);
}

@media (max-width: 1060px) {
  .q-hero__grid {
    gap: 34px;
  }

  .q-console__main {
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .q-meter {
    width: 120px;
    height: 120px;
  }

  .q-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .q-hero {
    padding-top: 48px;
  }

  .q-hero__grid {
    grid-template-columns: 1fr;
    padding-bottom: 42px;
  }

  .q-console-wrap {
    width: min(100%, 540px);
    margin: 0 auto;
  }

  .q-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .q-stat:nth-child(3)::before {
    display: none;
  }

  .q-stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .q-platform-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .q-steps {
    grid-template-columns: 1fr;
  }

  .q-mesh {
    display: none;
  }
}

@media (max-width: 620px) {
  .q-hero__grid {
    padding-top: 24px;
  }

  .q-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .q-hero__lead {
    font-size: 14.5px;
  }

  .q-hero__actions .btn {
    width: 100%;
  }

  .q-console {
    padding: 14px;
    border-radius: 20px;
  }

  .q-console__main {
    grid-template-columns: 1fr;
  }

  .q-meter {
    width: 112px;
    height: 112px;
    margin: 0 auto;
  }

  .q-stats {
    grid-template-columns: 1fr;
  }

  .q-stat + .q-stat::before {
    top: 0;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    height: 1px;
  }

  .q-stat:nth-child(n + 2) {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .q-platform-row,
  .q-scene-grid {
    grid-template-columns: 1fr;
  }

  .q-scene {
    min-height: 180px;
  }
}
