/* ====== 全局样式 ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  color: var(--gray-800);
  line-height: 1.6;
}

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

/* ====== 顶部导航 ====== */
.navbar {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--gray-600);
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 14px;
  color: var(--gray-700);
}

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

/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

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

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

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

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

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

/* ====== 商标列表 ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.page-banner {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.page-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-banner p {
  font-size: 14px;
  opacity: 0.9;
}

.trademark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.trademark-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.trademark-img {
  width: 100%;
  height: auto;
  min-height: 120px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.trademark-img-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
  background: #fff;
}
.trademark-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gray-400);
  font-size: 14px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.trademark-img-placeholder span {
  padding: 8px 16px;
  background: rgba(255,255,255,0.8);
  border-radius: 20px;
  font-size: 13px;
}

.trademark-info {
  padding: 12px 16px;
}

.trademark-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trademark-category {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.trademark-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
}

.trademark-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.trademark-actions .btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 13px;
}
.trademark-detail-btn {
  width: 100%;
  margin-top: 8px;
}
.detail-bottom-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.detail-bottom-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--danger);
  margin-right: auto;
}
.detail-bottom-price .unit {
  font-size: 14px;
  font-weight: 400;
}
.detail-bottom-actions .btn {
  min-width: 140px;
}

/* ====== 弹窗/模态框 ====== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

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

.modal {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 24px 24px 0;
  text-align: center;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-100);
  margin: 20px 24px 0;
}

.modal-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 0 24px 24px;
}

/* ====== 顾问二维码弹窗 ====== */
.qr-modal {
  width: 380px;
  max-height: 90vh;
  overflow-y: auto;
}
.qr-modal .modal-header {
  padding: 20px 20px 0;
}
.qr-modal .modal-body {
  padding: 16px 20px;
}
.qr-modal .modal-footer {
  padding: 0 20px 20px;
}
.qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.qr-box img {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group .form-input {
  flex: 1;
}

.send-code-btn {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 13px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 110px;
}

.send-code-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.send-code-btn:disabled {
  color: var(--gray-400);
  cursor: not-allowed;
}

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

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ====== 微信二维码 ====== */
.wechat-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

.wechat-qr-box {
  width: 200px;
  height: 200px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.wechat-qr-box svg {
  width: 180px;
  height: 180px;
}

.wechat-qr-status {
  margin-top: 16px;
  text-align: center;
}

.wechat-qr-status .status-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.wechat-qr-status .status-text {
  font-size: 15px;
  color: var(--gray-600);
}

.wechat-qr-status .status-text.success {
  color: var(--success);
}

.wechat-qr-status .status-text.waiting {
  color: var(--primary);
}

/* 旋转加载动画 */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====== 分割线 ====== */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.divider span {
  padding: 0 12px;
}

/* ====== 微信登录按钮 ====== */
.wechat-login-btn {
  width: 100%;
  padding: 10px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.wechat-login-btn:hover {
  background: #06ad56;
}

.wechat-icon {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ====== Toast 提示 ====== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
  color: #fff;
}

.toast.error {
  background: var(--danger);
  color: #fff;
}

.toast.info {
  background: var(--primary);
  color: #fff;
}

/* ====== 后台管理页面 ====== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: var(--gray-900);
  color: #fff;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.admin-sidebar .logo {
  padding: 0 24px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-menu-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.admin-menu-item.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.2);
  border-left-color: var(--primary);
}

.admin-main {
  flex: 1;
  margin-left: 220px;
  padding: 24px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-title {
  font-size: 22px;
  font-weight: 700;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
}

/* 数据表格 */
.data-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.data-card-title {
  font-size: 16px;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.data-table tr:hover td {
  background: var(--gray-50);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #dcfce7; color: var(--success); }
.tag-orange { background: #fef3c7; color: var(--warning); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

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

.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  color: var(--gray-600);
}

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

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

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

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}

/* ====== 顶部信息栏 ====== */
.top-bar {
  background: #f8f9fa;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-500);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--gray-500); margin-left: 16px; }
.top-bar a:hover { color: var(--primary); }
.top-bar .phone { color: var(--danger); font-weight: 600; }

/* ====== 导航增强 ====== */
.nav-links a.active { color: var(--primary); font-weight: 600; }

/* ====== Hero Banner ====== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-card {
  border-radius: 12px;
  padding: 32px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.hero-card-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.hero-card-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.hero-card h2 { font-size: 22px; margin-bottom: 8px; }
.hero-card p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
.hero-card .hero-btn {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* ====== 服务图标网格 ====== */
.service-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.service-icon-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
}
.service-icon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-icon-card .icon { font-size: 36px; margin-bottom: 12px; }
.service-icon-card .title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.service-icon-card .desc { font-size: 12px; color: var(--gray-500); }

/* ====== 筛选栏 ====== */
.filter-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.filter-row:last-child { border-bottom: none; }
.filter-label {
  font-size: 14px;
  color: var(--gray-500);
  min-width: 80px;
  padding-top: 4px;
}
.filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-tag {
  padding: 4px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tag:hover { background: var(--gray-100); }
.filter-tag.active { background: var(--primary); color: #fff; }
.filter-tag .count { font-size: 11px; opacity: 0.7; margin-left: 2px; }

.filter-price-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-price-input input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 13px;
}

/* ====== 排序栏 ====== */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sort-bar .result-count { font-size: 14px; color: var(--gray-600); }
.sort-bar .result-count strong { color: var(--danger); }
.sort-options { display: flex; gap: 4px; }
.sort-option {
  padding: 4px 12px;
  font-size: 13px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  color: var(--gray-600);
}
.sort-option.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ====== 商标卡片增强 ====== */
.trademark-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.badge-available { background: #dcfce7; color: #16a34a; }
.badge-reserved { background: #fef3c7; color: #d97706; }
.badge-sold { background: #fee2e2; color: #dc2626; }
.trademark-card { position: relative; }
.trademark-card .fav-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
}
.trademark-card .fav-btn.active { color: #ef4444; }

/* ====== 商标详情页 ====== */
.detail-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
}
.detail-img-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-main-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 1;
}
.detail-main-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-product-section {
  margin: 32px 0;
}
.detail-product-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.detail-desc-section {
  margin: 32px 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
}
.detail-desc-section h3 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.detail-desc-content {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-700, #374151);
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.detail-product-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.detail-product-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}
.detail-product-item:hover img {
  transform: scale(1.05);
}
.detail-product-item:hover {
  box-shadow: var(--shadow-lg);
}

/* 产品图悬停放大灯箱 */
.product-zoom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.product-zoom-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.product-zoom-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-zoom-lightbox.active img {
  transform: scale(1);
}
.detail-info h1 { font-size: 24px; margin-bottom: 8px; }
.detail-price-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}
.detail-price-box .label { font-size: 13px; color: var(--gray-500); }
.detail-price-box .price { font-size: 32px; font-weight: 700; color: var(--danger); }
.detail-price-box .price .unit { font-size: 14px; font-weight: 400; }
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.detail-meta-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.detail-meta-item .label { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.detail-meta-item .value { font-size: 14px; font-weight: 500; }
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.detail-actions .btn { flex: 1; }
.detail-desc {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.detail-desc h3 { font-size: 16px; margin-bottom: 12px; }
.detail-desc p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* 相关推荐 */
.related-section { margin-top: 40px; }
.related-section h2 { font-size: 20px; margin-bottom: 16px; }

/* ====== 面包屑 ====== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--gray-300); }

/* ====== 页面标题 ====== */
.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ====== 搜索框 ====== */
.search-box {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 15px;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box button {
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  cursor: pointer;
}
.search-box button:hover { background: var(--primary-dark); }

/* ====== 用户中心 ====== */
.user-center-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  min-height: 600px;
}
.user-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 0;
  height: fit-content;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.user-menu-item:hover { background: var(--gray-50); color: var(--primary); }
.user-menu-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.user-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  min-height: 500px;
}
.user-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 20px;
}
.user-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

/* ====== 订单状态标签 ====== */
.status-tag { padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status-pending { background: #fef3c7; color: #d97706; }
.status-processing { background: #dbeafe; color: #2563eb; }
.status-completed { background: #dcfce7; color: #16a34a; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

/* ====== 服务页面 ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  cursor: pointer;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card .icon { font-size: 40px; margin-bottom: 12px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.service-card .price-hint { font-size: 13px; color: var(--danger); margin-top: 8px; font-weight: 500; }

/* ====== 表单弹窗 ====== */
.form-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.form-modal-overlay.active { display: flex; }
.form-modal {
  background: #fff;
  border-radius: 16px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.form-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-modal-header h3 { font-size: 18px; }
.form-modal-close {
  width: 32px; height: 32px;
  border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer;
  font-size: 18px; color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
}
.form-modal-close:hover { background: var(--gray-200); }
.form-modal-body { padding: 24px; }

/* ====== 空状态 ====== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state .text { font-size: 15px; }
.empty-state .action { margin-top: 16px; }

/* ====== 底部信息栏 ====== */
.site-footer {
  background: #1f2937;
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
  padding: 40px 0 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col .company-info { font-size: 13px; line-height: 2; }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ====== 浮动客服 ====== */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.wechat { background: #07c160; }
.float-btn.top { background: var(--gray-600); }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-icons { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .trademark-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .navbar-inner { padding: 0 12px; }
  .nav-links { gap: 12px; flex-wrap: wrap; }
  .nav-links a { font-size: 13px; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar .logo span, .admin-menu-item span { display: none; }
  .admin-main { margin-left: 60px; padding: 12px; }
  .user-center-layout { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: 4px; }
  .service-icons { grid-template-columns: 1fr 1fr; }
}


/* ====== 首页 Hero Banner ====== */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  padding: 70px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 35%);
  pointer-events: none;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
}
.hero h1 span {
  color: #fbbf24;
}
.hero .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}
.hero-search {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 680px;
  margin: 0 auto 36px;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero-search-select {
  border: none;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 50px 0 0 50px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
  min-width: 130px;
}
.hero-search input[type="text"] {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.hero-search button {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-search button:hover { background: #d97706; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat .label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ====== 通用 section 标题 ====== */
.section { padding: 50px 0; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-header .en-title {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 28px;
  color: var(--gray-900);
  margin-bottom: 10px;
  font-weight: 700;
}
.section-header h2 span { color: var(--primary); }
.section-header .desc {
  font-size: 14px;
  color: var(--gray-500);
}

/* ====== 知牛商标超市分类 ====== */
.all-cats-section {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.all-cats-header { margin-bottom: 24px; }
.all-cats-header h2 { font-size: 24px; color: var(--gray-900); }
.all-cats-header h2 span { color: var(--primary); }
.all-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.cat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cat-card-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.cat-card-name { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.cat-card-sub {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== 热门知产服务 ====== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  color: #fff;
}
.icon-circle.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.icon-circle.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.icon-circle.gold { background: linear-gradient(135deg, #fbbf24, #d97706); }
.icon-circle.green { background: linear-gradient(135deg, #4ade80, #16a34a); }
.service-card h3 { font-size: 17px; color: var(--gray-900); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ====== 优选商标转让 ====== */
.tm-section-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.tm-section-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}
.tm-section-tab:hover { color: var(--primary); border-color: var(--primary-light); }
.tm-section-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tm-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
.tm-cat-filter {
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  font-size: 12px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}
.tm-cat-filter:hover { color: var(--primary); border-color: var(--primary); }
.tm-more-link { text-align: center; margin-top: 24px; }
.tm-more-link a {
  display: inline-block;
  padding: 10px 28px;
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 24px;
  font-size: 14px;
  transition: all 0.2s;
}
.tm-more-link a:hover { background: var(--primary); color: #fff; }

/* ====== 为什么选择知牛网 ====== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.why-card h4 { font-size: 17px; color: var(--gray-900); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ====== 专业知产团队 ====== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.team-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--primary-light);
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card .name { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; }
.consult-btn {
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.consult-btn:hover { background: var(--primary-dark); }

/* ====== 响应式调整 ====== */
@media (max-width: 992px) {
  .all-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .hero-search-select { border-radius: 8px; width: 100%; }
  .hero-search input { width: 100%; }
  .hero-search button { border-radius: 8px; width: 100%; }
}
@media (max-width: 576px) {
  .all-cats-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
}
