/* ============================================
   黑料网社区论坛与投票互动站 - 全局样式
   设计风格：Reddit风格社区论坛
   主色调：#FF4500（橙红）
   辅助色：#0079D3（链接蓝）
   背景色：#DAE0E6（浅灰蓝）
   卡片色：#FFFFFF（纯白）
   强调色：#FF8717（高亮橙）
   ============================================ */

:root {
  --m81: #FF4500;
  --b66: #0079D3;
  --n66: #DAE0E6;
  --q40: #FFFFFF;
  --q61: #FF8717;
  --f49: #1A1A1B;
  --b63: #7C7C7C;
  --t47: #878A8C;
  --n38: #EDEFF1;
  --e97: 4px;
  --v11: 0 1px 3px rgba(0,0,0,0.08);
  --x6: 0 2px 8px rgba(0,0,0,0.12);
  --m6: #FF4500;
  --g48: #7193FF;
  --z15: #FF4500;
  --d89: #46D160;
  --n12: #FF8717;
  --t36: #0079D3;
  --a31: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --k76: "SF Mono", "Fira Code", monospace;
  --k49: cubic-bezier(0.23, 1, 0.32, 1);
  --q38: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--a31);
  font-size: 14px;
  line-height: 1.6;
  color: var(--f49);
  background-color: var(--n66);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--b66);
  text-decoration: none;
  transition: color 0.15s var(--k49);
}

a:hover {
  color: var(--m81);
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

._gmctu {
  display: grid;
  grid-template-columns: 1fr 312px;
  gap: 24px;
  padding: 20px 0;
}

._6yi5l {
  max-width: 100%;
}

/* 顶部导航栏 */
.zt-chip {
  background: var(--q40);
  border-bottom: 1px solid var(--n38);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.rp-foot {
  display: flex;
  align-items: center;
  height: 48px;
  gap: 16px;
}

.j9m9m7 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--f49);
  white-space: nowrap;
}

.rp-card {
  width: 32px;
  height: 32px;
  background: var(--m81);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.xz-pan {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.xz-pan a {
  padding: 8px 12px;
  border-radius: var(--e97);
  color: var(--f49);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s var(--k49);
}

.xz-pan a:hover {
  background: var(--n66);
  text-decoration: none;
}

.xz-pan a.active {
  background: var(--n66);
  color: var(--m81);
}

._9bn2u {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bw-col {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s var(--k49);
  white-space: nowrap;
}

.bw-col:active {
  transform: scale(0.97);
}

.q3n9j3 {
  background: var(--m81);
  color: #fff;
}

.q3n9j3:hover {
  background: #E03D00;
  color: #fff;
  text-decoration: none;
}

.bw-pill {
  background: transparent;
  color: var(--b66);
  border: 1px solid var(--b66);
}

.bw-pill:hover {
  background: rgba(0,121,211,0.05);
  text-decoration: none;
}

._aetkx {
  background: transparent;
  color: var(--b63);
}

._aetkx:hover {
  background: var(--n66);
  color: var(--f49);
  text-decoration: none;
}

/* 搜索框 */
.f2v5s5 {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.f2v5s5 input {
  width: 100%;
  height: 36px;
  padding: 0 36px 0 40px;
  border: 1px solid var(--n38);
  border-radius: 20px;
  background: var(--n66);
  color: var(--f49);
  outline: none;
  transition: all 0.2s var(--k49);
}

.f2v5s5 input:focus {
  border-color: var(--b66);
  background: var(--q40);
  box-shadow: 0 0 0 2px rgba(0,121,211,0.1);
}

.f2v5s5 .xz-unit {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t47);
}

/* 帖子卡片 */
._j3to1 {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  margin-bottom: 10px;
  display: flex;
  transition: border-color 0.15s var(--k49), box-shadow 0.15s var(--k49);
  animation: fadeInUp 0.3s var(--k49) both;
}

._j3to1:hover {
  border-color: #898989;
  box-shadow: var(--x6);
}

/* 投票区域 */
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  width: 40px;
  min-width: 40px;
  background: #F8F9FA;
  border-radius: var(--e97) 0 0 var(--e97);
}

._0bjkc {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: var(--t47);
  transition: color 0.15s var(--k49), background 0.15s var(--k49);
}

._0bjkc:hover {
  background: rgba(0,0,0,0.05);
}

._0bjkc._tev60.active {
  color: var(--m6);
}

._0bjkc.gk-unit.active {
  color: var(--g48);
}

._zdnks {
  font-size: 12px;
  font-weight: 700;
  color: var(--f49);
  padding: 4px 0;
  min-width: 20px;
  text-align: center;
}

/* 帖子内容区域 */
.a1g4t3 {
  flex: 1;
  padding: 8px;
  min-width: 0;
}

.xz-col {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--t47);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

._tb89u {
  font-weight: 700;
  color: var(--f49);
}

._tb89u:hover {
  text-decoration: underline;
}

.a1g5d8 {
  color: var(--b63);
}

._9jc82 {
  font-size: 16px;
  font-weight: 500;
  color: var(--f49);
  margin-bottom: 6px;
  line-height: 1.4;
}

._9jc82 a {
  color: inherit;
}

._9jc82 a:hover {
  color: var(--b66);
  text-decoration: none;
}

._mgal3 {
  font-size: 13px;
  color: var(--b63);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h3h8d4 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.k5s2k7 {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t47);
  transition: background 0.15s var(--k49), color 0.15s var(--k49);
}

.k5s2k7:hover {
  background: rgba(0,0,0,0.04);
  color: var(--f49);
}

/* 标签徽章 */
._zh5lk {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.s4n6z9 {
  background: rgba(255,69,0,0.1);
  color: var(--z15);
}

._d94rl {
  background: rgba(70,209,96,0.1);
  color: var(--d89);
}

.v7u6e6 {
  background: rgba(255,135,23,0.1);
  color: var(--n12);
}

.v2d4m9 {
  background: rgba(0,121,211,0.1);
  color: var(--t36);
}

/* 侧边栏 */
.sl-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

._vvdpd {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  overflow: hidden;
}

.zt-area {
  padding: 12px 16px;
  background: var(--m81);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.zt-area._ygq4s {
  background: var(--b66);
}

.zt-area.g2w5b8 {
  background: var(--q61);
}

.f5f4x7 {
  padding: 12px 16px;
}

/* 版块列表 */
.o7r8v7 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--n38);
}

.o7r8v7:last-child {
  border-bottom: none;
}

.t8m6t8 {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--n66);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--m81);
  flex-shrink: 0;
}

