.bundle-container {
  max-width: 1140px; /* 对齐下方单品网格的总宽度 */
  margin: 0 auto 40px auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.bundle-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  overflow: hidden;
}

/* ==========================================
   2. 推荐角标 (HOT / RECOMMENDED)
   ========================================== */
.bundle-badge {
    position: absolute;
    top: 24px;
    right: -48px;
    width: 190px;
    height: 42px;
    transform: rotate(45deg);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, #ff5a5e, #ff7b22);
    box-shadow: 0 8px 18px rgba(255, 91, 94, .25);
}

/* ==========================================
   3. 头部区域 (继承模板样式)
   ========================================== */
.bundle-header h2 {
  font-weight: 850;
  margin: 0 0 8px 0;
  text-align: center;
}

.bundle-subtitle {
  opacity: 0.75;      /* 不硬编码灰色，使用透明度适应模板 */
  line-height: 1.5;
  text-align: center;
  margin: 0 0 20px 0;
}

/* ==========================================
   4. 组件网格与复选框区域
   ========================================== */
.select-all-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.select-all-label .label-text {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.selected-count-label {
  color: #6b7288;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 保持 3 列对齐 */
  gap: 16px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #edf2f7;
}

.component-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.component-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.component-checkbox, 
#selectAll {
  display: none; /* 隐藏原生 Checkbox */
}

/* 自定义 Checkbox 样式 */
.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-label input:checked + .custom-checkbox {
  background-color: #5b50f6; /* 主推荐色 */
  border-color: #5b50f6;
}

.checkbox-label input:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.service-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.service-link {
  font-size: 17px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.service-link:hover {
  color: #5b50f6;
}

.jump-icon {
  font-size: 16px;
  margin-left: 4px;
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}

.service-link:hover .jump-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* ==========================================
   5. 底部行动点 (Action Area)
   ========================================== */
.bundle-action-area {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.system-download-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* 兼容小屏幕自动换行 */
}

.download-btn-wrapper {
  text-decoration: none;
}

.bundle-download-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;      /* 确保图标与右侧文字组垂直居中 */
  justify-content: center; /* 水平居中 */
  gap: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 54px;
  min-width: 260px;
  box-sizing: border-box;
}

.btn-primary-download:hover {
  background: #4a3ee0;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(91, 80, 246, 0.4);
}
.btn-win {
  background: #5b50f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(91, 80, 246, 0.3);
}

.btn-win:hover {
  background: #4a3ee0;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(91, 80, 246, 0.4);
}
.btn-mac {
  background: #FFB354; 
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 94, 94, 0.3);
}

.btn-mac:hover {
  background: #F0A044;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 94, 94, 0.4);
}

.sys-icon {
  flex-shrink: 0;
}

.download-icon {
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;     /* 水平居中 */
  justify-content: center;/* 垂直居中 */
  line-height: 1.2;
  text-align: center;      /* 多行文本居中 */
}

.btn-text {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap; /* 防止单品名字过长折行 */
}

/* 第二行：括号内的选择数量，换行并适当缩小 */
.btn-status {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 3px;
  line-height: 1;
}
.btn-status.is-hidden {
  display: none !important;
}

.bundle-download-meta {
  margin-top: 8px;
  font-size: 15px;
  color: inherit;
  opacity: 0.75;
  text-align: center;
}

.bundle-download-meta a {
  color: #5b50f6;
  text-decoration: underline;
}

.bundle-platform-meta {
  margin-top: 2px;
  color: #5f667a;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.bundle-platform-meta strong {
  color: #151331;
  font-weight: 700;
}

.bundle-card[id],
.merged-product-card[id] {
  scroll-margin-top: 110px;
}

.bundle-platform-strip {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e8ecf6;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(43, 48, 92, 0.07);
}

.platform-strip-copy h3 {
  margin: 0;
  color: #151331;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.platform-strip-copy p {
  margin: 5px 0 0;
  color: #59627c;
  font-size: 16px;
  line-height: 1.45;
}

.platform-pill-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

.platform-pill-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  color: #151331;
  background: #ffffff;
  border: 1px solid #e3e8f3;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.platform-pill-list b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffa52c, #ff5e5e);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .bundle-platform-strip {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .bundle-card[id],
  .merged-product-card[id] {
    scroll-margin-top: 86px;
  }

  .select-all-wrapper {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .bundle-platform-strip {
    padding: 16px;
  }
}

.single-product-card {
  background: #ffffff !important;
  border: 1px solid #eef2f6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

.single-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
  border-color: #e2e8f0 !important;
}

/* 2. 顶部 Logo 与标题紧凑化 */
.single-product-card img[alt*="spotify"] {
  max-height: 48px; /* 适度缩小图标，保持精致 */
  width: auto;
}

.single-product-card .card-title {
  font-size: 1.125rem !important;
  font-weight: 700;
  color: #111827;
  margin-top: 10px;
}

/* 3. 功能描述文本调整 */
.single-product-card p.fs-5 {
  font-size: 15px !important;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 0;
  padding: 0 10px;
}

