/* 全局 */
body {
  font-family: 'Noto Sans SC', sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
}
body {
  background: linear-gradient(90deg, #fff5f5 0%, #ffffff 20%, #ffffff 80%, #fff5f5 100%);
}


/* 顶部导航 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: bold;
  font-size: 20px;
  color: #e74c3c;
}

header .logo {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

header .logo img {
  height: 50px;
  margin-right: 8px;
}


header nav a {
  color: #333;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

header nav a:hover {
  color: #e74c3c;
}


/* 主体布局 */
.container {
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ 居中对齐左右内容 */
  gap: 80px; /* 左右间距稍大，保持呼吸感 */
  max-width: 1100px; /* ✅ 限定整体宽度，居中时更稳 */
  margin: 0 auto; /* ✅ 让整个模块在页面居中 */
  padding: 80px 20px; /* ✅ 保留顶部间距 */
  box-sizing: border-box;
}

/* 左侧轮播 */
.slider {
  position: relative;
  width: 46%;
  border-radius: 14px;
  overflow: visible;
  background: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slides img.active {
  display: block;
}

/* ===== 极简白圈箭头（默认隐藏，悬停出现） ===== */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0;
  line-height: 0;
}

/* 箭头符号（黑色线条） */
.prev::after, .next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform-origin: center;
}

.prev::after {
  transform: translate(-50%, -50%) rotate(-135deg);
}
.next::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 悬停时显示 + 放大轻微阴影 */
.slider:hover .prev,
.slider:hover .next {
  opacity: 1;
}

.prev:hover, .next:hover {
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  transform: translateY(-50%) scale(1.05);
}

/* 图片外位置 */
.prev { left: -60px; }
.next { right: -60px; }

/* 移动端靠近一点 */
@media (max-width: 900px) {
  .prev { left: -30px; }
  .next { right: -30px; }
}


/* 右侧信息区 */
.info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.info h1 {
  font-size: 25px;
  margin-bottom: 12px;
  color: #222;
  font-weight: 600;
  white-space: nowrap;
}

/* 标签区 */
.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  background: #f6f6f6;
  color: #555;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1;
}

/* 价格区 */
.price-box {
  display: flex;
  align-items: center; /* ✅ 改为 center，确保上下对齐 */
  gap: 6px;
  margin-bottom: 14px;
}

.current-price {
  color: #ff4400;
  font-size: 26px;  /* 稍大一点更自然 */
  font-weight: bold;
  line-height: 1;   /* 避免多余空隙 */
}

.price-tag {
  color: #ff4400;
  font-size: 16px;
  margin-left: 2px;
  line-height: 1;
}

.sold-count {
  color: #666;
  font-size: 14px;
  line-height: 1;
}

/* 描述区 */
.desc {
  color: #555;
  margin: 15px 0 25px;
  line-height: 1.8;
}

/* 套餐选项区 */
.option-group {
  margin-bottom: 20px;
}

.option-title {
  font-weight: bold;
  margin-bottom: 8px;
}

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

.option {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.3s;
}

.option.active,
.option:hover {
  background: #fff5f5;
  border-color: #e74c3c;
  color: #e74c3c;
}


/* 外层：整块购买区域 */
.buy-area {
  display: flex;
  flex-direction: column;     /* 外层是上下结构：上面是数量行，下面是按钮 */
  align-items: flex-start;
  gap: 30px;                  /* 数量行 和 按钮 的距离 */
  margin-top: 16px;
  max-width: 420px;
  font-family: "Microsoft YaHei", sans-serif;
  color: #333;
  font-size: 15px;
  width: 100%;
}

/* 内层：数量这一行本身保持一行展示 */
.buy-row {
  display: flex;
  align-items: center;
  gap: 10px;                  /* “数量：” 和 选择框之间的间距 */
}

.buy-label {
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

/* 数量选择框本身保持你原来的样式 */
.quantity-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
  background: #fff;
}

