:root {
  --bg-deep: #06080d;
  --bg: #0b0e14;
  --surface: rgba(16, 19, 28, 0.72);
  --surface-strong: rgba(22, 26, 38, 0.92);
  --text: #f1f4f9;
  --muted: #94a3b8;
  --muted2: #64748b;
  --accent: #818cf8;
  --accent-deep: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.45);
  --success: #34d399;
  --err: #f87171;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.11);
  --radius: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Alimama FangYuanTi VF", "PingFang SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Alimama FangYuanTi VF", "PingFang SC", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.15), 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body.site-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -15%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(800px 400px at 110% 40%, rgba(52, 211, 153, 0.05), transparent 50%),
    radial-gradient(600px 360px at -10% 90%, rgba(167, 139, 250, 0.07), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #080a10 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  padding-top: 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 8, 13, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.site-logo__mark {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-deep), #c4b5fd);
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

.site-logo__img {
  max-height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.site-logo__text {
  white-space: nowrap;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #e0e7ff !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.25));
  border: 1px solid rgba(129, 140, 248, 0.35);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-nav__cta:hover {
  transform: translateY(-1px);
  border-color: rgba(165, 180, 252, 0.5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
  color: #fff !important;
}

/* Main：PC 垂直水平居中 */
main.site-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 0;
}

.site-main__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vh, 5rem);
  width: 100%;
}

.site-hero--shorten {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}

/* 玻璃卡片 */
.site-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
}

.site-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 40%, transparent);
  -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;
}

.site-panel__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.site-panel__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-panel__desc {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.site-panel__hint {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.site-panel__hint-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Alerts */
.site-alert {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-alert--err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

.site-alert--ok {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
}

.site-alert__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.site-alert__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.15);
  border-radius: 6px;
}

.site-alert__label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #d1fae5;
}

.site-result-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.site-result-row .site-input {
  flex: 1 1 200px;
  min-width: 0;
}

/* Form */
.site-shorten-form {
  width: 100%;
}

.site-field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted2);
}

.site-shorten-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
  align-items: stretch;
}

@media (max-width: 520px) {
  .site-shorten-row {
    flex-wrap: wrap;
  }

  .site-shorten-row .site-btn {
    width: 100%;
  }
}

.site-shorten-row .site-input {
  flex: 1 1 auto;
  min-width: 0;
}

.site-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-input::placeholder {
  color: var(--muted2);
}

.site-input:hover {
  border-color: rgba(129, 140, 248, 0.25);
}

.site-input:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.site-input--readonly {
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.site-btn--primary {
  flex-shrink: 0;
  min-width: 5.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), var(--shadow-inset);
}

.site-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.site-btn--primary:active {
  transform: translateY(0);
}

.site-btn--secondary {
  flex-shrink: 0;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.site-btn--secondary:hover {
  background: rgba(99, 102, 241, 0.32);
}

.site-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.site-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.site-btn--lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.site-btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 13, 0.5);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--muted2);
}

.site-footer__brand {
  font-weight: 600;
  color: var(--muted);
}

