/* ============================================================
   paopao.css - GTA5 论坛全局样式表
   风格参考：百度贴吧 / 白色简洁
   ============================================================ */

/* ----------------------------------------------------------
   0. CSS Variables
   ---------------------------------------------------------- */
:root {
  --bg-body: #f0f2f5;
  --bg-card: #ffffff;
  --bg-hover: #f5f7fa;
  --bg-input: #f5f7fa;
  --accent: #2d64b3;
  --accent-light: #4a90d9;
  --accent-hover: #1a4f8a;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 6px;
}

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

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-hover);
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(45, 100, 179, .12);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
}

/* ----------------------------------------------------------
   2. 通用组件
   ---------------------------------------------------------- */

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow .25s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

/* Badge & Pill */
.badge,
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.badge {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.pill {
  background: rgba(45, 100, 179, .08);
  color: var(--accent);
}

/* Section Title */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

/* ----------------------------------------------------------
   3. 帖子列表（贴吧风格）
   ---------------------------------------------------------- */
.thread-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.thread-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
  cursor: pointer;
}

.thread-item:last-child {
  border-bottom: none;
}

.thread-item:hover {
  background: var(--bg-hover);
}

.thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 12px;
}

.thread-body {
  flex: 1;
  min-width: 0;
}

.thread-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  transition: color .15s;
}

.thread-item:hover .thread-title {
  color: var(--accent);
}

.thread-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta a {
  color: var(--text-muted);
}

.thread-meta a:hover {
  color: var(--accent);
}

.thread-stats {
  flex-shrink: 0;
  text-align: center;
  padding: 0 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
}

.thread-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.thread-stats .count {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 帖子标签 */
.thread-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  margin-right: 6px;
  vertical-align: middle;
}

.thread-tag.top {
  background: #ff4e4e;
  color: #fff;
}

.thread-tag.essence {
  background: #ff9800;
  color: #fff;
}

.thread-tag.hot {
  background: #f44336;
  color: #fff;
}

.thread-tag.new {
  background: #4caf50;
  color: #fff;
}

/* ----------------------------------------------------------
   4. 分页
   ---------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  justify-content: center;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all .15s;
  cursor: pointer;
}

.pagination a:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}

.pagination .active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination .jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.pagination .jump input {
  width: 48px;
  height: 32px;
  text-align: center;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------
   5. 论坛板块
   ---------------------------------------------------------- */
.forum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.forum-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
}

.forum-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.forum-card .forum-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 12px;
  background: var(--bg-hover);
}

.forum-card .forum-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.forum-card:hover .forum-name {
  color: var(--accent);
}

.forum-card .forum-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------------------------------------------------
   6. 资源卡片
   ---------------------------------------------------------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mod-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
}

.mod-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.mod-card .mod-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-hover);
}

.mod-card .mod-info {
  padding: 12px;
}

.mod-card .mod-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-card:hover .mod-title {
  color: var(--accent);
}

.mod-card .mod-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mod-card .mod-downloads {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   7. 弹窗系统
   ---------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
  width: 480px;
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

/* ----------------------------------------------------------
   8. 漂亮提示
   ---------------------------------------------------------- */
.pretty-alert {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.pretty-alert.show {
  opacity: 1;
  visibility: visible;
}

.pretty-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
  width: 380px;
  max-width: 90vw;
  padding: 28px 24px 20px;
  text-align: center;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}

.pretty-alert.show .pretty-card {
  transform: translateY(0) scale(1);
}

.pretty-x {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s;
}

.pretty-x:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.pretty-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.pretty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pretty-ok {
  padding: 8px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

.pretty-ok:hover {
  background: var(--accent-hover);
}

.pretty-cancel {
  padding: 8px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}

.pretty-cancel:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}

/* ----------------------------------------------------------
   9. Toast 通知
   ---------------------------------------------------------- */
.toast-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-width: 260px;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--accent);
  font-size: 13px;
  color: var(--text-primary);
  transform: translateX(110%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left-color: #4caf50;
}

.toast.error {
  border-left-color: #f44336;
}

.toast.warning {
  border-left-color: #ff9800;
}

/* ----------------------------------------------------------
   10. 礼物系统
   ---------------------------------------------------------- */
.gift-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.gift-mask.show {
  opacity: 1;
  visibility: visible;
}

.gift-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 92vw;
  background: var(--bg-card);
  z-index: 1250;
  box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
}

.gift-drawer.show {
  transform: translateX(0);
}

.gift-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding: 0 16px;
}

.gift-tabs .gift-tab {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.gift-tabs .gift-tab.active,
.gift-tabs .gift-tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, background .15s;
  text-align: center;
}