.qty-btn,
.qty-input {
  width: 36px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1;
  color: #333;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.qty-input {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  width: 40px;
  font-size: 15px;
}

.qty-btn:hover:not(.disabled) {
  background: #f8f8f8;
}
.qty-btn.disabled {
  color: #aaa;
  cursor: not-allowed;
}

/* 立即购买按钮：整行大按钮，放在下面一行 */
.btn-buy {
  width: 100%;
  background: linear-gradient(90deg, #ff7e00, #ff3300);
  border: none;
  padding: 12px 0;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 120, 0, 0.28);
  transition: 0.2s;
}

.btn-buy:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-buy:active {
  opacity: 0.95;
  transform: translateY(0);
}

/* 小屏微调 */
@media (max-width: 480px) {
  .buy-area {
    max-width: 100%;
    gap: 14px;
  }

  .qty-btn,
  .qty-input {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .btn-buy {
    font-size: 15px;
    padding: 11px 0;
  }
}
/* 图文详情模块整体 */
.detail-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;  /* 水平居中 */
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: -20px;    /* 原120px改小为40px */
  margin-bottom: 60px; /* 保留底部留白 */
}


.detail-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
}

.detail-section img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* ===== 购买须知浮动挂件（修正版） ===== */
.side-note {
  position: fixed;
  top: 50%;
  left: 30px;              /* 离屏幕左边稍微一点距离 */
  transform: translateY(-50%);
  z-index: 99999;
  font-family: 'Noto Sans SC', sans-serif;
  color: #444;

  display: flex;           /* 左右排列：红条 + 白框 */
  align-items: stretch;

  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* ===== 红色竖条按钮（始终可见） → 改成竖排高级渐变样式 ===== */
.note-tab {
  background-color: #f7f7f7;         /* 纯白背景 */
  color: #444;                       /* 稳重灰字 */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  font-size: 16px;
  font-weight: 500;
  padding: 24px 12px;
  min-width: 46px;
  border-radius: 12px;               /* 四角圆润 */
  margin-right: 8px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid rgba(0,0,0,0.05); /* 细灰边 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* 轻阴影 */
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.note-tab:hover {
  background-color: #f7f7f7;         /* hover 时轻微灰 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* ===== 白色内容卡片（可折叠） ===== */
.note-content {
  background: #fff;
  color: #333;
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 16px 18px;
  line-height: 1.8;
  text-align: left;   /* ✅ 让所有文字左对齐 */
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ===== 标题与关闭按钮 ===== */
.note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
}
.note-title {
  font-weight: bold;
  font-size: 16px;
  color: #e74c3c;
  line-height: 1.2;
}
.note-close-btn {
  border: none;
  background: none;
  font-size: 20px;
  color: #888;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.note-close-btn:hover {
  color: #ff4b4b;
}

/* ===== 列表样式 ===== */
.note-list {
  list-style: disc;
  margin-left: 12px;     /* ✅ 小圆点到边的距离 */
  padding-left: 0;
  text-align: left;      /* ✅ 内容左对齐 */
  font-size: 14px;
  line-height: 1.8;
}

.note-list li {
  margin-bottom: 4px;
}


/* ===== 折叠状态动画（只隐藏白框） ===== */
.side-note.collapsed .note-content {
  transform: translateX(-110%);  /* 白框滑到左边 */
  opacity: 0;                    /* 渐隐 */
  pointer-events: none;          /* 不可点击 */
}

/* ===== 页脚固定到底部 ===== */
footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background: #f9f9f9;
  font-size: 14px;
  color: #777;
  position: fixed;   /* 固定定位 */
  bottom: 0;         /* 贴底 */
  left: 0;
  z-index: 10;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

/* 为了避免内容被页脚遮住，给页面底部留出空间 */
body {
  padding-bottom: 70px; /* 和 footer 高度差不多 */
}