/* Legacy / other pages */
main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.site-kicker {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.site-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.site-hero__inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.site-hero__accent {
  background: linear-gradient(135deg, #a5b4fc, #818cf8 40%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-hero__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.site-section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
}

.site-grid--3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.site-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(16, 19, 28, 0.6);
  border: 1px solid var(--border);
}

/* 公开提示页（短链停用、404、过期等，与文本/文件分享同系浅色 UI） */
body.site-page--public-error {
  min-height: 100vh;
  min-height: 100dvh;
}

body.site-page--public-error .site-public-error-badge {
  font-variant-numeric: tabular-nums;
  color: #b45309;
  background: rgba(254, 243, 199, 0.98);
  border-color: rgba(245, 158, 11, 0.45);
}

body.site-page--public-error .site-public-error-card__body {
  padding-top: 0.25rem;
}

.site-public-error-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

body.site-page--public-error .site-public-error-actions {
  justify-content: flex-start;
}

body.site-landing {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.site-brand {
  display: inline-block;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.site-lead {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}

/* 文本分享阅读页 */
body.site-page--text {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
}

.site-text-shell {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-text-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-text-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-text-home {
  font-size: 0.8125rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.site-text-home:hover {
  text-decoration: underline;
}

.site-text-body {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  color: var(--text);
  overflow-x: auto;
}

/* —— 首页浅色 SaaS（与错误页 / 文本页深色主题分离） —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.site-page--home {
  background: #f3faf5;
  color: #0f172a;
}

body.site-page--home .site-bg--home {
  background:
    radial-gradient(900px 500px at 18% 12%, rgba(180, 230, 190, 0.55), transparent 55%),
    radial-gradient(700px 420px at 88% 25%, rgba(167, 243, 208, 0.4), transparent 50%),
    radial-gradient(600px 380px at 40% 95%, rgba(209, 250, 229, 0.7), transparent 45%),
    linear-gradient(180deg, #f7fcf8 0%, #eef8f1 50%, #e8f5ec 100%);
}

body.site-page--home .site-bg--home::after {
  opacity: 0.35;
}

body.site-page--home .site-header--home {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 1.625rem 0 0.65rem;
  z-index: 20;
}

body.site-page--home .site-header__wrap--home {
  display: flex;
  justify-content: center;
  width: 100%;
}

body.site-page--home .site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: min(920px, calc(100vw - 2rem));
  min-height: 4rem;
  padding: 0.55rem 0.65rem 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow:
    0 4px 28px rgba(15, 23, 42, 0.07),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-page--home .site-logo--home {
  color: #134e4a;
  min-width: 0;
}

body.site-page--home .site-logo__mark--home {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

body.site-page--home .site-nav--home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

body.site-page--home .site-nav__cta--home {
  color: #0f766e !important;
  background: rgba(240, 253, 244, 0.95);
  border: 1px solid rgba(20, 184, 166, 0.35);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

body.site-page--home .site-nav__cta--home:hover {
  color: #134e4a !important;
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

body.site-page--home .site-nav__cta--filled {
  background: linear-gradient(135deg, #5eead4, #34d399);
  color: #042f2e !important;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
}

body.site-page--home .site-nav__cta--filled:hover {
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.42);
}

@media (max-width: 480px) {
  body.site-page--home .site-header-bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-radius: 1.35rem;
    min-height: 3.75rem;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    gap: 0.75rem;
  }

  body.site-page--home .site-logo--home {
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    gap: 0.4rem;
  }

  body.site-page--home .site-logo--home .site-logo__img {
    max-height: 18px;
    max-width: 72px;
  }

  body.site-page--home .site-logo--home .site-logo__mark--home {
    width: 7px;
    height: 7px;
    border-radius: 2px;
  }

  body.site-page--home .site-logo--home .site-logo__text {
    display: none;
  }

  body.site-page--home .site-nav--home {
    flex-shrink: 0;
  }
}

body.site-page--home .site-main__center--home {
  padding-top: clamp(1.5rem, 5vh, 3rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

body.site-page--home .site-hero--tool {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

body.site-page--home .site-hero-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: #134e4a;
}

body.site-page--home .site-hero-lead {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
}

/* 工具区与「功能概览」之间：仅环境光过渡（无线条、无胶囊） */
body.site-page--home .site-home-bridge {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: clamp(1.5rem, 4vw, 2.25rem) auto clamp(0.65rem, 2vw, 1.1rem);
  min-height: 2.75rem;
  padding: 0 1rem;
  pointer-events: none;
}

body.site-page--home .site-home-bridge__ambient {
  position: absolute;
  inset: -25% -10% -20%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(236, 253, 245, 0.55), transparent 62%),
    radial-gradient(ellipse 40% 35% at 22% 48%, rgba(45, 212, 191, 0.12), transparent 58%),
    radial-gradient(ellipse 40% 35% at 78% 48%, rgba(16, 185, 129, 0.1), transparent 58%);
  filter: blur(1px);
}

body.site-page--home .site-intro {
  width: 100%;
  margin: 0.5rem 0 1.75rem;
  padding: 0;
}

body.site-page--home .site-intro__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #0f766e;
}

body.site-page--home .site-intro__lead {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
}

body.site-page--home .site-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 820px) {
  body.site-page--home .site-intro-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

body.site-page--home .site-intro-card {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-page--home .site-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), transparent 42%);
  -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;
}

body.site-page--home .site-intro-card:hover {
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.06),
    0 20px 44px rgba(15, 118, 110, 0.08);
}

body.site-page--home .site-intro-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  color: #0f766e;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(209, 250, 229, 0.65));
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.site-page--home .site-intro-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #134e4a;
  line-height: 1.35;
}

body.site-page--home .site-intro-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

/* —— 首页：半地球 + 线路网络 —— */
body.site-page--home .site-globe-band {
  width: 100%;
  margin: 2rem 0 1.5rem;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 253, 245, 0.75) 45%, rgba(209, 250, 229, 0.45) 100%);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.site-page--home .site-globe-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.75rem 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  body.site-page--home .site-globe-band__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

