/* ===== 蜜桃仓 全站样式 ===== */
:root {
  --primary: #ff6b35;
  --primary-light: #fff5f0;
  --primary-hover: #e85d2a;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #f0f0f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 10px;
  --sidebar-w: 185px;
  --right-w: 285px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "黑体", STHeiti, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}

/* 带文字的完整 logo（桌面） */
.logo-full,
.logo picture img {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.logo picture { display: contents; }

/* 通用：用 img 替换原 🍑 emoji，跟随父元素的 font-size 缩放 */
.brand-peach {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  object-fit: contain;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 650;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-menu a i {
  width: 16px;
  text-align: center;
  font-size: 15px;
  color: #777;
  transition: color 0.2s;
}

.nav-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-menu a:hover i {
  color: var(--primary);
}
.nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}
.nav-menu a.active i {
  color: var(--primary);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}
.nav-menu a.highlight { color: var(--primary); font-weight: 600; }

.header-search {
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 520px;
  height: 38px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #eceff3;
  border-radius: 9px;
  background: #f8f9fb;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.header-search:focus-within {
  border-color: #ffd3c2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .1);
}
.header-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
}
.header-search input::placeholder {
  color: #a2a8b2;
}
.header-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s;
}
.header-search button:hover {
  background: var(--primary-hover);
}

.header-right {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.page-search .header-right {
  margin-left: auto;
}


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

.account-menu {
  position: relative;
}
.user-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 4px 10px 4px 5px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.user-name-btn:hover,
.account-menu.open .user-name-btn {
  background: var(--primary);
  color: #fff;
}
.user-name-btn:hover .nav-notice-dot,
.account-menu.open .nav-notice-dot {
  background: #fff;
  color: var(--primary);
}
.account-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
  flex-shrink: 0;
}
.account-chevron {
  font-size: 10px;
  opacity: .75;
  transition: transform .18s;
}
.account-menu.open .account-chevron {
  transform: rotate(180deg);
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 220;
  display: none;
  min-width: 150px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .15);
}
.account-menu.open .account-dropdown {
  display: block;
}
.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}
.account-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.account-dropdown a i {
  width: 16px;
  text-align: center;
}
.account-menu-divider {
  height: 1px;
  margin: 6px 2px;
  background: var(--border);
}
.account-menu-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.btn-sm-link {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-sm-link:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm-primary {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  background: var(--primary);
  color: #fff;
  transition: background 0.2s;
}
.btn-sm-primary:hover { background: var(--primary-hover); }

/* ===== Admin Console ===== */
.admin-console-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #f3f5f8;
  color: #172033;
}
.admin-mobile-topbar,
.admin-sidebar-mask {
  display: none;
}
.admin-console-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: #121826;
  color: #d8deea;
  overflow-y: auto;
}
.admin-console-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 8px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.admin-brand-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-console-brand img {
  width: 34px;
  height: 34px;
}
.admin-side-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}
.admin-console-nav,
.admin-console-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-console-nav a,
.admin-console-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  color: #aeb8ca;
  font-size: 14px;
  font-weight: 600;
}
.admin-console-nav a:hover,
.admin-console-nav a.active,
.admin-console-links a:hover {
  background: #263149;
  color: #fff;
}
.admin-console-nav i,
.admin-console-links i {
  width: 18px;
  text-align: center;
}
.admin-console-links {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.admin-console-links div {
  padding: 0 11px 8px;
  color: #7f8ca3;
  font-size: 12px;
  font-weight: 800;
}
.admin-console-main {
  min-width: 0;
  padding: 24px;
}
.admin-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-console-header h1 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.25;
}
.admin-console-header p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}
.admin-console-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 320px);
}
.admin-console-search input {
  flex: 1;
  height: 38px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
}
.admin-console-search select {
  height: 38px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}
.admin-console-search button {
  width: 40px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
.admin-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.admin-order-summary-card {
  padding: 16px;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f3, #fff);
}
.admin-order-summary-card.highlight {
  border-color: #ffd5c2;
  background: linear-gradient(135deg, #fff0e8, #fff);
}
.admin-order-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}
.admin-order-summary-card strong {
  display: inline-block;
  margin-right: 12px;
  color: #172033;
  font-size: 24px;
  line-height: 1.1;
}
.admin-order-summary-card em {
  color: var(--primary);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}
.admin-order-summary-card small {
  display: block;
  margin-top: 8px;
  color: #98a2b3;
  font-size: 12px;
}
.admin-console-card {
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.admin-table-responsive {
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.admin-console-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  margin-bottom: 0;
}
.admin-console-table th,
.admin-console-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.admin-console-table th {
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.admin-title-cell {
  max-width: 280px;
  color: #172033;
  font-weight: 700;
}
.admin-title-cell a:hover {
  color: #2563eb;
}
.admin-text-cell {
  max-width: 360px;
  color: #667085;
  line-height: 1.5;
}
.admin-subtext {
  color: #98a2b3;
  font-size: 12px;
}
.admin-console-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-console-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.admin-vip-price-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-vip-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-vip-price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #fafbfc;
}
.admin-vip-price-item span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-vip-price-item strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.admin-vip-price-item em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.admin-vip-price-item div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.admin-vip-price-item b {
  color: var(--primary);
  font-size: 16px;
}
.admin-vip-price-item input {
  width: 100%;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  background: transparent;
}
.admin-vip-price-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-vip-price-actions button,
.admin-vip-price-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}
.admin-vip-price-actions button {
  background: var(--primary);
  color: #fff;
}
.admin-vip-price-actions a {
  background: #f2f4f7;
  color: #667085;
}
.admin-image-domain-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-image-domain-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #fafbfc;
}
.admin-image-domain-editor span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-image-domain-editor strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.admin-image-domain-editor em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.admin-image-domain-editor textarea {
  width: 100%;
  min-height: 190px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  resize: vertical;
  color: var(--text);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.admin-image-domain-editor textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 95, 48, 0.12);
}
.admin-image-domain-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-image-domain-preview div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}
.admin-image-domain-preview i {
  flex: 0 0 auto;
  color: var(--primary);
}
.admin-image-domain-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-backup-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-backup-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-backup-info div {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px 16px;
}
.admin-backup-info span {
  display: block;
  color: #999;
  font-size: 12px;
  margin-bottom: 6px;
}
.admin-backup-info strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  word-break: break-all;
}
.admin-backup-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #ffe0d6;
  border-radius: 10px;
  background: #fff7f3;
}
.admin-backup-action button {
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-backup-action p {
  margin: 0;
  color: #888;
  font-size: 13px;
}
.admin-backup-result {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.admin-backup-result.ok {
  border-color: #9adeb4;
  background: #f7fffa;
}
.admin-backup-result.danger {
  border-color: #ffb8b8;
  background: #fff8f8;
}
.admin-backup-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-backup-result-head strong {
  color: var(--text);
}
.admin-backup-result-head span,
.admin-backup-result-meta {
  color: #888;
  font-size: 13px;
}
.admin-backup-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-backup-result pre {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-sponsor-display-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 5px 6px 5px 12px;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  background: #fafbfc;
}
.admin-sponsor-display-form span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.admin-sponsor-display-form strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.admin-sponsor-display-form em {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.admin-sponsor-display-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-sponsor-display-form button.danger {
  background: #fff1f0;
  color: #cf1322;
}
.sponsor-admin-sample {
  height: 26px;
  min-width: 62px;
  padding: 0 10px;
  border-width: 1px;
  font-size: 12px;
}
.sponsor-click-cell {
  min-width: 90px;
}
.sponsor-click-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.sponsor-click-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff7f3;
}
.admin-modal[hidden] {
  display: none;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(2px);
}
.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .24);
  padding: 22px;
}
.admin-modal-card h2 {
  margin: 0 42px 18px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}
.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  cursor: pointer;
}
.admin-modal-close:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.admin-user-vip-modal-card {
  width: min(460px, 100%);
}
.admin-user-vip-desc {
  margin: -6px 0 18px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}
