/* 剧映漫剧 · ShortNow — 法务页（响应式） */
:root {
  --bg: #060608;
  --surface: rgba(18, 18, 26, 0.92);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(160, 120, 255, 0.28);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.38);
  --accent: #a078ff;
  --accent-light: #c9adff;
  --warn: #fa5c1c;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --gutter: clamp(16px, 4vw, 32px);
  --shell-max: 1140px;
  --sidebar-w: 210px;
  --header-h: 64px;
  --font-sans: "Inter", "SF Pro SC", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

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

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

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

::selection {
  background: rgba(160, 120, 255, 0.35);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% -5%, rgba(160, 120, 255, 0.18), transparent 52%),
    radial-gradient(ellipse 80% 55% at 100% 8%, rgba(90, 56, 176, 0.12), transparent 48%);
}

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

a:hover {
  color: #fff;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7c52e8, var(--accent-light));
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(6, 6, 8, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #c4a0ff, #5b21b6);
  box-shadow: 0 6px 20px rgba(124, 82, 232, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.brand__sub {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav a {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(160, 120, 255, 0.28);
}

/* —— Hero —— */
.legal-hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(160, 120, 255, 0.07), transparent 75%);
}

.legal-hero__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--gutter) clamp(1.25rem, 3vw, 2rem);
}

.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(160, 120, 255, 0.1);
  border: 1px solid rgba(160, 120, 255, 0.2);
}

.legal-hero__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-chip {
  padding: 0.32rem 0.7rem;
  font-size: 0.74rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.meta-chip strong {
  color: var(--text);
  font-weight: 500;
  margin-right: 0.28rem;
}

/* —— 手机/平板：横向章节目录 —— */
.toc-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.toc-bar__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
}

.toc-bar__scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.toc-bar__scroll::-webkit-scrollbar {
  display: none;
}

.toc-bar a {
  flex: 0 0 auto;
  padding: 0.36rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.toc-bar a.is-active {
  color: #fff;
  border-color: rgba(160, 120, 255, 0.35);
  background: rgba(160, 120, 255, 0.16);
}

/* —— 桌面：左侧章节目录（默认隐藏） —— */
.toc-sidebar {
  display: none;
}

.toc-sidebar__label {
  margin: 0 0 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.toc-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.toc-sidebar a {
  display: block;
  padding: 0.38rem 0 0.38rem 0.9rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--faint);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.toc-sidebar a:hover {
  color: var(--muted);
}

.toc-sidebar a.is-active {
  color: var(--accent-light);
  border-left-color: var(--accent);
}

/* —— 正文区 —— */
.legal-body {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.legal-body__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.legal-body__grid {
  display: block;
  width: 100%;
}

.legal-article {
  width: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.prose {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
}

.prose > p:first-child {
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.76);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  color: var(--text);
  margin: 2.25rem 0 0.9rem;
  scroll-margin-top: calc(var(--header-h) + 3.5rem);
}

.prose h2:first-of-type {
  margin-top: 0.25rem;
}

.prose h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 0.65rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.prose h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 1.4rem 0 0.55rem;
}

.prose p {
  margin: 0 0 0.95rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: var(--accent-light);
  background: rgba(160, 120, 255, 0.12);
  border: 1px solid rgba(160, 120, 255, 0.15);
  word-break: break-all;
}

.prose .note {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.5rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  line-height: 1.68;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.prose .note::before {
  content: "i";
  position: absolute;
  left: 0.75rem;
  top: 0.95rem;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  color: var(--accent-light);
  border-radius: 50%;
  background: rgba(160, 120, 255, 0.15);
}

.prose .note-warn {
  border-left-color: var(--warn);
  background: rgba(250, 92, 28, 0.06);
}

.prose .note-warn::before {
  content: "!";
  font-style: normal;
  color: #ffb088;
  background: rgba(250, 92, 28, 0.15);
}

.prose .contact-card {
  margin-top: 1.25rem;
  padding: 1.15rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(160, 120, 255, 0.1);
  border: 1px solid var(--border-strong);
}

.prose .contact-card a {
  font-size: 1rem;
  font-weight: 600;
}

.prose .footnote {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.62;
  color: var(--faint);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6, 6, 8, 0.75);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.76rem;
  color: var(--faint);
}

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

.site-footer__brand {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* —— 平板：略放宽，仍单列 —— */
@media (min-width: 640px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 15.5px;
  }

  .nav a {
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
  }

  .legal-article {
    padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .legal-body {
    padding-top: clamp(1rem, 3vw, 1.75rem);
  }
}

/* —— 桌面：双栏 + 隐藏横向目录 —— */
@media (min-width: 1024px) {
  :root {
    --shell-max: 1180px;
    --gutter: 32px;
  }

  .toc-bar {
    display: none;
  }

  .toc-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    width: var(--sidebar-w);
    flex-shrink: 0;
  }

  .legal-body__grid {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .legal-article {
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  }

  .prose h2 {
    scroll-margin-top: calc(var(--header-h) + 1rem);
  }

  .prose p {
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 1.05rem;
  }
}

/* —— 大屏：进一步放大壳层 —— */
@media (min-width: 1280px) {
  :root {
    --shell-max: 1240px;
    --sidebar-w: 220px;
  }

  body {
    font-size: 16px;
    line-height: 1.78;
  }

  .legal-hero h1 {
    font-size: 2.65rem;
  }
}

/* —— 小屏手机 —— */
@media (max-width: 639px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius);
  }

  .nav a {
    padding: 0.34rem 0.55rem;
    font-size: 0.72rem;
  }

  .legal-body__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .legal-article {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .prose p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* —— 首页 —— */
.home-main {
  position: relative;
  z-index: 1;
}

.home-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(160, 120, 255, 0.1), transparent 70%);
}

.home-hero__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(160, 120, 255, 0.1);
  border: 1px solid rgba(160, 120, 255, 0.22);
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.home-hero__lead {
  max-width: 42em;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  color: var(--muted);
}

.home-hero__intro {
  max-width: 48em;
  margin: 0 auto;
  padding: 1.25rem 1.35rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-hero__intro-title {
  margin: 0 0 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.home-hero__intro p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--muted);
}

.home-cards {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .home-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.home-card {
  display: block;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  color: inherit;
  border-color: rgba(160, 120, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.home-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.home-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-meta {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
}

.home-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 1.15rem 1.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: rgba(160, 120, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.home-meta__inner strong {
  color: var(--text);
  font-weight: 500;
}

.home-features {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4rem);
}

.home-features__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.home-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-feature {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.home-feature p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* —— 帮助页卡片 —— */
.help-grid {
  display: grid;
  gap: 0.85rem;
}

.help-item {
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 3.5rem);
}

.help-item h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.help-item p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
}

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

.help-item ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.help-item li {
  margin-bottom: 0.35rem;
}

@media (max-width: 639px) {
  .home-hero__intro {
    text-align: left;
  }
}