body.site-page--home .site-globe-band__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #134e4a;
  line-height: 1.3;
}

body.site-page--home .site-globe-band__lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

body.site-page--home .site-globe-band__list {
  margin: 0;
  padding-left: 1.15rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
}

body.site-page--home .site-globe-band__list li {
  margin-bottom: 0.55rem;
}

body.site-page--home .site-globe-band__list li:last-child {
  margin-bottom: 0;
}

body.site-page--home .site-globe-band__list strong {
  color: #0f766e;
  font-weight: 700;
}

/* WebGL 三维地球 + 光纤风格流动线（Three.js，见 assets/js/site-globe.js） */
body.site-page--home .site-globe-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

body.site-page--home .site-globe-hemi {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(13, 148, 136, 0.07), transparent 62%);
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14)) drop-shadow(0 4px 12px rgba(13, 148, 136, 0.15));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.site-page--home .site-globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

body.site-page--home .site-globe-hemi--fallback {
  min-height: 200px;
  background:
    radial-gradient(ellipse 52% 44% at 32% 30%, rgba(255, 255, 255, 0.35), transparent 48%),
    radial-gradient(circle at 72% 78%, rgba(15, 23, 42, 0.25), transparent 52%),
    linear-gradient(200deg, #5eead4 0%, #14b8a6 45%, #0f766e 100%);
}

body.site-page--home .site-globe-hemi--fallback .site-globe-canvas {
  display: none;
}

body.site-page--home .site-glass-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 20px 50px rgba(15, 23, 42, 0.08);
}

body.site-page--home .site-glass-card--stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.site-page--home .site-text-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

body.site-page--home .site-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

body.site-page--home .site-subtab:hover {
  color: #0f766e;
  background: rgba(240, 253, 244, 0.9);
}

body.site-page--home .site-subtab.is-active {
  color: #14532d;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.site-page--home .site-subtab__ico {
  display: inline-flex;
  color: currentColor;
  opacity: 0.9;
}

body.site-page--home .site-field-label-home {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

body.site-page--home .site-field-label-home--inline {
  margin-top: 0.75rem;
}

body.site-page--home .site-share-expiry-row {
  margin-bottom: 0.15rem;
}

body.site-page--home .site-share-expiry-row--file {
  margin-bottom: 0.65rem;
}

body.site-page--home .site-input--expiry {
  max-width: 18rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

body.site-page--home .site-input-title-home {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
}

body.site-page--home .site-input-title-home:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

body.site-page--home .site-textarea {
  width: 100%;
  min-height: 220px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fbfcfd;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.site-page--home .site-textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

body.site-page--home .site-textarea--code {
  background: #f8fafc;
  font-size: 0.8125rem;
}

body.site-page--home .site-text-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.site-page--home .site-text-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

body.site-page--home .site-text-form__tip {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  flex: 1 1 12rem;
}

body.site-page--home .site-pill-btn--submit {
  margin-left: auto;
}

body.site-page--home .site-pill-btn--narrow {
  margin-top: 0.5rem;
  align-self: center;
}

body.site-page--home .site-upload-form {
  margin: 0;
}

body.site-page--home .site-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.8);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.site-page--home .site-dropzone:hover {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(240, 253, 250, 0.65);
}

body.site-page--home .site-dropzone.is-dragover {
  border-color: #2dd4bf;
  background: rgba(204, 251, 241, 0.75);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

body.site-page--home .site-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(187, 247, 208, 0.9), rgba(167, 243, 208, 0.6));
  color: #047857;
}

body.site-page--home .site-dropzone__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

body.site-page--home .site-dropzone__hint {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 22rem;
}

body.site-page--home .site-dropzone--guest {
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

body.site-page--home .site-home-hint--card {
  margin-top: 1rem;
  text-align: center;
}

body.site-page--home .site-alert--home.site-alert--err {
  margin-bottom: 1rem;
}

body.site-page--home .site-tabs-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.35rem;
}

body.site-page--home .site-tabs-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  width: auto;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow:
    0 4px 28px rgba(15, 23, 42, 0.07),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.site-page--home .site-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.site-page--home .site-tab:hover {
  color: #0f766e;
  background: rgba(240, 253, 244, 0.85);
}

body.site-page--home .site-tab.is-active {
  color: #14532d;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.98), rgba(187, 247, 208, 0.82));
  box-shadow:
    0 2px 14px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.site-page--home .site-tab__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.88;
}

body.site-page--home .site-tab.is-active .site-tab__ico {
  opacity: 1;
  color: #15803d;
}

body.site-page--home .site-tab__svg {
  display: block;
}

body.site-page--home .site-tab__label {
  white-space: nowrap;
}

@media (max-width: 520px) {
  body.site-page--home .site-tabs-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: min(100%, calc(100vw - 2rem));
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  body.site-page--home .site-tab {
    flex-shrink: 0;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

body.site-page--home .site-tool-panels {
  position: relative;
}

body.site-page--home .site-tool-panel {
  animation: siteFadeIn 0.25s ease;
}

@keyframes siteFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.site-page--home .site-pill-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04);
}

body.site-page--home .site-pill-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.7rem 0;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #0f172a;
  outline: none;
}

