/* 配色与界面风格与客户端主题一致 */
:root {
  --abyss: #07080d;
  --iron: #171923;
  --blade: #d92d2d;
  --gold: #f2a93b;
  --orange: #ff6a1a;
  --steel: #3a7dff;
  --venom: #31c48d;
  --shadow: #6d4aff;
  --text: #f5f2ea;
  --muted: #9b9ba5;
  --border: #2a2c36;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    ui-sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--abyss);
}

.bg-battlefield {
  position: relative;
  background: linear-gradient(
      145deg,
      var(--abyss) 0%,
      rgba(23, 25, 35, 0.65) 45%,
      var(--abyss) 100%
    ),
    var(--abyss);
  isolation: isolate;
}

.bg-battlefield::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(
      rgba(217, 45, 45, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(217, 45, 45, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.bg-battlefield::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 70% 50% at 0% 0%,
      rgba(217, 45, 45, 0.18),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 45% at 100% 100%,
      rgba(242, 169, 59, 0.08),
      transparent 50%
    );
  pointer-events: none;
}

a {
  color: var(--steel);
  text-decoration: none;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 8, 13, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(242, 169, 59, 0.35),
    0 8px 24px rgba(217, 45, 45, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-text span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--blade);
  text-decoration: none;
}

.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

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

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.hero p.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--blade), #b32020);
  box-shadow: 0 6px 22px rgba(217, 45, 45, 0.45);
  border: 1px solid rgba(242, 169, 59, 0.75);
}

.btn-primary:hover {
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 28px rgba(217, 45, 45, 0.55);
}

.btn-ghost {
  color: var(--text);
  background: rgba(23, 25, 35, 0.8);
  border: 1px solid var(--border);
  clip-path: none;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--steel);
  color: var(--text);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(58, 125, 255, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.55);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

section.block {
  padding: 40px 0 52px;
}

section.block.alt {
  background: rgba(23, 25, 35, 0.35);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-head p.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 52em;
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(23, 25, 35, 0.65);
  border: 1px solid var(--border);
}

.page-toc a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-toc a:hover {
  color: var(--gold);
  text-decoration: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.panel {
  background: linear-gradient(180deg, var(--iron), var(--abyss));
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 4px 22px rgba(217, 45, 45, 0.12);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-image: linear-gradient(
      135deg,
      var(--border),
      rgba(217, 45, 45, 0.35),
      var(--border)
    )
    1;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--border),
    rgba(217, 45, 45, 0.45),
    var(--border)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel.gold-glow::before {
  background: linear-gradient(
    135deg,
    var(--border),
    rgba(242, 169, 59, 0.45),
    var(--border)
  );
}

.panel.blue-glow::before {
  background: linear-gradient(
    135deg,
    var(--border),
    rgba(58, 125, 255, 0.45),
    var(--border)
  );
}

.panel.green-glow::before {
  background: linear-gradient(
    135deg,
    var(--border),
    rgba(49, 196, 141, 0.45),
    var(--border)
  );
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel h3::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--blade);
  border-radius: 1px;
}

.panel.gold-glow h3::before {
  background: var(--gold);
}

.panel.blue-glow h3::before {
  background: var(--steel);
}

.panel.green-glow h3::before {
  background: var(--venom);
}

.panel p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel ul {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}

.panel li + li {
  margin-top: 6px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23, 25, 35, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
}

.faq-item {
  margin-bottom: 14px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

/* 法律长文页 */
.doc-page {
  padding: 36px 0 72px;
}

.doc-page h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.doc-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  max-width: 52em;
}

.doc-meta {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.doc-toc {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(23, 25, 35, 0.55);
  border: 1px solid var(--border);
}

.doc-toc h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--steel);
}

.doc-toc ol {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.doc-toc a {
  color: var(--text);
}

.doc-toc a:hover {
  color: var(--gold);
}

.doc-section {
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(42, 44, 54, 0.85);
}

.doc-section:last-of-type {
  border-bottom: none;
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.doc-section p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.doc-section li + li {
  margin-top: 6px;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.9);
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}

.site-footer .links {
  display: flex;
  gap: 18px;
}

.site-footer .links a {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 11px;
}
