* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  background-color: #dcd8cd;
}

/* 移动端覆盖背景色，避免影响轮播图满屏显示 */
@media (max-width: 768px) {
  html, body {
    background-color: #fff;
  }
}

#app {
  width: 100%;
  min-height: 100vh;
}

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

/* Carousel Section */
.carousel-section {
  width: 100%;
  position: relative;
  margin-bottom: 24px;
  margin-top: 30px;
  padding: 30px 40px;
  background-color: #dcd8cd;
}

.carousel-container {
  width: 100%;
  /* 自适应屏宽与缩放 */
  max-width: min(1720px, 96vw);
  margin: 0 auto;
}

/* Wider carousel on large desktop screens */
@media (min-width: 1440px) {
  .carousel-container {
    max-width: 1400px;
  }
}

@media (min-width: 1680px) {
  .carousel-container {
    max-width: 1560px;
  }
}

@media (min-width: 1920px) {
  .carousel-container {
    max-width: 1720px;
  }
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slides.no-transition {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.slide-content {
  position: relative;
  width: 100%;
  /* 自适应高度，随视口宽度缩放，并限制上下限 */
  height: clamp(420px, 56vw, 920px);
  background-color: #dcd8cd;
}

/* Larger carousel height on big desktop screens */
@media (min-width: 1440px) {
  .slide-content { height: clamp(500px, 52vw, 920px); }
}

@media (min-width: 1680px) {
  .slide-content { height: clamp(560px, 50vw, 920px); }
}

@media (min-width: 1920px) {
  .slide-content { height: clamp(600px, 48vw, 920px); }
}

.slide-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #dcd8cd;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
  z-index: 2;
}

.slide-text-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 30px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slide-title {
  font-size: 32px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.slide-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
  padding: 0;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}

.carousel-arrow img {
  /* 箭头尺寸自适应缩放 */
  width: clamp(20px, 1.8vw, 32px);
  height: clamp(20px, 1.8vw, 32px);
  object-fit: contain;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-title-image {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: inline-block;
}

@media (max-width: 1024px) {
  .section-title-image img {
    max-width: 820px;
  }
}

@media (max-width: 768px) {
  .section-title-image img {
    max-width: 90%;
  }
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
  font-family: 'STSong', serif;
}

.section-subtitle {
  text-align: center;
  font-size: 28px;
  color: #8B6914;
  margin-bottom: 60px;
  font-family: 'STSong', serif;
}

.features-grid {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
  gap: .533333rem;
}

.feature-item {
  text-align: center;
  padding: .533333rem;
  flex: 1;
  min-width: 0;
}

.feature-icon {
  margin: 0 auto .533333rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  aspect-ratio: 1;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: .48rem;
  color: #2c3e50;
  margin: 0 0 .213333rem;
  font-weight: 700;
}

.feature-subtitle {
  font-size: .373333rem;
  color: #7f8c8d;
  margin: 0;
  font-weight: 400;
}

.feature-divider {
  width: .053333rem;
  height: 2.5rem;
  background: #999;
  margin: 0 4.68%;
  flex-shrink: 0;
  border-radius: .026667rem;
  align-self: center;
}

/* Products Section */
.products-section {
  padding: 0px 0 80px;
  background-color: #fff;
  margin-top: -65px;
}

.products-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 50px;
  font-family: 'STSong', serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
}

.medicine-card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.medicine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 图片区域 */
.medicine-image {
  flex: 0 0 200px;
  min-height: 250px;
  background-color: #F5F5DC;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.medicine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  z-index: 5;
}

.status-badge.status-sold-out {
  background-color: #E53935;
  color: #fff;
}

.status-badge.status-hot-sale {
  background-color: #FF9800;
  color: #fff;
}

/* 产品信息 */
.medicine-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.medicine-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.medicine-name {
  font-size: 16px;
  font-weight: bold;
  color: #2c2c2c;
  margin: 0;
}

.medicine-price {
  font-size: 20px;
  font-weight: bold;
  color: #FF9800;
}

.medicine-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 0;
}

.price-trend {
  margin-top: 15px;
  flex: 1;
}

.trend-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trend-title {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin: 0;
}

.medicine-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.inventory {
  font-size: 14px;
  color: #666;
}

.chart-container {
  width: 100%;
  height: 160px;
  position: relative;
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 10px;
}

.trend-chart {
  width: 100%;
  height: 100%;
}

.buy-button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #FF9800;
  color: #fff;
}

.buy-button:hover:not(.sold-out):not(:disabled) {
  background-color: #F57C00;
}

