.ad-market-wrap{display:grid;gap:10px}.ad-market-hero{padding:24px;text-align:center;background:linear-gradient(180deg,#f8fbff,#f2f7ff);border:1px solid #dce9f8}.ad-market-hero h1{margin:0 0 10px}.ad-market-hero p{margin:0 auto;max-width:900px;line-height:1.8}.ad-market-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:16px}.ad-market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ad-market-card{padding:18px;min-width:0;display:flex;flex-direction:column}.ad-market-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ad-market-card h2{font-size:18px;margin:0}.ad-market-price{font-weight:800;color:#c69131;white-space:nowrap}.ad-market-card dl{margin:16px 0;display:grid;gap:8px}.ad-market-card dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px}.ad-market-card dt{color:var(--muted)}.ad-market-card dd{margin:0;overflow-wrap:anywhere}.ad-market-note{font-size:13px;color:var(--muted);line-height:1.7}.ad-market-buy{margin-top:auto;justify-content:center}.ad-market-empty{padding:24px;text-align:center;grid-column:1/-1}.ad-slot-buy-summary,.ad-slot-buy-form-card{padding:18px;min-width:0}.ad-slot-buy-summary h3{margin-top:0}.ad-slot-buy-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted)}.ad-slot-buy-price{display:block;margin-top:12px;font-size:20px;color:#c69131}.ad-slot-buy-form{max-width:900px;margin:0 auto}.ad-slot-buy-form input,.ad-slot-buy-form select,.ad-slot-buy-form textarea{max-width:100%;min-width:0;box-sizing:border-box}.user-table-card{min-width:0;overflow:hidden}.user-table-card .table-wrap{max-width:100%;overflow-x:auto}.user-table-card table{min-width:760px}.adpost-slot-buy-cta{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.adpost-slot-buy-cta .btn{margin-left:auto}
@media(max-width:1000px){.ad-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.ad-market-grid{grid-template-columns:1fr}.ad-market-card-head{flex-direction:column}.ad-market-card dl>div{grid-template-columns:1fr;gap:2px}.ad-market-hero{padding:18px}.adpost-slot-buy-cta{justify-content:center;text-align:center}.adpost-slot-buy-cta .btn{margin-left:0;width:100%}}
/* R11: 每广告位独立价格方案 + 日期库存 */
.ad-market-capacity{font-weight:700;color:#52606d;white-space:nowrap}
.ad-market-plan-list{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 14px}
.ad-market-plan{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid #dbe6f1;border-radius:5px;background:#f6f9fc;font-size:13px;line-height:1.35}
.ad-slot-buy-form #adSlotPlan,.ad-slot-buy-form #adSlotStartDate{width:100%;max-width:100%;box-sizing:border-box}
#adSlotAvailabilityHint{margin-top:8px}
@media(max-width:680px){.ad-market-capacity{white-space:normal}.ad-market-plan{width:100%;justify-content:space-between}}


/* R16: marketplace uses the full 1400px content area supplied by layouts/main.php. */
.ad-market-wrap{
  width:100%;
  max-width:none;
  min-width:0;
  box-sizing:border-box;
}

/* R16: keep the common 30/90/365-day plans on one row and make them easier to scan. */
.ad-market-plan-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:6px 0 14px;
  min-width:0;
}
.ad-market-plan{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  justify-content:center;
  white-space:nowrap;
  padding:8px 8px;
  border:1px solid #d5a33f;
  background:#fff0c9;
  color:#6f4c0b;
  font-weight:600;
  text-align:center;
}
.ad-market-plan b{color:#4f3507;}

/* R16: move the ads-home CTA copy inward without changing the button alignment. */
.adpost-slot-buy-cta > strong{
  padding-left:14px;
}

@media(max-width:680px){
  .ad-market-plan-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
    overflow-x:auto;
  }
  .ad-market-plan{
    font-size:11px;
    padding:7px 3px;
    letter-spacing:-.15px;
  }
  .adpost-slot-buy-cta > strong{
    padding-left:8px;
  }
}

/* =========================================================
   R18: marketplace card grid alignment
   - card-spacing.css adds margin-top to adjacent .card siblings;
     in this CSS Grid that duplicates row-gap and shifts every
     card except the first. Reset those margins inside this grid.
   - keep cards equal height within the desktop grid.
   - keep plan chips and purchase buttons at identical heights.
   ========================================================= */
.ad-market-grid{
  align-items:stretch;
  grid-auto-rows:1fr;
  row-gap:5px !important;
}
.main-wrap .ad-market-grid > .ad-market-card{
  margin-top:0 !important;
  margin-bottom:0 !important;
  height:100%;
  min-height:0;
  box-sizing:border-box;
}
.ad-market-card-head{
  min-height:28px;
}
.ad-market-card dl{
  flex:1 1 auto;
  min-height:0;
}
.ad-market-plan-list{
  min-height:44px;
  align-items:stretch;
}
.ad-market-plan{
  height:44px;
  min-height:44px;
  padding:0 8px;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
.ad-market-buy{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
}
@media(max-width:680px){
  .ad-market-grid{grid-auto-rows:auto;}
  .ad-market-card-head{min-height:0;}
}
