/* ============================================================
   韵达信息平台 - 深空暗色科技风皮肤 v2
   设计语言：暗夜玻璃拟态 + 紫罗兰/霓虹青渐变
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #7c5cff;
  --color-primary-dark: #6044e0;
  --color-primary-light: rgba(124, 92, 255, 0.14);
  --color-accent: #22d3ee;
  --color-accent-dark: #0ea8c4;
  --color-accent-light: rgba(34, 211, 238, 0.12);
  --color-success: #34d399;
  --color-danger: #fb7185;
  --color-warning: #fbbf24;
  --color-bg: #0b0f1a;
  --color-bg-raise: #111827;
  --color-surface: #151b2e;
  --color-surface-2: #1c2440;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-text: #e8ecf6;
  --color-text-secondary: #a7b0c4;
  --color-text-muted: #6b7488;
  --color-text-inverse: #0b0f1a;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 4px 24px rgba(124, 92, 255, 0.25);
  --glow-accent: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 4px 24px rgba(34, 211, 238, 0.2);
  --font-family: "HarmonyOS Sans SC", "MiSans", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --header-height: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --grad-brand: linear-gradient(120deg, #7c5cff, #22d3ee);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(900px 480px at 85% -10%, rgba(124, 92, 255, 0.13), transparent 65%),
    radial-gradient(700px 420px at -10% 30%, rgba(34, 211, 238, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: #7ddfeF2;
}

ul,
ol {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
}

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

::selection {
  background: rgba(124, 92, 255, 0.4);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  flex: 1 0 auto;
}

.page-main--narrow {
  max-width: 860px;
  margin: 0 auto;
}

.page-main--wide {
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 18, 33, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  -webkit-text-fill-color: var(--color-text-muted);
}

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

.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.main-nav a:hover {
  background: var(--color-primary-light);
  color: #c3b3ff;
}

.main-nav a.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.18));
  box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
}

.btn--primary:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 6px 22px rgba(124, 92, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.btn--accent {
  background: linear-gradient(120deg, #22d3ee, #4dd0b1);
  color: #062a30;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.28);
}

.btn--accent:hover:not(:disabled) {
  filter: brightness(1.1);
  color: #062a30;
  transform: translateY(-1px);
}

.btn--outline {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
}

.btn--outline:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: #c3b3ff;
}

.btn--ghost {
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 12px 28px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -20%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(700px 420px at 12% 110%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(160deg, #10162b 0%, #0d1226 55%, #0b0f1a 100%);
  border-bottom: 1px solid var(--color-border);
  color: #fff;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: 6%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.45);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #c9bcff;
  margin-bottom: 20px;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.2);
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #ffffff 30%, #a78bff 65%, #67e3f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 16px;
  color: rgba(232, 236, 246, 0.72);
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-search {
  display: flex;
  background: rgba(21, 27, 46, 0.9);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--glow-primary);
  max-width: 620px;
  overflow: hidden;
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  background: transparent;
  min-width: 0;
  color: var(--color-text);
}

.hero-search input:focus {
  outline: none;
}

.hero-search .btn {
  border-radius: var(--radius-md);
  padding: 11px 26px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat b {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #a78bff, #67e3f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat span {
  font-size: 13px;
  color: rgba(232, 236, 246, 0.55);
  margin-top: 2px;
}

/* ---------- Section ---------- */
.section {
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.section-block {
  background: rgba(21, 27, 46, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.section-title::before {
  content: "";
  width: 8px;
  height: 22px;
  border-radius: 4px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.6);
}

.section-link {
  font-size: 14px;
  color: var(--color-accent);
  font-weight: 500;
}

.section-link:hover {
  color: #7ddfef;
}

/* ---------- Info Card ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
  border-color: rgba(124, 92, 255, 0.45);
}

.info-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.info-card-title a {
  color: inherit;
}

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

.info-card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border-strong);
}

.info-card-meta .price {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 15px;
}

.info-card-meta .price--muted {
  background: none;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 13px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  flex-shrink: 0;
}

.badge--supply {
  background: var(--color-accent-light);
  color: #67e3f4;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.badge--demand {
  background: var(--color-primary-light);
  color: #b7a6ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

.badge--category {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.badge--info {
  background: var(--color-primary-light);
  color: #b7a6ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  background: var(--color-bg-raise);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.filter-bar input[type="search"],
.filter-bar .input-search {
  flex: 1;
  min-width: 200px;
}

.filter-bar select {
  min-width: 140px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: #c3b3ff;
}

.pagination button.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group .label-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--color-bg-raise);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--color-danger);
}

.field-error {
  font-size: 12px;
  color: var(--color-danger);
  min-height: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------- Alert / Toast ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.alert--success {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.alert--error,
.alert--danger {
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.alert--warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.alert--info {
  background: var(--color-primary-light);
  color: #b7a6ff;
  border: 1px solid rgba(124, 92, 255, 0.35);
}

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-primary);
  padding: 14px 18px;
  min-width: 240px;
  max-width: 360px;
  font-size: 14px;
  animation: toastIn 0.25s ease;
}

.toast--success {
  border-left-color: var(--color-success);
}

.toast--error {
  border-left-color: var(--color-danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-mask.show {
  display: flex;
}

.modal {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 28px;
  text-align: center;
  animation: modalIn 0.2s ease;
}

.modal-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.modal h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.modal p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.modal .btn {
  width: 100%;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.empty-state .empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

/* ---------- Auth pages ---------- */
.auth-card {
  background: rgba(21, 27, 46, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  max-width: 460px;
  margin: 0 auto;
}

.auth-head {
  text-align: center;
  margin-bottom: 26px;
}

.auth-head .auth-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-head h1 {
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.auth-head p {
  font-size: 13px;
  color: var(--color-text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-accent);
  font-weight: 600;
}

.auth-agreement {
  margin-top: 4px;
}

/* ---------- Detail page ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.detail-main,
.detail-side {
  background: rgba(21, 27, 46, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.detail-main {
  padding: 28px;
}

.detail-side {
  padding: 22px;
  align-self: start;
}

.detail-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.detail-head h1 {
  font-size: 22px;
  line-height: 1.5;
  margin: 12px 0 10px;
  color: var(--color-text);
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-meta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.detail-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #7c5cff, #22d3ee) 1;
}

.detail-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  white-space: pre-wrap;
}

.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.detail-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

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

.detail-fact .fact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.detail-fact .fact-value.price {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
}

.side-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
}

.publisher-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.publisher-info .publisher-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.contact-item .contact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7a6ff;
  flex-shrink: 0;
}

.contact-item .contact-label {
  color: var(--color-text-muted);
  font-size: 12px;
}

.contact-item .contact-value {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- About / static pages ---------- */
.static-content h2 {
  font-size: 18px;
  color: #b7a6ff;
  margin: 24px 0 12px;
}

.static-content h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--color-text);
}

.static-content p {
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}

.static-content ul {
  padding-left: 0;
}

.static-content ul li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 6px;
}

.static-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.contact-info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-info-card .contact-info-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.contact-info-card .contact-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Steps (首页发布流程) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.step-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
}