.admin-user-vip-desc strong {
  color: #172033;
  font-weight: 900;
}
.admin-user-vip-form {
  display: grid;
  gap: 16px;
}
.admin-user-vip-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}
.admin-user-vip-form select {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #172033;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}
.admin-user-vip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.admin-user-vip-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.admin-user-vip-actions button[type="submit"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.sponsor-click-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.sponsor-click-modal-summary div {
  padding: 14px;
  border-radius: 10px;
  background: #f8f9fb;
  border: 1px solid #eef1f5;
}
.sponsor-click-modal-summary span,
.sponsor-click-modal-grid span {
  display: block;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}
.sponsor-click-modal-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}
.sponsor-click-modal-section {
  margin-top: 16px;
}
.sponsor-click-modal-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}
.sponsor-click-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.sponsor-click-modal-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #fff;
}
.sponsor-click-modal-grid strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}
@media (max-width: 640px) {
  .admin-console-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-vip-price-grid {
    grid-template-columns: 1fr;
  }
  .admin-vip-price-item,
  .admin-vip-price-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-vip-price-item div {
    width: 100%;
  }
  .admin-backup-info {
    grid-template-columns: 1fr;
  }
  .admin-backup-action,
  .admin-backup-result-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-console-toolbar a,
  .admin-sponsor-display-form {
    width: 100%;
  }
  .admin-sponsor-display-form {
    justify-content: space-between;
  }
  .admin-modal {
    padding: 12px;
  }
  .admin-modal-card {
    padding: 18px;
  }
  .admin-user-vip-actions {
    flex-direction: column-reverse;
  }
  .admin-user-vip-actions button {
    width: 100%;
  }
  .sponsor-click-modal-summary {
    grid-template-columns: 1fr;
  }
  .sponsor-click-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.admin-empty-row {
  padding: 28px 14px !important;
  color: #98a2b3;
  text-align: center !important;
  font-weight: 700;
}
.admin-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.admin-pill.ok { background: #e8f8ef; color: #0c8f52; }
.admin-pill.warn { background: #fff7e6; color: #ad6800; }
.admin-pill.danger { background: #fff1f0; color: #cf1322; }
.admin-actions {
  white-space: nowrap;
}
.admin-actions form {
  display: inline-flex;
  vertical-align: middle;
  margin: 0;
  margin-right: 7px;
  margin-bottom: 6px;
}
.admin-actions form:last-child {
  margin-right: 0;
}
.admin-sponsor-limit-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-sponsor-limit-form input {
  width: 58px;
  height: 30px;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  padding: 0 8px;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}
.admin-actions a,
.admin-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-actions a:hover,
.admin-actions button:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.admin-actions .danger,
.admin-actions button.danger {
  border-color: #fecaca;
  color: #dc2626;
  background: #fff7f7;
}
.admin-console-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}
.admin-console-pager a,
.admin-console-pager span,
.admin-console-pager strong {
  min-width: 74px;
  text-align: center;
  font-size: 13px;
  color: #667085;
}
.admin-console-pager a {
  padding: 7px 10px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .admin-console-body {
    display: block;
    padding-top: 56px;
  }
  .admin-mobile-topbar {
    position: fixed;
    z-index: 1040;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 14px;
    border-bottom: 1px solid #e4e8ef;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
    backdrop-filter: blur(10px);
  }
  .admin-mobile-topbar span {
    color: #172033;
    font-size: 16px;
    font-weight: 900;
  }
  .admin-mobile-topbar a,
  .admin-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #fff;
    color: #475467;
    font-size: 16px;
  }
  .admin-console-side {
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: min(82vw, 288px);
    max-width: 288px;
    height: 100vh;
    transform: translateX(-104%);
    transition: transform .22s ease;
    box-shadow: 18px 0 40px rgba(15, 23, 42, .28);
  }
  .admin-sidebar-open .admin-console-side {
    transform: translateX(0);
  }
  .admin-sidebar-open .admin-sidebar-mask {
    position: fixed;
    z-index: 1045;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, .46);
  }
  .admin-side-close {
    display: inline-flex;
  }
  .admin-console-main {
    padding: 14px;
  }
  .admin-console-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }
  .admin-console-header h1 {
    font-size: 21px;
  }
  .admin-console-search {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .admin-console-search input {
    min-width: 0;
    flex: 1 1 180px;
  }
  .admin-console-search select {
    flex: 1 1 130px;
  }
  .admin-console-search button {
    flex: 0 0 42px;
  }
  .admin-console-card {
    border-radius: 12px;
  }
  .admin-console-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-sponsor-display-form {
    width: 100%;
  }
  .admin-order-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-console-table {
    min-width: 860px;
  }
  .admin-console-pager {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  .admin-console-main {
    padding: 12px;
  }
  .admin-console-header h1 {
    font-size: 20px;
  }
  .admin-console-card {
    border-radius: 10px;
  }
  .admin-console-table {
    min-width: 760px;
  }
  .admin-console-table th,
  .admin-console-table td {
    padding: 10px 12px;
  }
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* ===== LAYOUT ===== */
.page-wrap {
  max-width: 1240px;
  margin: 14px auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar-left {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-left::-webkit-scrollbar { width: 4px; }
.sidebar-left::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }

.side-nav {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px 0;
}

/* 父分类条目 */
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 1px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  position: relative;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
  cursor: pointer;
  border-left: 3px solid transparent; /* 占位，避免 active 时整行抖动 */
}

.side-nav-item:hover {
  background: #fafafa;
  color: var(--primary);
}

.side-nav-item.active {
  background: rgba(255, 102, 0, 0.05);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

.side-nav-item i { width: 18px; text-align: center; font-size: 13px; flex-shrink: 0; }

.side-nav-primary {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
  gap: 14px;
}

.side-nav-primary + .side-nav-primary {
  margin-top: 4px;
}

.side-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
  margin: 8px 16px;
}

/* 父分类彩色 badge：圆角更柔、加内阴影做精致感 */
.cat-icon-sq {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: 0;
}

/* 子分类：辅助线 + 字重对比 + hover 微位移 */
.side-nav-item.side-sub {
  padding: 6px 16px 6px 44px;
  font-size: 13px;
  font-weight: 400;
  color: #6e7c8c;
  border-left: 3px solid transparent;
  position: relative;
}

/* 子分类左侧的"挂枝"竖线（柔和半透明灰） */
.side-nav-item.side-sub::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/* 子分类前的小圆点（默认隐藏，hover/active 显现） */
.side-nav-item.side-sub::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s ease;
}

.side-nav-item.side-sub:hover {
  background: #fafafa;
  color: var(--primary);
  padding-left: 48px; /* 细微右移营造交互反馈 */
}

.side-nav-item.side-sub:hover::after,
.side-nav-item.side-sub.active::after {
  transform: translateY(-50%) scale(1);
}

.side-nav-item.side-sub.active {
  background: rgba(255, 102, 0, 0.05);
  color: var(--primary);
  font-weight: 600;
  border-left-color: transparent; /* 用左侧 dot 标识，不用竖条 */
}

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; min-width: 0; }

/* Content search box */
.content-search {
  display: none;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.content-search input {
  flex: 1;
  padding: 11px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}

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

.content-search button {
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.content-search button:hover { background: var(--primary-hover); }

.search-page-search {
  display: flex;
}

.search-mobile-brand {
  display: none;
}

.sponsor-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 107, 53, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.sponsor-strip-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.sponsor-strip-head i {
  color: var(--primary);
}
.sponsor-strip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.sponsor-card {
  --tone: var(--primary);
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone) 42%, #fff);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: var(--tone);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
}
.sponsor-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 2.05 / 1;
  max-height: 132px;
  overflow: hidden;
  background: color-mix(in srgb, var(--tone) 10%, #f6f7fb);
}
.sponsor-card-media > img,
.sponsor-card-placeholder > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sponsor-card-media > img {
  will-change: transform;
}
.sponsor-card-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.sponsor-card-placeholder > img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .75;
}
.sponsor-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 25px;
  padding: 0 8px;
  color: var(--tone);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sponsor-chip,
.sponsor-admin-sample {
  --tone: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border: 2px solid var(--tone);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 9%, #fff);
  color: var(--tone);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.sponsor-chip:hover {
  background: var(--tone);
  color: #fff;
}

/* Keyword highlight in search results */
mark {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-radius: 2px;
  padding: 0 1px;
}

/* Pinned section */
.pinned-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }

.sort-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.sort-tab i {
  font-size: 10px;
  line-height: 1;
  opacity: .68;
}

.sort-tab.active i { opacity: 1; }
.sort-tab:hover { color: var(--primary); border-color: var(--primary); }
.sort-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.total-count { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
  font-size: 12.5px;
  color: #a2a8b2;
  margin-bottom: 12px;
}

.breadcrumb a,
.breadcrumb .bc-current {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.breadcrumb a {
  color: #727b87;
}
.breadcrumb a:first-child::before {
  content: '\f015';
  margin-right: 5px;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 11px;
}
.breadcrumb a:hover {
  background: #fff5f3;
  color: var(--primary);
}
.breadcrumb > span:not(.bc-current) {
  color: #c2c7cf;
  font-size: 13px;
  line-height: 1;
}
.breadcrumb .bc-current {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}
/* ===== POST LIST ===== */
.post-list {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: filter 0.15s;
}

.post-item:hover { filter: brightness(0.97); }
.post-item:last-of-type { border-bottom: none; }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.post-meta { flex: 1; min-width: 0; }

.post-title-row {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.post-title-row > a {
  color: var(--text);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.post-title-row > a:hover { color: var(--primary); }

.cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  color: #fff;
}
.cat-tag-sub { opacity: 0.82; }
.cat-sep { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.post-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
/* 默认隐藏第 4 张封面，宽屏才显示 */
.post-images .post-img-wrap:nth-child(4) { display: none; }

/* 检测到竖图时，不管屏幕宽度，强制显示 4 列 */
.post-images.has-portrait {
  grid-template-columns: repeat(4, 1fr);
}
.post-images.has-portrait .post-img-wrap:nth-child(4) {
  display: block;
}

.post-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
  min-height: 60px; /* 图片未加载前保留空间，让 spinner 可见 */
}

/* 加载中转圈占位符 */
.post-img-wrap::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin-top: -11px;
  margin-left: -11px;
  border: 2.5px solid rgba(255, 107, 53, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: img-spin 0.75s linear infinite;
  pointer-events: none;
  z-index: 4;
}

/* 图片加载完成后隐藏 spinner */
.post-img-wrap.img-loaded::before {
  display: none;
}

.post-img-wrap.img-error,
.preview-img.img-error,
.related-cover.img-error,
.hot-hero-link.img-error,
.hot-compact-cover.img-error {
  background: #f4ecec;
}

.post-img-wrap.img-error img,
.preview-img.img-error img,
.related-cover.img-error img,
.hot-hero-link.img-error img,
.hot-compact-cover.img-error img {
  display: none;
}

.post-images img {
  position: relative;
  z-index: 1;
  width: 100%;
  /* aspect-ratio 直接放在 img 上：容器高度由 img 撑开，彻底消除黑边 */
  aspect-ratio: calc(1 / var(--ratio, 0.75));
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.post-stats { display: flex; gap: 14px; }

.post-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.pagination a, .pagination .pg-current, .pagination .pg-disabled {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 13px;
  transition: all 0.2s;
  min-width: 32px;
  text-align: center;
}

.pagination a { background: #f5f5f5; color: var(--text-secondary); }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .pg-current { background: var(--primary); color: #fff; font-weight: 600; }
.pagination .pg-disabled { background: #f5f5f5; color: #ccc; cursor: default; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ===== RIGHT SIDEBAR ===== */
.sidebar-right {
  width: var(--right-w);
  flex-shrink: 0;
}

.right-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

/* Site intro card */
.site-banner {
  height: 82px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.site-logo-wrap {
  position: absolute;
  bottom: -24px;
  left: 18px;
}

.site-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
/* 让 .site-logo 内的品牌图标放大，不跟父字号绑死 */
.site-logo .brand-peach {
  width: 40px;
  height: 40px;
}

.site-logo-cat {
  font-size: 20px;
  font-weight: 700;
}
.site-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 3px solid #fff;
  object-fit: cover;
  display: block;
}
.site-body { padding: 34px 18px 15px; }
.site-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.site-desc { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.cat-breadcrumb { font-weight: 400; color: var(--text-muted); }
.cat-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.cat-breadcrumb a:hover { color: var(--primary); }
.cat-breadcrumb .cat-sep { margin: 0 2px; }

/* Card header */
.card-header {
  padding: 14px 18px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-header > i { color: var(--primary); }

/* Hot posts */
.hot-tab-btn {
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.hot-tab-btn.active { background: var(--primary); color: #fff; }
.hot-tab-btn:hover:not(.active) { color: var(--primary); }
.hot-tab-sep { color: var(--border); font-size: 12px; }

.hot-list { list-style: none; padding: 10px 18px 14px; }

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
}

.hot-rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.r1 { background: #ff4d4f; color: #fff; }
.r2 { background: #ff7a45; color: #fff; }
.r3 { background: #ffa940; color: #fff; }
.rn { background: #f0f0f0; color: #999; }

/* Compact list items */
.hot-item-right { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hot-item-right > a {
  color: #555;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.hot-item-right > a:hover { color: var(--primary); }
.hot-views { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hot-item-img {
  display: none;
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #f5f0ee;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.hot-compact-cover {
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding: 7px 4px;
  margin: 0 -4px;
}
.hot-compact-cover:hover { background: var(--bg); }
.hot-compact-cover:hover .hot-item-img { display: block; }
.hot-compact-cover:hover .hot-item-right > a { -webkit-line-clamp: 2; }

/* Hero items (top 3) */
.hot-hero-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.hot-hero-item:last-of-type { border-bottom: none; }
.hot-hero-link {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  color: inherit;
}
.hot-hero-img {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #f5f0ee;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.hot-hero-info { flex: 1; min-width: 0; }
.hot-hero-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hot-hero-link:hover .hot-hero-title { color: var(--primary); }
.hot-hero-views { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Friend links */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 18px 16px;
}

.friend-links a { font-size: 12.5px; color: var(--text-secondary); transition: color 0.2s; }
.friend-links a:hover { color: var(--primary); }

/* ===== MOBILE OVERLAY + DRAWER ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  transition: background 0.3s ease;
}

.overlay.show {
  display: block;
  background: rgba(0, 0, 0, 0.45);
}

/* drawer 打开时，背景页禁止滚动 */
body.drawer-open { overflow: hidden; }

.drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: min(82vw, 320px);
  height: 100%;
  background: var(--white);
  z-index: 201;
  transition: left 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.drawer.show { left: 0; }

.drawer-header {
  padding: 24px 20px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.drawer-user-avatar {
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.drawer-text {
  min-width: 0;
}
.drawer-text p:first-child,
.drawer-username {
  margin: 0;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
}
.drawer-text p:last-child { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.drawer-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
}
.drawer-logout i {
  font-size: 12px;
}
.drawer-logout:active {
  background: rgba(255,255,255,.22);
}

.drawer-nav { padding: 6px 0 16px; }

/* drawer 通用条目 */
.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
  border-left: 3px solid transparent;
  list-style: none;          /* <summary> 用 */
}
.drawer-item::-webkit-details-marker { display: none; }
.drawer-item::marker { content: ""; }

/* 父分类条目：紧凑一点，仍保证 ≥40px 触控区 */
.drawer-item-parent {
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  min-height: 40px;
  cursor: pointer;
}

.drawer-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-item-parent:hover { background: #fafafa; color: var(--primary); }

.drawer-item-parent.active {
  background: rgba(255, 102, 0, 0.06);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* 折叠组容器 */
.drawer-cat-group { display: block; }

/* 右侧 chevron：默认下指；展开时旋转 180° */
.drawer-chevron {
  font-size: 11px;
  color: #b8c0cc;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.drawer-cat-group[open] > summary .drawer-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.drawer-cat-group[open] > summary {
  color: var(--primary);
}

/* 子菜单容器淡入 */
.drawer-sub-wrap {
  animation: drawerSubFade 0.22s ease;
}
@keyframes drawerSubFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "全部 XX 分类"特殊样式 */
.drawer-item-all {
  color: #95a3b3;
  font-style: italic;
}

/* 父分类彩色 badge */
.drawer-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.drawer-cat-icon i { font-size: 13px; }

/* 子分类：辅助线 + 圆点；padding 缩小一点 */
.drawer-item-sub {
  padding: 5px 16px 5px 48px;
  font-size: 14px;
  font-weight: 400;
  color: #6e7c8c;
  min-height: 34px;
}

.drawer-item-sub::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.drawer-item-sub::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%) scale(0);
  transition: transform 0.18s ease;
}

.drawer-item-sub:hover {
  background: #fafafa;
  color: var(--primary);
}

.drawer-item-sub:hover::after,
.drawer-item-sub.active::after {
  transform: translateY(-50%) scale(1);
}

.drawer-item-sub.active {
  background: rgba(255, 102, 0, 0.05);
  color: var(--primary);
  font-weight: 600;
}

.drawer-item i { width: 18px; text-align: center; flex-shrink: 0; }
.drawer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin: 6px 16px;
}

.drawer-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.drawer-search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s ease;
}
.drawer-search input:focus { border-color: var(--primary); }

.drawer-search button {
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.drawer-search button:hover { background: var(--primary-hover); }

/* drawer 底部友情链接 */
.drawer-friend-links {
  padding: 12px 16px 20px;
}
.drawer-friend-title {
  font-size: 13px;
  font-weight: 600;
  color: #95a3b3;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-friend-title i { font-size: 11px; }
.drawer-friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drawer-friend-list a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: #6e7c8c;
  background: #f6f7f9;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.drawer-friend-list a:hover,
.drawer-friend-list a:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  font-size: 13px;
  border: none;
  z-index: 50;
}

.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary); color: #fff; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 20px); /* 与 page-wrap 的 padding: 0 10px 对齐 */
  max-width: 1240px;
  /* iOS 26-style floating dock */
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.10), inset 0 0 0 1px rgba(255,255,255,0.7);
  border: 1px solid rgba(200,200,200,0.35);
}

.mobile-nav ul {
  display: flex;
  list-style: none;
  padding: 4px 6px;
  gap: 2px;
}

.mobile-nav li { flex: 1; }

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  transition: all 0.2s;
  border-radius: 22px;
  white-space: nowrap;
  gap: 1px;
}

.mobile-nav a:active { opacity: 0.7; transform: scale(0.94); }

.mnav-icon { font-size: 18px; display: block; line-height: 1; }

.mobile-nav a.active {
  color: var(--primary);
  background: rgba(255,107,53,0.12);
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}

.auth-logo { text-align: center; margin-bottom: 28px; }

.auth-logo-full {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto;
}
.auth-footer { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); }

.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.form-label small { color: var(--text-muted); font-weight: 400; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus { border-color: var(--primary); }

.btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-submit:hover { background: var(--primary-hover); }

.form-group { margin-bottom: 16px; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-danger { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; }
.alert-success { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

/* ===== DETAIL PAGE ===== */
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.detail-pending {
  padding: 42px 24px;
  text-align: center;
}
.detail-pending-visual {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 10px 18px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7f3 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px #ffe1d4, 0 10px 24px rgba(255, 107, 53, .12);
}
.detail-pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff5f0;
  color: var(--primary);
  font-size: 24px;
  animation: pendingFloat 1.8s ease-in-out infinite;
}
.detail-pending-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 14px;
  margin-top: 3px;
}
.detail-pending-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .35;
  animation: pendingDot 1.1s ease-in-out infinite;
}
.detail-pending-dots span:nth-child(2) {
  animation-delay: .16s;
}
.detail-pending-dots span:nth-child(3) {
  animation-delay: .32s;
}
.detail-pending .detail-title {
  max-width: 760px;
  margin: 0 auto 12px;
}
.detail-pending p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
}
.detail-pending-sub {
  max-width: 560px;
  margin: 8px auto 0 !important;
  color: var(--text-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.7;
}
.detail-pending-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.detail-pending-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.detail-pending-btn.secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
}
.detail-pending-btn:hover {
  opacity: .9;
}
@keyframes pendingFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pendingDot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-date { font-size: 12px; color: var(--text-muted); }

.detail-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.detail-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-stats span { display: flex; align-items: center; gap: 4px; }

/* 横图：始终单列（PC + 移动端一致） */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: #f8f8f8;
  padding: 12px;
}

/* 竖图：column-count 瀑布流，任何屏幕宽度始终两列 */
.preview-grid-portrait {
  columns: 2;
  column-gap: 4px;
  background: #f8f8f8;
  padding: 12px;
}
.preview-grid-portrait .preview-img {
  break-inside: avoid;
  display: block;
  margin-bottom: 4px;
}
.preview-grid-portrait.preview-masonry-ready {
  display: flex;
  columns: auto;
  gap: 4px;
}
.preview-masonry-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-grid-portrait.preview-masonry-ready .preview-img {
  margin-bottom: 0;
}

.preview-img {
  position: relative;
  border-radius: 4px;
  cursor: zoom-in;
  background-color: #f5f0ee;
  min-height: 80px;
}

.preview-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
  display: block;
}

.preview-img:hover img { transform: scale(1.02); }

.detail-info {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.detail-field { display: flex; gap: 6px; font-size: 13px; }
.detail-field span { color: var(--text-muted); }
.detail-field strong { color: var(--text); font-weight: 600; }

.detail-actions {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-left { display: flex; flex-direction: column; gap: 8px; }
.action-right { display: flex; gap: 10px; }

.btn-magnet {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #fff5f0;
  color: var(--primary);
  border: 1px solid #ffc4a8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-magnet:hover { background: #ffe8da; border-color: var(--primary); }
.btn-magnet:disabled { opacity: 0.6; cursor: not-allowed; }

.magnet-panel {
  margin: 2px 0 10px;
  padding: 14px;
  border: 1px solid #ffe1d3;
  border-radius: 8px;
  background: #fffaf7;
}
.magnet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}
.magnet-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.magnet-panel-head h2 i {
  color: var(--primary);
  margin-right: 6px;
}

.magnet-box { display: block; margin-top: 0; }

.magnet-text {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: monospace;
  word-break: break-all;
  color: #666;
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.btn-copy {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-copy:hover { background: #c9315e; border-color: #c9315e; color: #fff; }

.magnet-login-tip { font-size: 13px; color: var(--text-muted); padding: 8px 0; }
.magnet-login-tip a { color: var(--primary); }

.login-gate {
  margin-top: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff5f7 0%, #fff0f5 100%);
  border: 1.5px solid #ffb3c6;
  border-radius: 10px;
}
.login-gate-title {
  font-size: 15px;
  font-weight: 700;
  color: #c0003a;
  margin-bottom: 10px;
}
.login-gate-perks {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-gate-perks li {
  font-size: 13px;
  color: #555;
}
.login-gate-perks li i {
  color: var(--primary);
  width: 16px;
  margin-right: 4px;
}
.login-gate-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}
.login-gate-btn-register {
  display: inline-block;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .5px;
}
.login-gate-btn-register:hover { opacity: .88; }
.login-gate-btn-login {
  font-size: 13px;
  color: var(--primary) !important;
  text-decoration: none;
}
.login-gate-btn-login:hover { text-decoration: underline; }

.pikpak-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #52a; /* purple hint for PikPak brand */
  background: #f5f0ff;
  border: 1px solid #d9c7ff;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pikpak-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}
.magnet-download-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.magnet-download-row .btn-torrent,
.magnet-download-row .pikpak-tip {
  margin-top: 0;
}

.magnet-slow-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #ff8a58;
  border-left: 5px solid #ff6335;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff0e6 0%, #fff7dd 100%);
  color: #e74413;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  box-shadow: 0 8px 22px rgba(255, 99, 53, .14);
}
.magnet-slow-tip i {
  flex: 0 0 auto;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ff6335;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.btn-torrent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid #52c41a;
  border-radius: 6px;
  color: #52c41a;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-torrent:hover { background: #f6ffed; border-color: #389e0d; color: #389e0d; }

.play-panel {
  margin: 2px 0 8px;
  padding: 14px;
  border: 1px solid #d9ecff;
  border-radius: 8px;
  background: #f7fbff;
}
.play-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.play-panel-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.play-panel-head h2 i {
  color: #1677ff;
  margin-right: 5px;
}
.play-panel-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}
.resource-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #111;
}
.art-player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}
.art-player-shell .art-video-player {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.resource-player-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}
.resource-player[hidden] {
  display: none;
}
.play-loading[hidden] {
  display: none;
}
.play-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  margin-bottom: 10px;
  border: 1px solid #b7dcff;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef7ff);
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
}
.play-loading-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(22, 119, 255, .18);
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: play-loading-spin .75s linear infinite;
}
@keyframes play-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.play-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #1677ff;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.play-start-btn:hover {
  background: #0958d9;
  border-color: #0958d9;
}
.play-start-btn:active {
  transform: translateY(1px);
}
.play-entry-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.play-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #91caff;
  border-radius: 8px;
  background: #fff;
  color: #1677ff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.play-entry-btn:hover {
  border-color: #1677ff;
  background: #e6f4ff;
}
.play-entry-btn:active {
  transform: translateY(1px);
}
.play-entry-btn.is-unready,
.play-entry-btn:disabled {
  border-color: #d9dee8;
  background: #f4f6f9;
  color: #98a2b3;
  cursor: not-allowed;
}
.play-entry-btn.is-unready:hover,
.play-entry-btn:disabled:hover {
  border-color: #d9dee8;
  background: #f4f6f9;
  color: #98a2b3;
}
.play-select-modal[hidden] {
  display: none;
}
.play-select-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.play-select-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
}
.play-select-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(74vh, 720px);
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .22);
}
.play-select-card h3 {
  margin: 0 34px 14px 0;
  color: var(--text);
  font-size: 17px;
}
.play-select-card .play-list {
  max-height: calc(min(74vh, 720px) - 70px);
  overflow-y: auto;
}
.play-select-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.play-select-close:hover {
  color: var(--primary);
  border-color: #ffd4c6;
  background: #fff7f4;
}
.play-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.play-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #fff;
}
.play-item-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-item-name i {
  color: #1677ff;
  margin-right: 5px;
}
.play-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.play-line-btn,
.play-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid #91caff;
  border-radius: 7px;
  background: #fff;
  color: #1677ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.play-line-btn:hover,
.play-line-btn.active,
.play-login:hover {
  background: #1677ff;
  color: #fff;
}
.play-line-btn.is-unready,
.play-line-btn:disabled {
  border-color: #d9dee8;
  background: #f4f6f9;
  color: #98a2b3;
  cursor: not-allowed;
}
.play-line-btn.is-unready:hover,
.play-line-btn:disabled:hover {
  border-color: #d9dee8;
  background: #f4f6f9;
  color: #98a2b3;
}
.play-empty {
  padding: 10px 12px;
  border: 1px dashed #c9d8ea;
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
}
.vip-play-modal[hidden] {
  display: none;
}
.vip-play-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.vip-play-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.vip-play-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .24);
  text-align: center;
}
.vip-play-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.vip-play-close:hover {
  color: var(--primary);
  border-color: #ffd4c6;
  background: #fff7f4;
}
.vip-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b35, #ff9f6b);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(255, 102, 0, .22);
}
.vip-play-card h3 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.3;
}
.vip-play-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.vip-play-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.vip-play-secondary,
.vip-play-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.vip-play-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
}
.vip-play-secondary:hover {
  border-color: #ffd4c6;
  color: var(--primary);
  background: #fff7f4;
}
.vip-play-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}
.vip-play-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-like, .btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-family: inherit;
}

