/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f5576c;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* 顶部导航 */
.top-header {
  display: none;
  background: var(--text-color);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-phone {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wechat-btn {
  background: #07c160;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.auth-buttons a {
  color: var(--white);
}

/* 主导航 */
.main-nav {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  gap: 20px;
}

.nav-content .logo {
  flex-shrink: 0;
}

.nav-content .nav-auth-buttons {
  flex-shrink: 0;
}

.nav-content .nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-content .nav-search {
  flex-shrink: 0;
}

/* 导航搜索框 */
.nav-search {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 5px 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  position: relative;
}

.nav-search:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nav-search input {
  border: none;
  background: transparent;
  padding: 8px 5px;
  font-size: 14px;
  width: 100%;
  outline: none;
  flex: 1;
}

.nav-search button {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-search button:hover {
  transform: scale(1.2);
}

.logo a {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  transition: 0.3s;
}

/* Banner轮播 */
.hero-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.slide.active {
  display: flex;
}

.slide-content {
  text-align: center;
  padding: 20px;
}

.slide-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease, highlightPulse 0.5s ease-in-out 5;
  animation-duration: 0.8s, 5s;
}

.slide-content p {
  font-size: 24px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.2s backwards, highlightPulse 0.5s ease-in-out 5s 0.2s 5;
  animation-duration: 0.8s, 5s;
}

.cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.slider-controls button {
  background: var(--white);
  color: var(--text-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  transition: 0.3s;
}

.slider-controls button:hover {
  background: var(--primary-color);
  color: var(--white);
}

@keyframes highlightPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 1),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 90px rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 分区样式 */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.section-header p {
  color: var(--light-text);
  font-size: 16px;
}

/* 产品分类 */
.product-categories {
  padding: 50px 0;
  background: var(--white);
}

/* 移动端减少产品分类的上下边距 */
@media (max-width: 768px) {
  .product-categories {
    padding: 10px 0;
  }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 14px;
  opacity: 0.9;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.product-info h3 a {
  color: var(--text-color);
}

.product-desc {
  color: var(--light-text);
  font-size: 14px;
  margin-bottom: 4px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--light-text);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  display: flex;
  align-items: baseline;
}

.price {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
}

.price-unit {
  font-size: 14px;
  color: var(--light-text);
  margin-left: 5px;
}

.product-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 新闻网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-info {
  padding: 20px;
}

.news-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 10px;
}

.news-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-info h3 a {
  color: var(--text-color);
}

.news-desc {
  color: var(--light-text);
  font-size: 14px;
  margin-bottom: 15px;
}

.news-link {
  color: var(--primary-color);
  font-weight: 500;
}

/* 特色功能 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--light-text);
  font-size: 14px;
}

/* 页脚 */
.site-footer {
  background: var(--text-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #ccc;
  font-size: 14px;
}

.footer-section a[href^="tel:"] {
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s;
}

.modal-content a[href^="tel:"] {
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
}

.close:hover {
  color: var(--text-color);
}

/* 面包屑模态框 */
.breadcrumb-modal {
  max-width: 400px;
}

.breadcrumb-content {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  padding: 15px 0;
}

.breadcrumb-content a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.breadcrumb-content span {
  color: #333;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 搜索结果 */
.search-results-container {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.search-results-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.search-results-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.search-results-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.search-results-header h2 {
  font-size: 20px;
  color: var(--text-color);
}

.search-results-header .close-btn {
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: #999;
  transition: color 0.3s;
}

.search-results-header .close-btn:hover {
  color: var(--text-color);
}

.search-results-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--light-text);
  font-size: 16px;
}

.search-results-section {
  margin-bottom: 30px;
}

.search-results-section:last-child {
  margin-bottom: 0;
}

.search-results-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-color);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.search-result-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.search-result-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.search-result-info {
  padding: 12px;
}

.search-result-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  font-size: 12px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.search-result-price {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.search-result-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-result-item:hover {
  background: #f8f9fa;
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.search-result-item-image {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
}

.search-result-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.search-result-item-content {
  flex: 1;
  min-width: 0;
}

.search-result-item-content h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-excerpt {
  font-size: 13px;
  color: var(--light-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.search-result-tag {
  display: inline-block;
  padding: 3px 10px;
  background: #e3f2fd;
  color: var(--primary-color);
  border-radius: 12px;
  font-size: 12px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.form-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: var(--light-text);
}

.form-footer a {
  color: var(--primary-color);
}

/* 页面标题 */
.page-header {
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* 筛选栏 */
.filter-section {
  padding: 30px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.filter-bar {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-item label {
  font-weight: 500;
  color: var(--text-color);
}

.filter-item input,
.filter-item select {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  min-width: 150px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-item input {
  min-width: 200px;
}

/* 面包屑 */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--light-text);
}

.breadcrumb a {
  color: var(--light-text);
}

/* 产品详情 */
.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.detail-image {
  border-radius: 15px;
  overflow: hidden;
}

/* 产品图片画廊 */
.product-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.gallery-main {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  position: relative;
}

.gallery-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 电脑端左右箭头按钮 */
.desktop-gallery-arrow {
  position: absolute;
  top: 210px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(50, 50, 50, 0.8) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  pointer-events: auto;
}

.desktop-gallery-arrow:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
  color: #667eea;
  border-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  opacity: 1;
}

.desktop-gallery-arrow:active {
  transform: scale(1.02);
}

.desktop-gallery-arrow-left {
  left: 15px;
}

.desktop-gallery-arrow-right {
  right: 15px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0;
  width: 100%;
}

.gallery-thumb {
  flex-shrink: 0;
  flex-grow: 0;
  width: calc((100% - 50px) / 6);
  min-width: 80px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid #e0e0e0;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-thumb:hover {
  border-color: #667eea;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.gallery-thumb.active {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 6px 20px rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
}

.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img,
.gallery-thumb:hover video {
  transform: scale(1.1);
}

.thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.detail-category {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-right: 10px;
}

.detail-route-number {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.detail-title-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-title-content h1 {
  flex: 0 0 100%;
  margin: 0 0 8px 0;
}

.detail-title-content .detail-category,
.detail-title-content .detail-route-number {
  align-self: flex-start;
}

.detail-price {
  margin-bottom: 10px;
}

.detail-price .price {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-color);
}

.detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--light-text);
}

/* 产品详情页线路信息块样式 */
.route-info-simple {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 15px 0 3px 0;
  line-height: 1.5;
  font-size: 14px;
}

.route-info-simple .route-info-row {
  display: flex;
  gap: 12px 20px;
  margin-bottom: 3px;
}

.route-info-simple .route-info-row:last-child {
  margin-bottom: 0;
}

/* 每个字段占据整行 */
.route-info-simple .route-info-row .route-info-item {
  width: 100%;
  white-space: normal;
  overflow: visible;
  word-wrap: break-word;
  word-break: break-all;
}

.route-info-simple .route-info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.route-info-simple .route-info-item strong {
  color: #333;
  font-weight: 600;
}



.route-info-simple .route-info-link {
  color: #667eea;
  text-decoration: none;
}

.route-info-simple .route-info-link:hover {
  text-decoration: underline;
}

.detail-description {
  color: var(--light-text);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* TinyMCE 内容样式 */
.detail-description p,
.detail-description div {
  margin-bottom: 12px;
}

.detail-description table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
}

.detail-description table th,
.detail-description table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: left;
}

.detail-description table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.detail-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 10px 0;
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.book-btn,
.contact-btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s;
}

.book-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.book-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.contact-btn {
  background: var(--white);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.contact-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.detail-content {
  background: var(--white);
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 5px;
}

.detail-section {
  margin-bottom: 8px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* 页面二维码样式 */
.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.page-qrcode {
  flex-shrink: 0;
  margin: 0 auto 15px auto;
  text-align: center;
}

.qrcode-img {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* 产品详情页二维码 - 在预订按钮上方 */
.detail-actions .page-qrcode {
  margin-bottom: 15px;
}

/* 产品标题行布局 */
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.detail-title-content {
  flex: 1;
}

.detail-title-row .page-qrcode {
  flex-shrink: 0;
  margin: 0;
}

/* 新闻详情页二维码容器 */
.news-qrcode-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.news-qrcode-container .page-qrcode {
  margin: 0;
}

/* 行程块样式 */
.day-itinerary-block {
  margin-bottom: 10px;
  padding: 5px 0;
}

/* 行程介绍高亮区域 */
.day-itinerary-info-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.day-itinerary-info-highlight .day-itinerary-item {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.day-itinerary-info-highlight .day-itinerary-item:last-child {
  border-bottom: none;
}

/* 行程概述样式 - 不显示标签，字体更大更显眼 */
.day-itinerary-info-highlight .day-itinerary-item.day-itinerary-overview .day-itinerary-value {
  font-size: 18px;
  font-weight: 600;
  opacity: 1;
}

.day-itinerary-info-highlight .day-itinerary-label {
  font-weight: 600;
  color: #ffffff;
  opacity: 0.95;
}

.day-itinerary-info-highlight .day-itinerary-value {
  color: #ffffff;
  font-weight: 500;
}

/* 主页签容器 - 超紧凑样式 */
.main-tabs-container {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* 包含主页签的detail-content特殊处理 */
.detail-content:has(.main-tabs-container) {
  padding: 25px;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 包含主页签的detail-section特殊处理 */
.detail-content:has(.main-tabs-container) .detail-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* 行程介绍section（主页签下方）特殊处理 */
#introductionSection {
  padding-top: 10px !important;
  margin-top: -10px;
}

/* 行程介绍section内的detail-section */
#introductionSection .detail-section {
  margin-top: 0;
  padding-top: 0;
}

.main-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  flex-wrap: wrap;
}

.main-tab {
  padding: 10px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-tab:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-tab.active {
  background: #ffffff;
  color: #667eea;
  font-weight: 600;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

/* 行程页签容器 */
.itinerary-tabs-container {
  margin-top: 15px;
  position: relative;
}

.itinerary-tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 15px 20px;
  position: sticky;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.itinerary-tabs-top {
  border-bottom: none;
  margin-bottom: 20px;
  top: 0;
  border-radius: 12px 12px 0 0;
}

.itinerary-tabs-bottom {
  border-top: none;
  margin-top: 20px;
  border-radius: 12px;
  position: relative;
}

/* 固定在费用上方的页签 */
.itinerary-tabs-fixed {
  margin: 20px 0;
  border-radius: 12px;
}

/* 左侧浮动导航栏 - 电脑端 */
.itinerary-tabs.itinerary-tabs-left {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 6px;
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
  min-width: 60px;
  /* 默认隐藏 */
  opacity: 0;
  visibility: hidden;
  /* 添加过渡效果 */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border: none;
  box-shadow: none;
  background: none;
}

.itinerary-tabs.itinerary-tabs-left .itinerary-tab {
  /* 重置所有浏览器默认样式 */
  all: unset;
  /* 重新设置需要的样式 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 1);
  color: #000000;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
}

/* 移除按钮伪元素的阴影 */
.itinerary-tabs.itinerary-tabs-left .itinerary-tab::before,
.itinerary-tabs.itinerary-tabs-left .itinerary-tab::after {
  display: none !important;
  content: none !important;
  box-shadow: none !important;
}

.itinerary-tabs.itinerary-tabs-left .itinerary-tab:hover {
  background-color: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: translateX(2px) !important;
  color: #000000 !important;
  outline: none !important;
}

.itinerary-tabs.itinerary-tabs-left .itinerary-tab.active {
  background-color: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
  transform: none !important;
  color: #000000 !important;
  outline: none !important;
  font-weight: 600 !important;
}

.itinerary-tab {
  padding: 10px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.itinerary-tab:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.itinerary-tab.active {
  background: #ffffff;
  color: #667eea;
  font-weight: 600;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

.itinerary-tabs-content {
  position: relative;
  min-height: 400px;
}

.itinerary-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.itinerary-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.itinerary-content {
  line-height: 1.6;
  color: var(--text-color);
}

.itinerary-content p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.itinerary-content p:empty {
  display: none;
}

/* TinyMCE 表格样式 */
.itinerary-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
  border: 1px solid #e0e0e0;
  background: white;
}

.itinerary-content table th,
.itinerary-content table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

.itinerary-content table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
}

.itinerary-content table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.itinerary-content table tr:hover {
  background-color: #f0f8ff;
}

/* TinyMCE 列表样式 */
.itinerary-content ul,
.itinerary-content ol {
  margin: 10px 0;
  padding-left: 30px;
}

.itinerary-content li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* TinyMCE 标题样式 */
.itinerary-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 12px 0;
  color: var(--primary-color);
}

.itinerary-content h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 15px 0 8px 0;
  color: #444;
}

/* TinyMCE 图片样式 */
.itinerary-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 移除富文本尾部多余的空白和空行 */
.itinerary-content > p:last-child {
  margin-bottom: 0;
}

.itinerary-content > ul:last-child,
.itinerary-content > ol:last-child {
  margin-bottom: 0;
}

.itinerary-content > img:last-child,
.itinerary-content > p:last-child > img:last-child {
  margin-bottom: 0;
}

/* 移除多个连续的br换行 */
.itinerary-content br + br,
.itinerary-content br + br + br,
.itinerary-content br + br + br + br {
  display: none;
}

/* 富文本内容末尾的br移除 */
.itinerary-content > br:last-child,
.itinerary-content p > br:last-child {
  display: none;
}

.service-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: var(--light-text);
  line-height: 1.8;
}

/* 新闻详情 */
.news-detail {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
}

.news-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

/* 新闻详情页头部布局 */
.news-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 15px;
}

.news-header-content h1 {
  flex: 1;
  margin-bottom: 0;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--light-text);
  font-size: 14px;
}

.news-cover {
  margin-bottom: 30px;
}

.news-cover img {
  width: 100%;
  border-radius: 10px;
}

.news-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 30px;
}

.news-content p {
  margin-bottom: 20px;
}

.news-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.back-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: 0.3s;
}

.back-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}


