/* ============================================================
   案件线索墙 — Base Styles
   ============================================================ */

@import url('variables.css');

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(175,135,73,0.12), transparent 28%),
    linear-gradient(180deg, #f5eedf 0%, var(--bg) 48%, #e8d6b9 100%);
  min-height: 100vh;
  overflow: hidden;
}

/* 纸张纹理叠加 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(120, 88, 52, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 88, 52, 0.05) 1px, transparent 1px);
  background-size: 100% 46px, 46px 100%;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* ── 排版 ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  line-height: 1.7;
  color: var(--text-soft);
}

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

/* ── 通用工具类 ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.hidden { display: none !important; }
.opacity-faint { opacity: 0.4; }
.pointer { cursor: pointer; }
.no-select { user-select: none; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 按钮 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--text-faint);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn:hover {
  background: var(--paper-strong);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* ── 滚动条 ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-faint);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-soft);
}

/* ── 选区 ── */
::selection {
  background: var(--accent-glow);
  color: var(--ink);
}
