:root {
  --bg: #f5f7fb;
  --bg-strong: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #647083;
  --subtle: #8b95a7;
  --line: #dce3ee;
  --line-soft: #edf1f7;
  --primary: #2f6feb;
  --primary-dark: #1f56c5;
  --primary-soft: #eaf2ff;
  --success: #12805c;
  --success-soft: #e8f7f0;
  --danger: #c43c2d;
  --danger-soft: #fff0ed;
  --warning: #a86500;
  --radius: 8px;
  --shadow: 0 20px 48px rgba(23, 32, 51, .08);
  color-scheme: light;
}

@media (max-width: 768px) {
  .install-shell {
    width: min(100% - 20px, 760px);
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero::after {
    min-height: 72px;
    border-radius: 18px;
  }

  .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .check-grid,
  .two-col,
  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-row {
    padding: 12px;
    border-radius: 16px;
  }

  .inline-form,
  .command-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inline-form button,
  .command-form button {
    width: 100%;
    min-height: 42px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 111, 235, .12), transparent 32%),
    linear-gradient(180deg, var(--bg-strong), var(--bg) 320px);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary-dark);
}

.install-shell {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
  padding: 28px 0 14px;
}

.hero::after {
  content: "PHP 8.2+ / MySQL / BaoTa";
  display: grid;
  min-height: 112px;
  place-items: center;
  border: 1px solid rgba(47, 111, 235, .2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--primary-soft));
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 12px 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.panel {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.success {
  border-color: rgba(18, 128, 92, .24);
  background: linear-gradient(180deg, var(--surface), var(--success-soft));
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.check-row {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.check-row strong,
.check-row span,
.check-row small {
  display: block;
}

.check-row span {
  margin-top: 8px;
  font-weight: 800;
}

.check-row small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ok span {
  color: var(--success);
}

.bad span,
.notice.bad {
  color: var(--danger);
}

.install-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 15px;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(47, 111, 235, .14);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(47, 111, 235, .18);
}

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-weight: 800;
}

.table-list {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.table-row span {
  color: var(--muted);
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.command-form {
  grid-column: 1 / -1;
}

.command-form input {
  flex: 1;
}

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

  .hero::after {
    min-height: 78px;
  }
}

@media (max-width: 640px) {
  .install-shell {
    width: min(100% - 24px, 760px);
    padding-top: 22px;
  }

  .two-col,
  .table-row {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
  }

  h1 {
    font-size: 36px;
  }
}