/* 预订模态框 */
.booking-modal {
  max-width: 600px;
}

/* 紧凑型模态框 */
.compact-modal {
  max-height: 80vh; /* 减少高度20% */
  overflow-y: auto;
}

.compact-modal h2 {
  margin-bottom: 15px;
  font-size: 20px;
}

.compact-modal .form-group {
  margin-bottom: 12px;
}

.compact-modal label {
  font-size: 13px;
  margin-bottom: 6px;
}

.compact-modal input {
  padding: 8px 12px;
  font-size: 14px;
}

.compact-modal .booking-summary {
  padding: 10px;
  margin-bottom: 15px;
}

.compact-modal .submit-btn {
  padding: 12px;
  font-size: 15px;
}

/* 紧凑型表单 - 并排显示 */
.compact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 日历价格列表 */
.calendar-price-item:hover {
  background: #f0f0f0;
}

.price-high {
  color: #ff6b6b;
}

.price-low {
  color: #51cf66;
}

.price-normal {
  color: var(--text-color);
}

/* 自定义日历组件 */
.calendar-wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-title {
  font-size: 16px;
  font-weight: bold;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  padding: 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px;
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.calendar-day.empty {
  border: none;
  background: transparent;
  cursor: default;
}

.calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
}

.calendar-day.today {
  border: 2px solid var(--accent-color);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
}

