/* NAT 小铺 — small self-contained stylesheet, no external assets. */
:root {
  --ink: #1c2333;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #0e7490;
  --accent-dark: #155e75;
  --danger: #b42318;
  --ok-bg: #e6f4ea;
  --err-bg: #fdecea;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }
.topbar { background: var(--ink); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; flex-wrap: wrap; gap: 8px; }
.brand { color: #fff; font-size: 20px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo { color: #22d3ee; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a { color: #d0d5dd; font-size: 15px; }
.nav a:hover { color: #fff; }
main.wrap { padding-top: 28px; padding-bottom: 40px; min-height: 70vh; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 18px 0 28px; }
h1 { font-size: 28px; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 32px 0 12px; }
h3 { font-size: 17px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.hero { background: linear-gradient(135deg, #0e7490, #155e75 60%, #1c2333); color: #fff; border-radius: 14px; padding: 40px 32px; margin-bottom: 28px; }
.hero h1 { font-size: 34px; margin-bottom: 8px; }
.hero p { color: #dbeafe; max-width: 640px; }
.hero-note { font-size: 14px; color: #a5f3fc; }
.hero-actions { display: flex; gap: 12px; margin: 20px 0 8px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: 9px 18px; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: #e0f2fe; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8a1a12; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.plan-card .price { font-size: 32px; font-weight: 700; margin: 4px 0 12px; }
.plan-card .price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.specs { list-style: none; padding: 0; margin: 0 0 12px; }
.specs li { padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.flash-ok { background: var(--ok-bg); color: #14532d; }
.flash-error { background: var(--err-bg); color: #7a271a; }
.form-card { max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.form-card.wide { max-width: 640px; }
label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 10px;
  border: 1px solid #cfd4dc; border-radius: 8px; font-size: 15px; background: #fff;
}
textarea { resize: vertical; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: #f2f4f7; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #eef2f6; }
.badge-running { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-stopped { background: #e5e7eb; color: #374151; }
.badge-expired { background: #fee2e2; color: #991b1b; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .btn { margin-left: auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.actions form { display: inline; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; margin-top: 0; }
.port-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.port-form input, .port-form select { flex: 1; min-width: 120px; margin-top: 0; }
.port-form .btn { flex: 0 0 auto; }
.empty { text-align: center; padding: 36px 20px; }
.log-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.log-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; }
.stat span { color: var(--muted); font-size: 14px; }
code { background: #f2f4f7; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
section.card { margin-top: 16px; }
