* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "微软雅黑", sans-serif;
}

:root {
  --gold: #fabe00;
  --primary-color: #FFB81C;
  --primary-dark: #FF9500;
  --primary-light: #FFC844;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --border-color: #EEEEEE;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}


/* ===================== 导航栏 ===================== */
.navbar {
  background: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--bg-secondary);
}

/* 汉堡菜单 */
.hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.3s;
}

.hamburger:hover {
  background: var(--bg-secondary);
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover span {
  background: var(--primary-color);
}

/* 侧边菜单 */
.sidebar-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.sidebar-menu.active {
  transform: translateX(0);
}

.sidebar-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
}

.menu-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 20px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.close-btn {
  font-size: 32px;
  cursor: pointer;
  color: var(--bg-primary);
  transition: transform 0.2s;
  padding: 4px 8px;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.menu-list {
  list-style: none;
  padding: 8px 0;
}

.menu-list li {
  border-bottom: 1px solid var(--border-color);
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-list a {
  display: block;
  padding: 16px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.menu-list a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 24px;
}

/* LOGO */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: transform 0.3s;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-logo i {
  font-size: 24px;
}

/* 语言选择器 */
.language-selector {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-primary);
  transition: color 0.3s;
  padding: 4px 8px;
}

.language-selector:hover {
  color: var(--primary-color);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  z-index: 500;
}

.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s;
}

.lang-item:last-child {
  border-bottom: none;
}

.lang-item:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  padding-left: 20px;
}

/* ===================== 业务菜单 ===================== */
.business-menu {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.menu-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
}

.tab {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.tab-title {
  font-size: 15px;
  font-weight: 600;
}

.tab-icon {
  color: var(--primary-color);
  transition: transform 0.3s;
}

.tab.active .tab-icon {
  transform: translateX(4px);
}

.tab-content {
  display: none;
  padding: 16px 12px;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.business-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.business-item:active {
  transform: scale(0.95);
}

.business-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--text-primary);
}

.business-icon {
  font-size: 32px;
  transition: transform 0.3s;
}

.business-item:hover .business-icon {
  transform: scale(1.1) rotateZ(-5deg);
}

.business-name {
  font-size: 12px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}

/* ===================== 主体内容 ===================== */
.car-detail-body {
  padding: 0 12px;
  padding-bottom: 20px;
}

.inventory-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px -12px 16px -12px;
  color: var(--bg-primary);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-md);
}

.back-to-home-btn {
  color: var(--bg-primary);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.back-to-home-btn:hover {
  transform: translateX(-3px);
}

.inventory-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex: 1;
  text-align: center;
}

.inventory-header i {
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s;
}

.inventory-header i:hover {
  transform: scale(1.15) rotateZ(10deg);
}

/* 汽车卡片容器 */
.car-cards-container {
  display: grid;
  grid-template-columns: 120px 1fr 400px;
  grid-template-areas: 
      "thumbs main info";
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

/* 左侧：缩略图列表 */
.car-gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
}

.gallery-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #f0f0f0;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 184, 28, 0.3);
}

/* 中间：大图 */
.car-gallery-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width:800px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.gallery-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 右侧：信息面板 */
.car-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
}
.car-title-section {
  margin-bottom: 8px;
}

.car-year-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.car-quick-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 6px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 0;
}

.info-item .label {
  color: var(--text-secondary);
  font-weight: 600;
}

