/* ========================================
   基础样式重置
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ========================================
   导航栏
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}

/* 搜索框 */
.header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 100px;
  padding: 0 4px 0 16px;
  height: 42px;
}

.header-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--gray-900);
  outline: none;
}

.header-search input::placeholder {
  color: var(--gray-500);
}

.header-search button {
  width: 34px;
  height: 34px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-search button:hover {
  background: var(--gray-800);
}

.header-search button svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

/* 桌面导航 */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-desktop a:hover {
  background: var(--gray-100);
  color: var(--black);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* 移动端导航菜单 */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
}

.nav-mobile.active {
  display: flex;
}

.mobile-search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0 4px 0 12px;
  height: 44px;
  margin-bottom: 16px;
}

.mobile-search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  outline: none;
}

.mobile-search button {
  width: 36px;
  height: 36px;
  background: var(--black);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-search button svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.nav-mobile a {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--black);
}

/* ========================================
   Banner 区域
   ======================================== */
.banner {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 网格背景 */
.banner-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* 圆形装饰 */
.banner-circles {
  position: absolute;
  inset: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  animation: pulse 4s ease-in-out infinite 1s;
}

.circle-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.circle-3 {
  animation: pulse 4s ease-in-out infinite 2s, rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 线条装饰 */
.banner-lines {
  position: absolute;
  inset: 0;
}

.line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  height: 1px;
}

.line-1 {
  top: 30%;
  left: 0;
  right: 0;
  animation: lineSlide 8s ease-in-out infinite;
}

.line-2 {
  top: 50%;
  left: 0;
  right: 0;
  animation: lineSlide 8s ease-in-out infinite 2s;
}

.line-3 {
  top: 70%;
  left: 0;
  right: 0;
  animation: lineSlide 8s ease-in-out infinite 4s;
}

@keyframes lineSlide {
  0%, 100% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(0); opacity: 1; }
}

/* Banner 内容 */
.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.banner-title {
  margin-bottom: 24px;
}

.title-line {
  display: block;
  font-size: clamp(40px, 10vw, 80px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.title-outline {
  -webkit-text-stroke: 2px var(--white);
  -webkit-text-fill-color: transparent;
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.1)); }
  50% { filter: drop-shadow(0 0 40px rgba(255,255,255,0.3)); }
}

.banner-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-400);
  margin-bottom: 48px;
  line-height: 1.7;
}

.banner-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-unit {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--gray-700);
}

/* 滚动提示 */
.banner-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 12px;
  animation: bounce 2s ease-in-out infinite;
}

.banner-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   商家分类版块
   ======================================== */
.categories-section {
  padding: 80px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover .category-icon,
.category-card:hover h3,
.category-card:hover p,
.category-card:hover .category-count {
  color: var(--white);
}

.category-card:hover .category-icon {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.category-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: var(--transition);
}

.category-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
  transition: var(--transition);
}

.category-count {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 16px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.category-card:hover .category-count {
  background: rgba(255,255,255,0.15);
}

/* ========================================
   商家列表版块
   ======================================== */
.merchants-section {
  padding: 80px 24px;
  background: var(--gray-50);
}

.merchants-section .section-title {
  margin-bottom: 48px;
}

.merchants-section .merchants-grid {
  max-width: 1400px;
  margin: 0 auto;
}

.merchants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.merchant-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.merchant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.merchant-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.merchant-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.merchant-card:hover .merchant-card-image img {
  transform: scale(1.05);
}

.merchant-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
}

.merchant-card-content {
  padding: 20px;
}

.merchant-card-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merchant-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.merchant-card-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.merchant-card-info-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gray-400);
}

.merchant-card-info-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merchant-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.merchant-card-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.merchant-card-views svg {
  width: 16px;
  height: 16px;
}

.merchant-card-btn {
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.merchant-card-btn:hover {
  background: var(--gray-800);
}

/* 查看更多按钮 */
.view-more {
  text-align: center;
  margin-top: 48px;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-view-more:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

/* ========================================
   关于我们版块
   ======================================== */
.about-section {
  padding: 100px 24px;
  background: var(--white);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img-bg {
  position: absolute;
  inset: -20px;
  background: var(--gray-100);
  border-radius: 24px;
  z-index: -1;
}

.about-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--black);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 16px;
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 4px;
}

.about-content {
  padding: 20px 0;
}

.about-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.about-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--black);
}

.about-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--black);
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black);
}

.feature-text p {
  font-size: 14px;
  color: var(--gray-500);
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-explore:hover {
  background: var(--gray-800);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--black);
  padding: 40px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  text-align: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 12px;
  line-height: 1.7;
}

.footer-copyright {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========================================
   分类列表页样式
   ======================================== */
.page-header {
  padding: 120px 24px 60px;
  background: var(--black);
  text-align: center;
}

.page-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--gray-400);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: var(--gray-400);
}

