:root {
  --brand: #9D2933;
  --brand-dark: #7C1F28;
  --brand-soft: #FBEDED;
  --ink: #1F2328;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-soft: #EEF0F3;
  --wash: #F8F8F9;
  --card: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.68 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-header { position: sticky; top: 0; z-index: 10; height: 68px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(10px); }
.nav-wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--brand); font-size: 13px; letter-spacing: 1px; }
.site-nav { display: flex; align-items: center; gap: 24px; color: #3D444D; font-size: 14px; flex: 1; }
.site-nav a:hover { color: var(--brand); }
.admin-link { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--muted); font-size: 13px; }
.admin-link:hover { color: var(--brand); border-color: var(--brand); }
.hero { padding: 84px 0 70px; background: linear-gradient(135deg, var(--brand-soft), #fff 58%); border-bottom: 1px solid var(--line-soft); }
.hero h1, .page-title h1 { font-size: 42px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 14px; }
.hero p:last-child { max-width: 620px; color: var(--muted); font-size: 18px; margin-bottom: 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 10px; }
.section { padding: 54px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p, .section-head a { color: var(--muted); font-size: 14px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card, .download-card, .release-card, .module-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(31,35,41,.05); }
.product-card { padding: 30px; min-height: 240px; display: flex; flex-direction: column; }
.product-card h3 { font-size: 25px; margin-bottom: 8px; }
.product-card p { color: var(--muted); }
.product-kind { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.version-line { margin-top: auto; color: var(--muted); font-size: 14px; padding-top: 18px; }
.version-line b { color: var(--ink); }
.card-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost:hover { color: var(--brand); border-color: var(--brand); }
.btn.disabled { color: var(--muted); background: var(--wash); cursor: default; }
.update-list { border-top: 1px solid var(--line); }
.update-row { display: grid; grid-template-columns: 190px minmax(0,1fr) 120px; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.update-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-row time, .release-card time { color: var(--muted); font-size: 13px; }
.site-footer { margin-top: 72px; padding: 34px 0; background: var(--wash); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 30px; }
.footer-grid p { margin: 5px 0; }
.footer-grid a { color: var(--brand); font-weight: 600; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; padding: 26px 0 0; }
.crumbs a:hover { color: var(--brand); }
.product-hero { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; padding: 42px 0 10px; }
.product-hero h1 { font-size: 38px; margin-bottom: 8px; }
.product-hero .tagline { font-size: 19px; color: var(--brand-dark); font-weight: 600; }
.product-hero p { color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.shot-grid img { border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.feature-grid li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.feature-grid b { display: block; margin-bottom: 6px; }
.feature-grid span { color: var(--muted); font-size: 14px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.module-card { padding: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.module-card > div { flex: 1 1 150px; }
.module-card h3 { margin-bottom: 6px; font-size: 17px; }
.module-card p { color: var(--muted); font-size: 14px; margin: 0; }
.price-tag { align-self: flex-start; border-radius: 999px; padding: 3px 10px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; }
.price-tag.free { color: #217A4B; background: #EAF6EF; }
.scenario-list { display: flex; flex-wrap: wrap; gap: 10px; }
.scenario-list span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: #fff; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; }
.req-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.req-table th, .req-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.req-table th { width: 110px; color: var(--muted); font-weight: 500; }
.license-steps { margin: 0; padding-left: 20px; color: var(--muted); }
.license-steps li { margin-bottom: 10px; }
.page-title { padding-top: 28px; }
.changelog { display: grid; gap: 18px; }
.release-card { padding: 24px 28px; }
.release-card > header { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 14px; }
.release-card h2 { margin: 0; font-size: 23px; }
.release-card header p { margin: 4px 0 0; color: var(--muted); }
.release-card h3 { font-size: 15px; color: var(--brand); margin: 18px 0 8px; }
.release-card ul { margin: 0; padding-left: 20px; }
.release-card li { margin-bottom: 8px; }
.release-card li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.download-list { display: grid; gap: 18px; }
.download-card { padding: 28px; display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 24px; }
.download-card h2 { font-size: 25px; margin-bottom: 6px; }
.download-card p { color: var(--muted); }
.history { border-left: 1px solid var(--line-soft); padding-left: 22px; color: var(--muted); font-size: 14px; }
.history summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.history ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 12px; }
.empty { color: var(--muted); padding: 18px 0; }

/* Public user manuals */
.help-product-card { min-height: 210px; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.manual-card {
  display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: 0 8px 24px rgba(31,35,41,.045); transition: border-color .15s, transform .15s;
}
.manual-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.manual-card h3 { font-size: 19px; margin: 6px 0 7px; color: var(--ink); }
.manual-card p { color: var(--muted); margin-bottom: 10px; }
.manual-card ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.manual-group { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.help-empty {
  margin-top: 28px; padding: 58px 28px; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--wash);
}
.help-empty h2 { font-size: 24px; margin-bottom: 8px; }
.help-empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.help-empty .card-actions { justify-content: center; }
.help-page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--line-soft); }
.help-page-head h1 { font-size: 36px; line-height: 1.25; margin-bottom: 8px; }
.help-page-head > p { color: var(--muted); font-size: 17px; max-width: 760px; }
.manual-meta { color: var(--muted); font-size: 13px; margin-top: 14px; }
.help-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 30px; }
.help-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
.help-toc {
  position: sticky; top: 92px; padding: 17px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--wash); font-size: 14px;
}
.help-toc b { display: block; margin: 12px 0 7px; }
.help-toc-home { color: var(--brand); font-weight: 700; }
.help-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.help-toc a:hover { color: var(--brand); }
.help-content {
  min-width: 0; padding: 0 0 34px; font-size: 16px; line-height: 1.78;
}
.help-content > :first-child { margin-top: 0; }
.help-content h1, .help-content h2, .help-content h3, .help-content h4 {
  line-height: 1.35; margin: 1.55em 0 .55em; scroll-margin-top: 88px;
}
.help-content h1 { font-size: 29px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.help-content h2 { font-size: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.help-content h3 { font-size: 19px; }
.help-content h4 { font-size: 16px; }
.help-content p { margin: 0 0 14px; }
.help-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.help-content ul, .help-content ol { margin: 0 0 16px; padding-left: 25px; }
.help-content li { margin: 5px 0; }
.help-content img {
  max-width: 100%; height: auto; margin: 18px auto; border: 1px solid var(--line);
  border-radius: 10px; background: var(--wash); box-shadow: 0 8px 22px rgba(31,35,41,.06);
}
.help-content figure { margin: 20px 0; }
.help-content figcaption { color: var(--muted); text-align: center; font-size: 13px; margin-top: 7px; }
.help-content blockquote {
  margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0; background: var(--brand-soft); color: #4A3A3C;
}
.help-content code {
  padding: 2px 5px; border-radius: 5px; background: var(--wash);
  font-family: Consolas, "Courier New", monospace; font-size: .92em;
}
.help-content pre {
  overflow-x: auto; padding: 14px 16px; border-radius: 10px;
  background: #1F2328; color: #F4F6F8; line-height: 1.6;
}
.help-content pre code { padding: 0; background: transparent; color: inherit; }
.help-content table {
  width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: table;
}
.help-content th, .help-content td { padding: 10px 12px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.help-content th { background: var(--wash); font-weight: 700; }
.help-content hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

@media (max-width: 780px) {
  .nav-wrap { gap: 14px; }
  .site-nav { overflow-x: auto; gap: 16px; font-size: 13px; }
  .admin-link { padding: 5px 10px; }
  .hero { padding: 58px 0 48px; }
  .hero h1, .page-title h1 { font-size: 31px; }
  .product-grid, .feature-grid, .module-grid, .two-col, .shot-grid, .download-card, .footer-grid, .manual-grid, .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static; }
  .help-page-head h1 { font-size: 29px; }
  .help-content { font-size: 15px; }
  .update-row { grid-template-columns: 1fr; gap: 3px; }
  .download-card { gap: 14px; }
  .history { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 14px; }
}
