/* AI短剧漫剧创作 · Deep Version — 法务站 */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #121414;
  --surface: rgba(30, 32, 32, 0.72);
  --surface-solid: #1e2020;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(92, 92, 255, 0.45);
  --text: rgba(255, 255, 255, 0.96);
  --muted: #a1a1aa;
  --body: #c6c4d8;
  --accent: #5c5cff;
  --lilac: #c1c1ff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --warn: #f472b6;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --gutter: clamp(18px, 4vw, 36px);
  --shell: 920px;
  --header-h: 68px;
  --font: "Inter", "SF Pro SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.78;
  color: var(--body);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(92, 92, 255, 0.4);
  color: #fff;
}

/* 动态背景 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(92, 92, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(139, 92, 246, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.06), transparent 45%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}

a { color: var(--lilac); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--lilac));
  box-shadow: 0 0 12px rgba(92, 92, 255, 0.8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
}

.site-header__inner {
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 55%, #6366f1 100%);
  box-shadow: 0 0 24px rgba(92, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-size: 15px; font-weight: 650; letter-spacing: 0.02em; }
.brand__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  opacity: 0.85;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.nav a {
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) var(--gutter) 64px;
}

/* 首页 Hero */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(92, 92, 255, 0.6), transparent 40%, rgba(34, 211, 238, 0.35), transparent 70%, rgba(193, 193, 255, 0.4));
  -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;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  background: rgba(92, 92, 255, 0.12);
  border: 1px solid rgba(92, 92, 255, 0.25);
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--body);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.doc-card {
  position: relative;
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(18, 20, 20, 0.65);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(92, 92, 255, 0.12);
}

.doc-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.doc-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.doc-card__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.feature {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--lilac);
}

.feature p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* 法务正文页 */
.doc-header {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}

.doc-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--text);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

.toc {
  margin: 24px 0;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(92, 92, 255, 0.35);
  background: rgba(92, 92, 255, 0.05);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
}

.toc a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--body);
}

.legal-section {
  margin: 22px 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(18, 20, 20, 0.55);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 19px;
  color: var(--text);
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  color: var(--lilac);
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  color: var(--body);
}

.legal-section ul,
.legal-section ol {
  margin: 8px 0;
  padding-left: 1.4em;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(92, 92, 255, 0.08);
  font-size: 14px;
}

.callout--warn {
  border-left-color: var(--warn);
  background: rgba(244, 114, 182, 0.08);
}

.callout strong { color: var(--text); }

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.site-footer a { color: var(--lilac); }

@media (max-width: 640px) {
  .nav { display: none; }
  .site-header__inner { justify-content: center; }
}

@media print {
  body::before, body::after, .read-progress, .site-header { display: none; }
  body { background: #fff; color: #000; }
  .legal-section { break-inside: avoid; border: 1px solid #ddd; }
}
