/* 消费者类型投票系统 · 共享基础样式 */

:root {
  --bg: #f4f5fb;
  --card: #ffffff;
  --ink: #171a2e;
  --ink-2: #565b7a;
  --ink-3: #9398b5;
  --line: #e7e9f4;
  --line-2: #d6d9ea;
  --brand: #5b5bd6;
  --brand-2: #8b5cf6;
  --shadow-sm: 0 1px 2px rgba(23, 26, 46, 0.05), 0 2px 8px rgba(23, 26, 46, 0.04);
  --shadow-md: 0 4px 12px rgba(23, 26, 46, 0.07), 0 12px 32px rgba(23, 26, 46, 0.07);
  --shadow-lg: 0 12px 40px rgba(23, 26, 46, 0.14);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --t-rational: #2563eb;
  --t-bargain: #f59e0b;
  --t-fashion: #ec4899;
  --t-browse: #10b981;
  --t-experience: #8b5cf6;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font: inherit;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 91, 214, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 8px 26px rgba(91, 91, 214, 0.42);
}

.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eef0fb;
  color: var(--ink-2);
}

/* 工具类 */
.center {
  text-align: center;
}

.mono {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