.btn-like:hover, .btn-like.active { color: var(--primary); border-color: var(--primary); background: #fff5f3; }
.btn-fav:hover, .btn-fav.active { color: #faad14; border-color: #faad14; background: #fffbe6; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.show { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }

.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  color: #fff; font-size: 28px;
  cursor: pointer; opacity: 0.8; line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

/* ===== PROFILE PAGE ===== */
.profile-info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 16px; font-weight: 700; color: var(--text); }
.profile-email { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.profile-since { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.profile-tabs-wrap { background: var(--white); border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow); }
.profile-tabs {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.profile-tab-current {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 260px);
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.profile-tab-current:hover,
.profile-tabs.open .profile-tab-current {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f3;
}
.profile-tab-current span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.profile-tab-current .fa-chevron-down {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform .18s;
}
.profile-tabs.open .profile-tab-current .fa-chevron-down {
  transform: rotate(180deg);
}
.profile-tab-menu {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 0 8px;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.profile-tabs.open .profile-tab-menu {
  display: flex;
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tab:hover { color: var(--primary); background: #fff8f4; }
.profile-tab.active { color: var(--primary); background: #fff; border-bottom-color: var(--primary); font-weight: 700; }
.profile-tab-badge,
.nav-notice-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.nav-notice-dot {
  margin-left: 5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 10px;
}

.profile-section { display: none; padding: 16px; }
.profile-section.active { display: block; }

@media (max-width: 640px) {
  .profile-tabs {
    padding: 10px 12px;
  }
  .profile-tab-current {
    display: none;
  }
  .profile-tab-menu {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .profile-tabs.open .profile-tab-menu {
    display: grid;
  }
  .profile-tab {
    justify-content: center;
    min-height: 34px;
    padding: 0 7px;
    border-radius: 10px;
    border-bottom: none;
    background: #f7f8fa;
    font-size: 12px;
    font-weight: 700;
    gap: 5px;
  }
  .profile-tab:hover {
    background: #fff5f3;
  }
  .profile-tab.active {
    background: var(--primary);
    color: #fff;
  }
  .profile-tab.active .profile-tab-badge {
    background: #fff;
    color: var(--primary);
  }
}

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

.profile-post-card {
  display: block;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
}

.profile-post-card:hover { transform: translateY(-2px); }
.profile-post-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background-color: #e8e8e8;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
}
.profile-post-img-ph { width: 100%; height: 110px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.profile-post-info { padding: 8px 10px; }
.profile-post-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile-post-cat { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.profile-request-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-request-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.profile-request-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.profile-request-title {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.profile-order-card .request-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.order-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.order-status.status-pending {
  color: var(--primary);
  background: #fff3ed;
}
.order-status.status-paid {
  color: #159447;
  background: #eafaf0;
}
.order-status.status-cancelled {
  color: #b42318;
  background: #fff1f0;
}
.profile-order-price {
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}
.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.notification-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}
.notification-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.notification-read-form { margin: 0; flex-shrink: 0; }
.notification-read-form button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.notification-read-form button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f3;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.notification-item.unread {
  border-color: #ffd1bf;
  background: #fff8f5;
}
.notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff2e8;
  color: var(--primary);
  flex-shrink: 0;
}
.notification-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.notification-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.notification-content {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.notification-meta {
  color: var(--text-muted);
  font-size: 12px;
}
.empty-tip { text-align: center; padding: 40px; color: var(--text-muted); }

/* Search result header */
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.search-header-main {
  min-width: 0;
}
.search-title { font-size: 16px; font-weight: 600; }
.search-title em { color: var(--primary); font-style: normal; }
.search-count { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.search-request-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.search-request-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff3ee;
  color: var(--primary);
  border: 1px solid rgba(255, 99, 53, .24);
  font-weight: 800;
  text-decoration: none;
  transition: all .16s ease;
}
.search-request-cta a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.search-section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}
.search-section-head h2 i {
  color: var(--primary);
  font-size: 14px;
}
.search-section-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.search-section-head a:hover {
  color: var(--primary);
}
.search-request-results {
  margin-bottom: 14px;
}
.search-request-list .request-card {
  border: 1px solid rgba(255, 99, 53, .08);
}
.search-request-list mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #fff2e8;
  color: var(--primary);
}
.search-count span {
  color: #8b929d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .sidebar-right {
    /* Move below main content, offset to clear left sidebar */
    width: calc(100% - var(--sidebar-w) - 14px);
    margin-left: calc(var(--sidebar-w) + 14px);
    order: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    position: static;
  }
  .sidebar-right .right-card { flex: 1; min-width: 260px; margin-bottom: 0; }
  .site-intro-card { display: none; }
  .content-search { display: none; }
  .search-page-search { display: flex; }
}
@media (max-width: 850px) {
  .sidebar-right { width: 100%; margin-left: 0; }
}

@media (max-width: 520px) {
  .home-resource-head {
    min-height: 54px;
    padding: 14px 16px;
  }
  .home-resource-head > div {
    gap: 9px;
    flex-wrap: nowrap;
  }
  .home-resource-head p {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ── 热门搜索关键词 ──────────────────────────────────────── */
.hot-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 2px 6px;
}
.hot-keywords-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hot-keywords-label i { color: var(--primary); }
.hot-kw {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s;
}
.hot-kw:hover, .hot-kw.active {
  background: #fff0ee;
  border-color: var(--primary);
  color: var(--primary);
}

/* ── 图片懒加载转圈动画 ──────────────────────────────────── */
@keyframes img-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.preview-img::before,
.related-cover:not(.no-img)::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  top: 50%;
  left: 50%;
  margin-top: -11px;
  margin-left: -11px;
  border: 2.5px solid rgba(250, 128, 114, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: img-spin 0.75s linear infinite;
  pointer-events: none;
  z-index: 4;
}

/* 图片加载完成后隐藏 spinner */
.preview-img.img-loaded::before,
.related-cover.img-loaded::before {
  display: none;
}

@media (max-width: 850px) {
  .sidebar-left { display: none; }
  .header-search { display: none; }
  .nav-menu { display: none; }
  .header-right { margin-left: auto; }
  .menu-btn { display: block; }
  .mobile-nav { display: block; }
  body { padding-bottom: 86px; }
  .back-top { bottom: 82px; }
  .page-wrap { margin: 10px auto; padding: 0 10px; }
  .sponsor-strip {
    gap: 8px;
    padding: 10px;
  }
  .sponsor-strip-list {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sponsor-card-media {
    aspect-ratio: 2.2 / 1;
    max-height: 112px;
  }
  .sponsor-card-title {
    height: 23px;
    padding: 0 6px;
    font-size: 12px;
  }
  .sponsor-card-placeholder > img {
    width: 34px;
    height: 34px;
  }
  .sponsor-chip {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 6px;
    border-width: 1px;
    font-size: 13px;
  }
  .search-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: auto;
    margin: 16px 0 18px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    white-space: nowrap;
  }
  .search-mobile-brand strong {
    color: var(--primary);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #ff6b35 10%, #ff3d5a 58%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 8px 20px rgba(255, 107, 53, .16);
  }
  .search-mobile-brand::after {
    content: "";
    width: 58px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0), var(--primary), rgba(255, 107, 53, 0));
  }
  .search-mobile-brand span {
    font-size: 13px;
    font-weight: 800;
    color: #7b8088;
    letter-spacing: .5px;
  }
  .search-page-search {
    border-radius: 12px;
  }
  .search-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .search-request-cta {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f1f3;
  }
  .search-request-cta a {
    min-height: 32px;
    padding: 0 12px;
  }
  .search-section-head {
    margin-bottom: 8px;
  }
  .search-section-head h2 {
    font-size: 15px;
  }
  .search-request-results {
    margin-bottom: 12px;
  }
  /* logo 只显示图标，隐藏文字 */
  .logo { font-size: 0; gap: 0; }
  .logo-icon { width: 32px; height: 32px; }
  /* 移动端：picture 切换的小图按方形显示 */
  .logo picture img { height: 36px; width: 36px; }
}

@media (max-width: 520px) {
  .header-inner { height: 50px; }
  .account-name { max-width: 74px; }
  .user-name-btn { padding-right: 8px; }
  .account-dropdown {
    min-width: 132px;
    padding: 7px;
  }
  .account-dropdown a {
    gap: 8px;
    min-height: 34px;
    padding: 0 8px;
  }
  .post-item { padding: 12px 14px; }
  .auth-card { padding: 28px 20px; }
  .detail-title { font-size: 17px; }
  .request-detail h1 { font-size: 17px; }
  .detail-stats { flex-wrap: wrap; gap: 10px; }
  /* .preview-grid 已经默认单列；.preview-grid-portrait 瀑布流默认两列 */
}

/* ── 相关推荐 ───────────────────────────────────────────── */
.related-section {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.related-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.related-header i { color: var(--primary); margin-right: 6px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-item {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .15s;
}
.related-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.related-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #f5f0ee;
  overflow: hidden;
  position: relative;
}
.related-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-cover.no-img::after {
  content: "\f03e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  color: #ccc;
}
@media (max-width: 850px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-name {
  font-size: 12.5px;
  color: var(--text);
  padding: 7px 8px 4px;
  line-height: 1.4;
  height: calc(1.4em * 2 + 9px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  padding: 0 8px 8px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 40px 0 32px;
  box-shadow: 0 -1px 0 var(--border);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-col p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  margin: 0;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 28px 0 90px; }
}

/* ===== HELP PAGE ===== */
.help-content { width: 100%; }
.help-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 16px;
}
.help-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.help-section h2 i { margin-right: 8px; color: var(--primary); }
.help-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.help-steps, .help-list {
  padding-left: 20px;
  margin: 0;
}
.help-steps li, .help-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 8px;
}
.help-steps li::marker { color: var(--primary); font-weight: 700; }
.help-list { list-style: disc; }
.help-list li::marker { color: var(--primary); }
.help-tip {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.help-tip i { color: var(--primary); margin-right: 6px; }
.help-domains {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.help-domains-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.help-domains-label i { margin-right: 4px; }
.help-domains-list { display: flex; flex-wrap: wrap; gap: 8px; }
.help-domains-list a {
  font-size: 13px;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  transition: all 0.15s;
}
.help-domains-list a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.help-section-warning { border-left: 4px solid #faad14; }
.help-section-warning h2 { border-bottom-color: #faad14; }
.help-section-warning h2 i { color: #faad14; }
@media (max-width: 768px) {
  .help-section { padding: 20px 16px; }
}

/* ===== DASHBOARD PAGE ===== */
.dash-wrap { width: 100%; }

/* Summary cards */
.dash-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-sum-card {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.dash-sum-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--primary);
}
.dash-sum-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.dash-sum-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Stat sections */
.dash-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.dash-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.dash-section-title i {
  color: var(--primary);
  margin-right: 6px;
}

/* Data table */
.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.dash-table th {
  text-align: left;
  padding: 8px 14px;
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dash-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: var(--primary-light); }
.dash-date {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Ops placeholder */
.dash-ops-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}
.dash-ops-placeholder p {
  font-size: 14px;
  margin: 0;
}

/* Op cards */
.op-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fafafa;
}
.op-card + .op-card { margin-top: 14px; }
.op-card-danger {
  border-color: #ffd4d4;
  background: #fffafa;
}
.op-title { font-weight: 600; font-size: 15px; margin-bottom: 8px; color: #333; }
.op-desc {
  font-size: 12px; color: #666; line-height: 1.7;
  margin-bottom: 12px;
}
.op-desc code {
  background: #eee; padding: 1px 5px; border-radius: 3px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
}
.op-form {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.op-form-stack {
  flex-direction: column;
}
.op-textarea {
  width: 100%;
  min-height: 160px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff;
}
.op-textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}
.op-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.op-form input[type="number"] { width: 130px; }
.op-form input[type="text"]   { flex: 1; min-width: 200px; }
.op-form input {
  padding: 6px 10px; font-size: 13px;
  border: 1px solid #ddd; border-radius: 4px; outline: none;
}
.op-form input:focus { border-color: var(--primary); }
.op-btn-primary {
  padding: 6px 16px; font-size: 13px; background: var(--primary);
  color: #fff; border: none; border-radius: 4px; cursor: pointer;
}
.op-btn-primary:hover { opacity: 0.85; }
.op-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.op-btn-danger {
  padding: 7px 18px;
  border: none;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.op-btn-danger:hover { opacity: .88; }
.op-btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.op-result {
  min-height: 20px;
  color: #666;
  font-size: 12px;
  line-height: 1.6;
}
.op-result.success { color: #16803b; }
.op-result.error { color: #dc2626; }

.op-pending-title { font-size: 13px; color: #999; margin-bottom: 6px; }
.op-list { font-size: 13px; }
.op-list-empty { color: #bbb; padding: 6px 0; }
.op-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: #fff; border: 1px solid #eee;
  border-radius: 4px; margin-bottom: 6px;
}
.op-item-info { flex: 1; }
.op-item-kw { font-weight: 600; color: #333; }
.op-item-meta { font-size: 11px; color: #999; margin-top: 2px; }
.op-item-del {
  padding: 4px 10px; font-size: 12px;
  background: #fff; color: #e74c8b; border: 1px solid #e74c8b;
  border-radius: 4px; cursor: pointer;
}
.op-item-del:hover { background: #e74c8b; color: #fff; }

@media (max-width: 768px) {
  .dash-sum-card { flex: 1 1 140px; padding: 12px 14px; }
  .dash-sum-val { font-size: 18px; }
  .dash-section { padding: 16px 14px; }
}

/* Dashboard range query form */
.dash-range-form {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.dash-range-input {
  width: 64px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: var(--text);
  background: var(--bg);
  outline: none;
  margin: 0 4px;
}
.dash-range-input:focus { border-color: var(--primary); background: var(--white); }
.dash-range-btn {
  padding: 6px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.dash-range-btn:hover { background: var(--primary-hover); }

/* 宽屏显示 4 张封面图 */
@media (min-width: 1200px) {
  .post-images { grid-template-columns: repeat(4, 1fr); }
  .post-images .post-img-wrap:nth-child(4) { display: block; }
}

/* ===== DETAIL AD BLOCK ===== */
.rsrc-partner-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff8f0;
  border: 1px solid #ffd6b0;
  border-radius: 8px;
  font-size: 13px;
}
.rsrc-notice-text {
  color: #c0392b;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.rsrc-notice-text i { margin-right: 4px; }
.rsrc-partner-name {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  background: #fff0e8;
  border: 1px solid #ffcaa8;
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 2px;
  vertical-align: baseline;
  letter-spacing: 0.5px;
}
.rsrc-partner-name:hover {
  background: var(--primary);
  color: #fff;
}
.rsrc-action-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.rsrc-action-btn:hover { background: var(--primary-hover); color: #fff; }

/* 信息下载（金色变体）：跟 partner-bar 同结构，换成金/财富色 */
.rsrc-bundle-bar {
  background: linear-gradient(135deg, #fff8db 0%, #fff2c2 100%);
  border-color: #e6c769;
}
.rsrc-bundle-bar .rsrc-notice-text {
  color: #8a6912;
}
.rsrc-bundle-bar .rsrc-notice-text i {
  color: #d4a017;
}
.rsrc-bundle-bar .rsrc-action-btn {
  background: linear-gradient(135deg, #f5b400 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 1px 3px rgba(212, 160, 23, 0.35);
}
.rsrc-bundle-bar .rsrc-action-btn:hover {
  background: linear-gradient(135deg, #e6a200 0%, #d97706 100%);
  color: #fff;
}

/* ===== WELCOME MODAL ===== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.welcome-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.welcome-close:hover { background: var(--border); color: var(--text); }

.welcome-header {
  text-align: center;
  margin-bottom: 22px;
}
.welcome-logo {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}
.welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.welcome-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.welcome-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.welcome-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.welcome-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  margin-top: 1px;
}
.welcome-features strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.welcome-features p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.welcome-domains {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.welcome-domains-label {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.welcome-domains-label i { margin-right: 5px; }
.welcome-domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.welcome-domains-list a {
  font-size: 12.5px;
  color: var(--primary);
  background: var(--white);
  border: 1px solid rgba(255,107,53,0.25);
  border-radius: 6px;
  padding: 3px 10px;
  transition: all 0.15s;
  text-decoration: none;
}
.welcome-domains-list a:hover { background: var(--primary); color: #fff; }

.welcome-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.welcome-btn:hover { background: var(--primary-hover); }

/* ===== RELEASE PAGE ===== */
.release-page-body {
  min-height: 100vh;
  margin: 0;
  background: #f2f4f8;
  color: var(--text);
}
.release-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
}
.release-card {
  width: min(860px, 100%);
  padding: 32px;
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(42, 48, 64, .08);
}
.release-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.release-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.release-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.release-brand strong,
.release-brand span {
  display: block;
  line-height: 1.25;
}
.release-brand strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}
.release-brand span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}
.release-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #ffd0be;
  border-radius: 999px;
  background: #fff5f0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.release-bookmark-btn em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}
.release-kicker {
  margin: 26px 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}
.release-card h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}
.release-card h1 span {
  color: var(--primary);
}
.release-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}
.release-recommend-card {
  margin: 24px 0 22px;
  padding: 20px;
  border: 1px solid #ffd0be;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6f1 0%, #fff 100%);
}
.release-recommend-card span {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.release-recommend-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.release-recommend-card p {
  margin: 8px 0 16px;
  color: var(--text-muted);
  line-height: 1.55;
}
.release-reco-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.release-reco-visit.disabled {
  pointer-events: none;
  background: #cfd6e3;
}
.release-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.release-section-head h2,
.release-tips h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}
.release-section-head div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}
.release-section-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-weight: 900;
  cursor: pointer;
}
.release-section-head button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.release-line-list {
  display: grid;
  gap: 10px;
}
.release-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #fff;
}
.release-line-item.fastest {
  border-color: #ff6b35;
  background: #fff8f4;
  box-shadow: 0 10px 24px rgba(255, 107, 53, .12);
}
.release-line-meta {
  min-width: 0;
}
.release-line-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
}
.release-line-meta a {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-line-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}
.release-line-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f5f9;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
}
.release-line-status.ok {
  background: #eaf8ef;
  color: #159947;
}
.release-line-status.slow {
  background: #fff5e4;
  color: #b77900;
}
.release-line-visit,
.release-line-copy,
.release-save-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.release-line-visit {
  border: 1px solid #ffd0be;
  background: #fff5f0;
  color: var(--primary);
}
.release-line-copy,
.release-save-box button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}
.release-save-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 22px;
  padding: 14px 18px;
  border: 1px solid #ffd3c2;
  border-radius: 12px;
  background: #fff8f4;
  text-align: left;
}
.release-save-box i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}
.release-save-box div {
  flex: 1;
  min-width: 0;
}
.release-save-box span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.release-save-box strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}
.release-tips {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e7ebf2;
}
.release-tips ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.release-tips li::marker {
  color: var(--primary);
}
.footer-domain-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff3ed;
  color: var(--primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  vertical-align: 1px;
}

@media (max-width: 480px) {
  .welcome-card { padding: 24px 18px 18px; }
  .welcome-logo { font-size: 36px; }
  .welcome-title { font-size: 18px; }
}

@media (max-width: 560px) {
  .release-page {
    padding: 18px 12px;
  }
  .release-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .release-topbar,
  .release-section-head,
  .release-line-item,
  .release-save-box {
    align-items: stretch;
    flex-direction: column;
  }
  .release-bookmark-btn {
    justify-content: center;
    width: 100%;
  }
  .release-card h1 {
    font-size: 28px;
  }
  .release-subtitle {
    font-size: 14px;
  }
  .release-recommend-card {
    padding: 16px;
  }
  .release-recommend-card strong {
    font-size: 20px;
  }
  .release-section-head div,
  .release-line-actions {
    justify-content: space-between;
    width: 100%;
  }
  .release-line-status,
  .release-line-visit,
  .release-line-copy {
    flex: 1;
  }
  .release-line-meta a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .release-save-box {
    padding: 14px;
  }
  .release-save-box button {
    width: 100%;
  }
}

/* 管理员操作按钮 */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
  transition: opacity .2s;
  padding: 0;
}
.admin-btn:hover { opacity: 1; }
.admin-btn-edit         { background: #e8f4fd; color: #409eff; }
.admin-btn-del          { background: #fef0f0; color: #f56c6c; }
.admin-btn-featured     { background: #f5f5f5; color: #aaa; }
.admin-btn-featured-on  { background: #fff7e6; color: #f5a623; }
.admin-btn-time         { background: #eaf5ec; color: #67c23a; }

/* ===== Resource Requests ===== */
.request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.request-head h1,
.request-form-card h1,
.request-detail h1 {
  margin: 0;
  color: var(--text);
}
.request-head h1 { font-size: 22px; }
.request-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.sponsor-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff8f5;
  color: var(--text-muted);
  font-size: 14px;
}
.sponsor-contact-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.sponsor-contact-head i {
  color: var(--primary);
}
.sponsor-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}
.sponsor-contact-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.sponsor-app-mark {
  --app-color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--app-color);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.sponsor-app-yuni {
  --app-color: #367cff;
  background: transparent url('/web/static/yuni-icon.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
}
.sponsor-app-huoyu {
  --app-color: #ff5b34;
}
.sponsor-contact-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.sponsor-contact-row strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}
.sponsor-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 46px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 101, 54, 0.25);
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.sponsor-contact-note,
.sponsor-contact-empty {
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sponsor-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sponsor-contact-actions a {
  --download-color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--download-color) 34%, #fff);
  border-radius: 8px;
  background: color-mix(in srgb, var(--download-color) 8%, #fff);
  color: var(--download-color);
  font-weight: 800;
  text-decoration: none;
}
.sponsor-contact-actions a .sponsor-app-mark {
  width: 19px;
  height: 19px;
  box-shadow: none;
}
.sponsor-contact-actions a .sponsor-app-yuni {
  width: 22px;
  background: transparent url('/web/static/yuni-icon.png') center / contain no-repeat;
}
.sponsor-download-yuni {
  --download-color: #367cff;
}
.sponsor-download-huoyu {
  --download-color: #ff5b34;
}
.sponsor-image-masonry {
  column-count: 2;
  column-gap: 12px;
  margin-top: 16px;
}
.sponsor-image-item {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  break-inside: avoid;
  cursor: pointer;
}
.sponsor-image-item img {
  display: block;
  width: 100%;
  height: auto;
}
.sponsor-mine-list {
  gap: 10px;
}
.sponsor-mine-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.sponsor-mine-card .request-card-main {
  min-width: 0;
}
.sponsor-mine-main-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.sponsor-mine-chip {
  flex: 0 0 160px;
  width: 160px;
  height: 38px;
  font-size: 15px;
}
.sponsor-mine-info {
  min-width: 0;
}
.sponsor-mine-info .profile-request-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sponsor-mine-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.sponsor-mine-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e1e5ec;
  border-radius: 8px;
  background: #fafbfc;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .18s, color .18s, background .18s;
}
.sponsor-mine-edit:hover {
  border-color: var(--primary);
  background: #fff5f3;
  color: var(--primary);
}
.home-resource-head {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.home-resource-head > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.home-resource-head h1 {
  position: relative;
  flex-shrink: 0;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}
.home-resource-head h1::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 107, 53, 0));
}
.home-resource-head p {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.home-resource-head p strong {
  color: var(--primary);
  font-weight: 900;
}
.home-resource-sep {
  color: #b4bac3;
  font-weight: 800;
  margin-right: 2px;
}
.request-new-btn,
.request-submit-btn,
.request-admin-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.request-new-btn:hover,
.request-submit-btn:hover,
.request-admin-form button:hover { opacity: .9; }
.request-submit-btn:disabled,
.request-submit-btn.is-submitting {
  opacity: .68;
  cursor: not-allowed;
}
.request-new-btn {
  padding: 8px 12px;
  font-size: 13px;
}
.request-new-vip-btn {
  background: linear-gradient(135deg, #ff6b35, #f59e0b);
}
.request-filter {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
}
.request-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.request-filter-row + .request-filter-row { margin-top: 10px; }
.request-filter-row-sub { border-top: 1px solid var(--border); padding-top: 10px; }
.request-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.request-chip.active,
.request-chip:hover {
  background: var(--primary);
  color: #fff;
}
.request-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.request-card,
.request-detail,
.request-form-card,
.request-admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.request-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}
.request-card-main {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  color: inherit;
}
.request-list-admin-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 86px;
  margin: 0;
  padding: 14px 14px 14px 0;
}
.request-list-admin-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 72px;
  height: 34px;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  background: #fff7f6;
  color: #cf1322;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all .16s ease;
}
.request-list-admin-actions button:hover {
  border-color: #ff7875;
  background: #fff1f0;
  color: #b00014;
}
.request-title-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.request-card h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  min-width: 0;
  flex: 1;
}
.request-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.request-card-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: 116px;
  margin: 10px 0;
  max-width: 520px;
}
.request-card-image {
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.request-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.request-image-placeholder {
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
}
.request-card-top,
.request-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.request-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.request-status { background: #f0f0f0; color: #888; }
.request-status.status-open { background: #fff2e8; color: #fa541c; }
.request-status.status-resolved { background: #e8f8ef; color: #0c8f52; }
.request-status.status-not_found { background: #fff1f0; color: #cf1322; }
.request-status.status-duplicate { background: #f3f0ff; color: #722ed1; }
.request-status.status-closed { background: #f5f5f5; color: #999; }
.request-status.status-offline { background: #eef1f5; color: #687386; }
.request-status-inline {
  height: 26px;
  margin-top: 0;
  border-radius: 999px;
  padding: 0 9px;
}
.request-meta {
  color: var(--text-muted);
  font-size: 12px;
}
.request-list-meta {
  gap: 6px;
  margin-top: 2px;
  width: 100%;
}
.request-list-meta .meta-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 26px;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f5f6f8;
  color: #7a818c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}
.request-list-meta .meta-item i {
  width: 13px;
  flex: 0 0 13px;
  color: #9aa1ab;
  font-size: 12px;
  text-align: center;
}
.request-list-meta .meta-text {
  max-width: min(42%, 190px);
}
.request-list-meta .meta-text span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-list-meta .meta-stat {
  min-width: 44px;
  justify-content: center;
  padding: 0 7px;
  background: #f7f8fa;
}
.request-list-meta .meta-stat strong {
  color: #606873;
  font-size: 12px;
  font-weight: 800;
}
.request-list-meta .meta-hot i,
.request-list-meta .meta-hot strong {
  color: #ff6b35;
}
.request-list-meta .meta-time {
  margin-left: auto;
  padding: 0;
  background: transparent;
  color: #9aa1ab;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.request-detail-meta {
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}
.request-detail-meta .meta-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 30px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7f8fa;
  color: #727b87;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.request-detail-meta .meta-action-form {
  margin: 0;
}
.request-detail-meta .meta-action {
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.request-detail-meta button.meta-item {
  border: none;
  font-family: inherit;
}
.request-detail-meta .meta-action:hover,
.request-detail-meta .meta-action.active {
  background: #fff5f3;
  color: var(--primary);
}
.request-user-history-trigger {
  cursor: pointer;
}
.request-user-history-trigger:hover {
  background: #fff5f3;
  color: var(--primary);
}
.request-user-history-trigger:hover i {
  color: var(--primary);
}
.request-detail-meta .meta-action:hover i,
.request-detail-meta .meta-action:hover strong,
.request-detail-meta .meta-action.active i,
.request-detail-meta .meta-action.active strong {
  color: var(--primary);
}
.request-detail-meta .meta-item i {
  width: 14px;
  flex: 0 0 14px;
  color: #9aa1ab;
  font-size: 13px;
  text-align: center;
}
.request-detail-meta .meta-text {
  max-width: min(48%, 240px);
}
.request-detail-meta .meta-text span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-detail-meta .meta-stat {
  min-width: 50px;
  justify-content: center;
  padding: 0 9px;
}
.request-detail-meta .meta-stat strong {
  color: #5f6874;
  font-size: 12px;
  font-weight: 800;
}
.request-detail-meta .meta-hot i,
.request-detail-meta .meta-hot strong {
  color: #ff6b35;
}
.request-detail-meta .meta-time {
  margin-left: auto;
  background: transparent;
  color: #9aa1ab;
  padding: 0;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.request-user-history-open {
  overflow: hidden;
}
.request-user-history-modal[hidden] {
  display: none;
}
.request-user-history-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.request-user-history-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.request-user-history-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .24);
}
.request-user-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.request-user-history-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}
.request-user-history-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.request-user-history-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #f4f5f7;
  color: #7b8491;
  cursor: pointer;
}
.request-user-history-body {
  padding: 12px;
  overflow: auto;
}
.request-user-history-item {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background .16s ease;
}
.request-user-history-item + .request-user-history-item {
  border-top: 1px solid #f0f1f3;
}
.request-user-history-item:hover {
  background: #fff7f3;
}
.request-user-history-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}
.request-user-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.request-user-history-meta > span:not(.request-status) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.request-user-history-time {
  margin-left: auto;
}
.request-user-history-loading,
.request-user-history-empty {
  padding: 34px 16px;
  color: var(--text-muted);
  text-align: center;
}
.request-linked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  padding: 0 14px;
  background: #e8f8ef;
  color: #0c8f52;
  font-weight: 700;
  font-size: 13px;
}
.request-empty {
  text-align: center;
  padding: 50px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-muted);
}
.request-empty a { color: var(--primary); font-weight: 700; margin-top: 10px; display: inline-block; }
.request-form-card,
.request-detail,
.request-admin-card { padding: 20px; }
.request-form-card h1,
.request-admin-card h2 { font-size: 21px; margin: 0 0 16px; color: var(--text); }
.request-form-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -4px 0 16px;
  padding: 10px 12px;
  border: 1px solid #ffc6c6;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  background: #fff5f5;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}
.request-form-warning i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #ef4444;
}
.request-form-warning div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.request-form label,
.request-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.request-form input,
.request-form select,
.request-form textarea,
.request-admin-form input,
.request-admin-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}
.request-form select,
.request-admin-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #8f8f9d 50%),
    linear-gradient(135deg, #8f8f9d 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus,
.request-admin-form input:focus,
.request-admin-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
  outline: none;
}
.request-form small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}
.request-image-input {
  min-height: 46px;
  padding: 7px;
  color: var(--text-muted);
  cursor: pointer;
}
.request-image-input::file-selector-button {
  height: 32px;
  margin-right: 12px;
  padding: 0 13px;
  border: none;
  border-radius: 7px;
  background: #fff2e8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.request-image-input::-webkit-file-upload-button {
  height: 32px;
  margin-right: 12px;
  padding: 0 13px;
  border: none;
  border-radius: 7px;
  background: #fff2e8;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.request-image-input:hover::file-selector-button,
.request-image-input:hover::-webkit-file-upload-button {
  background: var(--primary);
  color: #fff;
}
.request-upload-preview {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.request-upload-preview.has-items {
  display: grid;
}
.request-upload-preview-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.request-upload-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.request-upload-preview-item span {
  display: block;
  padding: 7px 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.request-upload-preview-note {
  grid-column: 1 / -1;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #ad6800;
  font-size: 12px;
  font-weight: 600;
}
.request-existing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.request-existing-head small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}
.request-existing-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sponsor-cover-existing {
  grid-template-columns: minmax(0, 220px);
}
.sponsor-cover-remove {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.sponsor-cover-remove input {
  accent-color: var(--primary);
}
.sponsor-cover-editor {
  display: none;
}
.sponsor-cover-editor.has-image {
  display: block;
}
.sponsor-cover-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f4f6f8;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.sponsor-cover-frame:active {
  cursor: grabbing;
}
.sponsor-cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  pointer-events: none;
}
.sponsor-cover-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.sponsor-cover-editor.has-image .sponsor-cover-empty {
  display: none;
}
.sponsor-cover-zoom {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  margin-top: 10px;
  padding: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.sponsor-cover-zoom span {
  flex: 0 0 auto;
}
.sponsor-cover-zoom input {
  min-width: 0;
  flex: 1;
  accent-color: var(--primary);
}
.sponsor-cover-zoom strong {
  flex: 0 0 44px;
  color: var(--text);
  font-size: 12px;
  text-align: right;
}
.request-form .request-existing-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.request-form .request-existing-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.request-form .request-existing-image span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.request-form .request-existing-image input {
  width: auto;
  margin: 0;
}
.request-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}
.richtext-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.richtext-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: #f7f8fa;
}
.richtext-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.richtext-toolbar button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f3;
}
.richtext-editor {
  min-height: 220px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  outline: none;
  word-break: break-word;
}
.richtext-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}
.richtext-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}
.request-form-wide,
.request-form-actions { grid-column: 1 / -1; }
.request-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.request-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 700;
}
.request-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.request-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.request-detail-actions form { margin: 0; }
.request-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.request-edit-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f3;
}
.request-detail-actions .request-admin-delete-btn,
.request-detail-actions .request-admin-delete-btn:hover {
  border-color: #ffccc7;
  color: #cf1322;
  background: #fff1f0;
}
.request-detail h1 {
  margin: 10px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.request-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.request-vote-btn i { color: #ff6b35; font-size: 16px; }
.request-vote-btn strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}
.request-vote-btn.active {
  border-color: var(--primary);
  background: #fff5f3;
  color: var(--primary);
}
.request-keywords,
.request-image-grid,
.request-desc {
  margin-top: 16px;
}
.request-keywords {
  color: var(--text-muted);
  font-size: 13px;
}
.request-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  height: 220px;
}
.request-image-item {
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0;
  cursor: zoom-in;
}
.request-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.request-lightbox-open {
  overflow: hidden;
}
.request-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
}
.request-lightbox.open {
  display: flex;
}
.request-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}
.request-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.request-desc {
  padding: 16px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.request-desc-empty { color: var(--text-muted); }
.forum-richtext {
  white-space: normal;
}
.forum-richtext p,
.forum-richtext blockquote,
.forum-richtext ul,
.forum-richtext ol {
  margin: 0 0 12px;
}
.forum-richtext p:last-child,
.forum-richtext blockquote:last-child,
.forum-richtext ul:last-child,
.forum-richtext ol:last-child {
  margin-bottom: 0;
}
.forum-richtext ul,
.forum-richtext ol {
  padding-left: 22px;
}
.forum-richtext li + li {
  margin-top: 5px;
}
.forum-richtext blockquote {
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: #fff7f2;
  color: var(--text-secondary);
}
.forum-richtext a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.request-admin-card { margin-top: 12px; }
.request-admin-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: end;
}
.request-comments {
  margin-top: 12px;
  padding: 18px 20px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.request-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.request-comments-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}