.calendar-day.selected .day-number,
.calendar-day.selected .day-price {
  color: white;
}

.day-number {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 2px;
}

.day-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.calendar-day.selected .day-price.price-high {
  color: #ffb3b3;
}

.calendar-day.selected .day-price.price-low {
  color: #b8e6c0;
}

.calendar-day:not(.selected) .day-price.price-high {
  color: #ff6b6b;
}

.calendar-day:not(.selected) .day-price.price-low {
  color: #51cf66;
}

/* 主页面日历容器 - 优化间距 */
#priceCalendarWrapper {
  width: fit-content;
  max-width: 300px;
  margin: 0;
}

/* 主页面日历单元格 - 缩小尺寸 */
#priceCalendarWrapper .calendar-day {
  max-width: 38px;
}

/* 主页面日历字体 - 缩小 */
#priceCalendarWrapper .day-number {
  font-size: 12px;
}

#priceCalendarWrapper .day-price {
  font-size: 9px;
}

/* 主页面日历星期 - 缩小 */
#priceCalendarWrapper .weekday {
  font-size: 11px;
  padding: 3px;
}

/* 主页面日历头部 - 缩小 */
#priceCalendarWrapper .calendar-title {
  font-size: 14px;
}

#priceCalendarWrapper .calendar-nav-btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.booking-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.highlight {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 20px;
}