.step-item:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}

.step-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.step-item p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070a12;
  border-top: 1px solid var(--color-border);
  color: rgba(232, 236, 246, 0.65);
  padding: 40px 0 0;
  margin-top: auto;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-logo {
  background: var(--grad-brand);
  border: none;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 18px;
  -webkit-text-fill-color: #fff;
  background: none;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(232, 236, 246, 0.6);
  padding: 4px 0;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  color: rgba(232, 236, 246, 0.6);
}

.footer-contact-item b {
  color: #fff;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(232, 236, 246, 0.45);
}

.footer-bottom a {
  color: rgba(232, 236, 246, 0.6);
}

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

.footer-bottom .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ---------- User menu ---------- */
.user-menu {
  position: relative;
}

.user-menu .user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.user-menu .user-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.user-trigger .user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  padding: 6px;
  display: none;
  z-index: 50;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--color-primary-light);
  color: #c3b3ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero {
    padding: 44px 0 84px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-stats {
    gap: 24px;
  }

  .header-actions .btn--ghost {
    padding: 8px 10px;
  }

  .filter-bar input[type="search"],
  .filter-bar .input-search {
    min-width: 100%;
    flex-basis: 100%;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-name small {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-search {
    flex-direction: column;
    gap: 6px;
  }

  .hero-search .btn {
    width: 100%;
  }

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

  .section-block {
    padding: 18px;
  }

  .header-actions .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ============================================================
 * 会员体系样式（暗色适配）
 * ============================================================ */

/* ---------- 会员套餐网格 ---------- */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.vip-plan {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.vip-plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

.vip-plan--featured {
  border: 1px solid rgba(34, 211, 238, 0.6);
  box-shadow: var(--glow-accent);
}

.vip-plan-current {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.vip-plan-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vip-plan-name--normal   { color: var(--color-text-secondary); }
.vip-plan-name--platinum { color: #cbd5e1; }
.vip-plan-name--gold     { color: #fbbf24; }
.vip-plan-name--super    { color: #b7a6ff; }
.vip-plan-name--svip     { color: #e879f9; }

.vip-plan-price {
  font-size: 26px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.vip-plan-price small {
  font-size: 13px;
  font-weight: 400;
  -webkit-text-fill-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

.vip-plan-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.vip-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}

.vip-plan-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 5px 0;
}

.vip-feature-check {
  color: var(--color-success);
  font-weight: 700;
}

.vip-plan-footer .btn {
  width: 100%;
}

/* ---------- 会员状态卡片 ---------- */
.vip-status-card {
  background:
    radial-gradient(500px 200px at 90% -30%, rgba(34, 211, 238, 0.25), transparent 60%),
    linear-gradient(135deg, #3b2d8f 0%, #241b5e 55%, #1a1440 100%);
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: #fff;
}

.vip-status-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.vip-status-icon {
  font-size: 40px;
}

.vip-status-info {
  flex: 1;
  min-width: 220px;
}

.vip-status-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}

.vip-status-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.vip-status-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.vip-status-name {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-status-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.vip-tag {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
}

.vip-status-quota {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.vip-quota-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.vip-quota-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.vip-quota-value {
  font-size: 15px;
  font-weight: 600;
}

.vip-status-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.vip-status-card .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.vip-status-card .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 会员等级标签（头部导航） ---------- */
.vip-nav-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-primary-light);
  color: #b7a6ff;
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  transition: all var(--transition);
}

.vip-nav-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

.vip-nav-tag--gold     { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.4); }
.vip-nav-tag--platinum { background: rgba(203, 213, 225, 0.12); color: #cbd5e1; border-color: rgba(203, 213, 225, 0.35); }
.vip-nav-tag--super    { background: var(--color-primary-light); color: #b7a6ff; border-color: rgba(124, 92, 255, 0.4); }
.vip-nav-tag--svip     { background: rgba(232, 121, 249, 0.12); color: #f0abfc; border-color: rgba(232, 121, 249, 0.4); }

/* ---------- 详情页锁定提示 ---------- */
.detail-lock {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}

.detail-lock-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.detail-lock h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.detail-lock p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* ---------- 发布收费说明 ---------- */
.fee-note {
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.fee-note-title {
  font-weight: 700;
  color: #67e3f4;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fee-note-title::before {
  content: "¥";
  background: var(--grad-brand);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.fee-note p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.fee-note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fee-note-list li {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding: 3px 0;
}

.fee-note-list li b {
  color: var(--color-text);
}

/* ---------- 首页会员提示 ---------- */
.home-vip-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- 章节副标题 ---------- */
.section-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 会员体系响应式 ---------- */
@media (max-width: 1080px) {
  .vip-plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .vip-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vip-plans {
    grid-template-columns: 1fr;
  }
}
