﻿:root {
  --bg: #f5f7f6;
  --ink: #10232d;
  --muted: #63747a;
  --line: #d9e1de;
  --white: #ffffff;
  --red: #df543d;
  --red-dark: #b44130;
  --teal: #237b73;
  --navy: #102f3d;
  --gold: #f2b84b;
  --soft: #eef5f2;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-width {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(16, 35, 45, 0.1);
  background: #f5f7f6;
  box-shadow: 0 8px 22px rgba(16, 35, 45, 0.05);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #3d5158;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 8px 11px;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--red);
  color: #fffaf7;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: #c94a35;
}

.btn.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.btn.secondary:hover {
  background: var(--soft);
}

.btn.large {
  min-height: 44px;
  padding: 10px 20px;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: rgba(16, 47, 61, 0.06);
}

.btn.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 13px;
}

.hero {
  border-bottom: 1px solid var(--line);
  background-color: var(--soft);
  background-image:
    linear-gradient(rgba(16, 47, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 61, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-grid {
  display: grid;
  min-height: 690px;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 42px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow:before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #f7f0e5;
  color: #765110;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 52px;
  line-height: 1.13;
  letter-spacing: -1px;
}

h2 {
  margin-bottom: 16px;
  font-size: 36px;
  line-height: 1.22;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.hero-copy > p {
  color: #53666d;
  font-size: 17px;
  line-height: 1.8;
}

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

.metrics {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
  border-top: 1px solid #cbd8d3;
  padding-top: 20px;
}

.metrics strong {
  display: block;
  font-size: 25px;
}

.metrics span {
  color: #66777d;
  font-size: 14px;
}

.screenshot-frame {
  overflow: hidden;
  border: 1px solid rgba(16, 47, 61, 0.18);
  border-radius: var(--radius);
  background: #0f2a35;
  box-shadow: 0 26px 70px rgba(18, 48, 67, 0.18);
}

.screenshot-frame img {
  display: block;
  width: 100%;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section.white {
  background: #ffffff;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--navy);
  color: #f3f8f6;
}

.section.dark p {
  color: #b9cbc8;
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: end;
  gap: 28px;
  margin-bottom: 36px;
}

.section-head > p {
  max-width: 720px;
  justify-self: end;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature-card {
  min-height: 245px;
  background: #ffffff;
  padding: 26px;
}

.feature-card .tag {
  margin-bottom: 28px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.step {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
}

.step span {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-weight: 800;
}

.step h3 {
  margin-top: 30px;
}

.layout-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.layout-tab {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 800;
}

.layout-tab.active {
  border-color: var(--red);
  background: #fff3f0;
  color: var(--red-dark);
}

.layout-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 32px;
}

.layout-panel.active {
  display: grid;
}

.layout-preview {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 24px;
}

.layout-preview img {
  width: min(100%, 560px);
}

.layout-copy p {
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 20px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 32px;
}

.release-list {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.release-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e3e9e7;
  padding: 20px;
}

.release-row:last-child {
  border-bottom: 0;
}

.release-row p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.release-row small {
  color: #809096;
}

.contact-panel {
  border-radius: var(--radius);
  background: var(--navy);
  color: #f4faf8;
  padding: 30px;
}

.contact-panel p {
  color: #bdd0cc;
  font-size: 14px;
}

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

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid #cfd9d5;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 84, 61, 0.12);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.message {
  margin-top: 12px;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.message.ok {
  border: 1px solid #a8d3c9;
  background: #e8f5f1;
  color: #1e675f;
}

.message.error {
  border: 1px solid #efb6ad;
  background: #fff1ee;
  color: #a83728;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer small {
  display: block;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #77878c;
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--red);
}

.contact-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 24, 31, 0.68);
}

.contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(7, 24, 31, 0.32);
}

.contact-modal-card h2 {
  margin-bottom: 10px;
}

.contact-modal-card > p {
  color: var(--muted);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #edf2f0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.qr-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  text-align: center;
}

.qr-grid img {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  margin: 0 auto;
}

.qr-grid figcaption {
  margin-top: 10px;
  color: #53666d;
  font-size: 14px;
  font-weight: 800;
}

/* Admin */
.admin-body {
  background: #eef2f1;
}

.admin-shell {
  min-height: 100vh;
}

.admin-side {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  background: var(--navy);
  color: #f3f8f6;
  padding: 22px 18px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
}

.admin-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.admin-user {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.admin-user small {
  display: block;
  color: #b6c9c5;
}

.admin-nav {
  margin-top: 24px;
}

.admin-nav a {
  display: block;
  margin-bottom: 6px;
  border-radius: 6px;
  padding: 10px 12px;
  color: #d9e7e3;
  font-size: 14px;
  font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-main {
  min-height: 100vh;
  margin-left: 250px;
  padding: 30px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.admin-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 21px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e5ebe9;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f3f6f5;
  color: #52636a;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.login-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 24px;
}

.login-box {
  width: min(100%, 440px);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 30px;
}

.login-box h1 {
  margin-bottom: 10px;
  font-size: 29px;
  letter-spacing: 0;
}

@media (max-width: 1050px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 18px 45px rgba(16, 35, 45, 0.14);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .section-head,
  .workflow-grid,
  .layout-panel,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 34px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .section-head > p {
    justify-self: start;
  }

  .layout-preview {
    min-height: 300px;
  }

  .admin-side {
    position: static;
    width: auto;
  }

  .admin-main {
    margin-left: 0;
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .site-width {
    width: min(100% - 28px, 1180px);
  }

  .brand small {
    display: none;
  }

  .nav-actions .btn.ghost {
    display: none;
  }

  .hero-grid {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .screenshot-frame {
    max-height: 210px;
  }

  .metrics {
    display: none;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .feature-grid,
  .steps,
  .trust-grid,
  .qr-grid,
  .form-grid,
  .admin-grid,
  .admin-grid.two,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .release-row {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-legal,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-grid .wide {
    grid-column: auto;
  }
}