/* 4. 分割线微调 */
.single-product-card hr {
  margin: 1.25rem 0 !important;
  border-color: #edf2f7;
  opacity: 0.8;
}

/* 5. 主下载按钮微调 */
.single-product-card .btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
  font-weight: 600;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(91, 80, 246, 0.2);
}

/* 6. 系统/版本/大小 参数排版（横向平铺） */
.single-product-card .lh-sm {
  display: flex;
  justify-content: center;
  gap: 16px; /* 平铺间距 */
  flex-wrap: wrap;
  font-size: 15px;
  color: #666666;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #f1f5f9;
}

.single-product-card .lh-sm p {
  margin-bottom: 0 !important;
}

.single-product-card .lh-sm a {
  color: #5b50f6;
  text-decoration: underline;
}

/* ==========================================
   6. 移动端自适应 (Responsive)
   ========================================== */
@media (max-width: 768px) {
  .bundle-card {
    padding: 24px 16px;
  }
  
  .components-grid {
    grid-template-columns: repeat(1, 1fr); /* 手机端单列排布 */
  }
}
@media (max-width: 768px) {
  .bundle-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .system-download-group {
    align-items: stretch;
    flex-direction: column;
  }

  .bundle-download-option {
    width: 100%;
  }

  .download-btn-wrapper,
  .btn-primary-download {
    width: 100%;
  }
}

.merged-download-section {
  padding: 46px 0 72px;
  background: #f5fbff;
}

.merged-download-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.merged-download-heading h2 {
  margin-bottom: 10px;
  color: #151331;
  font-weight: 850;
}

.merged-download-heading p {
  margin: 0;
  color: #59627c;
  line-height: 1.55;
}

.merged-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.merged-product-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  min-height: 236px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(43, 48, 92, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.merged-product-card:hover {
  border-color: #dde4ef;
  box-shadow: 0 10px 24px rgba(43, 48, 92, 0.07);
  transform: translateY(-1px);
}

.merged-product-card .merged-product-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.merged-product-card h3 {
  margin: 0 0 16px;
  color: #151331;
  font-size: 1.145rem;
  font-weight: 800;
  line-height: 1.25;
}

.merged-product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.merged-product-card h3 a:hover {
  color: #5b50f6;
  text-decoration: none;
}

.merged-product-card p {
  margin: 0 0 18px;
  color: #4f5874;
  font-size: 17px;
  line-height: 1.55;
}

.merged-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.merged-download-option {
  min-width: 150px;
}

.merged-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(91, 80, 246, 0.22);
}

.merged-download-btn:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.merged-download-btn img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.merged-download-btn.btn-win {
  background: #5b50f6;
}

.merged-download-btn.btn-mac {
  background: #FFB354;
  box-shadow: 0 5px 14px rgba(255, 94, 94, 0.22);
}

.merged-download-meta {
  color: #6d7488;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  padding-top: 5px;
}

.merged-download-meta a {
  color: #5b50f6;
  text-decoration: underline;
}

.merged-platform-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e6ebf3;
  color: #5f667a;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .merged-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .merged-download-section {
    padding-top: 36px;
  }

  .merged-product-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    text-align: center;
  }

  .merged-product-card .merged-product-logo {
    margin: 0 auto;
  }

  .merged-download-option {
    width: 100%;
  }
}
/* ==========================================
   Desktop 1200px+ Typography
   ========================================== */

.bundle-header h2{
  font-size:32px;
  line-height:1.25;
}

.bundle-subtitle{
  font-size:17px;
  line-height:1.6;
}

/* Select all */
.select-all-label .label-text{
  font-size:15px;
}

.selected-count-label{
  font-size:15px;
}

/* Service list */
.service-link{
  font-size:17px;
}

.jump-icon{
  font-size:12px;
}

/* Main download buttons */
.btn-text{
  font-size:16px;
  font-weight:600;
}

.btn-status{
  font-size:15px;
}

.bundle-download-meta{
  font-size:15px;
}

.bundle-platform-meta{
  font-size:15px;
  line-height:1.5;
}

/* Platform strip */
.platform-strip-copy h3{
  font-size:20px;
  line-height:1.3;
}

.platform-strip-copy p{
  font-size:15px;
  line-height:1.5;
}

.platform-pill-list span{
  font-size:15px;
}

/* Single product cards */
.single-product-card .card-title{
  font-size:20px !important;
}

.single-product-card p.fs-5{
  font-size:15px !important;
  line-height:1.6;
}

.single-product-card .btn-primary{
  font-size:15px !important;
}

.single-product-card .lh-sm{
  font-size:15px;
}

/* Merged download section */
.merged-download-heading h2{
  font-size:34px;
  line-height:1.25;
}

.merged-download-heading p{
  font-size:17px;
  line-height:1.6;
}

.merged-product-card h3{
  font-size:24px;
  line-height:1.3;
}

.merged-product-card p{
  font-size:17px;
  line-height:1.6;
}

.merged-download-btn{
  font-size:17px;
}

.merged-download-meta{
  font-size:15px;
  line-height:1.4;
}

.merged-platform-line{
  font-size:15px;
  line-height:1.5;
}