:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --text: #17202a;
  --muted: #637083;
  --line: #dce3ec;
  --brand: #e83f6f;
  --brand-dark: #c92f5a;
  --green: #0b9b75;
  --blue: #2563eb;
  --amber: #b7791f;
  --shadow: 0 18px 45px rgba(23, 32, 42, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 13px;
  border: 1px solid var(--text);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-copy {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--surface);
}
.button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.button.primary:hover { background: var(--brand-dark); }
.button:hover { border-color: var(--text); }

.hero-visual {
  min-height: 450px;
  position: relative;
}
.browser-frame {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.browser-top {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ccd4df; }
.address {
  height: 20px;
  flex: 1;
  margin-left: 8px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 9px;
}
.mock-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 16px;
  min-height: 392px;
}
.mock-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfe;
}
.mock-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
  margin-bottom: 14px;
}
.mock-image {
  height: 118px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232,63,111,.95), rgba(37,99,235,.88)),
    url("assets/icons/xhs-viral.png");
  display: flex;
  align-items: end;
  padding: 14px;
  color: #fff;
  font-weight: 800;
}
.mock-lines { margin-top: 14px; display: grid; gap: 8px; }
.line { height: 9px; border-radius: 999px; background: #dbe3ee; }
.line.w80 { width: 80%; }
.line.w65 { width: 65%; }
.line.w45 { width: 45%; }
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}
.panel-head img { width: 24px; height: 24px; border-radius: 6px; }
.score-box {
  border: 1px solid #f7c3d1;
  background: #fff5f8;
  border-radius: 8px;
  padding: 12px;
}
.score-num { font-size: 34px; font-weight: 900; color: var(--brand); }
.mini-bars { display: grid; gap: 7px; margin-top: 8px; }
.mini-bar { height: 7px; border-radius: 999px; background: #ffd5df; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef4ff;
  color: #1d4ed8;
  font-weight: 700;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 24px;
}
.section-header {
  max-width: 680px;
  margin-bottom: 24px;
}
.section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plugin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plugin-card-top { display: flex; gap: 14px; align-items: center; }
.plugin-card img { width: 54px; height: 54px; border-radius: 12px; }
.plugin-card h3 { margin: 0; font-size: 22px; }
.plugin-subtitle, .page-subtitle { margin: 4px 0 0; color: var(--brand); font-weight: 800; }
.page-subtitle { font-size: 20px; }
.plugin-card p { color: var(--muted); margin: 0; }
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.feature-list li {
  display: flex;
  gap: 9px;
  color: #2a3441;
}
.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 26px;
}
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.detail-panel h3 { font-size: 28px; margin: 0 0 12px; }
.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  font-weight: 900;
}
.step strong { display: block; }
.step span { color: var(--muted); font-size: 14px; }

.screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen-body { padding: 16px; }
.screen-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.screen-row:last-child { border-bottom: 0; }
.screen-label { color: var(--muted); font-size: 13px; }
.screen-value { font-weight: 750; }
.summary-output {
  display: grid;
  gap: 11px;
}
.summary-output p {
  margin: 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  color: #243142;
}

.trust-band {
  background: #15202b;
  color: #fff;
}
.trust-band .section { padding-top: 42px; padding-bottom: 42px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trust-item {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 16px;
}
.trust-item strong { display: block; margin-bottom: 6px; }
.trust-item span { color: rgba(255,255,255,.72); font-size: 14px; }

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}
.faq-item h3 { margin: 0 0 8px; font-size: 17px; }
.faq-item p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; gap: 16px; }

.page-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 58px 24px 20px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px 64px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.article-card h2 { margin-top: 0; }
.article-card h3 { margin-top: 26px; }
.article-card p, .article-card li { color: var(--muted); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero, .detail { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero-visual { min-height: auto; }
  .mock-grid { grid-template-columns: 1fr; }
  .plugin-grid, .faq { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav { padding: 12px 16px; }
  .hero, .section, .page-hero, .article { padding-left: 16px; padding-right: 16px; }
  .actions, .card-actions { flex-direction: column; }
  .button { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