.info-item .value {
  color: var(--text-primary);
  font-weight: 700;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-service {
  background: #f0f0f0;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-service:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 汽车详细卡片 */
.car-detail-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.car-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.car-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-detail-card:hover .car-image {
  transform: scale(1.08);
}

.car-detail-info {
  padding: 14px;
}

.car-detail-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.car-type {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.car-price {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 3px;
  font-weight: 700;
}

.car-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.book-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border: none;
  border-radius: 12px;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
}

.book-btn:hover {
  box-shadow: 0 6px 16px rgba(255, 176, 28, 0.35);
  transform: translateY(-2px);
}

.book-btn:active {
  transform: translateY(0);
}

/* 页码导航 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 22px 16px;
  background: var(--bg-primary);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.pagination span {
  font-size: 14px;
  color: var(--text-tertiary);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

.page-info {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 16px;
  cursor: default;
}

.prev, .next {
  font-size: 24px;
  color: #ddd;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}

.prev:hover, .next:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
  transform: scale(1.15);
}

/* 问题区域 */
.questions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.question-item {
  background: var(--bg-primary);
  padding: 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  border-left: 4px solid var(--border-color);
}

.question-item:hover {
  background: var(--bg-secondary);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-color);
}

.question-item h4 {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
  font-weight: 600;
}

.question-icon {
  font-size: 26px;
  margin-left: 12px;
  opacity: 0.5;
  transition: all 0.3s;
}

.question-item:hover .question-icon {
  opacity: 1;
  transform: scale(1.2) rotateZ(-10deg);
}

/* ===================== 页脚 ===================== */
/* Footer */
footer {
    width: 90%;
    align-items:center;
    justify-content: center;
    margin: 0 auto;
    background: #1a1a1a;
    color: white;
    padding: 40px 30px;
    /* margin-top: 40px; */
    border-top: 6px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.footer-grid li:hover {
    color: var(--gold);
    padding-left: 10px;
}

.qrcode-section {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.qrcode-image {
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    padding: 4px;
    background: white;
}

.telegram-text {
    font-size: 12px;
    color: #999;
    margin: 10px 0 15px 0;
    text-align: center;
}

.live-button {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-button:hover {
    background: #f5c400;
    transform: scale(1.05);
}


/* ===================== 分享弹窗 ===================== */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

.share-modal.active {
  display: flex;
}

.share-modal-content {
  background: var(--bg-primary);
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.share-modal-content h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-weight: 700;
}

.share-options {
  display: grid;
  /* grid-template-columns: repeat(5, 1fr); */
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-item:active {
  transform: scale(0.9);
}

.share-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.share-item:hover .share-icon {
  transform: scale(1.1);
}

.telegram-icon {
  background: #fabe00;
}

.qq-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.copy-icon {
  background: #fabe00;
}

.facebook-icon {
  background: linear-gradient(135deg, #3B82F6 0%, #1F3A93 100%);
}

.x-icon {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.share-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}
/* 向上箭头按钮 */
.float-top {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background-color: #ffc107; /* 深蓝色 */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4); 
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.float-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.float-top:active {
    transform: scale(0.95);
}

/* 悬浮按钮容器 */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #ffc107; /* 亮黄色 */
    color: #ffffff;            /* 图标颜色为白色 */
    border-radius: 50%;
    display: flex;             /* 使用Flex布局让图标完美居中 */
    align-items: center;
    justify-content: center;
    font-size: 24px;           /* 图标大小 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 增加立体阴影 */
    z-index: 1000;
    text-decoration: none;      /* 去掉超链接下划线 */
    transition: all 0.3s ease;
    border: none;
}

/* 鼠标悬停时的反馈 */
.float-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
}

/* 鼠标点击时的反馈 */
.float-contact:active {
    transform: scale(0.95);
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================== 响应式设计 ===================== */
@media (max-width: 480px) {
  .business-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .car-cards-container {
    grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "info"
            "thumbs";
  }

  .navbar {
    padding: 12px 12px;
  }

  .inventory-header h2 {
    font-size: 18px;
  }

  .car-image {
    height: 200px;
  }

  .pagination {
    gap: 24px;
  }

  .share-modal-content {
    padding: 20px 16px;
  }

  .share-options {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .share-icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .share-label {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-tabs {
    flex-direction: column;
  }

  .tab {
    padding: 12px 14px;
  }

  .tab-title {
    font-size: 13px;
  }

  /* Footer */
    footer {
        padding: 24px 12px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid h4 {
        font-size: 13px;
    }

    .footer-grid li {
        font-size: 11px;
    }

}

/* ===================== 新的详细页面样式 ===================== */

/* 车辆卡片容器 - 改为横向布局 */
.car-cards-container {
  display: grid;
  /* grid-template-columns: 120px 1fr 400px; */
  grid-template-areas: 
      "thumbs main info";
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

/* 图片库 */
.car-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.gallery-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 缩略图 */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 100px;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

/* 规格信息卡片 */
.car-specs-card {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.specs-section {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.specs-section:last-of-type {
  border-bottom: none;
}

.specs-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-item.full-width {
  grid-column: 1 / -1;
}

.spec-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
}

/* 操作按钮 */
.specs-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.action-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(255, 184, 28, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 28, 0.4);
  background: var(--primary-light);
}

.action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
  background: var(--border-color);
  border-color: var(--text-secondary);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 30px;
    margin-top: 40px;
    border-top: 6px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.footer-grid li:hover {
    color: var(--gold);
    padding-left: 10px;
}

.qrcode-section {
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.qrcode-image {
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    padding: 4px;
    background: white;
}

.telegram-text {
    font-size: 12px;
    color: #999;
    margin: 10px 0 15px 0;
    text-align: center;
}

.live-button {
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-button:hover {
    background: #f5c400;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .car-cards-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    background: #fafafa;
  }

  .car-gallery-thumbnails {
    order: 1;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 12px 8px;
    background: white;
    /* border: 3px solid #ff3333; */
    border-radius: 0;
    box-shadow: none;
  }

  .car-gallery-main {
    order: 2;
    width: 100%;
  }

  .gallery-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: none;
    border: 2px solid #fff;
  }

  .car-gallery-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }


 

  .gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .car-info-panel {
    padding: 16px;
    border-left: none;
    border-top: none;
    background: white;
    /* border: 3px solid #ff3333; */
    border-radius: 0;
    box-shadow: none;
    order: 3;
  }

  .car-title-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-secondary);
  }

  .car-year-brand {
    font-size: 16px;
    font-weight: 700;
    color: #001f60;
  }

  .car-quick-info {
    padding: 12px;
    gap: 10px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
  }

  .info-item {
    font-size: 13px;
    gap: 8px;
  }

  .info-item .label {
    color: #666;
    min-width: 60px;
  }

  .info-item .value {
    color: var(--primary-color);
    font-weight: 700;
  }

  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 12px 14px;
    font-size: 13px;
    gap: 8px;
    border-radius: 6px;
    font-weight: 600;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .specs-actions {
    flex-direction: column;
  }

  .action-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qrcode-section {
    padding: 20px 0;
    border-top: 1px solid #333;
  }
}

@media (max-width: 480px) {
  .car-cards-container {
    grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "info"
            "thumbs";
  }

  .car-gallery-thumbnails {
    flex-direction: row;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 10px 0;
        /* 滚动条样式 */
        scrollbar-width: thin;
        scrollbar-color: #d9d9d9 #f5f5f5;
        -webkit-overflow-scrolling: touch;
    }

  .car-gallery-main {
    width: 100%;
    order: 2;
  }

  .gallery-thumbnail {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 0;
    border: 2px solid #fff;
  }

  .gallery-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .car-info-panel {
    padding: 14px;
    border-top: none;
    border-left: none;
    background: white;
    /* border: 3px solid #ff3333; */
    border-radius: 0;
    box-shadow: none;
    order: 3;
  }

  .car-title-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary);
  }

  .car-year-brand {
    font-size: 14px;
    font-weight: 700;
    color: #001f60;
  }

  .car-quick-info {
    padding: 10px;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
  }

  .info-item {
    font-size: 12px;
    gap: 6px;
  }

  .info-item .label {
    color: #666;
    min-width: 55px;
  }

  .info-item .value {
    color: var(--primary-color);
    font-weight: 700;
    flex: 1;
    text-align: right;
  }

  .action-buttons {
    gap: 8px;
  }

  .btn {
    padding: 11px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
  }

  .footer {
        padding: 24px 12px 16px;
    }

  .footer-grid {
        /* grid-template-columns: 1fr 1fr; */
        gap: 20px;
    }

  .footer-grid h4 {
        font-size: 13px;
    }

  .footer-grid li {
        font-size: 11px;
    }

  .qrcode-image {
        width: 115px;
        height: 115px;
    }

  .telegram-text {
        font-size: 10px;
    }

  .live-button {
        font-size: 11px;
        padding: 5px 18px;
    }

  #lang-dropdown {
        min-width: 90px;
    }
}

/* ===================== 图片查看器 ===================== */
.image-viewer-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease-in;
}

.image-viewer-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-viewer-content {
  position: relative;
  background-color: white;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

.image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.image-counter {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.swipe-hint {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: swipeHintPulse 2s ease-in-out infinite;
}

@keyframes swipeHintPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.image-viewer-content img {
  width: 100%;
  max-height: calc(90vh - 50px);
  height: auto;
  display: block;
  border-radius: 0 0 8px 8px;
  animation: imageSlideIn 0.3s ease-out;
  object-fit: contain;
  background-color: #f0f0f0;
}

@keyframes imageSlideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.image-info {
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.image-info p {
  margin: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-all;
}

.image-info p:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.image-viewer-close:hover {
  color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .image-viewer-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .image-viewer-header {
    padding: 10px 12px;
  }
  
  .image-counter {
    font-size: 12px;
  }
  
  .swipe-hint {
    font-size: 11px;
  }
  
  .image-viewer-close {
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .image-info {
    padding: 15px;
  }
  
  .image-info p {
    font-size: 13px;
  }
}