:root {
  --blue: #1c64f2;
  --blue-hover: #1556d4;
  --navy: #14337f;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e7e7e7;
  --bg: #f3f4f7;
  --panel: #ffffff;
  --soft: #eef4ff;
  --radius: 4px;
  --header-h: 64px;
  --max: 1200px;
  --doc: 760px;
  --shadow: 0 2px 8px rgba(20, 51, 127, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.brand:hover {
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 28px;
  width: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--blue);
}
.breadcrumb .sep {
  margin: 0 8px;
  color: #bbb;
}
.breadcrumb .current {
  color: var(--ink);
}

/* ---- Layout ---- */
.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  box-shadow: var(--shadow);
}
.doc-nav h3 {
  margin: 0 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.doc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.doc-nav a:hover,
.doc-nav a.is-active {
  background: var(--soft);
  color: var(--blue);
  text-decoration: none;
}

.doc-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px 56px;
  max-width: none;
}

.doc-main > h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.doc-meta {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}
.doc-meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: #ccc;
}

.notice {
  margin: 0 0 32px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid #d6e4ff;
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}
.notice-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.notice p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}
.notice p strong {
  color: var(--navy);
  font-weight: 600;
}

.doc-main h2 {
  margin: 36px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.doc-main h2:first-of-type {
  border-top: none;
  margin-top: 8px;
  padding-top: 0;
}
.doc-main h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.doc-main p {
  margin: 0 0 12px;
  color: var(--ink);
}
.doc-main ul,
.doc-main ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}
.doc-main li {
  margin-bottom: 6px;
}
.doc-main li::marker {
  color: var(--blue);
}

.term-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.term-list li {
  margin-bottom: 10px;
  padding-left: 0;
}
.term-list b {
  display: inline;
  color: var(--navy);
}

.limit-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.limit-list li {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.limit-list b {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 13px;
}
.limit-list span {
  color: var(--muted);
  font-size: 13px;
}

.contact-box {
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-box p {
  margin: 0 0 6px;
}
.contact-box p:last-child {
  margin-bottom: 0;
}

.party-card {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.party-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--navy);
}
.party-card .field {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink);
}
.party-card .field:last-child {
  margin-bottom: 0;
}
.party-card .label {
  color: var(--muted);
  min-width: 5.5em;
}
.party-card .blank {
  flex: 1;
  min-width: 160px;
  border-bottom: 1px solid #c5c5c5;
  min-height: 1.4em;
}

.sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.sign-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-height: 220px;
}
.sign-block h3 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.sign-row {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink);
}
.sign-row .blank {
  display: inline-block;
  min-width: 60%;
  border-bottom: 1px solid #c5c5c5;
  min-height: 1.35em;
  vertical-align: bottom;
}
.sign-seal {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

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

/* ---- Footer ---- */
.site-footer {
  background: #0f1b3d;
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0 28px;
  font-size: 13px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .copyright {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }
  .doc-nav {
    position: static;
  }
  .doc-nav ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
  .doc-main {
    padding: 28px 20px 40px;
  }
  .doc-main > h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }
  .brand span {
    display: none;
  }
  .doc-nav ol {
    grid-template-columns: 1fr;
  }
}
