/* ============================================================
   希鸥网创业大集 — 全局设计系统 v2
   专业级 UI 组件库，统一视觉语言
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Brand */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* Neutral */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  /* Semantic */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.06), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.07), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  /* Layout */
  --container-max: 1200px;
  --header-height: 64px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--brand-700);
}

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--neutral-900);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 1px 3px rgba(79,70,229,.25), 0 0 0 0 rgba(79,70,229,0);
}
.btn-primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,.35), 0 0 0 3px rgba(79,70,229,.1);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 1px 3px rgba(16,185,129,.25);
}
.btn-success:hover {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,.35), 0 0 0 3px rgba(16,185,129,.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 12px rgba(239,68,68,.35), 0 0 0 3px rgba(239,68,68,.1);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: #92400e;
}
.btn-warning:hover {
  background: #d97706;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--neutral-700);
  border-color: var(--neutral-300);
}
.btn-outline:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-400);
}

.btn-ghost {
  background: transparent;
  color: var(--neutral-500);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--neutral-100);
  color: var(--neutral-800);
}

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

.btn-md {
  padding: 10px 20px;
  font-size: 14px;
}

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

.btn-block {
  width: 100%;
}

/* ---- Navbar ---- */
.navbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-700);
  text-decoration: none;
  letter-spacing: -0.2px;
}
.navbar-brand:hover {
  color: var(--brand-800);
}

.navbar-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}
.navbar-links a:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}
.navbar-links a.active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 50%, var(--brand-500) 100%);
  color: #fff;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  position: relative;
}
.page-header .subtitle {
  font-size: 1rem;
  opacity: .85;
  font-weight: 400;
  position: relative;
}

/* ---- Card ---- */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
}
.card-body {
  padding: var(--space-lg);
}
.card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--neutral-100);
  font-weight: 700;
  font-size: 16px;
  color: var(--neutral-800);
}
.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ---- Badge / Tag ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-brand   { background: var(--brand-50); color: var(--brand-600); }
.badge-success { background: var(--success-bg); color: #065f46; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-danger  { background: var(--danger-bg); color: #991b1b; }
.badge-info    { background: var(--info-bg); color: #1d4ed8; }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-600); }
.badge-pill {
  padding: 4px 14px;
  font-size: 13px;
}

/* ---- Chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  color: var(--neutral-600);
  white-space: nowrap;
}

/* ---- Alert ---- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeSlideIn .3s ease;
}
.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid var(--danger-border);
}
.alert-success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid var(--success-border);
}
.alert-warning {
  background: var(--warning-bg);
  color: #92400e;
  border: 1px solid var(--warning-border);
}
.alert-info {
  background: var(--info-bg);
  color: #1d4ed8;
  border: 1px solid var(--info-border);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  animation: toastIn .3s ease, toastOut .3s ease 2.5s forwards;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--info); }

@keyframes toastIn  { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
}
.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
  display: block;
  line-height: 1;
}
.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--neutral-700);
}
.empty-state p {
  color: var(--neutral-500);
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  font-size: 14px;
}

/* ---- Post Card (list) ---- */
.post-card {
  display: flex;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-200);
}

.post-card-image {
  width: 170px;
  min-height: 140px;
  flex-shrink: 0;
  background: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--neutral-100);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-image .placeholder-icon {
  font-size: 38px;
  color: var(--neutral-300);
}

.post-card-content {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-card-body {
  flex: 1;
}

.field-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.field-label {
  font-weight: 600;
  color: var(--neutral-700);
  min-width: 58px;
  flex-shrink: 0;
}
.field-value {
  color: var(--neutral-600);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.post-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-time {
  color: var(--neutral-400);
}
.post-link {
  font-weight: 600;
  color: var(--brand-600);
  white-space: nowrap;
  font-size: 13px;
}
.post-link:hover {
  color: var(--brand-700);
}

/* ---- Main Layout ---- */
.main-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ---- Sidebar / Filter ---- */
.sidebar {
  width: 270px;
  flex-shrink: 0;
}

.filter-panel {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.filter-panel h3 {
  font-size: 15px;
  margin-bottom: var(--space-md);
  color: var(--neutral-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group {
  margin-bottom: var(--space-md);
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
  margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--neutral-50);
  color: var(--neutral-800);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-50);
  background: #fff;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.filter-actions .btn {
  width: 100%;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: var(--space-xl) 0 var(--space-md);
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-600);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-300);
}

.page-link.active {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}

.page-link.disabled {
  pointer-events: none;
  opacity: .4;
}

/* ---- Form ---- */
.form-card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400), #a78bfa);
}

.form-section-title {
  font-size: 17px;
  color: var(--neutral-800);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral-100);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group label .required-mark {
  color: var(--danger);
  margin-left: 2px;
}

.form-group label .optional-mark {
  font-size: 12px;
  color: var(--neutral-400);
  font-weight: 400;
  margin-left: 4px;
}

.form-hint {
  font-size: 12px;
  color: var(--neutral-400);
  margin-top: 5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--neutral-50);
  color: var(--neutral-800);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-50);
  background: #fff;
}

.form-control::placeholder {
  color: var(--neutral-400);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-bg);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---- Contact Grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--neutral-600);
}

.contact-item input {
  padding: 11px 14px;
}

/* ---- Verify Code Block ---- */
.verify-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--neutral-50);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-100);
}

.verify-input {
  flex: 1;
}

.verify-code-display {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 700;
  user-select: none;
  box-shadow: 0 4px 12px rgba(79,70,229,.25);
  white-space: nowrap;
}