.request-comments-head span {
  color: var(--text-muted);
  font-size: 13px;
}
.request-comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.request-comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.request-comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
  outline: none;
}
.request-comment-form button,
.request-accept-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.request-comment-login,
.request-comment-empty {
  padding: 11px 14px;
  border-radius: 8px;
  background: #f7f8fa;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.request-comment-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}
.request-comment-login a {
  color: var(--primary);
  font-weight: 700;
}
.request-comment-closed {
  border: 1px solid #ffd8c8;
  background: #fff8f4;
  color: var(--primary);
  font-weight: 800;
}
.request-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.request-comment {
  border: none;
  border-top: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.request-comment:first-child { border-top: none; }
.request-comment.accepted {
  background: transparent;
  box-shadow: none;
}
.request-comment.accepted .request-comment-body {
  padding-right: 118px;
}
.request-comment-body {
  position: relative;
  padding: 18px 0 18px 48px;
}
.request-comment-top,
.request-comment-actions,
.request-comment-user {
  display: flex;
  align-items: center;
}
.request-comment-top {
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}
.request-comment-user {
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.user-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.request-comment > .request-comment-body > .request-comment-top .user-avatar-badge {
  position: absolute;
  top: 18px;
  left: 0;
}
.user-avatar-badge-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.request-comment-user .user-avatar-badge {
  color: #fff;
}
.request-comment-user i {
  color: var(--text-muted);
  font-size: 17px;
}
.request-comment-user strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}
.request-comment-user span {
  color: var(--text-muted);
  font-size: 13px;
}
.request-accepted-badge {
  position: absolute;
  top: 18px;
  right: 2px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border: 2px solid rgba(17, 148, 84, .72);
  border-radius: 999px;
  background: rgba(236, 253, 243, .96);
  color: #0c8f52;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-10deg);
  box-shadow: 0 8px 18px rgba(17, 148, 84, .12);
  pointer-events: none;
}
.request-accepted-badge i {
  font-size: 14px;
}
.request-comment-content {
  margin-top: 9px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.request-comment-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.request-magnet-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 6px 0;
  padding: 8px 9px;
  border: 1px solid #ffd8c8;
  border-radius: 8px;
  background: #fff8f4;
}
.request-magnet-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475467;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.request-magnet-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.request-magnet-copy:hover {
  background: var(--primary);
  color: #fff;
}
.request-comment-actions {
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.request-comment-actions form {
  margin: 0;
}
.request-comment-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: auto;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #8a919f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.request-comment-like:hover,
.request-comment-like.active {
  color: var(--primary);
  background: transparent;
}
.request-comment-actions .request-admin-delete-btn,
.request-comment-actions .request-admin-delete-btn:hover {
  color: #cf1322;
  background: transparent;
}
.request-accept-btn {
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #18a058;
  font-size: 13px;
}
.forum-topic-pinned {
  box-shadow: inset 3px 0 0 #18a058, var(--shadow);
}
.forum-reply-form {
  display: none;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fa;
}
.forum-reply-form.open {
  display: flex;
}
.forum-reply-form textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
.forum-reply-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
  outline: none;
}
.forum-reply-form button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}
.forum-reply-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  border-radius: 0;
  background: transparent;
  border-left: 2px solid #e6e9ef;
}
.forum-reply-item {
  position: relative;
  margin-left: calc((var(--reply-depth, 1) - 1) * 18px);
  padding: 14px 0 14px 42px;
  border: none;
  border-top: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
}
.forum-reply-item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -18px;
  width: 13px;
  height: 1px;
  background: #e6e9ef;
}
.forum-reply-item .request-comment-top {
  min-height: 28px;
}
.forum-reply-item .request-comment-user .user-avatar-badge {
  position: absolute;
  top: 14px;
  left: 0;
}
.forum-reply-depth-2,
.forum-reply-depth-3 {
  background: transparent;
}