body.site-page--home .site-pill-input::placeholder {
  color: #94a3b8;
}

body.site-page--home .site-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.72rem 1.35rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0c1f1a;
  background: linear-gradient(90deg, #bef264 0%, #6ee7b7 42%, #2dd4bf 100%);
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.site-page--home .site-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.42);
}

body.site-page--home .site-pill-btn:active {
  transform: translateY(0);
}

body.site-page--home .site-pill-btn__arrow {
  flex-shrink: 0;
  opacity: 0.9;
}

body.site-page--home a.site-pill-btn {
  text-decoration: none;
}

body.site-page--home .site-pill-btn--block {
  width: 100%;
  margin-top: 0.25rem;
}

body.site-page--home .site-panel-blurb {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  text-align: center;
}

body.site-page--home .site-code-inline {
  padding: 0.1rem 0.35rem;
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 6px;
  color: #0f766e;
}

body.site-page--home .site-home-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #94a3b8;
  text-align: center;
}

body.site-page--home .site-alert--home.site-alert--err {
  background: rgba(254, 226, 226, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #991b1b;
}

body.site-page--home .site-alert--home.site-alert--ok {
  background: rgba(209, 250, 229, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #14532d;
}

body.site-page--home .site-alert__head--home .site-alert__label {
  color: #166534;
}

body.site-page--home .site-alert__head--home .site-alert__badge {
  color: #15803d;
  background: rgba(34, 197, 94, 0.2);
}

body.site-page--home .site-result-row--home {
  gap: 0.5rem;
}

body.site-page--home .site-input--home {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.15);
  color: #0f172a;
}

body.site-page--home .site-btn--ghost-home {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(20, 184, 166, 0.35);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

body.site-page--home .site-btn--ghost-home:hover {
  background: #fff;
}

body.site-page--home .site-home-footnote {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

body.site-page--home .site-footer--home {
  position: relative;
  margin-top: auto;
  padding: 0;
  border-top: none;
  background: transparent;
  overflow: hidden;
}

body.site-page--home .site-footer__glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(80%, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.65), rgba(52, 211, 153, 0.5), transparent);
  opacity: 0.9;
}

body.site-page--home .site-footer__glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  width: 240px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.2), transparent 70%);
  pointer-events: none;
}

body.site-page--home .site-footer__inner--home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 2.25rem;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.97) 0%, rgba(19, 78, 74, 0.92) 42%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow:
    0 -12px 40px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.site-page--home .site-footer__inner--home::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
}

body.site-page--home .site-footer__col {
  position: relative;
  z-index: 1;
}

body.site-page--home .site-footer__col--brand {
  flex: 1 1 14rem;
  min-width: 0;
}

body.site-page--home .site-footer__brand {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 45%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.site-page--home .site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.95);
  max-width: 22rem;
}

body.site-page--home .site-footer__contact-wrap {
  margin: 0.45rem 0 0;
  max-width: 22rem;
}

body.site-page--home .site-footer__col--meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

body.site-page--home .site-footer__contact {
  display: inline-block;
  font-size: 0.8125rem;
  color: rgba(167, 243, 208, 0.95);
  text-decoration: none;
  word-break: break-all;
  text-align: left;
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.site-page--home .site-footer__contact:hover {
  color: #ecfdf5;
  border-bottom-color: rgba(167, 243, 208, 0.65);
}

body.site-page--home .site-footer__pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 999px;
}

body.site-page--home .site-footer__year {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(100, 116, 139, 0.95);
}

@media (max-width: 560px) {
  body.site-page--home .site-footer__inner--home {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-radius: 20px 20px 0 0;
  }

  body.site-page--home .site-footer__col--meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }
}

@media (max-width: 560px) {
  body.site-page--home .site-pill-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.75rem;
    border-radius: 1.25rem;
  }

  body.site-page--home .site-pill-input {
    padding: 0.35rem 0;
  }

  body.site-page--home .site-pill-btn {
    width: 100%;
  }
}