.gift-card:hover {
  background: var(--bg-hover);
}

.gift-card.selected {
  border-color: var(--accent);
  background: rgba(45, 100, 179, .04);
}

.gift-card .gift-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

.gift-card .gift-name {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.gift-card .gift-price {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

/* ----------------------------------------------------------
   11. 头像菜单
   ---------------------------------------------------------- */
.avatar-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 12px 0;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
}

.avatar-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-popup::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
}

.avatar-popup a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background .15s;
}

.avatar-popup a:hover {
  background: var(--bg-hover);
}

.avatar-popup .popup-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ----------------------------------------------------------
   12. 广告
   ---------------------------------------------------------- */
.ad-wrap {
  margin: 16px 0;
}

.ad-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.ad-card img {
  width: 100%;
  display: block;
}

.ad-card .ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 6px;
  background: var(--bg-hover);
}

/* ----------------------------------------------------------
   13. 聊天 / 私信
   ---------------------------------------------------------- */
.chat-container {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 460px;
  overflow: hidden;
}

.chat-msg {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-bubble.self {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.other {
  align-self: flex-start;
  background: var(--bg-hover);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.chat-bubble .msg-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-bubble.self .msg-time {
  color: rgba(255, 255, 255, .65);
}

/* ----------------------------------------------------------
   14. 客服
   ---------------------------------------------------------- */
.support-shell {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}

.support-chat-card {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.97);
  transition: opacity .25s, visibility .25s, transform .25s;
}

.support-shell.open .support-chat-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.support-msg {
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-msg .msg {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
}

.support-msg .msg.bot {
  background: var(--bg-hover);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.support-msg .msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.support-quick {
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.support-quick .quick-btn {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(45, 100, 179, .06);
  cursor: pointer;
  transition: background .15s;
}

.support-quick .quick-btn:hover {
  background: rgba(45, 100, 179, .12);
}

/* ----------------------------------------------------------
   15. VIP 样式
   ---------------------------------------------------------- */
.vip-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}

.vip-badge.vip1 { background: #8c7b6b; color: #fff; }
.vip-badge.vip2 { background: #7ca0cd; color: #fff; }
.vip-badge.vip3 { background: #6db3f2; color: #fff; }
.vip-badge.vip4 { background: #e89b3f; color: #fff; }
.vip-badge.vip5 { background: #e67e22; color: #fff; }
.vip-badge.vip6 { background: #e74c3c; color: #fff; }
.vip-badge.vip7 { background: #c0392b; color: #fff; }
.vip-badge.vip8 { background: #9b59b6; color: #fff; }
.vip-badge.vip9 { background: #e91e63; color: #fff; }

.vip-glow {
  color: #d4a017;
  text-shadow: 0 0 8px rgba(212, 160, 23, .5);
}

.vip-crown {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, .6));
}

/* ----------------------------------------------------------
   16. 表单
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(45, 100, 179, .12);
}

.form-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(45, 100, 179, .12);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}

.form-textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(45, 100, 179, .12);
}

/* ----------------------------------------------------------
   17. 标签页
   ---------------------------------------------------------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 0;
}

.tab-item {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--accent);
}

.tab-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

/* ----------------------------------------------------------
   18. 用户信息卡
   ---------------------------------------------------------- */
.user-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.user-info .user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.user-info .user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-info .user-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   19. 搜索框
   ---------------------------------------------------------- */
.search-box {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(45, 100, 179, .12);
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  height: 100%;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  border: none;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* ----------------------------------------------------------
   20. 响应式
   ---------------------------------------------------------- */

/* <= 1100px */
@media (max-width: 1100px) {
  .mod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* <= 900px */
@media (max-width: 900px) {
  .forum-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thread-stats {
    display: none;
  }

  .gift-drawer {
    width: 320px;
  }
}

/* <= 800px */
@media (max-width: 800px) {
  .thread-item {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .thread-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .thread-title {
    font-size: 13px;
  }

  .support-chat-card {
    width: 300px;
  }
}

/* <= 600px */
@media (max-width: 600px) {
  html {
    font-size: 13px;
  }

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

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

  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 90vh;
  }

  .pretty-card {
    width: 92vw;
  }

  .gift-drawer {
    width: 100%;
    max-width: 100%;
  }

  .gift-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-chat-card {
    width: 92vw;
    right: 50%;
    transform: translateX(50%) translateY(12px) scale(.97);
  }

  .support-shell.open .support-chat-card {
    transform: translateX(50%) translateY(0) scale(1);
  }

  .toast-wrap {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .chat-container {
    height: 360px;
  }
}