/* 筛选标签 */
.filter-section {
  padding: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-container {
  max-width: 1400px;
  margin: 0 auto;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  transition: var(--transition);
}

.filter-tab:hover {
  background: var(--gray-200);
}

.filter-tab.active {
  background: var(--black);
  color: var(--white);
}

/* 列表区域 */
.list-section {
  padding: 48px 24px 80px;
  background: var(--gray-50);
  min-height: 60vh;
}

.list-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.pagination-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

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

.pagination-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: var(--gray-500);
}

/* ========================================
   商家详情页样式
   ======================================== */
.merchant-detail {
  padding-top: 70px;
  min-height: 100vh;
  background: var(--gray-50);
}

.detail-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px;
}

.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 16px;
}

.detail-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

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

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-300);
}

.detail-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

/* 详情内容区 */
.detail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.detail-main {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--gray-200);
}

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

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--black);
  border-radius: 2px;
}

.detail-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
}

/* 富文本内容样式 */
.detail-description.rich-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.detail-description.rich-content p {
  margin-bottom: 16px;
}

.detail-description.rich-content p:last-child {
  margin-bottom: 0;
}

.detail-description.rich-content h1,
.detail-description.rich-content h2,
.detail-description.rich-content h3,
.detail-description.rich-content h4,
.detail-description.rich-content h5,
.detail-description.rich-content h6 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--black);
}

.detail-description.rich-content h1 { font-size: 28px; }
.detail-description.rich-content h2 { font-size: 24px; }
.detail-description.rich-content h3 { font-size: 20px; }
.detail-description.rich-content h4 { font-size: 18px; }

.detail-description.rich-content ul,
.detail-description.rich-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.detail-description.rich-content li {
  margin-bottom: 8px;
}

.detail-description.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.detail-description.rich-content a {
  color: #27ae60;
  text-decoration: underline;
}

.detail-description.rich-content a:hover {
  color: #219a52;
}

.detail-description.rich-content blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--gray-100);
  border-left: 4px solid var(--gray-400);
  border-radius: 0 8px 8px 0;
}

.detail-description.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.detail-description.rich-content table th,
.detail-description.rich-content table td {
  padding: 12px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.detail-description.rich-content table th {
  background: var(--gray-100);
  font-weight: 600;
}

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

.detail-feature-tag {
  padding: 10px 20px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
}

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

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

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

/* 图片灯箱 */
.lightbox {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex !important;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 20px 25px;
  border-radius: 8px;
  z-index: 10001;
  transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  color: white;
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 15px 18px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 30px;
  }
}

/* 侧边栏 */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--black);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gray-700);
}

.contact-text {
  flex: 1;
}

.contact-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  color: var(--black);
  font-weight: 500;
}

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  margin-top: 20px;
  transition: var(--transition);
}

.btn-call:hover {
  background: var(--gray-800);
}

.btn-call svg {
  width: 18px;
  height: 18px;
}

/* 返回按钮 - 放在内容底部 */
.back-btn-wrapper {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--black);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.back-link:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 15px;
  color: var(--gray-500);
}

/* ========================================
   响应式设计
   ======================================== */
@media (min-width: 768px) {
  .header-search {
    max-width: 320px;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .about-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .detail-body {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 1024px) {
  .header-search {
    max-width: 400px;
  }
  
  .merchants-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .merchants-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .header-search {
    display: none;
  }
  
  .header-container {
    padding: 0 12px;
  }
  
  .banner {
    min-height: auto;
    padding: 100px 12px 60px;
  }
  
  .banner-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  
  .banner-scroll {
    display: none;
  }
  
  .categories-section {
    padding: 60px 12px;
  }
  
  .merchants-section {
    padding: 60px 12px;
  }
  
  .about-section {
    padding: 60px 12px;
  }
  
  .footer {
    padding: 30px 12px;
  }
  
  .footer-contact {
    font-size: 13px;
  }
  
  .nav-mobile {
    padding: 16px 12px 24px;
  }
  
  .page-header {
    padding: 100px 12px 40px;
  }
  
  .filter-section {
    padding: 16px 12px;
  }
  
  .list-section {
    padding: 32px 12px 60px;
  }
  
  .detail-hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .detail-hero-content {
    padding: 30px 0;
  }
  
  .detail-hero-inner {
    padding: 0 12px;
  }
  
  .detail-body {
    padding: 16px 0 60px;
  }
  
  .detail-main {
    padding: 16px 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .detail-section {
    padding: 0;
  }
  
  .detail-sidebar {
    padding: 0;
  }
  
  .sidebar-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    border-top: 1px solid #eee;
    padding: 20px 12px;
  }
  
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .detail-gallery img {
    border-radius: 8px;
  }
  
  .category-card {
    padding: 24px 16px;
  }
  
  .merchant-card-content {
    padding: 16px;
  }
}