/* —— 文本分享阅读页（与首页同系浅色 UI）—— */
body.site-page--text-read,
body.site-page--file-read {
  min-height: 100vh;
  min-height: 100dvh;
}

body.site-page--text-read .site-text-read-main,
body.site-page--file-read .site-text-read-main {
  flex: 1;
  padding: clamp(1rem, 4vw, 2rem) 0 clamp(2rem, 6vh, 3.5rem);
}

/* 与首页 site-header-bar 同宽：外层 site-wrap 负责左右留白，内层卡片与导航胶囊对齐 */
.site-text-read-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

body.site-page--text-read .site-text-read-card,
body.site-page--file-read .site-text-read-card {
  width: 100%;
  max-width: min(920px, calc(100vw - 2rem));
  padding: 0;
  overflow: hidden;
}

.site-text-read-card__head {
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.25rem, 3vw, 1.75rem) 1rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.55) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.site-text-read-card__titles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.site-text-read-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: rgba(240, 253, 244, 0.98);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.site-text-read-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #134e4a;
  line-height: 1.35;
  word-break: break-word;
}

.site-text-read-card__body {
  padding: clamp(1.15rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 1.75rem);
}

.site-text-read-pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  border-radius: 14px;
}

.site-text-read-pre--plain {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #0f172a;
}

.site-text-read-pre--code {
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.6);
  color: #e2e8f0;
}

.site-text-read-pre--code code {
  font-family: inherit;
  font-size: inherit;
}

/* Markdown 正文（Parsedown 安全模式输出） */
body.site-page--text-read .site-md {
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.7;
  word-wrap: break-word;
}

body.site-page--text-read .site-md > *:first-child {
  margin-top: 0;
}

body.site-page--text-read .site-md > *:last-child {
  margin-bottom: 0;
}

body.site-page--text-read .site-md h1,
body.site-page--text-read .site-md h2,
body.site-page--text-read .site-md h3,
body.site-page--text-read .site-md h4 {
  font-family: var(--font-display);
  color: #134e4a;
  margin: 1.25rem 0 0.65rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body.site-page--text-read .site-md h1 {
  font-size: 1.5rem;
}
body.site-page--text-read .site-md h2 {
  font-size: 1.3rem;
}
body.site-page--text-read .site-md h3 {
  font-size: 1.1rem;
}

body.site-page--text-read .site-md p {
  margin: 0 0 0.85rem;
}

body.site-page--text-read .site-md ul,
body.site-page--text-read .site-md ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

body.site-page--text-read .site-md li {
  margin-bottom: 0.35rem;
}

body.site-page--text-read .site-md a {
  color: #0d9488;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.site-page--text-read .site-md a:hover {
  color: #0f766e;
}

body.site-page--text-read .site-md code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.08);
  color: #134e4a;
}

body.site-page--text-read .site-md pre {
  margin: 0.85rem 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.55);
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.6;
}

body.site-page--text-read .site-md pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

body.site-page--text-read .site-md blockquote {
  margin: 0.85rem 0;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 4px solid rgba(45, 212, 191, 0.65);
  background: rgba(240, 253, 244, 0.5);
  color: #475569;
}

body.site-page--text-read .site-md hr {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

body.site-page--text-read .site-md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.85rem 0;
}

body.site-page--text-read .site-md th,
body.site-page--text-read .site-md td {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.45rem 0.6rem;
}

body.site-page--text-read .site-md th {
  background: rgba(248, 250, 252, 0.95);
  font-weight: 600;
  color: #134e4a;
}

/* —— 文件分享预览页 —— */
.site-file-read-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.site-file-read-head-row .site-text-read-card__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.site-file-read-btn--head {
  flex: 0 0 auto;
  align-self: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .site-file-read-head-row {
    flex-wrap: wrap;
  }

  .site-file-read-btn--head {
    align-self: flex-end;
  }
}

.site-file-read-card__head .site-file-read-meta {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.site-file-read-meta__sep {
  margin: 0 0.35rem;
  color: #cbd5e1;
}

.site-file-read-blurb {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
}

.site-file-read-preview {
  margin: 0 0 1rem;
}

.site-file-read-preview__link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.6);
  line-height: 0;
}

.site-file-read-preview__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  object-fit: contain;
}

.site-file-read-preview__hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.site-file-read-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-file-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.site-file-read-btn--primary {
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #34d399);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
}

.site-file-read-btn--primary:hover {
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.42);
}

.site-file-preview-option {
  margin-bottom: 0.65rem;
}

.site-file-preview-option__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.site-file-preview-option__label input {
  width: 1rem;
  height: 1rem;
  accent-color: #0d9488;
}