/* 支付模态框 */
.payment-modal {
  max-width: 500px;
  text-align: center;
}

.payment-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.qrcode-container {
  margin: 20px 0;
}

.qrcode img {
  width: 300px;
  height: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.payment-tip {
  color: var(--light-text);
  margin-top: 10px;
  font-size: 14px;
}

.payment-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.cancel-btn,
.confirm-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.cancel-btn {
  background: #f8f9fa;
  color: var(--text-color);
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.confirm-btn {
  background: var(--accent-color);
  color: var(--white);
}

.confirm-btn:hover {
  background: #f0455a;
}

/* 支付方式选择模态框 */
.payment-method-modal {
  max-width: 550px;
  text-align: center;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.payment-method-btn {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-method-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

.payment-icon {
  font-size: 32px;
  margin-right: 15px;
}

.payment-name {
  flex: 1;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-color);
}

.payment-desc {
  font-size: 14px;
  color: #999;
}

.wechat-btn:hover {
  border-color: #07c160;
}

.alipay-btn:hover {
  border-color: #1296db;
}

/* 预订表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}
  background: #e6495d;
}

/* 无数据提示 */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: var(--light-text);
  font-size: 18px;
}

/* 页面导航按钮组 */
.page-navigation {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 回到顶部按钮移到左下角 */
.page-nav-btn[data-label="回到顶部"] {
  position: fixed;
  left: 30px;
  bottom: 30px;
  right: auto;
}

.page-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  overflow: visible;
}

.page-nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-nav-btn span {
  display: block;
  line-height: 1;
}

/* 文字提示样式 */
.nav-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.page-nav-btn:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  right: 55px;
}

/* 特殊按钮样式 */
.page-nav-btn[data-label="回到首页"] span:first-child {
  font-size: 18px;
}

.page-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-nav-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 电脑端微信客服弹窗 */
.desktop-wechat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-wechat-modal.active {
  display: flex;
}

.desktop-wechat-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 35px 30px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.desktop-wechat-close {
  position: fixed;
  top: calc(50% - 180px);
  left: calc(50% + 220px);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.desktop-wechat-close:hover {
  background: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.desktop-wechat-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.desktop-wechat-qrcode {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin: 0 auto 20px;
}

.desktop-wechat-tip {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

/* 手机端隐藏电脑端弹窗 */
@media (max-width: 768px) {
  .desktop-wechat-modal {
    display: none !important;
  }

  .desktop-wechat-content {
    display: none !important;
  }

  .desktop-phone-modal {
    display: none !important;
  }

  .desktop-phone-content {
    display: none !important;
  }

  .desktop-float-nav {
    display: none !important;
  }
}

/* 电脑端右侧底部导航栏 */
.desktop-float-nav {
  display: flex;
  position: fixed;
  right: 0;
  bottom: 20px;
  transform: none;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  width: 60px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-radius: 12px 0 0 12px;
  padding: 12px 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.desktop-float-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #ffffff;
}

.desktop-float-nav-item:hover,
.desktop-float-nav-item:active {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.desktop-float-nav-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.desktop-float-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* 电脑端电话号码弹窗 */
.desktop-phone-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-phone-modal.active {
  display: flex;
}

.desktop-phone-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 35px 30px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.desktop-phone-close {
  position: fixed;
  top: calc(50% - 180px);
  left: calc(50% + 220px);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
}

.desktop-phone-close:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.desktop-phone-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.desktop-phone-number {
  color: #ffd700;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.desktop-phone-tip {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

/* 回到顶部/回到底部按钮 */
.scroll-buttons {
  position: fixed;
  right: 30px;
  bottom: 200px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scroll-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  border: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.scroll-top span,
.scroll-bottom span {
  display: block;
  line-height: 1;
}

/* 交互增强效果 */
/* 按钮悬停效果增强 */
button,
.submit-btn,
.book-btn,
.contact-btn,
.product-btn,
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button::before,
.submit-btn::before,
.book-btn::before,
.contact-btn::before,
.product-btn::before,
.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

button:active::before,
.submit-btn:active::before,
.book-btn:active::before,
.contact-btn:active::before,
.product-btn:active::before,
.cta-btn:active::before {
  width: 300px;
  height: 300px;
}

/* 卡片进入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 产品卡片动画增强 */
.product-card,
.news-card,
.category-card,
.feature-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* 链接悬停效果 */
a {
  position: relative;
  transition: all 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 导航菜单项动画 */
.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* 搜索框动画 */
.nav-search {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search:focus-within {
  transform: scale(1.02);
}

/* 图片懒加载动画 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* 分区标题动画 */
.section-header {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.5s ease;
}

.section-header:hover h2::after {
  width: 60px;
}

/* 滚动显示动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 加载动画 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 骨架屏动画 */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 表单输入框动画 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 模态框动画增强 */
.modal {
  backdrop-filter: blur(5px);
}

/* 日历价格显示 */
.calendar-prices-container {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.calendar-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.calendar-price-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 10px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.calendar-price-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.calendar-price-card.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.calendar-price-card.selected .calendar-price-date {
  color: #fff;
}

.calendar-price-card.selected .calendar-price-amount {
  color: #fff;
}

.calendar-price-date {
  font-size: 13px;
  color: var(--light-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.calendar-price-amount {
  font-size: 18px;
  color: var(--accent-color);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.calendar-price-card:hover .calendar-price-amount {
  transform: scale(1.1);
}

/* 日历价格切换按钮 */
.toggle-calendar-prices-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-calendar-prices-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.toggle-calendar-prices-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .product-card:active,
  .news-card:active,
  .category-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }

  button:active,
  .submit-btn:active,
  .book-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
  }

  .nav-menu a:active {
    background: rgba(102, 126, 234, 0.1);
  }
}

/* 加载更多动画 */
.load-more-btn {
  display: block;
  margin: 40px auto;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.load-more-btn.loading::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 提示框动画 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 4000;
  animation: slideInRight 0.3s ease;
  max-width: 300px;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* 下拉刷新指示器 */
.pull-to-refresh {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--light-text);
  font-size: 14px;
}

.pull-to-refresh.active {
  display: block;
}

.pull-to-refresh .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
}

/* 返回顶部按钮增强 */
.scroll-top-btn {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn.scrolled {
  transform: scale(1);
  opacity: 1;
}

.scroll-top-btn:not(.scrolled) {
  transform: scale(0.8);
  opacity: 0;
}

/* 图片缩放动画 */
.image-zoom-container {
  overflow: hidden;
  position: relative;
}

.image-zoom-container img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.15);
}

/* 波纹效果 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* 悬浮卡片效果 */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* 渐变边框动画 */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: 15px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 300% 300%;
  border-radius: 17px;
  z-index: -1;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 文字渐变动画 */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientMove 3s ease infinite;
}

@keyframes textGradientMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 10000;
  transition: width 0.1s;
}

/* 悬浮操作按钮 */
.fab {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 粘性定位优化 */
.sticky {
  position: sticky;
  top: 80px;
  z-index: 100;
}

/* 视差滚动效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 卡片翻转效果 */
.card-flip {
  perspective: 1000px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/* 加载骨架屏增强 */
.skeleton-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.skeleton-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-title {
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

/* 焦点可见性增强 */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* 选择文本样式 */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: var(--text-color);
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.2);
  color: var(--text-color);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Firefox滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 无障碍优化 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 响应式字体 */
.responsive-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* 容器查询支持 */
@supports (container-type: inline-size) {
  .product-grid {
    container-type: inline-size;
  }
}

/* 悬浮标签 */
.floating-label {
  position: relative;
}

.floating-label input {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: all 0.3s;
}

.floating-label label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--light-text);
  transition: all 0.3s;
  pointer-events: none;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
  top: 0;
  left: 10px;
  font-size: 12px;
  background: var(--white);
  padding: 0 5px;
  color: var(--primary-color);
}

/* 过滤标签 */
.filter-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 5px;
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* 价格标签动画 */
.price-tag {
  position: relative;
  display: inline-block;
}

.price-tag::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  bottom: -5px;
  background: rgba(245, 87, 108, 0.1);
  border-radius: 8px;
  z-index: -1;
  transform: scale(0);
  transition: transform 0.3s;
}

.price-tag:hover::before {
  transform: scale(1);
}
