:root {
  --ink: #0f2744;
  --muted: #6b7c93;
  --text: #3d4f66;
  --line: #e6ebf2;
  --accent: #1a56db;
  --bg: #f7f9fc;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

.wrap {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---- nav ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 0;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink);
}
.brand-sub { display: none; }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* ---- hero: one composition ---- */
.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
  padding: 64px 0 48px;
}
.hero-brand {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.4;
}
.hero p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 26em;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: var(--ink);
  color: #fff !important;
}
.btn-link {
  color: var(--muted) !important;
  font-size: 14px;
  text-decoration: none !important;
  background: none;
  padding: 0;
  min-height: auto;
}
.btn-link:hover { color: var(--ink) !important; }
.btn-secondary {
  background: var(--white);
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

/* QR: quiet, no card chrome */
.qr-block {
  text-align: center;
}
.qr-block img {
  width: 168px;
  height: 168px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.qr-block .qr-name {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.qr-block .qr-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* legacy class used by subpages */
.qr-card {
  text-align: center;
}
.qr-card img {
  width: 168px;
  height: 168px;
  border-radius: 8px;
}
.qr-card h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  color: var(--ink);
}
.qr-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- simple content pages ---- */
.section {
  padding: 40px 0 10px;
}
.section h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 1px;
}
.section .lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}
.panel ol, .panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
}
.table th {
  color: var(--ink);
  font-weight: 600;
}

.footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
}
.footer .name {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding: 40px 0 32px;
  }
  .hero-brand { letter-spacing: 4px; }
  .qr-block { justify-self: start; }
}
