/**
 * 执白 — 基础布局 · 480px 移动决策终端
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

.page {
  flex: 1;
  padding: calc(var(--safe-top) + var(--space-md)) var(--space-md) calc(var(--safe-bottom) + var(--tab-height) + var(--space-md));
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  margin-bottom: var(--space-lg);
}

.page-kicker {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
}

.page-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--color-text);
}

.page-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label--secondary { margin-top: var(--space-lg); }

.fade-enter-active, .fade-leave-active { transition: opacity var(--transition-page); }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--color-text-secondary);
}

.empty-state .icon {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0.35;
  color: var(--color-text-tertiary);
}

.empty-state p { line-height: 1.6; font-size: 0.8125rem; }

.disclaimer {
  position: fixed;
  bottom: calc(var(--safe-bottom) + var(--tab-height) + 2px);
  left: 0;
  right: 0;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.5625rem;
  color: var(--color-text-tertiary);
  text-align: center;
  z-index: 50;
  pointer-events: none;
  max-width: 480px;
  margin: 0 auto;
}

.disclaimer.with-tab { bottom: calc(var(--safe-bottom) + var(--tab-height) + 2px); }

/* ── 骨架屏 ── */
.skeleton-block {
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, #EEEEF2 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s linear infinite;
  border-radius: var(--radius-md);
}

.skeleton-line {
  height: 14px;
  margin-bottom: var(--space-sm);
}
.skeleton-line--lg { height: 28px; margin-bottom: var(--space-md); }
.skeleton-line--sm { height: 10px; width: 60%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