.v9q6p4 {
  flex: 1;
  min-width: 0;
}

.hp-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--f49);
}

._zb0lr {
  font-size: 11px;
  color: var(--t47);
}

._zuip8 {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--b66);
  color: #fff;
  transition: background 0.15s var(--k49);
}

._zuip8:hover {
  background: #006CBB;
}

._zuip8.g7y9p4 {
  background: transparent;
  color: var(--b66);
  border: 1px solid var(--b66);
}

/* 用户排行 */
.sl-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--n38);
}

.sl-mark:last-child {
  border-bottom: none;
}

.jm-col {
  width: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--m81);
  text-align: center;
}

._h9u44 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m81), var(--q61));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.vw-card {
  flex: 1;
}

.b6k8g6 {
  font-size: 12px;
  font-weight: 700;
  color: var(--f49);
}

._3ec5y {
  font-size: 11px;
  color: var(--t47);
}

/* 评论嵌套 */
.t6e2i5 {
  padding: 12px 16px;
}

._w7wyx {
  padding-left: 16px;
  border-left: 2px solid var(--n38);
  margin-bottom: 12px;
  transition: border-color 0.15s var(--k49);
}

._w7wyx:hover {
  border-left-color: var(--b66);
}

._w7wyx ._w7wyx {
  margin-top: 12px;
}

._clwmw {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

._vii41 {
  font-size: 12px;
  font-weight: 700;
  color: var(--f49);
}

.p4g8u8 {
  font-size: 11px;
  color: var(--t47);
}

.g4u4r5 {
  font-size: 13px;
  color: var(--f49);
  line-height: 1.5;
}

.bw-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.wd-mark {
  font-size: 11px;
  font-weight: 600;
  color: var(--t47);
  cursor: pointer;
  transition: color 0.15s var(--k49);
}

.wd-mark:hover {
  color: var(--f49);
}

/* 排序标签 */
.m3e2z7 {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  margin-bottom: 10px;
}

.s4t7b4 {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--b63);
  transition: all 0.15s var(--k49);
}

.s4t7b4:hover {
  background: var(--n66);
}

.s4t7b4.active {
  background: var(--n66);
  color: var(--b66);
}

/* Hero区域 */
._nj81f {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  overflow: hidden;
  margin-bottom: 16px;
}

