/* ========================================
   辽宁无限穿越 - 二手商品信息发布平台
   全局样式表
   ======================================== */

/* CSS Variables */
:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.text-muted {
  color: var(--text-muted);
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.user-avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.user-avatar-wrap {
  position: relative;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar-wrap .avatar-change-tip {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.user-avatar-wrap:hover .avatar-change-tip {
  opacity: 1;
}

/* 用户下拉面板 */
.user-dropdown {
  position: relative;
}

.user-avatar-trigger {
  cursor: pointer;
}

.user-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1000;
  padding: 16px;
}

.user-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.user-panel-info {
  flex: 1;
  min-width: 0;
}

.user-panel-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.user-panel-name-input {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 2px 6px;
  width: 100%;
  max-width: 160px;
  outline: none;
  background: #fff;
}

.user-panel-phone {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-top: 4px;
  font-size: 11px;
}

.user-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.user-meta-label {
  color: var(--text-muted);
}

.user-meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.user-meta-value.user-level {
  color: var(--accent);
  font-weight: 600;
}

.user-edit-tag {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  padding: 0 4px;
  border: 1px solid var(--primary);
  border-radius: 3px;
  transition: all 0.2s;
  line-height: 1.4;
}

.user-edit-tag:hover {
  background: var(--primary);
  color: #fff;
}

.user-meta-select {
  font-size: 11px;
  padding: 1px 4px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

.user-meta-sep {
  color: var(--border);
  margin: 0 4px;
  font-size: 10px;
}

.user-panel-stats {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.user-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.user-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.user-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-panel-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.user-panel-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.user-panel-form .form-row {
  margin-bottom: 8px;
}

.user-panel-form .form-row label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.user-panel-form .form-row input,
.user-panel-form .form-row textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.2s;
}

.user-panel-form .form-row input:focus,
.user-panel-form .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.user-panel-footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.user-panel-footer .btn {
  flex: 1;
  justify-content: center;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-secondary {
  background: var(--text-muted);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-label .required {
  color: var(--danger);
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: var(--danger);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  cursor: pointer;
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 4px;
}

.form-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Image Upload */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.image-upload:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.image-upload svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.image-upload p {
  color: var(--text-secondary);
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 12px;
}

.card-price span {
  font-size: 14px;
  font-weight: 400;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========================================
   Badges & Tags
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-published {
  background: #D1FAE5;
  color: #065F46;
}

.badge-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-offline {
  background: #E2E8F0;
  color: #475569;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tag-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
}

.hero-search button {
  padding: 16px 32px;
}

/* ========================================
   Categories
   ======================================== */
.categories {
  padding: 64px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
}

.category-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-item svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.category-item span {
  font-weight: 500;
  color: var(--text-primary);
}

/* ========================================
   Product Grid
   ======================================== */
.products-section {
  padding: 64px 0;
  background: var(--bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: white;
}

.footer-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.auth-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail {
  padding: 40px 0;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.product-price-detail {
  font-size: 32px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 24px;
}

.product-meta-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.product-meta-detail span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.product-meta-detail svg {
  width: 20px;
  height: 20px;
}

.product-description {
  margin-bottom: 24px;
}

.product-description h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.product-description p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-seller {
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.contact-seller h4 {
  margin-bottom: 12px;
}

.contact-seller p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.contact-seller svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* ========================================
   Publish Page
   ======================================== */
.publish-page {
  padding: 40px 0;
}

.publish-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.publish-form h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.publish-form .subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ========================================
   My Publish Page
   ======================================== */
.my-publish {
  padding: 40px 0;
}

.my-publish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.my-publish-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.publish-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.publish-item-image {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.publish-item-info {
  flex: 1;
}

.publish-item-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.publish-item-info .price {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 8px;
}

.publish-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.reject-reason {
  background: #FEE2E2;
  color: #991B1B;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 8px;
  font-size: 14px;
}

/* ========================================
   Admin Page
   ======================================== */
.admin-page {
  padding: 40px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card h4 {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.review-list {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.review-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-right: 20px;
}

.review-item-info {
  flex: 1;
}

.review-item-info h4 {
  margin-bottom: 4px;
}

.review-item-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.review-item-actions {
  display: flex;
  gap: 8px;
}

.review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.review-modal.active {
  display: flex;
}

.review-modal-content {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
}

/* ========================================
   Filter & Search
   ======================================== */
.filter-bar {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row input,
.filter-row select {
  flex: 1;
  min-width: 200px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
  padding: 64px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ========================================
   404 Page
   ======================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-content h1 {
  font-size: 120px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.error-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.error-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ========================================
   Toast & Notifications
   ======================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

.toast-success {
  background: var(--success);
  color: white;
}

.toast-error {
  background: var(--danger);
  color: white;
}

.toast-warning {
  background: var(--warning);
  color: white;
}

.toast svg {
  width: 20px;
  height: 20px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   Modal
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 16px;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========================================
   Loading
   ======================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .product-detail-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .publish-item {
    flex-direction: column;
  }

  .publish-item-image {
    width: 100%;
    height: 200px;
  }

  .publish-item-actions {
    flex-direction: row;
  }

  .review-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-item-image {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .review-item-actions {
    width: 100%;
    flex-direction: row;
  }
}

/* Mobile Menu Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 1001;
  padding: 80px 24px 24px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mobile-nav .user-mobile {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ========================
   留言功能样式
   ======================== */
.message-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.message-section h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.message-form {
  margin-bottom: 24px;
}

.message-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.message-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.login-tip {
  padding: 20px;
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  text-align: center;
  color: #856404;
  margin-bottom: 24px;
}

.login-tip a {
  color: var(--primary);
  font-weight: 500;
}

.login-tip a:hover {
  text-decoration: underline;
}

.message-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 12px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-user {
  font-weight: 600;
  color: var(--primary);
}

.message-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.message-body {
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.empty-messages {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: 8px;
}

.contact-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================
   联系方式区域样式
   ======================== */
.contact-seller {
  position: relative;
}

.contact-info-block {
  position: relative;
  z-index: 1;
}

.phone-row {
  filter: blur(4px);
  user-select: none;
  transition: filter 0.3s ease;
}

.phone-row.no-blur {
  filter: none;
  user-select: auto;
}

.phone-login-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.phone-login-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.phone-login-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-login-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .phone-login-desc {
    font-size: 12px;
  }

  .phone-login-actions {
    gap: 8px;
  }

  .phone-login-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ========================================
   底部悬浮导航条（移动端）
   ======================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  gap: 2px;
  transition: color 0.2s;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item.active {
  color: var(--success);
}

.bottom-nav-item:active {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  body.has-bottom-nav {
    padding-bottom: 56px;
  }
}
