:root {
  --ink: #1c2530;
  --muted: #5b6672;
  --line: #d9dcdf;
  --paper: #f6f5f1;
  --white: #ffffff;
  --navy: #1f3a5f;
  --navy-dark: #142943;
  --gold: #93732f;
  --tier-r0: #eef2ea;
  --tier-r1: #f4ecd9;
  --tier-r2: #f3e6e5;
  --tier-r0-line: #9db98a;
  --tier-r1-line: #c9a24f;
  --tier-r2-line: #b5686a;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Georgia", "Segoe UI", "Microsoft YaHei", "PingFang SC", serif;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.25; color: var(--navy-dark); }
p { margin: 0 0 1em; }
img { max-width: 100%; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(31,58,95,.35); }
a:hover { text-decoration-color: var(--navy); }
a.button, button.button {
  display: inline-block; text-decoration: none; border: 1px solid var(--navy);
  border-radius: 3px; padding: 10px 18px; color: var(--navy); font: 700 14px/1 "Segoe UI", sans-serif;
  background: var(--white);
}
a.button:hover { background: var(--navy); color: var(--white); }
a.button.primary { background: var(--navy); color: var(--white); }
a.button.primary:hover { background: var(--navy-dark); }

.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand .mark { font: 700 11px/1 "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.brand .name { font: 700 21px/1.15 "Segoe UI", sans-serif; color: var(--navy-dark); }
.main-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a { font: 600 14px/1.4 "Segoe UI", sans-serif; text-decoration: none; color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.lang-switch { margin-left: 6px; }
.lang-switch a {
  font: 700 12px/1 "Segoe UI", sans-serif; text-decoration: none; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 3px; padding: 6px 10px;
}
.lang-switch a:hover { background: var(--navy); color: var(--white); }

/* Footer */
.site-footer { background: var(--navy-dark); color: #cfd8e2; margin-top: 64px; }
.site-footer .wrap { padding: 34px 20px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #eef1f5; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.site-footer p, .site-footer a { color: #b9c4d0; font-size: 13px; margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a4266; padding: 14px 20px; text-align: center; font-size: 12px; color: #8fa0b3; }
.patent-note { font-size: 12px; color: #9fb0c2; }

/* Hero */
.hero { background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 56px 20px 44px; }
.hero .eyebrow { font: 700 12px/1 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 12px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 18px; max-width: 18ch; }
.hero .lede { font-size: clamp(16px, 2vw, 19px); color: #33404a; max-width: 62ch; margin: 0 0 26px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.narrative { padding: 8px 0 8px; }
.narrative .wrap { max-width: 780px; }
.narrative blockquote {
  margin: 0 0 28px; padding: 18px 22px; background: var(--white); border-left: 4px solid var(--gold);
  font-size: 17px; color: #2a3540;
}
.narrative blockquote p:last-child { margin-bottom: 0; }

/* Section headings */
.section { padding: 46px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 700px; margin: 0 0 30px; }
.section-head .kicker { font: 700 11px/1 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 0 0 8px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--white); padding: 26px 24px; }
.pillar .num { font: 700 12px/1 "Segoe UI", sans-serif; color: var(--gold); }
.pillar h3 { margin: 8px 0 10px; font-size: 18px; }
.pillar p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Tier diagram */
.tier-block { border: 1px solid var(--line); background: var(--white); margin-bottom: 14px; }
.tier-block .tier-label {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; background: #eef1f5; border-bottom: 1px solid var(--line);
}
.tier-block .tier-label .n { font: 700 13px/1 "Segoe UI", sans-serif; color: var(--navy); background: var(--white); border: 1px solid var(--navy); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex: none; }
.tier-block .tier-label h3 { margin: 0; font-size: 16px; }
.tier-block p { margin: 0; padding: 16px 18px; color: var(--muted); font-size: 14.5px; }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.privacy-card { border-top: 5px solid; border-radius: 2px; background: var(--white); border: 1px solid var(--line); padding: 16px 16px 18px; }
.privacy-card.r0 { border-top-color: var(--tier-r0-line); background: var(--tier-r0); }
.privacy-card.r1 { border-top-color: var(--tier-r1-line); background: var(--tier-r1); }
.privacy-card.r2 { border-top-color: var(--tier-r2-line); background: var(--tier-r2); }
.privacy-card .tag { font: 700 11px/1 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.privacy-card h4 { margin: 6px 0 8px; font-size: 15px; }
.privacy-card p { margin: 0; font-size: 13.5px; color: #3c4650; }

/* Steps (how it works) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--white); padding: 18px 20px 18px 66px; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--navy); color: var(--white); font: 700 14px/30px "Segoe UI", sans-serif; text-align: center;
}
.steps h3 { margin: 0 0 6px; font-size: 15.5px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.status-list { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.status-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; }
.status-list code { font: 700 12.5px/1 "Consolas", monospace; color: var(--navy-dark); }
.status-list span { color: var(--muted); }

/* Whitepaper article */
.wp-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.wp-toc { position: sticky; top: 20px; background: var(--white); border: 1px solid var(--line); padding: 16px 16px 18px; }
.wp-toc h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.wp-toc ol { margin: 0; padding: 0 0 0 18px; font-size: 13px; }
.wp-toc li { margin-bottom: 6px; }
.wp-toc a { text-decoration: none; color: var(--ink); }
.wp-toc a:hover { color: var(--navy); }
.wp-download { margin: 18px 0 30px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wp-download p { margin: 0; color: var(--muted); font-size: 13.5px; }
.wp-meta { color: var(--muted); font-size: 13px; margin: 0 0 30px; }

article.wp-body { background: var(--white); border: 1px solid var(--line); padding: 6px 36px 36px; max-width: 100%; overflow-wrap: anywhere; }
article.wp-body h2 { font-size: 22px; margin: 38px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
article.wp-body h2:first-of-type { border-top: 0; margin-top: 30px; }
article.wp-body h3 { font-size: 17px; margin: 24px 0 10px; scroll-margin-top: 16px; }
article.wp-body p, article.wp-body li { font-size: 15px; color: #2b3641; }
article.wp-body ol, article.wp-body ul { padding-left: 22px; }
article.wp-body table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px; }
article.wp-body th, article.wp-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
article.wp-body th { background: #eef1f5; font-weight: 700; }
article.wp-body blockquote { margin: 16px 0; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--gold); }
article.wp-body pre { background: #10192a; color: #d9e2ec; padding: 16px 18px; overflow-x: auto; border-radius: 3px; font-size: 12.5px; }
article.wp-body code { font-family: "Consolas", monospace; }
article.wp-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* Generic page header for non-home pages */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding: 34px 20px 26px; }
.page-hero .eyebrow { font: 700 12px/1 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 10px; }
.page-hero h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 10px; }
.page-hero p { color: var(--muted); max-width: 68ch; margin: 0; }

@media (max-width: 860px) {
  .pillars, .privacy-grid { grid-template-columns: 1fr; }
  .wp-layout { grid-template-columns: 1fr; }
  .wp-toc { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ── Three Doors (三个门入口) ── */
.doors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 22px 24px; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.door-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--navy); }
.door-card .door-icon {
  font-size: 32px; line-height: 1; margin: 0 0 14px;
}
.door-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy-dark); }
.door-card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; flex: 1; }
.door-card .door-arrow {
  font: 700 13px/1 "Segoe UI", sans-serif; color: var(--navy);
  align-self: flex-start;
}
.door-card:hover .door-arrow { text-decoration: underline; }

/* ── Tabbed Interface (登记户后台 tabs) ── */
.tab-bar {
  display: flex; gap: 0; border-bottom: 2px solid var(--line); margin: 0 0 0;
  background: var(--white);
}
.tab-bar button {
  background: none; border: none; border-bottom: 3px solid transparent;
  padding: 14px 22px; font: 600 14px/1 "Segoe UI", sans-serif;
  color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}
.tab-bar button:hover { color: var(--ink); }
.tab-bar button.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Profile header card */
.profile-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.profile-card .profile-id { font: 700 15px "Consolas", monospace; color: var(--navy-dark); }
.profile-card .profile-owner { font-size: 14px; color: var(--muted); }
.profile-card .profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 3px;
  font: 600 11px/1.4 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .04em;
}
.badge.active-badge { background: #d4edda; color: #1a5c2a; }
.badge.sealed-badge { background: #e2e3e5; color: #505868; }
.badge.public-badge { background: #cce5ff; color: #1a4c7a; }
.badge.restricted-badge { background: #fff3cd; color: #7a5d00; }

/* Data tables in panels */
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13.5px; }
.data-table th, .data-table td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top;
}
.data-table th { background: #eef1f5; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.data-table td { background: var(--white); }
.data-table code { font: 11.5px "Consolas", monospace; color: var(--navy-dark); background: #f0f2f5; padding: 1px 5px; border-radius: 2px; }

/* Health meter */
.health-bar-wrap { display: flex; align-items: center; gap: 10px; }
.health-bar {
  flex: 1; height: 10px; background: #e9ecef; border-radius: 5px; overflow: hidden;
}
.health-bar-fill { height: 100%; border-radius: 5px; transition: width .4s; }
.health-bar-fill.good { background: #28a745; }
.health-bar-fill.warn { background: #ffc107; }
.health-bar-fill.danger { background: #dc3545; }
.health-label { font: 600 13px/1 "Segoe UI", sans-serif; white-space: nowrap; }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; margin-bottom: 8px;
}
.toggle-row .toggle-label { font-size: 14px; }
.toggle-row .toggle-label strong { display: block; font-size: 15px; margin-bottom: 2px; color: var(--navy-dark); }
.toggle-row .toggle-label span { color: var(--muted); font-size: 12.5px; }
.toggle-switch {
  position: relative; display: inline-block; width: 48px; height: 26px; flex: none;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 26px; transition: .25s;
}
.toggle-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .25s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-switch input:disabled + .toggle-slider { opacity: .5; cursor: not-allowed; }

/* ── Verify Page (查验门) ── */
.verify-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.upload-zone {
  background: var(--white); border: 2px dashed var(--line); border-radius: 6px;
  padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color .2s;
}
.upload-zone:hover { border-color: var(--navy); }
.upload-zone .upload-icon { font-size: 40px; line-height: 1; margin: 0 0 12px; }
.upload-zone h3 { margin: 0 0 6px; font-size: 16px; }
.upload-zone p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.upload-zone input[type="file"] { display: none; }
.result-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 22px 24px; margin-bottom: 14px;
}
.result-card .result-status {
  display: inline-block; padding: 4px 12px; border-radius: 3px;
  font: 700 13px/1.4 "Segoe UI", sans-serif; margin: 0 0 10px;
}
.result-card .result-status.authorized { background: #d4edda; color: #1a5c2a; }
.result-card .result-status.not-found { background: #f8d7da; color: #721c24; }
.result-card .result-meta { font-size: 12.5px; color: var(--muted); }
.result-card .result-meta code { font: 11.5px "Consolas", monospace; color: var(--navy-dark); }
.result-card .receipt-box {
  background: #f8f9fa; border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 14px; margin-top: 12px; font-size: 12px; font-family: "Consolas", monospace;
  color: var(--muted); word-break: break-all;
}
.result-demo-toggle { margin-bottom: 16px; }
.result-demo-toggle button {
  background: var(--white); border: 1px solid var(--line); padding: 6px 14px;
  font: 600 12px/1.4 "Segoe UI", sans-serif; color: var(--muted); cursor: pointer;
}
.result-demo-toggle button:first-child { border-radius: 3px 0 0 3px; }
.result-demo-toggle button:last-child { border-radius: 0 3px 3px 0; }
.result-demo-toggle button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Developer Page (开发者门) ── */
.api-section { margin-bottom: 34px; }
.api-section h3 {
  font-size: 18px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--navy);
  color: var(--navy-dark);
}
.api-section > p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.api-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.api-table th, .api-table td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.api-table th { background: #eef1f5; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.api-table td { background: var(--white); }
.api-table code { font: 11px "Consolas", monospace; color: var(--navy-dark); background: #f0f2f5; padding: 1px 4px; border-radius: 2px; }
.api-table .method { font-weight: 700; }
.api-table .method.get { color: #28a745; }
.api-table .method.post { color: var(--navy); }
.api-key-banner {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 30px;
}
.api-key-banner p { margin: 0; font-size: 14px; color: var(--muted); }
.api-key-banner p strong { color: var(--navy-dark); }

/* Card grid (generic) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px;
}
.stat-card .stat-num { font: 700 26px/1 "Segoe UI", sans-serif; color: var(--navy-dark); margin: 0 0 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); }

/* Placeholder box */
.placeholder-box {
  background: var(--white); border: 2px dashed var(--line); border-radius: 6px;
  padding: 30px 24px; text-align: center; color: var(--muted);
}
.placeholder-box h4 { color: var(--muted); margin: 0 0 8px; }

/* Page body max-width for inner pages */
.page-body { max-width: 900px; margin: 0 auto; padding: 30px 20px 50px; }

@media (max-width: 860px) {
  .pillars, .privacy-grid { grid-template-columns: 1fr; }
  .wp-layout { grid-template-columns: 1fr; }
  .wp-toc { position: static; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .doors-grid { grid-template-columns: 1fr; }
  .verify-layout { grid-template-columns: 1fr; }
  .tab-bar { overflow-x: auto; }
  .tab-bar button { white-space: nowrap; padding: 12px 16px; font-size: 13px; }
}

/* ── Honesty Notice ── */
.honesty-notice {
  background: #fff8e1; border: 1px solid #e6c940; border-radius: 4px;
  padding: 16px 20px; margin-bottom: 24px;
}
.honesty-notice strong { font-size: 14px; color: #7a5d00; }
.honesty-notice p { margin: 6px 0 0; font-size: 13px; color: #5c4a1e; }

/* ── Register Form ── */
.register-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px 28px 24px;
}
.form-group { margin-bottom: 22px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block; font: 700 14px/1.3 "Segoe UI", sans-serif;
  color: var(--navy-dark); margin: 0 0 4px;
}
.form-label .required { color: #dc3545; }
.form-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.form-input {
  width: 100%; max-width: 440px; padding: 9px 12px;
  font: 15px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--white); color: var(--ink);
}
.form-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,58,95,.15); }

/* Radio */
.radio-group { display: grid; gap: 6px; }
.radio-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer; transition: border-color .15s;
}
.radio-row:hover { border-color: var(--navy); }
.radio-row input[type="radio"] { margin-top: 3px; flex: none; }
.radio-body strong { display: block; font-size: 14px; color: var(--navy-dark); margin-bottom: 2px; }
.radio-body span { font-size: 12.5px; color: var(--muted); }

/* Checkbox */
.checkbox-group { display: grid; gap: 5px; }
.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer; font-size: 14px; color: var(--ink);
}
.checkbox-row:hover { border-color: var(--navy); }
.checkbox-row input[type="checkbox"] { flex: none; }

/* Consent */
.consent-row { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.consent-check { font-weight: 600; padding: 10px 14px; }
.consent-check span { font-size: 13.5px; }

/* Form actions */
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.form-actions .button.primary:disabled { opacity: .45; cursor: not-allowed; background: var(--navy); color: var(--white); }
.loading-text { font-size: 13px; color: var(--muted); }
.form-error {
  background: #fff5f5; border: 1px solid #f5c6cb; border-radius: 3px;
  padding: 10px 14px; color: #721c24; font-size: 13.5px; margin-top: 12px;
}

/* ── Success Card ── */
.success-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
.success-header {
  background: #d4edda; padding: 18px 24px; display: flex; align-items: center; gap: 10px;
}
.success-header .success-icon { font-size: 24px; }
.success-header h2 { margin: 0; font-size: 20px; color: #1a5c2a; }
.success-body { padding: 24px; }
.receipt-highlight {
  text-align: center; padding: 20px; background: #f8f9fa; border: 1px solid var(--line);
  border-radius: 4px; margin-bottom: 18px;
}
.receipt-label { font: 600 12px/1 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.receipt-id-large {
  font: 700 clamp(24px, 4vw, 36px)/1.15 "Consolas", monospace;
  color: var(--navy-dark); margin: 0; word-break: break-all;
}
.hash-code {
  font-family: "Consolas", monospace; font-size: 11.5px;
  color: var(--navy-dark); word-break: break-all;
}
.copy-btn {
  background: none; border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 8px; cursor: pointer; font-size: 14px; line-height: 1.4;
  vertical-align: middle;
}
.copy-btn:hover { background: #eef1f5; }
.receipt-note {
  font-size: 14px; color: var(--muted); margin: 16px 0 14px;
  padding: 10px 14px; background: #fff8e1; border-radius: 3px;
}
.receipt-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Lookup Section ── */
.lookup-section { }
.lookup-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.lookup-input {
  flex: 1; min-width: 200px; padding: 9px 12px;
  font: 15px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--white); color: var(--ink);
}
.lookup-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 2px rgba(31,58,95,.15); }
.lookup-select {
  padding: 8px 10px; font: 14px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--white); color: var(--ink); max-width: 180px;
}

/* ── Verify Result Status Badges ── */
.result-status-badge {
  display: inline-block; padding: 5px 14px; border-radius: 3px;
  font: 700 13px/1.4 "Segoe UI", sans-serif; margin: 0 0 12px;
}
.result-status-badge.status-active    { background: #d4edda; color: #1a5c2a; }
.result-status-badge.status-warn      { background: #fff3cd; color: #7a5d00; }
.result-status-badge.status-danger    { background: #f8d7da; color: #721c24; }
.result-status-badge.status-notfound  { background: #e2e3e5; color: #505868; }

/* ── Chain Status ── */
.chain-status { font-size: 12.5px; color: var(--muted); }
.chain-ok   { color: #28a745; font-weight: 700; }
.chain-bad  { color: #dc3545; font-weight: 700; }
.chain-warn { color: #93732f; font-weight: 700; }

/* ── Verify Note ── */
.verify-note {
  font-size: 12.5px; color: var(--muted); margin-top: 6px;
}

/* ── Disabled Upload Zone ── */
.disabled-zone {
  cursor: not-allowed; opacity: .65;
  pointer-events: none;
}

/* ── Door Sub Link ── */
.door-sub-link {
  display: block; margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.door-sub-link-a {
  color: var(--navy); text-decoration: underline;
  text-decoration-color: rgba(31,58,95,.35); cursor: pointer;
  font-weight: 600;
}
.door-sub-link-a:hover { text-decoration-color: var(--navy); }

@media (max-width: 480px) {
  article.wp-body { padding: 6px 18px 24px; }
  .steps li { padding-left: 56px; }
  .status-list li { grid-template-columns: 1fr; }
  .wp-download { flex-direction: column; align-items: flex-start; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .api-table { font-size: 11.5px; }
  .api-table th, .api-table td { padding: 6px 7px; }
}
