.product-center-page{background:radial-gradient(circle at top,#fff 0,#eef3ff 35%,#f5f7fb 100%)}
.product-center-shell{width:min(1180px,calc(100% - 32px));margin:24px auto 48px}
.product-hero,.product-card,.product-upload-card{background:rgba(255,255,255,.93);border:1px solid rgba(255,255,255,.65);box-shadow:0 18px 45px rgba(16,24,40,.12);backdrop-filter:blur(16px);border-radius:24px}
.product-hero{padding:28px;display:flex;justify-content:space-between;gap:24px;align-items:center}
.product-hero h1{margin:0 0 12px;font-size:clamp(30px,4vw,52px);line-height:1.1;color:#1f2940}
.product-hero p{margin:0;color:#67738d;line-height:1.8}
.product-badge{min-width:152px;padding:24px 20px;border-radius:20px;background:linear-gradient(135deg,#4f46e5,#ef5da8);color:#fff;font-size:30px;text-align:center;font-weight:800}
.product-toolbar{display:flex;justify-content:flex-end;margin:18px 0}
.product-list{display:grid;gap:16px}
.product-card{padding:18px;display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:18px;align-items:start}
.product-cover-wrap{position:relative}
.product-cover{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;background:#f4f7ff;cursor:zoom-in}
.product-thumbs{display:flex;gap:8px;margin-top:8px;overflow:auto;padding-bottom:4px}
.product-thumbs img{width:66px;height:50px;object-fit:cover;border-radius:8px;border:1px solid #d8def0;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s}
.product-thumbs img:hover{transform:scale(1.04);border-color:#4f46e5;box-shadow:0 6px 18px rgba(79,70,229,.18)}
.product-name{margin:0 0 8px;font-size:24px;color:#1f2940}
.product-meta{margin:0 0 10px;color:#4f46e5;font-weight:700}
.product-desc{margin:0 0 10px;color:#4c5772;line-height:1.8}
.product-label{font-weight:700;color:#1f2940}
.product-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.product-like{border:none;border-radius:999px;padding:10px 16px;background:#162033;color:#fff;font-weight:700;cursor:pointer}
.product-like[disabled]{opacity:.65;cursor:not-allowed}
.product-buy{display:inline-block;text-decoration:none;border:1px solid #d5dcf1;padding:10px 16px;border-radius:999px;color:#1f2940;font-weight:700}
.upload-layout{display:grid;grid-template-columns:minmax(260px,.9fr) 1fr;gap:20px}
.upload-dropzone{min-height:300px;border:2px dashed #b9c4e2;border-radius:20px;display:grid;place-items:center;gap:10px;padding:20px;text-align:center;cursor:pointer;background:linear-gradient(180deg,rgba(79,70,229,.05),rgba(239,93,168,.08))}
.upload-dropzone:hover{border-color:#4f46e5}
#productPreview{width:100%;max-height:300px;object-fit:cover;border-radius:14px;margin-top:8px}
.product-upload-card{padding:24px}
.product-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.product-form-grid label span{display:block;font-weight:700;margin-bottom:8px}
.product-form-grid input,.product-form-grid textarea,.product-form-grid select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #d9e0ef;background:#fff}
.product-form-grid .full-width{grid-column:1/-1}
.product-form-grid textarea{min-height:100px;resize:vertical}
.product-status{color:#67738d;margin:0}

/* ========== 电商式灯箱预览 ========== */
body.lightbox-open{
  overflow:hidden;
}

.product-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.product-lightbox.is-open{
  display:block;
}

.product-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,12,20,.62);
  opacity:0;
  transition:opacity .25s ease;
}

.product-lightbox.is-open .product-lightbox-backdrop{
  opacity:1;
}

.product-lightbox-panel{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%) scale(.94);
  width:min(78vw,980px);
  max-height:84vh;
  background:#fff;
  border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
  padding:18px 64px 18px;
  opacity:0;
  transition:transform .28s ease, opacity .28s ease;
  overflow:hidden;
}

.product-lightbox.is-open .product-lightbox-panel{
  transform:translate(-50%,-50%) scale(1);
  opacity:1;
}

.product-lightbox-main{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:min(62vh,680px);
  background:linear-gradient(180deg,#f9fbff,#f3f6fd);
  border-radius:16px;
  overflow:hidden;
}

.product-lightbox-image{
  max-width:100%;
  max-height:min(62vh,680px);
  object-fit:contain;
  opacity:0;
  transform:scale(.985);
  transition:opacity .22s ease, transform .22s ease;
}

.product-lightbox-image.is-loaded{
  opacity:1;
  transform:scale(1);
}

.product-lightbox-close{
  position:absolute;
  top:12px;
  right:14px;
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  background:rgba(22,32,51,.08);
  color:#162033;
  font-size:24px;
  line-height:40px;
  text-align:center;
  cursor:pointer;
  z-index:2;
  transition:background .2s ease, transform .2s ease;
}

.product-lightbox-close:hover{
  background:rgba(22,32,51,.16);
  transform:scale(1.04);
}

.product-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:none;
  border-radius:999px;
  background:rgba(22,32,51,.08);
  color:#162033;
  font-size:34px;
  line-height:44px;
  text-align:center;
  cursor:pointer;
  z-index:2;
  transition:background .2s ease, transform .2s ease, opacity .2s ease;
}

.product-lightbox-nav:hover{
  background:rgba(22,32,51,.16);
  transform:translateY(-50%) scale(1.04);
}

.product-lightbox-nav:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.product-lightbox-prev{
  left:12px;
}

.product-lightbox-next{
  right:12px;
}

.product-lightbox-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:14px;
  color:#42506a;
}

.product-lightbox-title{
  font-size:16px;
  font-weight:700;
  color:#1f2940;
}

.product-lightbox-counter{
  font-size:14px;
  color:#67738d;
  white-space:nowrap;
}

@media (max-width:900px){
  .product-card{grid-template-columns:1fr}
  .upload-layout{grid-template-columns:1fr}
}

@media (max-width:720px){
  .product-center-shell{width:min(100% - 20px,1180px)}
  .product-hero{padding:18px;flex-direction:column;align-items:stretch}
  .product-upload-card{padding:18px}
  .product-form-grid{grid-template-columns:1fr}

  .product-lightbox-panel{
    width:min(94vw,980px);
    padding:16px 50px 16px;
  }

  .product-lightbox-main{
    min-height:52vh;
  }

  .product-lightbox-image{
    max-height:52vh;
  }

  .product-lightbox-prev{left:8px}
  .product-lightbox-next{right:8px}
}