/* ---- Image Upload ---- */
.upload-zone {
  border: 2px dashed var(--neutral-300);
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--neutral-50);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.upload-zone .upload-icon {
  font-size: 42px;
  color: var(--brand-500);
  margin-bottom: 10px;
  display: block;
  transition: transform var(--transition);
}

.upload-zone:hover .upload-icon {
  transform: translateY(-4px);
}

.upload-zone p {
  font-size: 14px;
  color: var(--neutral-600);
  margin-bottom: 4px;
}

.upload-zone small {
  font-size: 12px;
  color: var(--neutral-400);
}

.upload-preview {
  max-width: 220px;
  max-height: 220px;
  margin: 16px auto 0;
  display: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-200);
  object-fit: cover;
}

/* ---- Detail Page ---- */
.detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--neutral-100);
}

.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--neutral-50);
}

.detail-body {
  padding: var(--space-xl);
}

.detail-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--neutral-100);
}

.detail-section {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--neutral-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-500);
  transition: border-color var(--transition);
}

.detail-section:hover {
  border-left-color: var(--brand-600);
}

.detail-section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--neutral-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section p {
  color: var(--neutral-600);
  line-height: 1.8;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-contact {
  background: var(--brand-50);
  padding: var(--space-lg);
  border-radius: var(--radius);
  margin-top: var(--space-lg);
  border: 1px solid var(--brand-100);
}

.detail-contact h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.detail-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--neutral-100);
  align-items: center;
}

.contact-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
  transform: translateY(-1px);
}

.contact-card:active {
  transform: scale(.98);
}

.contact-card .contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.contact-card .contact-label {
  font-size: 12px;
  color: var(--neutral-500);
}

.contact-card .contact-value {
  font-size: 13px;
  color: var(--neutral-800);
  font-weight: 500;
  word-break: break-all;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--neutral-100);
  flex-wrap: wrap;
}

/* ---- Admin Page ---- */
.admin-layout {
  padding: var(--space-lg) 0;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.admin-header-bar h2 {
  font-size: 1.25rem;
}

.admin-stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.stat-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.stat-card .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--neutral-900);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 4px;
}

.status-tabs {
  display: flex;
  gap: 4px;
  background: var(--neutral-100);
  padding: 4px;
  border-radius: var(--radius);
}

.status-tabs a {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-600);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.status-tabs a:hover {
  color: var(--neutral-800);
}

.status-tabs a.active {
  background: #fff;
  color: var(--neutral-900);
  box-shadow: var(--shadow-xs);
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-100);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: var(--neutral-50);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--neutral-600);
  border-bottom: 1px solid var(--neutral-200);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr {
  transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
  background: var(--neutral-50);
}

.admin-table .col-content {
  max-width: 280px;
}

.admin-table .col-content-preview {
  margin-bottom: 4px;
  line-height: 1.5;
  font-size: 12px;
  color: var(--neutral-700);
}

.admin-table .col-content-preview strong {
  color: var(--neutral-900);
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-actions .btn {
  font-size: 12px;
  padding: 5px 12px;
}

/* ---- Status Indicators ---- */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
.status-pending  { color: var(--warning); }
.status-approved { color: var(--success); }
.status-rejected { color: var(--danger); }

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  max-width: 420px;
  width: 92%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn .25s ease;
}

@keyframes scaleIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

#qrcode-container {
  width: 190px;
  height: 190px;
  margin: 0 auto 18px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
}

.modal-url {
  font-size: 12px;
  color: var(--neutral-500);
  word-break: break-all;
  padding: 10px;
  background: var(--neutral-50);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.modal-tip {
  font-size: 12px;
  color: var(--neutral-400);
}

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--neutral-400);
  font-size: 13px;
  border-top: 1px solid var(--neutral-100);
  margin-top: var(--space-3xl);
}

.site-footer p {
  margin-bottom: 4px;
}

/* ---- Animations ---- */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-50) 50%, var(--neutral-100) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---- Utility ---- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--neutral-400); }
.text-sm      { font-size: 12px; }
.text-xs      { font-size: 11px; }
.font-bold    { font-weight: 700; }
.font-mono    { font-family: var(--font-mono); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.p-0    { padding: 0; }
.flex   { display: flex; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.w-full { width: 100%; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .filter-panel {
    position: static;
  }
  .post-card {
    flex-direction: column;
  }
  .post-card-image {
    width: 100%;
    height: 140px;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--neutral-100);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .verify-block {
    flex-direction: column;
    align-items: stretch;
  }
  .verify-code-display {
    text-align: center;
  }
  .admin-stats {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 56px;
  }
  .container {
    padding: 0 var(--space-md);
  }
  .navbar-inner {
    padding: 0 var(--space-md);
  }
  .navbar-brand {
    font-size: 15px;
  }
  .navbar-links a {
    padding: 6px 10px;
    font-size: 13px;
  }
  .page-header {
    padding: 26px var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
  }
  .page-header h1 {
    font-size: 1.4rem;
  }
  .page-header .subtitle {
    font-size: .85rem;
  }
  .form-card {
    padding: 24px var(--space-md);
    border-radius: var(--radius);
  }
  .post-card-content {
    padding: 14px;
  }
  .detail-body {
    padding: var(--space-lg);
  }
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions .btn {
    width: 100%;
  }
  .detail-contact-grid {
    grid-template-columns: 1fr;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .admin-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .status-tabs a {
    padding: 6px 14px;
    font-size: 12px;
  }
}
