/**
 * 静态兜底样式 — 不经过 Next 哈希，CSS 主文件 404 时页面仍可正常显示
 * 与 globals.css 设计 token 保持一致
 */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --faint: #737373;
  --line: #e8e8e8;
  --surface: #fafafa;
}

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

html {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 24%, #f0f0f0 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-2xs { font-size: 0.6875rem; line-height: 1rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.tracking-tight { letter-spacing: -0.02em; }
.text-ink { color: var(--ink); }
.text-faint { color: var(--faint); }
.text-paper { color: var(--paper); }
.relative { position: relative; }
.fixed { position: fixed; }
.w-full { width: 100%; }
.block { display: block; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.prism-page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.prism-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  flex: 1;
  padding: 1rem 1rem 6rem;
}

.prism-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(232, 232, 232, 0.7);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.prism-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
}

.prism-input::placeholder { color: rgba(115, 115, 115, 0.7); }

.prism-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.prism-btn-primary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  border: none;
  background: var(--ink);
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  cursor: pointer;
}

.prism-btn-primary:disabled {
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.25);
}

.prism-lang-trigger {
  border-radius: 9999px;
  border: 1px solid rgba(232, 232, 232, 0.8);
  background: var(--paper);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.prism-section-title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-disclaimer {
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.625;
  color: rgba(115, 115, 115, 0.9);
}

.prism-accordion {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.prism-accordion-open { grid-template-rows: 1fr; }
.prism-accordion-inner { overflow: hidden; }

.prism-spinner {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: prism-spin 0.8s linear infinite;
}

@keyframes prism-spin { to { transform: rotate(360deg); } }