@media (max-width: 850px) {
  .request-head,
  .request-card,
  .request-detail-top {
    flex-direction: column;
    align-items: stretch;
  }
  .home-resource-head {
    flex-direction: row;
    align-items: center;
  }
  .home-resource-head > div {
    align-items: center;
    flex-wrap: nowrap;
  }
  .request-linked {
    min-height: 44px;
  }
  .request-form,
  .request-admin-form {
    grid-template-columns: 1fr;
  }
  .request-detail-actions {
    width: 100%;
    align-items: center;
    gap: 8px;
  }
  .request-detail-actions form {
    flex: 1;
    display: flex;
  }
  .request-edit-btn {
    flex: 1;
    height: 40px;
    padding: 0 12px;
  }
  .request-vote-btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    flex: 1;
    flex-direction: row;
    gap: 7px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
  }
  .request-vote-btn i {
    font-size: 16px;
  }
  .request-vote-btn strong {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    line-height: 1;
  }
  .request-title-row {
    align-items: flex-start;
  }
  .request-card-images {
    max-width: none;
  }
  .request-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .request-submit-btn,
  .request-cancel-btn {
    width: 100%;
  }
  .request-image-grid {
    height: 200px;
  }
  .request-upload-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sponsor-detail {
    position: relative;
  }
  .sponsor-detail .request-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }
  .sponsor-detail .request-detail-top > div:first-child {
    display: contents;
  }
  .sponsor-detail .request-card-top {
    grid-column: 1;
    grid-row: 1;
    min-height: 34px;
    padding-right: 0;
    display: flex;
    align-items: center;
  }
  .sponsor-detail .request-detail-top h1 {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .sponsor-detail .sponsor-chip {
    max-width: 100%;
    height: 34px;
  }
  .sponsor-detail .request-detail-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    align-self: start;
  }
  .sponsor-detail .request-edit-btn {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    padding: 0 12px;
  }
  .sponsor-contact-row {
    align-items: center;
    gap: 7px;
    padding: 8px;
  }
  .sponsor-copy-btn {
    min-width: 44px;
    height: 24px;
    padding: 0 7px;
  }
  .sponsor-image-masonry {
    column-gap: 8px;
  }
  .sponsor-image-item {
    margin-bottom: 8px;
    border-radius: 7px;
  }
  .request-existing-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-comments {
    padding: 16px;
  }
  .request-comment-body {
    padding: 16px 0 16px 42px;
  }
  .request-comment.accepted .request-comment-body {
    padding-right: 0;
  }
  .request-comment > .request-comment-body > .request-comment-top .user-avatar-badge {
    top: 16px;
  }
  .request-comment-top {
    align-items: center;
    flex-direction: row;
  }
  .request-comment-form button,
  .forum-reply-form button {
    width: 100%;
  }
  .request-comment-actions {
    align-items: center;
    flex-direction: row;
    gap: 7px;
  }
  .request-comment-actions form {
    flex: 0 0 auto;
  }
  .request-comment-like {
    height: auto;
    min-width: 0;
    padding: 0;
    font-size: 13px;
  }
  .request-comment.accepted .request-comment-content {
    padding-right: 88px;
  }
  .request-accepted-badge {
    top: 14px;
    right: 0;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    transform: rotate(-8deg);
  }
  .request-accepted-badge i {
    font-size: 13px;
  }
  .request-accept-btn {
    width: auto;
  }
  .forum-reply-list {
    padding: 0 0 0 14px;
    border-left-width: 2px;
  }
  .forum-reply-item {
    margin-left: calc((var(--reply-depth, 1) - 1) * 10px);
    padding: 12px 0 12px 38px;
  }
  .forum-reply-item::before {
    left: -14px;
    width: 10px;
  }
  .forum-reply-item .request-comment-user .user-avatar-badge {
    top: 12px;
  }
}