.buy-button.sold-out,
.buy-button:disabled {
  background-color: #E0E0E0;
  color: #999;
  cursor: not-allowed;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #dcd8cd;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #E0E0E0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-section {
    margin: 0;          /* 移除上下外边距，避免背景多出一截 */
    padding: 0;         /* 去内边距，贴边满屏 */
    background: transparent; /* 背景透明，由图片铺满视觉 */
  }

  .carousel-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }

  .carousel-wrapper {
    border-radius: 0;
    margin: 0 !important;
  }

  .slide-content {
    height: 100vw !important; /* 全屏宽，同步为等比例高度，保证满屏 */
    background: transparent;   /* 移除内容容器背景色 */
  }

  .slide-image {
    background: transparent;   /* 移除图片容器背景色 */
  }
  
  /* 收紧轮播图与下方版块的间距，避免空白区过大 */
  .features-section {
    padding: 20px 0 40px;
    margin-top: -130px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-arrow.left {
    left: 10px;
  }
  
  .carousel-arrow.right {
    right: 10px;
  }
  
  .slide-title {
    font-size: 24px;
  }
  
  .slide-subtitle {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 22px;
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
  }
  
  .feature-item {
    flex: 0 1 calc(50% - 10px);
    min-width: 140px;
    padding: 15px 10px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
  }
  
  .feature-title {
    font-size: 14px;
  }
  
  .feature-subtitle {
    font-size: 11px;
  }
  
  .feature-divider {
    display: none;
  }
  
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 0 10px;
  }
  
  .medicine-card {
    flex-direction: row;
    align-items: stretch;
    padding: 15px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .medicine-image {
    flex: 0 0 150px;
    min-height: auto;
    height: auto;
    align-self: stretch;
    border-radius: 4px;
  }
  
  .medicine-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  
  .medicine-info-top {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .medicine-name {
    font-size: 14px;
  }
  
  .medicine-price {
    font-size: 18px;
  }
  
  .medicine-description {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .price-trend {
    margin-top: 10px;
  }
  
  .chart-container {
    height: 140px;
    padding: 8px;
  }
  
  .trend-title-container {
    margin-bottom: 8px;
  }
  
  .medicine-footer {
    gap: 10px;
  }
  
  .buy-button {
    padding: 6px 15px;
    font-size: 12px;
  }
}

/* Mobile fine-tuning for features grid */
@media (max-width: 767px) {
  .features-grid {
    justify-content: center;
    gap: .4rem;
  }
  .feature-item {
    flex: 0 1 48%;
    min-width: 0;
    padding: .4rem;
  }
  .feature-icon {
    width: 36vw !important;      /* 随屏宽放大 */
    height: 36vw !important;     /* 保持正方形比例 */
    max-width: none !important;
  }
  .feature-icon img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .section-title-image img {
    width: 70% !important;
    margin: 0 auto 6% !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .feature-item {
    flex-basis: 100%;
  }
  .feature-icon {
    max-width: 4rem;
  }
}

/* Match referenced responsive behavior */
@media (max-width: 767px) {
  .section-title-image {
    text-align: center;
  }
  .section-title-image img {
    width: 60%;
    max-width: none;
    margin: 0 auto 6%;
    display: block;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
  }
  .slide-image {
    border-radius: 0rem;
    flex: 0 0 60%;
  }
  .slide-text {
    flex: 0 0 40%;
    padding: .533333rem;
  }
  .slide-title {
    font-size: 1.8rem;
    margin: 0 0 .4rem;
  }
  .slide-subtitle {
    font-size: 1rem;
  }
  .carousel-arrow {
    width: 1.333333rem;
    height: 1.333333rem;
    border-radius: .16rem;
  }
  .carousel-arrow img {
    width: .533333rem;
    height: .533333rem;
  }
  .carousel-arrow.left {
    left: .533333rem;
  }
  .carousel-arrow.right {
    right: .533333rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .section-title-image {
    text-align: center;
  }
  .section-title-image img {
    width: 11.82%;
    max-width: none;
    margin: 0 auto 4.16%;
    display: block;
  }
  .carousel-container {
    padding: 4.2% 8.4%;
  }
  .slide-content {
    display: flex;
    flex-direction: row;
  }
  .slide-image {
    flex: 1;
  }
  .slide-text {
    flex: 1;
    padding: 1.6rem;
  }
  .slide-title {
    font-size: 3rem;
    margin: 0 0 .8rem;
  }
  .slide-subtitle {
    font-size: 1.4rem;
  }
  .carousel-arrow {
    width: 1.866667rem;
    height: 1.866667rem;
    border-radius: .266667rem;
  }
  .carousel-arrow img {
    width: .746667rem;
    height: .746667rem;
  }
  .carousel-arrow.left {
    left: 1.066667rem;
  }
  .carousel-arrow.right {
    right: 1.066667rem;
  }
}

/* Desktop enhancements to match referenced layout */
@media (min-width: 1200px) {
  .feature-icon {
    max-width: 9rem;
  }
  .section-title-image {
    text-align: center;
  }

  .section-title-image img {
    width: 18%;
    max-width: none;
    margin: 0 auto 4.16%;
    display: block;
  }

  .slide-title {
    font-size: 3.5rem;
  }

  .slide-subtitle {
    font-size: 1.6rem;
  }

  .carousel-arrow {
    width: 2.133333rem;
    height: 2.133333rem;
    border-radius: .32rem;
  }

  .carousel-arrow img {
    width: .853333rem;
    height: .853333rem;
  }

  .carousel-arrow.left {
    left: 1.333333rem;
  }

  .carousel-arrow.right {
    right: 1.333333rem;
  }
}

/* Product Detail Page Styles */
.app-container {
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
}

.layout {
  width: 100%;
}

.layout-content {
  width: 100%;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Back Home Button */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: none;
  border: none;
  color: #007AFF;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-bottom: 20px;
}

.back-home-btn:hover {
  opacity: 0.7;
}

.back-icon {
  font-size: 20px;
  font-weight: bold;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  color: #2f2f2f;
  font-weight: 700;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-underline-offset: 0.213333rem;
}

/* Product Display */
.product-display {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* Product Image Section */
.product-image-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 13.333333rem;
  margin-left: 2rem;
}

.main-image {
  width: 100%;
  background-color: #F5F5DC;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3/4;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  background-color: #F5F5DC;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.thumbnail-item:hover {
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: #007AFF;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.product-info {
  flex: 1;
  max-width: 500px;
}

.product-info .product-title {
  font-size: 28px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.product-price {
  font-size: 18px;
  color: #2c2c2c;
  margin-bottom: 15px;
}

.product-stock {
  font-size: 18px;
  color: #FF9800;
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.product-description p {
  margin: 0;
}

.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: 16px 24px;
  background-color: #007AFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.order-button:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
}

.order-button:active {
  transform: translateY(0);
}

.order-button:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
}

.play-icon {
  font-size: 14px;
}

/* Rich Content */
.rich-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

/* 让富文本内容更宽，抵消父容器 .product-detail 的左右 20% 内边距 */
.rich-content[data-v-0d3e5a56] {
  max-width: none;
  margin-left: -0rem; /* align with product image left edge */
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* 自适应调整富文本左右外边距，保持视觉宽度在不同屏宽下合理 */
@media (max-width: 1199px) {
  .rich-content[data-v-0d3e5a56] {
    margin-left: -14%;
    margin-right: -14%;
  }
}

@media (max-width: 991px) {
  .rich-content[data-v-0d3e5a56] {
    margin-left: -10.5rem; /* keep alignment until mobile breakpoint */
    margin-right: 0;
  }
}

.rich-content > div {
  margin-bottom: 15px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
  .product-detail {
    padding: 15px;
  }
  
  .back-home-btn {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 15px;
  }
  
  .page-header {
    margin-bottom: 30px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .product-display {
    flex-direction: column;
    gap: 30px;
  }
  
  .product-image-section {
    max-width: 100%;
  }
  
  .product-info {
    max-width: 100%;
  }
  
  .product-info .product-title {
    font-size: 20px;
  }
  
  .product-price,
  .product-stock {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .order-button {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .rich-content {
    padding: 30px 15px;
    font-size: 14px;
    line-height: 1.8;
  }
  .rich-content[data-v-0d3e5a56] {
    margin-left: 0;
    margin-right: 0;
  }
  
  .thumbnail-list {
    gap: 8px;
    margin-top: 12px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
}


/* Product Detail (scoped attributes from product-detail.html) */
.product-detail[data-v-0d3e5a56] {
  min-height: 100vh;
  background: #ffffff;
  padding: 1.066667rem 14%;
  font-family: Microsoft YaHei, sans-serif;
}

.back-home-btn[data-v-0d3e5a56] {
  position: fixed;
  top: .533333rem;
  left: .533333rem;
  background: #337ab7;
  color: #fff;
  border: none;
  padding: .32rem .533333rem;
  border-radius: .213333rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .213333rem;
  transition: all .3s;
  box-shadow: 0 .106667rem .32rem #337ab74d;
  z-index: 1000;
}

.back-home-btn[data-v-0d3e5a56]:hover {
  background: #286090;
  transform: translateY(-.053333rem);
  box-shadow: 0 .16rem .426667rem #337ab766;
}

.back-icon[data-v-0d3e5a56] {
  font-size: 1.2rem;
  font-weight: 700;
}

.page-header[data-v-0d3e5a56] {
  margin-bottom: 1.333333rem;
  text-align: center;
}

.page-title[data-v-0d3e5a56] {
  font-size: 2rem;
  color: #2f2f2f;
  font-weight: 700;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-underline-offset: .213333rem;
}

.product-display[data-v-0d3e5a56] {
  display: flex;
  gap: 1.333333rem;
  margin-bottom: 1.6rem;
  background: white;
  padding: 0;
  margin-left: -0rem;
}

.product-image-section[data-v-0d3e5a56] {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 13.333333rem;
}

.main-image[data-v-0d3e5a56] {
  width: 100%;
  height: 20rem;
  border-radius: .32rem;
  margin-bottom: .533333rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 .213333rem .64rem #00000026;
}

.main-image img[data-v-0d3e5a56] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-image[data-v-0d3e5a56] {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: .213333rem;
  overflow: hidden;
  border: .08rem solid #007bff;
}

.thumbnail-image img[data-v-0d3e5a56] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info[data-v-0d3e5a56] {
  flex: 1;
  padding-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-title[data-v-0d3e5a56] {
  font-size: 1.5rem;
  color: #000;
  font-weight: 700;
  margin: 0 0 .666667rem;
  line-height: 1.2;
  padding-bottom: .533333rem;
  border-bottom: .026667rem dotted #cccccc;
}

.product-price[data-v-0d3e5a56] {
  font-size: 1rem;
  color: #FF9800;
  margin-bottom: .4rem;
  font-weight: 600;
}

.product-stock[data-v-0d3e5a56] {
  font-size: 1rem;
  color: #FF9800;
  margin-bottom: .8rem;
  font-weight: 600;
}

.product-description[data-v-0d3e5a56] {
  margin-bottom: 1.066667rem;
}

.product-description p[data-v-0d3e5a56] {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.order-button[data-v-0d3e5a56] {
  background: #337ab7;
  color: #fff;
  border: none;
  padding: .533333rem 1.066667rem;
  border-radius: .213333rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .266667rem;
  transition: all .3s;
  align-self: flex-start;
  box-shadow: 0 .106667rem .32rem #007bff4d;
}

.order-button[data-v-0d3e5a56]:hover {
  background: #337ab7;
  transform: translateY(-.053333rem);
  box-shadow: 0 .16rem .426667rem #007bff66;
}

.play-icon[data-v-0d3e5a56] {
  font-size: .426667rem;
}

.rich-content[data-v-0d3e5a56] {
  margin-top: 1.333333rem;
  padding: 1.066667rem 0;
  border-top: .053333rem solid #f0f0f0;
}

@media (max-width: 768px) {
  .product-detail[data-v-0d3e5a56] {
    padding: 3rem;
  }

  .back-home-btn[data-v-0d3e5a56] {
    top: .4rem;
    left: .4rem;
    padding: .266667rem .426667rem;
    font-size: .9rem;
  }

  .back-icon[data-v-0d3e5a56] {
    font-size: 1rem;
  }

  .product-info[data-v-0d3e5a56] {
    padding-left: 0;
  }

  .page-title[data-v-0d3e5a56] {
    font-size: 2rem;
  }

  .product-display[data-v-0d3e5a56] {
    flex-direction: column;
    gap: .8rem;
    margin-left: 0;
  }

  .main-image[data-v-0d3e5a56] {
    height: 15rem;
  }

  .thumbnail-image[data-v-0d3e5a56] {
    width: 2.133333rem;
    height: 2.133333rem;
  }

  .product-title[data-v-0d3e5a56] {
    font-size: 2rem;
  }

  .product-price[data-v-0d3e5a56],
  .product-stock[data-v-0d3e5a56] {
    font-size: 1.4rem;
  }

  .product-description p[data-v-0d3e5a56] {
    font-size: 1.1rem;
  }

  .order-button[data-v-0d3e5a56] {
    padding: .426667rem .853333rem;
    font-size: 1.1rem;
  }

  .rich-content[data-v-0d3e5a56] {
    margin-top: .8rem;
    padding: .8rem 0;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  background-color: #dcd8cd;
}

/* 移动端覆盖背景色，避免影响轮播图满屏显示 */
@media (max-width: 768px) {
  html, body {
    background-color: #fff;
  }
}

#app {
  width: 100%;
  min-height: 100vh;
}

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

/* Carousel Section */
.carousel-section {
  width: 100%;
  position: relative;
  margin-bottom: 24px;
  margin-top: 30px;
  padding: 30px 40px;
  background-color: #dcd8cd;
}

.carousel-container {
  width: 100%;
  /* 自适应屏宽与缩放 */
  max-width: min(1720px, 96vw);
  margin: 0 auto;
}

/* Wider carousel on large desktop screens */
@media (min-width: 1440px) {
  .carousel-container {
    max-width: 1400px;
  }
}

@media (min-width: 1680px) {
  .carousel-container {
    max-width: 1560px;
  }
}

@media (min-width: 1920px) {
  .carousel-container {
    max-width: 1720px;
  }
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slides.no-transition {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.slide-content {
  position: relative;
  width: 100%;
  /* 自适应高度，随视口宽度缩放，并限制上下限 */
  height: clamp(420px, 56vw, 920px);
  background-color: #dcd8cd;
}

/* Larger carousel height on big desktop screens */
@media (min-width: 1440px) {
  .slide-content { height: clamp(500px, 52vw, 920px); }
}

@media (min-width: 1680px) {
  .slide-content { height: clamp(560px, 50vw, 920px); }
}

@media (min-width: 1920px) {
  .slide-content { height: clamp(600px, 48vw, 920px); }
}

.slide-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #dcd8cd;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 600px;
  z-index: 2;
}

.slide-text-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 30px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slide-title {
  font-size: 32px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.slide-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
  padding: 0;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}

.carousel-arrow img {
  /* 箭头尺寸自适应缩放 */
  width: clamp(20px, 1.8vw, 32px);
  height: clamp(20px, 1.8vw, 32px);
  object-fit: contain;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-title-image {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: inline-block;
}

@media (max-width: 1024px) {
  .section-title-image img {
    max-width: 820px;
  }
}

@media (max-width: 768px) {
  .section-title-image img {
    max-width: 90%;
  }
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 10px;
  font-family: 'STSong', serif;
}

.section-subtitle {
  text-align: center;
  font-size: 28px;
  color: #8B6914;
  margin-bottom: 60px;
  font-family: 'STSong', serif;
}

.features-grid {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
  gap: .533333rem;
}

.feature-item {
  text-align: center;
  padding: .533333rem;
  flex: 1;
  min-width: 0;
}

.feature-icon {
  margin: 0 auto .533333rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 7.5rem;
  height: auto;
  aspect-ratio: 1;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: .48rem;
  color: #2c3e50;
  margin: 0 0 .213333rem;
  font-weight: 700;
}

.feature-subtitle {
  font-size: .373333rem;
  color: #7f8c8d;
  margin: 0;
  font-weight: 400;
}

.feature-divider {
  width: .053333rem;
  height: 2.5rem;
  background: #999;
  margin: 0 4.68%;
  flex-shrink: 0;
  border-radius: .026667rem;
  align-self: center;
}

/* Products Section */
.products-section {
  padding: 0px 0 80px;
  background-color: #fff;
  margin-top: -65px;
}

.products-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 50px;
  font-family: 'STSong', serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }
}

.medicine-card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 25px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.medicine-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 图片区域 */
.medicine-image {
  flex: 0 0 200px;
  min-height: 250px;
  background-color: #F5F5DC;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.medicine-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  z-index: 5;
}

.status-badge.status-sold-out {
  background-color: #E53935;
  color: #fff;
}

.status-badge.status-hot-sale {
  background-color: #FF9800;
  color: #fff;
}

/* 产品信息 */
.medicine-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.medicine-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.medicine-name {
  font-size: 16px;
  font-weight: bold;
  color: #2c2c2c;
  margin: 0;
}

.medicine-price {
  font-size: 20px;
  font-weight: bold;
  color: #c0955f;
}

.medicine-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 0;
}

.price-trend {
  margin-top: 15px;
  flex: 1;
}

.trend-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trend-title {
  font-size: 14px;
  color: #666;
  font-weight: bold;
  margin: 0;
}

.medicine-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.inventory {
  font-size: 14px;
  color: #666;
}

.chart-container {
  width: 100%;
  height: 160px;
  position: relative;
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 10px;
}

.trend-chart {
  width: 100%;
  height: 100%;
}

.buy-button {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #FF9800;
  color: #fff;
}

.buy-button:hover:not(.sold-out):not(:disabled) {
  background-color: #F57C00;
}

.buy-button.sold-out,
.buy-button:disabled {
  background-color: #E0E0E0;
  color: #999;
  cursor: not-allowed;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #dcd8cd;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #E0E0E0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-section {
    margin: 0;          /* 移除上下外边距，避免背景多出一截 */
    padding: 0;         /* 去内边距，贴边满屏 */
    background: transparent; /* 背景透明，由图片铺满视觉 */
  }

  .carousel-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }

  .carousel-wrapper {
    border-radius: 0;
    margin: 0 !important;
  }

  .slide-content {
    height: 100vw !important; /* 全屏宽，同步为等比例高度，保证满屏 */
    background: transparent;   /* 移除内容容器背景色 */
  }

  .slide-image {
    background: transparent;   /* 移除图片容器背景色 */
  }
  
  /* 收紧轮播图与下方版块的间距，避免空白区过大 */
  .features-section {
    padding: 20px 0 40px;
    margin-top: -130px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carousel-arrow.left {
    left: 10px;
  }
  
  .carousel-arrow.right {
    right: 10px;
  }
  
  .slide-title {
    font-size: 24px;
  }
  
  .slide-subtitle {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 22px;
  }
  
  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
  }
  
  .feature-item {
    flex: 0 1 calc(50% - 10px);
    min-width: 140px;
    padding: 15px 10px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
  }
  
  .feature-title {
    font-size: 14px;
  }
  
  .feature-subtitle {
    font-size: 11px;
  }
  
  .feature-divider {
    display: none;
  }
  
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
    padding: 0 10px;
  }
  
  .medicine-card {
    flex-direction: row;
    align-items: stretch;
    padding: 15px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .medicine-image {
    flex: 0 0 150px;
    min-height: auto;
    height: auto;
    align-self: stretch;
    border-radius: 4px;
  }
  
  .medicine-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  
  .medicine-info-top {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .medicine-name {
    font-size: 14px;
  }
  
  .medicine-price {
    font-size: 18px;
  }
  
  .medicine-description {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .price-trend {
    margin-top: 10px;
  }
  
  .chart-container {
    height: 140px;
    padding: 8px;
  }
  
  .trend-title-container {
    margin-bottom: 8px;
  }
  
  .medicine-footer {
    gap: 10px;
  }
  
  .buy-button {
    padding: 6px 15px;
    font-size: 12px;
  }
}

/* Mobile fine-tuning for features grid */
@media (max-width: 767px) {
  .features-grid {
    justify-content: center;
    gap: .4rem;
  }
  .feature-item {
    flex: 0 1 48%;
    min-width: 0;
    padding: .4rem;
  }
  .feature-icon {
    width: 36vw !important;      /* 随屏宽放大 */
    height: 36vw !important;     /* 保持正方形比例 */
    max-width: none !important;
  }
  .feature-icon img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .section-title-image img {
    width: 70% !important;
    margin: 0 auto 6% !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .feature-item {
    flex-basis: 100%;
  }
  .feature-icon {
    max-width: 4rem;
  }
}

/* Match referenced responsive behavior */
@media (max-width: 767px) {
  .section-title-image {
    text-align: center;
  }
  .section-title-image img {
    width: 60%;
    max-width: none;
    margin: 0 auto 6%;
    display: block;
  }

  .slide-content {
    display: flex;
    flex-direction: column;
  }
  .slide-image {
    border-radius: 0rem;
    flex: 0 0 60%;
  }
  .slide-text {
    flex: 0 0 40%;
    padding: .533333rem;
  }
  .slide-title {
    font-size: 1.8rem;
    margin: 0 0 .4rem;
  }
  .slide-subtitle {
    font-size: 1rem;
  }
  .carousel-arrow {
    width: 1.333333rem;
    height: 1.333333rem;
    border-radius: .16rem;
  }
  .carousel-arrow img {
    width: .533333rem;
    height: .533333rem;
  }
  .carousel-arrow.left {
    left: .533333rem;
  }
  .carousel-arrow.right {
    right: .533333rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .section-title-image {
    text-align: center;
  }
  .section-title-image img {
    width: 11.82%;
    max-width: none;
    margin: 0 auto 4.16%;
    display: block;
  }
  .carousel-container {
    padding: 4.2% 8.4%;
  }
  .slide-content {
    display: flex;
    flex-direction: row;
  }
  .slide-image {
    flex: 1;
  }
  .slide-text {
    flex: 1;
    padding: 1.6rem;
  }
  .slide-title {
    font-size: 3rem;
    margin: 0 0 .8rem;
  }
  .slide-subtitle {
    font-size: 1.4rem;
  }
  .carousel-arrow {
    width: 1.866667rem;
    height: 1.866667rem;
    border-radius: .266667rem;
  }
  .carousel-arrow img {
    width: .746667rem;
    height: .746667rem;
  }
  .carousel-arrow.left {
    left: 1.066667rem;
  }
  .carousel-arrow.right {
    right: 1.066667rem;
  }
}

/* Desktop enhancements to match referenced layout */
@media (min-width: 1200px) {
  .feature-icon {
    max-width: 9rem;
  }
  .section-title-image {
    text-align: center;
  }

  .section-title-image img {
    width: 18%;
    max-width: none;
    margin: 0 auto 4.16%;
    display: block;
  }

  .slide-title {
    font-size: 3.5rem;
  }

  .slide-subtitle {
    font-size: 1.6rem;
  }

  .carousel-arrow {
    width: 2.133333rem;
    height: 2.133333rem;
    border-radius: .32rem;
  }

  .carousel-arrow img {
    width: .853333rem;
    height: .853333rem;
  }

  .carousel-arrow.left {
    left: 1.333333rem;
  }

  .carousel-arrow.right {
    right: 1.333333rem;
  }
}

/* Product Detail Page Styles */
.app-container {
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
}

.layout {
  width: 100%;
}

.layout-content {
  width: 100%;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Back Home Button */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: none;
  border: none;
  color: #007AFF;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-bottom: 20px;
}

.back-home-btn:hover {
  opacity: 0.7;
}

.back-icon {
  font-size: 20px;
  font-weight: bold;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  color: #2f2f2f;
  font-weight: 700;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-underline-offset: 0.213333rem;
}

/* Product Display */
.product-display {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: flex-start;
}

/* Product Image Section */
.product-image-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 13.333333rem;
  margin-left: 2rem;
}

.main-image {
  width: 100%;
  background-color: #F5F5DC;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3/4;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  background-color: #F5F5DC;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.thumbnail-item:hover {
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: #007AFF;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.product-info {
  flex: 1;
  max-width: 500px;
}

.product-info .product-title {
  font-size: 28px;
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.product-price {
  font-size: 18px;
  color: #2c2c2c;
  margin-bottom: 15px;
}

.product-stock {
  font-size: 18px;
  color: #FF9800;
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.product-description p {
  margin: 0;
}

.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: 16px 24px;
  background-color: #007AFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.order-button:hover {
  background-color: #0056CC;
  transform: translateY(-2px);
}

.order-button:active {
  transform: translateY(0);
}

.order-button:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
}

.play-icon {
  font-size: 14px;
}

/* Rich Content */
.rich-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 2;
  color: #333;
}

/* 让富文本内容更宽，抵消父容器 .product-detail 的左右 20% 内边距 */
.rich-content[data-v-0d3e5a56] {
  max-width: none;
  margin-left: -0rem; /* align with product image left edge */
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* 自适应调整富文本左右外边距，保持视觉宽度在不同屏宽下合理 */
@media (max-width: 1199px) {
  .rich-content[data-v-0d3e5a56] {
    margin-left: -14%;
    margin-right: -14%;
  }
}

@media (max-width: 991px) {
  .rich-content[data-v-0d3e5a56] {
    margin-left: -10.5rem; /* keep alignment until mobile breakpoint */
    margin-right: 0;
  }
}

.rich-content > div {
  margin-bottom: 15px;
}

.rich-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

/* Responsive Design for Product Detail */
@media (max-width: 768px) {
  .product-detail {
    padding: 15px;
  }
  
  .back-home-btn {
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 15px;
  }
  
  .page-header {
    margin-bottom: 30px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .product-display {
    flex-direction: column;
    gap: 30px;
  }
  
  .product-image-section {
    max-width: 100%;
  }
  
  .product-info {
    max-width: 100%;
  }
  
  .product-info .product-title {
    font-size: 20px;
  }
  
  .product-price,
  .product-stock {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .order-button {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .rich-content {
    padding: 30px 15px;
    font-size: 14px;
    line-height: 1.8;
  }
  .rich-content[data-v-0d3e5a56] {
    margin-left: 0;
    margin-right: 0;
  }
  
  .thumbnail-list {
    gap: 8px;
    margin-top: 12px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
}


/* Product Detail (scoped attributes from product-detail.html) */
.product-detail[data-v-0d3e5a56] {
  min-height: 100vh;
  background: #ffffff;
  padding: 1.066667rem 14%;
  font-family: Microsoft YaHei, sans-serif;
}

.back-home-btn[data-v-0d3e5a56] {
  position: fixed;
  top: .533333rem;
  left: .533333rem;
  background: #337ab7;
  color: #fff;
  border: none;
  padding: .32rem .533333rem;
  border-radius: .213333rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .213333rem;
  transition: all .3s;
  box-shadow: 0 .106667rem .32rem #337ab74d;
  z-index: 1000;
}

.back-home-btn[data-v-0d3e5a56]:hover {
  background: #286090;
  transform: translateY(-.053333rem);
  box-shadow: 0 .16rem .426667rem #337ab766;
}

.back-icon[data-v-0d3e5a56] {
  font-size: 1.2rem;
  font-weight: 700;
}

.page-header[data-v-0d3e5a56] {
  margin-bottom: 1.333333rem;
  text-align: center;
}

.page-title[data-v-0d3e5a56] {
  font-size: 2rem;
  color: #2f2f2f;
  font-weight: 700;
  margin: 0;
  text-decoration: underline;
  text-decoration-color: #d4af37;
  text-underline-offset: .213333rem;
}

.product-display[data-v-0d3e5a56] {
  display: flex;
  gap: 1.333333rem;
  margin-bottom: 1.6rem;
  background: white;
  padding: 0;
  margin-left: -0rem;
}

.product-image-section[data-v-0d3e5a56] {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 13.333333rem;
}

.main-image[data-v-0d3e5a56] {
  width: 100%;
  height: 20rem;
  border-radius: .32rem;
  margin-bottom: .533333rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 .213333rem .64rem #00000026;
}

.main-image img[data-v-0d3e5a56] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-image[data-v-0d3e5a56] {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: .213333rem;
  overflow: hidden;
  border: .08rem solid #007bff;
}

.thumbnail-image img[data-v-0d3e5a56] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info[data-v-0d3e5a56] {
  flex: 1;
  padding-left: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-title[data-v-0d3e5a56] {
  font-size: 1.5rem;
  color: #000;
  font-weight: 700;
  margin: 0 0 .666667rem;
  line-height: 1.2;
  padding-bottom: .533333rem;
  border-bottom: .026667rem dotted #cccccc;
}

.product-price[data-v-0d3e5a56] {
  font-size: 1rem;
  color: #c0955f;
  margin-bottom: .4rem;
  font-weight: 600;
}

.product-stock[data-v-0d3e5a56] {
  font-size: 1rem;
  color: #c0955f;
  margin-bottom: .8rem;
  font-weight: 600;
}

.product-description[data-v-0d3e5a56] {
  margin-bottom: 1.066667rem;
}

.product-description p[data-v-0d3e5a56] {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.order-button[data-v-0d3e5a56] {
  background: #337ab7;
  color: #fff;
  border: none;
  padding: .533333rem 1.066667rem;
  border-radius: .213333rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .266667rem;
  transition: all .3s;
  align-self: flex-start;
  box-shadow: 0 .106667rem .32rem #007bff4d;
}

.order-button[data-v-0d3e5a56]:hover {
  background: #337ab7;
  transform: translateY(-.053333rem);
  box-shadow: 0 .16rem .426667rem #007bff66;
}

.play-icon[data-v-0d3e5a56] {
  font-size: .426667rem;
}

.rich-content[data-v-0d3e5a56] {
  margin-top: 1.333333rem;
  padding: 1.066667rem 0;
  border-top: .053333rem solid #f0f0f0;
}

@media (max-width: 768px) {
  .product-detail[data-v-0d3e5a56] {
    padding: 3rem;
  }

  .back-home-btn[data-v-0d3e5a56] {
    top: .4rem;
    left: .4rem;
    padding: .266667rem .426667rem;
    font-size: .9rem;
  }

  .back-icon[data-v-0d3e5a56] {
    font-size: 1rem;
  }

  .product-info[data-v-0d3e5a56] {
    padding-left: 0;
  }

  .page-title[data-v-0d3e5a56] {
    font-size: 2rem;
  }

  .product-display[data-v-0d3e5a56] {
    flex-direction: column;
    gap: .8rem;
    margin-left: 0;
  }

  .main-image[data-v-0d3e5a56] {
    height: 15rem;
  }

  .thumbnail-image[data-v-0d3e5a56] {
    width: 2.133333rem;
    height: 2.133333rem;
  }

  .product-title[data-v-0d3e5a56] {
    font-size: 2rem;
  }

  .product-price[data-v-0d3e5a56],
  .product-stock[data-v-0d3e5a56] {
    font-size: 1.4rem;
  }

  .product-description p[data-v-0d3e5a56] {
    font-size: 1.1rem;
  }

  .order-button[data-v-0d3e5a56] {
    padding: .426667rem .853333rem;
    font-size: 1.1rem;
  }

  .rich-content[data-v-0d3e5a56] {
    margin-top: .8rem;
    padding: .8rem 0;
  }
}

/* 大屏幕居中优化 */
@media (min-width: 1400px) {
  .product-detail[data-v-0d3e5a56] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.066667rem 10%;
  }
}

@media (min-width: 1600px) {
  .product-detail[data-v-0d3e5a56] {
    max-width: 1500px;
    padding: 1.066667rem 12%;
  }
}
