/* ===================================================================
   孬人榜 — 主样式表
   结构：变量 → 基础 → 组件 → 区块 → 动画 → 响应式
   =================================================================== */

/* ─── 设计变量 ─── */
:root {
  /* 背景色阶 */
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;

  /* 文字色阶 */
  --text: #e8e4de;
  --text-muted: #8a8580;
  --text-dim: #5a5550;

  /* 主题色 */
  --accent: #c9342b;
  --accent-hover: #e04038;
  --accent-glow: rgba(201, 52, 43, 0.25);
  --gold: #c49a3c;
  --gold-dim: rgba(196, 154, 60, 0.15);

  /* 边框与圆角 */
  --border: #2a2520;
  --radius: 8px;

  /* 字体 */
  --font-display: 'Noto Serif SC', serif;
  --font-body: 'Noto Sans SC', sans-serif;

  /* 布局 */
  --max-w: 1200px;
  --nav-h: 64px;
}

/* ─── 基础重置 ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

button {
  font-family: var(--font-body);
}

/* ─── 通用区块 ─── */
.section {
  padding: 6rem 2rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  font-weight: 300;
}

/* ─── 按钮 ─── */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* ─── 滚动入场 ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 导航栏 ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-brand .seal {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 900;
  font-family: var(--font-display);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── 英雄区 ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 52, 43, 0.12);
  border: 1px solid rgba(201, 52, 43, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
}
.hero-scroll .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce-arrow 2s infinite;
}

/* ─── 失信类型 ─── */
.categories {
  background: var(--bg);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.2s;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.cat-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cat-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── 举报流程 ─── */
.how-it-works {
  background: var(--bg-elevated);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  display: none;
}
@media (min-width: 768px) {
  .steps::before {
    display: block;
  }
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s, background 0.4s;
}
.step:hover .step-num {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── 曝光台 ─── */
.exposed {
  background: var(--bg);
}
.exposed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.list-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.list-item:last-child {
  border-bottom: none;
}
.list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.list-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.list-reason {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.list-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}

/* 标签配色 —— 由 JS 根据 type 动态添加 */
.tag-unpaid {
  background: rgba(201, 52, 43, 0.12);
  color: var(--accent);
  border: 1px solid rgba(201, 52, 43, 0.25);
}
.tag-debt {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(196, 154, 60, 0.25);
}
.tag-fraud {
  background: rgba(60, 160, 120, 0.1);
  color: #3ca078;
  border: 1px solid rgba(60, 160, 120, 0.25);
}
.tag-arbitration {
  background: rgba(100, 120, 200, 0.1);
  color: #6478c8;
  border: 1px solid rgba(100, 120, 200, 0.25);
}
.tag-wage {
  background: rgba(160, 90, 180, 0.1);
  color: #a05ab4;
  border: 1px solid rgba(160, 90, 180, 0.25);
}
.tag-prepay {
  background: rgba(200, 140, 70, 0.1);
  color: #c88c46;
  border: 1px solid rgba(200, 140, 70, 0.25);
}
.list-date {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

/* ─── 举报表单 ─── */
.report-section {
  position: relative;
  overflow: hidden;
}
.report-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/community-img.jpg') center/cover no-repeat;
}
.report-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.85));
}
.report-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.report-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.report-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.report-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  margin-top: 0.5rem;
}

/* ─── 诚信宣言 ─── */
.community {
  background: var(--bg);
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.community-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.community-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.community-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.principles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.principles li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.principles li .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201, 52, 43, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── 页脚 ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.footer p {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-weight: 300;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2rem;
  opacity: 0.6;
}

/* ─── 提示条 ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
  z-index: 200;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
  pointer-events: none;
  max-width: 360px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ─── 动画 ─── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes bounce-arrow {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(6px);
  }
}

/* ─── 响应式 ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .list-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .list-date {
    text-align: left;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .community-grid {
    grid-template-columns: 1fr;
  }
}
