:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --green: #12b76a;
  --orange: #f79009;
  --shadow: 0 18px 50px rgba(18, 34, 66, 0.10);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar,
.recharge-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar {
  min-height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #12b76a);
  color: #fff;
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 16px;
}

.main-nav a,
.recharge-strip a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #344054;
}

.main-nav a:hover,
.recharge-strip a:hover,
.category-button:hover {
  background: #eef4ff;
  color: var(--primary);
}

.recharge-strip {
  min-height: 46px;
  overflow-x: auto;
  border-top: 1px solid #edf1f7;
  color: var(--muted);
  white-space: nowrap;
}

.recharge-strip strong {
  color: var(--primary);
}

.store-hero {
  padding: 38px 0 28px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(18, 183, 106, 0.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 12px 0;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #067647;
  font-weight: 900;
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 183, 106, 0.14);
}

.notice-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.notice-title-row h2,
.filters h2,
.service-grid h2,
.tool-layout h2 {
  margin: 0;
}

.notice-title-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b54708;
  font-size: 12px;
  font-weight: 900;
}

.notice-card ol {
  margin: 0;
  padding-left: 22px;
  line-height: 1.85;
  color: #344054;
}

.support-card,
.query-card,
.contact-panel,
.totp-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-card span {
  font-size: 24px;
  font-weight: 900;
}

.support-card p,
.section-head p,
.tool-copy p,
.contact-panel p,
.site-footer p {
  color: var(--muted);
}

.primary-button,
.ghost-button,
.category-button,
.contact-link {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 42px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--primary-strong);
}

.primary-button:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.ghost-button {
  padding: 0 16px;
  background: #eef4ff;
  color: var(--primary);
}

.catalog {
  padding: 28px 0 48px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.filters {
  position: sticky;
  top: 132px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(18, 34, 66, 0.06);
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.search-box {
  margin-bottom: 20px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  width: 100%;
  padding: 0 12px;
  color: #344054;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-button.active {
  background: var(--primary);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sort-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.sort-button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef4ff;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.count-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--product-columns, 3), minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(18, 34, 66, 0.05);
}

.product-image {
  width: 100%;
  aspect-ratio: var(--image-ratio, 16 / 9);
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f6;
}

.checkout-dialog {
  width: min(460px, calc(100vw - 32px));
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.checkout-summary span {
  color: #d92d20;
  font-weight: 900;
}

.order-result {
  display: none;
  padding: 12px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #067647;
  line-height: 1.7;
}

.order-result.show {
  display: block;
}

.tutorial-section {
  padding: 46px 0;
  background: #fff;
}

.tutorial-head {
  margin-bottom: 16px;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.tutorial-categories {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tutorial-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.tutorial-category.active {
  background: var(--primary);
  color: #fff;
}

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

.tutorial-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 34, 66, 0.05);
  cursor: pointer;
  text-align: left;
}

.tutorial-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  transition: 160ms ease;
}

.tutorial-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.tutorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tutorial-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.tutorial-dialog {
  width: min(760px, calc(100vw - 32px));
}

.tutorial-dialog h2 {
  margin: 0;
  line-height: 1.35;
}

.tutorial-dialog-meta {
  color: var(--muted);
  font-size: 14px;
}

.tutorial-dialog-body {
  display: grid;
  gap: 14px;
  max-height: min(62vh, 620px);
  overflow: auto;
  line-height: 1.8;
  color: #344054;
}

.tutorial-dialog-body h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.tutorial-dialog-body p {
  margin: 0;
}

.tutorial-dialog-body ul,
.tutorial-dialog-body ol {
  margin: 0;
  padding-left: 22px;
}

.tutorial-figure {
  margin: 0;
}

.tutorial-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.article-page {
  min-height: calc(100vh - 114px);
  padding: 28px 0 58px;
  background: #f7f8fb;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.article-breadcrumb a {
  color: var(--primary);
  font-weight: 800;
}

.article-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 56px);
  border-radius: 18px;
  background: #1d1d20;
  color: #e6e9ef;
  box-shadow: 0 34px 90px rgba(18, 34, 66, 0.20);
}

.article-meta {
  color: #9aa4b2;
  font-size: 14px;
  margin-bottom: 12px;
}

.article-shell h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.25;
  color: #fff;
}

.article-body {
  display: grid;
  gap: 24px;
  font-size: 18px;
  line-height: 2;
}

.article-body h2 {
  margin: 14px 0 0;
  color: #fff;
  font-size: 24px;
}

.article-body p {
  margin: 0;
}

.article-body a {
  color: #2ea8ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-body ol,
.article-body ul {
  margin: 0;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

.article-figure {
  margin: 10px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border-radius: 8px;
  background: #eef2f6;
}

.article-figure-missing {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.article-figure-missing div {
  display: grid;
  gap: 6px;
}

.article-figure-missing strong {
  color: #fff;
}

.article-figure-missing span {
  color: #b8c0cc;
  font-size: 14px;
  line-height: 1.7;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: 160ms ease;
}

.product-tag {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b54708;
  font-size: 12px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  color: #d92d20;
  font-weight: 900;
  font-size: 20px;
}

.tool-band {
  padding: 46px 0;
  background: #101828;
  color: #fff;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
}

.tool-copy p,
.tool-copy li {
  color: #cdd5df;
}

.tool-copy ul {
  line-height: 2;
  padding-left: 20px;
}

.totp-panel {
  padding: 20px;
  color: var(--ink);
  display: grid;
  gap: 14px;
}

.totp-code {
  border: 0;
  min-height: 72px;
  border-radius: 8px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.timer-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.service-section {
  padding: 44px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.query-card,
.contact-panel {
  padding: 22px;
}

.query-card {
  display: grid;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--primary);
  font-weight: 800;
}

.site-footer {
  padding: 36px 0 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 26px;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 9px 0;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
  color: var(--muted);
  font-size: 14px;
}

.float-contact {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 9;
}

.float-contact a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 26px;
  box-shadow: var(--shadow);
}

dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 24, 40, 0.56);
}

.login-dialog {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 24px;
  display: grid;
  gap: 16px;
}

.close-button {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .hero-grid,
  .catalog-layout,
  .tutorial-layout,
  .tool-layout,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

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

  .hero-copy h1 {
    font-size: 28px;
  }

  .topbar,
  .recharge-strip,
  .wrap,
  .copyright {
    width: min(100% - 20px, 1180px);
  }
}