@media (max-width: 640px) {
  .request-head {
    padding: 14px 16px;
    gap: 12px;
  }
  .request-head h1 {
    font-size: 20px;
  }
  .request-head p {
    font-size: 12px;
  }
  .request-filter {
    padding: 10px;
    overflow-x: auto;
  }
  .request-filter-row {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .request-chip {
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .request-list {
    gap: 12px;
  }
  .request-card {
    border-radius: 16px;
    flex-direction: column;
  }
  .request-list-admin-actions {
    width: auto;
    justify-content: flex-end;
    padding: 0 16px 14px;
  }
  .request-list-admin-actions button {
    width: 66px;
    height: 30px;
    border-radius: 7px;
    font-size: 12px;
  }
  .sponsor-mine-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .request-card-main {
    padding: 14px 16px 13px;
  }
  .play-panel {
    padding: 12px;
  }
  .play-start-btn {
    width: 100%;
  }
  .play-select-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .play-select-card {
    max-height: 78vh;
    padding: 16px;
    border-radius: 14px;
  }
  .play-select-card .play-list {
    max-height: calc(78vh - 66px);
  }
  .vip-play-modal {
    align-items: flex-end;
    padding: 10px;
  }
  .vip-play-card {
    padding: 24px 18px 18px;
    border-radius: 16px;
  }
  .vip-play-actions {
    grid-template-columns: 1fr;
  }
  .play-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .play-lines {
    justify-content: flex-start;
  }
  .resource-player {
    max-height: 56vh;
  }
  .art-player-shell {
    min-height: 180px;
  }
  .sponsor-mine-card .request-card-main {
    padding: 0;
  }
  .sponsor-mine-main-row {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
  .sponsor-mine-chip {
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto;
    min-width: 104px;
    max-width: calc(100% - 112px);
    height: 30px;
    font-size: 13px;
  }
  .sponsor-mine-info .profile-request-title {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .sponsor-mine-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    justify-content: flex-end;
  }
  .sponsor-mine-edit {
    height: 32px;
    padding: 0 10px;
  }
  .request-title-row {
    flex-direction: column;
    gap: 8px;
  }
  .request-status {
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    margin-top: 0;
  }
  .request-card h2 {
    width: 100%;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .request-card-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    height: auto;
    max-width: none;
    margin: 12px 0 10px;
    overflow: hidden;
    padding: 0;
  }
  .request-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    height: auto;
  }
  .request-image-placeholder {
    display: none;
  }
  .request-card-image {
    min-width: 0;
    height: 106px;
    border-radius: 10px;
  }
  .request-image-item {
    height: 155px;
  }
  .request-card p {
    margin: 0 0 11px;
    font-size: 13px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
  }
  .request-meta {
    gap: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
  }
  .request-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
  }
  .request-list-meta {
    gap: 6px;
  }
  .request-resource-meta {
    flex-wrap: nowrap;
  }
  .request-resource-meta .meta-category,
  .request-resource-meta .meta-comments {
    display: none;
  }
  .request-list-meta .meta-item {
    height: 25px;
    gap: 5px;
    padding: 0 7px;
  }
  .request-list-meta .meta-text {
    max-width: calc(42% - 4px);
  }
  .request-list-meta .meta-stat {
    min-width: 42px;
  }
  .request-list-meta .meta-time {
    height: 22px;
  }
}

@media (max-width: 420px) {
  .request-detail-actions {
    gap: 7px;
  }
  .request-edit-btn,
  .request-vote-btn {
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
  .sponsor-detail .request-edit-btn {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
  }
  .request-vote-btn i {
    font-size: 15px;
  }
  .request-vote-btn strong {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
  }
  .request-card-main {
    padding: 13px 14px 12px;
  }
  .request-card h2 {
    font-size: 15px;
    -webkit-line-clamp: 3;
  }
  .request-card-image {
    min-width: 0;
  }
  .request-card p {
    font-size: 12px;
  }
  .request-meta {
    gap: 6px 8px;
  }
  .request-detail-meta {
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
  }
  .request-detail-meta .meta-item {
    height: 28px;
    padding: 0 8px;
  }
  .request-detail-meta .meta-text {
    max-width: calc(50% - 4px);
  }
  .request-detail-meta .meta-stat {
    min-width: 44px;
  }
  .request-detail-meta .meta-time {
    height: 24px;
  }
}

/* ===== VIP membership ===== */
.vip-hero,
.vip-order-card,
.vip-note {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.vip-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  margin-bottom: 18px;
}
.vip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}
.vip-hero h1,
.vip-order-card h1 {
  margin: 8px 0 8px;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1.25;
}
.vip-hero p,
.vip-order-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.vip-status-card {
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid #ffe1d3;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f3, #fff);
}
.vip-status-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.vip-status-card strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}
.vip-status-card.is-active {
  border-color: #b7ebc6;
  background: linear-gradient(135deg, #f0fff4, #fff);
}
.vip-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.vip-alert.success {
  color: #16803b;
  background: #effdf4;
  border: 1px solid #bbf7d0;
}
.vip-alert.error {
  color: #dc2626;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.vip-plan-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.vip-plan-card.is-recommended {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(255, 102, 0, .14);
}
.vip-plan-card.is-forever {
  background: linear-gradient(180deg, #fff, #fffaf3);
}
.vip-plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
}
.vip-plan-card.is-recommended .vip-plan-badge {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 102, 0, .22);
}
.vip-plan-top {
  display: block;
  min-height: 62px;
  padding-right: 0;
}
.vip-plan-top h2 {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.25;
}
.vip-plan-top p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.vip-price {
  margin-top: 2px;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.vip-price em {
  margin-right: 2px;
  color: var(--primary);
  font-size: 18px;
  font-style: normal;
}
.vip-plan-card ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
}
.vip-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.vip-plan-card li i {
  margin-top: 3px;
  color: #18a058;
  font-size: 12px;
}
.vip-plan-card button,
.vip-login-link,
.vip-pay-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.vip-plan-card button:hover,
.vip-login-link:hover,
.vip-pay-form button:hover {
  background: var(--primary-hover);
  color: #fff;
}
.vip-note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  margin-top: 18px;
  color: var(--text-secondary);
}
.vip-note i {
  margin-top: 3px;
  color: var(--primary);
}
.vip-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.vip-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}
.vip-order-card {
  padding: 30px;
}
.vip-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.vip-order-price {
  color: var(--primary);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.vip-order-price em {
  margin-right: 3px;
  font-size: 18px;
  font-style: normal;
}
.vip-order-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.vip-order-lines div {
  min-width: 0;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
}
.vip-order-lines span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.vip-order-lines strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 14px;
}
.vip-order-card .vip-alert {
  margin-bottom: 18px;
}
.vip-pay-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.vip-pay-form button {
  width: 180px;
}
.vip-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}
.vip-back-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pay-tip-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 34px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  text-align: center;
}
.pay-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eafaf0;
  color: #16a34a;
  font-size: 28px;
  margin-bottom: 16px;
}
.pay-tip-card h1 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 26px;
}
.pay-tip-card p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.pay-tip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.pay-tip-link:hover {
  color: #fff;
  background: var(--primary-hover);
}

@media (max-width: 760px) {
  .vip-hero,
  .vip-order-card {
    padding: 22px 18px;
    border-radius: 14px;
  }
  .vip-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .vip-hero h1,
  .vip-order-card h1 {
    font-size: 23px;
  }
  .vip-status-card {
    min-width: 0;
  }
  .vip-plan-grid,
  .vip-order-lines {
    grid-template-columns: 1fr;
  }
  .vip-plan-card {
    min-height: 0;
    padding: 20px 18px;
  }
  .vip-pay-form {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .vip-pay-form button,
  .vip-back-link {
    width: 100%;
  }
}