.nf-grid {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.b5x3r6 {
  padding: 20px 24px;
}

.nf-body {
  font-size: 28px;
  font-weight: 700;
  color: var(--f49);
  margin-bottom: 8px;
}

.p7h3b9 {
  font-size: 15px;
  color: var(--b63);
  line-height: 1.6;
}

/* 每日话题 */
.bw-tag {
  background: linear-gradient(135deg, var(--m81), var(--q61));
  border-radius: var(--e97);
  padding: 16px 20px;
  color: #fff;
  margin-bottom: 16px;
}

._fgziv {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.a8w3s6 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

._mpclq {
  font-size: 12px;
  opacity: 0.8;
}

/* 社区规则 */
._538qd {
  counter-reset: rule;
}

.nf-area {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--n38);
  font-size: 13px;
  color: var(--f49);
}

.nf-area:last-child {
  border-bottom: none;
}

._vga45 {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--m81);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 面包屑 */
._a1l9d {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--t47);
}

._a1l9d a {
  color: var(--t47);
}

._a1l9d a:hover {
  color: var(--b66);
}

.p2j1b3 {
  color: var(--t47);
}

/* 页脚 */
.k3z1t5 {
  background: var(--q40);
  border-top: 1px solid var(--n38);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.x1d7x6 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.a4y9t3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--f49);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.l8p1y9 a {
  display: block;
  font-size: 13px;
  color: var(--b63);
  padding: 3px 0;
  transition: color 0.15s var(--k49);
}

.l8p1y9 a:hover {
  color: var(--m81);
  text-decoration: none;
}

.rp-note {
  border-top: 1px solid var(--n38);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--t47);
}

/* 页面标题区 */
.b4u5f6 {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  padding: 24px;
  margin-bottom: 16px;
}

.nf-note {
  font-size: 22px;
  font-weight: 700;
  color: var(--f49);
  margin-bottom: 8px;
}

._usbfe {
  font-size: 14px;
  color: var(--b63);
  line-height: 1.6;
}

/* 表单元素 */
._b3t2e {
  margin-bottom: 16px;
}

._vjp07 {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--f49);
  margin-bottom: 6px;
}

.l2q6y1 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  background: var(--q40);
  color: var(--f49);
  outline: none;
  transition: border-color 0.2s var(--k49), box-shadow 0.2s var(--k49);
}

.l2q6y1:focus {
  border-color: var(--b66);
  box-shadow: 0 0 0 2px rgba(0,121,211,0.1);
}

.p3o2w1 {
  min-height: 160px;
  resize: vertical;
}

.zt-cell {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www._zkhcq.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237C7C7C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* FAQ */
.dk-card {
  border-bottom: 1px solid var(--n38);
  padding: 16px 0;
}

.dk-card:last-child {
  border-bottom: none;
}

.jm-mark {
  font-size: 15px;
  font-weight: 600;
  color: var(--f49);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-zone {
  font-size: 14px;
  color: var(--b63);
  line-height: 1.6;
  padding-left: 0;
}

/* 内容区块 */
.q1k2a5 {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.l1t9a2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--f49);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 版块网格 */
.f5d2d1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.h5q9t3 {
  background: var(--q40);
  border: 1px solid var(--n38);
  border-radius: var(--e97);
  padding: 16px;
  transition: border-color 0.15s var(--k49), box-shadow 0.15s var(--k49);
}

.h5q9t3:hover {
  border-color: var(--b66);
  box-shadow: var(--x6);
}

/* 用户Karma */
.bx-pan {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--n66);
  border-radius: var(--e97);
}

.g4r2l4 {
  text-align: center;
}

._qm8xl {
  font-size: 18px;
  font-weight: 700;
  color: var(--m81);
}

._4d22d {
  font-size: 11px;
  color: var(--t47);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.zt-zone {
  animation: fadeIn 0.3s var(--k49) both;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  ._gmctu {
    grid-template-columns: 1fr;
  }

  .sl-area {
    order: -1;
  }

  .rp-foot {
    padding: 0 8px;
  }

  .xz-pan {
    display: none;
  }

  .f2v5s5 {
    max-width: none;
  }

  .nf-body {
    font-size: 22px;
  }

  .x1d7x6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  ._j3to1 {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .f5d2d1 {
    grid-template-columns: 1fr;
  }

  .rp-note {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .b4u5f6 {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .b5x3r6 {
    padding: 16px;
  }

  .x1d7x6 {
    grid-template-columns: 1fr;
  }

  .bx-pan {
    flex-direction: column;
    gap: 8px;
  }
}

/* 无障碍 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 打印样式 */
@media print {
  .zt-chip, .k3z1t5, .sl-area {
    display: none;
  }

  ._gmctu {
    grid-template-columns: 1fr;
  }

  body {
    background: #fff;
  }
}
