/* ===== sections.css：页面各业务模块 ===== */

/* 产品卡片（方形图 + 居中标题价格） */
.card { text-align: center; }
.card__media { display: block; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__title { font-size: 13px; font-weight: 400; margin: 12px 0 4px; line-height: 1.5; }
.card__price { font-size: 13px; color: var(--color-text); }

/* Bronze / Marble 产品轮播：218.667 × 1.2 = 262.4px，间距 16.667 × 1.2 = 20px */
.product-carousel {
  position: relative;
  width: calc(218.667px * 5 + 16.667px * 4);
  max-width: 100%;
  margin: 0 auto;
}
.product-carousel__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.product-carousel__viewport::-webkit-scrollbar { display: none; }
.product-carousel__track { display: flex; gap: 16.667px; width: max-content; }
.product-carousel .card {
  flex: 0 0 218.667px;
  width: 218.667px;
  scroll-snap-align: start;
}
.product-carousel .card__media { width: 100%; aspect-ratio: 1/1; }
.product-carousel .card__media img { width: 100%; height: 100%; }
.product-carousel__arrow {
  position: absolute;
  top: 109.333px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: .85;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  transform: translateY(-50%);
}
.product-carousel__arrow:hover { opacity: 1; }
.product-carousel__arrow svg { width: 20px; height: 20px; }
.product-carousel__arrow--prev { left: 5px; }
.product-carousel__arrow--next { right: 5px; }

/* Hot-Sale 产品轮播：318.333 × 1.2 = 382px，四图加间距总宽 1588px */
#hot-sale .container { max-width: 1400px; }
.product-carousel--hot { width: calc(318.333px * 4 + 16.667px * 3); }
.product-carousel--hot .card { flex-basis: 318.333px; width: 318.333px; }
.product-carousel--hot .card__media { height: 318.333px; }
.product-carousel--hot .product-carousel__arrow { top: 159.167px; }

/* 订购流程：左标题大图 + 右侧步骤 */
.order__wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; }
.order__main img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.order__title { font-size: 34px; font-weight: 700; margin-bottom: 22px; color: #111; }
.order__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.order__step img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.order__step p { margin-top: 8px; font-size: 12px; }

/* 关于我们 */
.about { position: relative; padding: 96px 0; color: #fff; overflow: hidden; }
.about__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.about__inner { position: relative; z-index: 2; max-width: 860px; text-align: center; }
.about__title { font-size: 40px; font-weight: 400; margin-bottom: 18px; }
.about__text { color: #eee; font-size: 15px; line-height: 1.8; margin-bottom: 30px; }

/* 服务承诺 */
.promise { background: var(--color-promise-bg); padding: 70px 0; }
.promise__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.promise__intro h2 { font-size: 28px; font-weight: 400; margin-bottom: 18px; }
.promise__intro p { color: var(--color-muted); line-height: 1.8; margin-bottom: 26px; }
.promise__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promise-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.promise-card__img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.promise-card h4 { font-size: 16px; margin-bottom: 8px; }
.promise-card p { font-size: 13px; color: var(--color-muted); line-height: 1.7; }
/* 主题定制：图上白字 + 下方黑色按钮 */
.theme__media { position: relative; display: block; overflow: hidden; }
.theme__media img { width: 100%; aspect-ratio: 1.04/1; object-fit: cover; transition: transform .5s; }
.theme__media:hover img { transform: scale(1.05); }
.theme__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 17px; font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.theme__btn {
  display: block;
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  margin-top: 6px;
  padding: 18px 0;
  font-size: 14px;
  transition: opacity .3s;
}
.theme__btn:hover { opacity: .85; }

/* 博客 */
/* zoom 1.2 后：图片 279×279、列间距 14、顶部圆角 16 */
#blog .grid-4 { max-width: 965px; margin: 0 auto; gap: 11.667px; }
.post__media { display: block; overflow: hidden; border-radius: 13.333px 13.333px 0 0; }
.post__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.post:hover .post__media img { transform: scale(1.05); }
.post__title { font-size: 17px; font-weight: 600; margin: 16px 0 8px; line-height: 1.4; }
.post__cat { font-size: 13px; color: var(--color-muted); margin-bottom: 6px; }
.post__excerpt { font-size: 13px; color: var(--color-muted); line-height: 1.7; }

/* FAQ 手风琴（两列） */
.faq__title { font-size: 32px; font-weight: 400; margin-bottom: 26px; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--color-line); }
.faq__col .faq__item:first-child { border-top: 1px solid var(--color-line); }
.faq__q {
  width: 100%;
  background: none; border: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.faq__arrow {
  width: 20px; height: 20px;
  background: var(--color-dark);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq__arrow::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-right: 1.4px solid #fff;
  border-bottom: 1.4px solid #fff;
  transform: translate(-50%, -60%) rotate(45deg);
}
.faq__item.is-open .faq__arrow { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 4px 22px; color: var(--color-muted); font-size: 14px; }

/* 黑色服务条 */
.service-bar { background: var(--color-dark); color: #fff; padding: 40px 0; }
.service { text-align: center; padding: 0 16px; }
.service__icon { display: block; font-size: 26px; margin-bottom: 12px; }
.service h4 { font-size: 15px; margin-bottom: 8px; font-weight: 600; }
.service p { font-size: 12px; color: #bbb; line-height: 1.6; }

/* 视频缩略图（竖版） */
.video-thumb { position: relative; display: block; overflow: hidden; }
.video-thumb img { width: 100%; aspect-ratio: 9/16; object-fit: cover; transition: transform .5s; }
.video-thumb:hover img { transform: scale(1.05); }
.video-thumb__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
}
.video-thumb__play::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* 联系表单 */
.contact { padding: 70px 0; }
.contact__title { font-size: 28px; font-weight: 400; text-align: left; margin-bottom: 34px; }
.field { margin-bottom: 20px; border: 0; }
.field > label, .field > legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field i { color: #e00; font-style: normal; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.field textarea { height: 148px; }
.field input:focus, .field textarea:focus { border-color: #999; }
.field__checks { display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 20px 16px; background: #fafafa; }
.field__checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.field__checks input { width: 11px; height: 11px; margin: 0; accent-color: var(--color-dark); }
.field__hint { font-size: 12px; color: var(--color-muted); margin-bottom: 10px; }
.field > .field__upload {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  width: 100px; height: 100px;
  margin-bottom: 0;
  border: 1px dashed #bdced2;
  border-radius: 8px;
  background: #f8fbfb;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.field__upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field__upload-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #e2eff1;
  color: #397985;
  transition: background .2s, transform .2s;
}
.field__upload svg { width: 20px; height: 20px; color: currentColor; }
.field__upload-text { font-size: 11px; font-weight: 500; line-height: 1.2; color: #52676b; }
.field > .field__upload:hover, .field > .field__upload:focus-within {
  border-color: #649ba5;
  background: #f1f8f9;
  box-shadow: 0 4px 12px rgba(57, 121, 133, .1);
  transform: translateY(-1px);
}
.field > .field__upload:hover .field__upload-icon { background: #d3e8eb; transform: translateY(-1px); }
.field > .field__upload.has-file { border-style: solid; border-color: #649ba5; background: #f1f8f9; }
.field__upload-name:not(:empty) { margin-top: 8px; font-size: 12px; color: #48666c; overflow-wrap: anywhere; }
.contact__status:not(:empty) { margin-bottom: 16px; padding: 10px 12px; border-radius: 3px; font-size: 13px; }
.contact__status[data-state="pending"] { color: #48666c; background: #f1f8f9; }
.contact__status[data-state="success"] { color: #23643a; background: #eef8f0; }
.contact__status[data-state="error"] { color: #a32a2a; background: #fff1f1; }
.contact__submit { width: 166px; padding: 14px 0; border-radius: 3px; text-align: center; }
.contact__submit:disabled { opacity: .65; cursor: wait; }

/* ===== 截图对齐微调 ===== */
.card__media { background: none; }
.card__media img { aspect-ratio: 1/1; }
.card__title { font-size: 13px; font-weight: 400; margin: 12px 0 4px; }
.card__price { font-size: 13px; }

/* 视频区对齐参考：竖版 9:16、图下产品名、无播放图标 */
#video .grid-5 { gap: 14px; }
#video .section__title { font-size: 36px; margin-bottom: 36px; }
.video-item__title { margin: 18px 0 0; font-size: 14px; line-height: 1.45; text-align: center; color: #222; }
@media (max-width: 768px) {
  #video .section__title { font-size: 24px; margin-bottom: 24px; }
  .video-item__title { font-size: 12px; margin-top: 12px; }
}
