:root {
  --bg: #f5f7fb;
  --card: #fff;
  --ink: #252a3a;
  --muted: #667085;
  --line: #e6eaf0;
  --blue: #1677ff;
  --blue-dark: #0f5fe5;
  --navy: #111026;
  --green: #15945b;
  --red: #e5484d;
  --yellow: #f5b400;
  --shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  background: var(--navy);
  color: #fff;
}

.topbar .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, .72);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.nav .active {
  color: #fff;
}

.hero {
  background:
    radial-gradient(circle at 34% 72%, rgba(22, 119, 255, .22), transparent 32%),
    linear-gradient(105deg, #17235f, #263250);
  color: #fff;
  text-align: center;
  padding: 76px 0 96px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
}

.hero p {
  max-width: 760px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 119, 255, .18);
}

.btn:hover {
  background: var(--blue-dark);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: none;
}

.section {
  padding: 70px 0;
}

.white {
  background: #fff;
}

.section h2 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}

.sub {
  color: var(--muted);
  line-height: 1.75;
}

.center {
  text-align: center;
}

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

.card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}

.card h3 {
  margin: 14px 0 10px;
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e8f1ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.green {
  background: #e6f5ef;
  color: var(--green);
}

.red {
  background: #ffe8ea;
  color: var(--red);
}

.yellow {
  background: #fff4cc;
  color: #9a6b00;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}

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

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
}

.codebox {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.6;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.login-bg {
  min-height: 100vh;
  background: #262637;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(410px, 100%);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.login-head {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 28px;
}

.login-head h2 {
  margin: 0 0 8px;
}

.login-body {
  padding: 24px;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #e8f2ff;
  color: #1456b8;
}

.admin {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  color: #475467;
  white-space: nowrap;
}

.sidebar a.active,
.sidebar a:hover {
  background: #eef4ff;
  color: var(--blue);
}

.main {
  min-width: 0;
  padding: 28px;
  overflow-x: auto;
}

.main h1 {
  margin-top: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 30px;
}

.footer {
  text-align: center;
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 28px;
}

.small-hero {
  padding: 52px 0 70px;
}

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

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 34px 28px;
}

.price-card.recommend {
  border: 2px solid var(--blue);
}

.price-card .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 800;
}

.price-card h2,
.price-card .price {
  text-align: center;
}

.price-card .price {
  color: var(--blue);
  font-size: 42px;
  font-weight: 900;
  margin: 22px 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.price-card li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #384152;
}

.price-card li span {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 900;
}

.price-card li.off {
  color: #98a2b3;
}

.price-card li.off span {
  color: #c0c4cc;
}

.btn.outline {
  width: 100%;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: none;
}

.inline-form {
  display: inline;
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}

.mini-btn:hover {
  border-color: var(--blue);
  background: #eef4ff;
}

.split-section {
  background: #f6f8fb;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 48px;
  align-items: center;
}

.split h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 6px 0 16px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #3b4453;
}

.check-list li:before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  margin-right: 12px;
}

.code-preview {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  overflow-x: auto;
}

pre.code-preview,
.code-preview pre {
  margin: 0;
  background: #f6f8fb;
  border-radius: 8px;
  padding: 18px;
  color: #116149;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.7;
  overflow-x: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.steps > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.steps b,
.step-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
}

.tool-form {
  margin-top: 34px;
}

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

.doc-nav {
  position: sticky;
  top: 20px;
  align-self: start;
}

.doc-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  color: #475467;
}

.doc-nav a:hover {
  background: #eef4ff;
  color: var(--blue);
}

.doc-main h1 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-top: 0;
}

.doc-main h1:not(:first-child) {
  margin-top: 48px;
}

.tip {
  background: #e8f2ff;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px;
  margin: 22px 0;
  color: #24426f;
}

.step-list > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .container {
    padding: 0 18px;
  }

  .topbar .container {
    min-height: 60px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    padding-bottom: 2px;
  }

  .hero {
    padding: 58px 0 70px;
  }

  .section {
    padding: 48px 0;
  }

  .cards,
  .grid,
  .stats,
  .steps,
  .split,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3 {
    grid-column: auto;
  }

  .card,
  .form {
    padding: 20px;
  }

  .admin {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .sidebar .brand {
    display: inline-block;
    margin-right: 18px;
  }

  .sidebar a {
    display: inline-block;
    margin-right: 4px;
  }

  .main {
    padding: 20px 16px;
  }

  .table,
  .main .table {
    min-width: 760px;
  }

  .doc-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .doc-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .login-body {
    padding: 20px;
  }

  .sidebar {
    padding: 12px;
  }
}
