.commerce-wrap{width:1200px;max-width:92%;margin:0 auto}
.commerce-hero{padding:54px 0 34px;background:#f6f8fb}
.commerce-hero h1{font-size:38px;line-height:1.25;color:#172033;margin:0 0 16px}
.commerce-hero p{font-size:16px;line-height:1.9;color:#5a6473;max-width:760px;margin:0}
.commerce-title{text-align:center;margin:0 auto 28px}
.commerce-title h2{font-size:30px;line-height:1.25;color:#172033;margin:0 0 12px}
.commerce-title p{font-size:15px;line-height:1.8;color:#667085;margin:0 auto;max-width:720px}
.commerce-section{padding:42px 0 56px;background:#fff}
.home-products{position:relative;padding:64px 0;background:#f5f7fb;border-top:1px solid #e9eef6;border-bottom:1px solid #e9eef6}
.home-products .commerce-title{margin-bottom:30px}
.home-products .commerce-title h2{font-size:28px}
.home-products .commerce-title p{max-width:680px;color:#5f6b7a}
.home-products .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.home-products .product-card{min-height:300px;padding:20px}
.home-products .product-card h3{font-size:18px}
.home-products .product-price{font-size:24px}
.home-products .product-meta{font-size:12px}
.home-products .commerce-actions{justify-content:center;margin-top:28px}
.product-filters{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:0 0 22px}
.product-filter{border:1px solid #d8dde8;background:#fff;color:#344054;padding:9px 16px;border-radius:4px;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
.product-filter:hover{border-color:#1769e0;color:#1769e0;box-shadow:0 6px 16px rgba(23,105,224,.12)}
.product-filter.is-active{background:#1769e0;color:#fff;border-color:#1769e0}
.product-grid,.resource-grid,.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.product-card,.resource-card,.plan-card{border:1px solid #e5e8ef;background:#fff;border-radius:8px;padding:24px 24px 22px;box-shadow:0 8px 22px rgba(16,24,40,.06)}
.product-card{position:relative;display:flex;min-height:318px;flex-direction:column;cursor:pointer;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.product-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:#1769e0;opacity:.85}
.product-card:hover{transform:translateY(-3px);border-color:#b8cdf8;box-shadow:0 14px 32px rgba(16,24,40,.1)}
.product-card:focus{outline:2px solid #1769e0;outline-offset:3px}
.product-card h3,.resource-card h3,.plan-card h3{font-size:20px;line-height:1.35;color:#172033;margin:0 0 10px}
.product-card p,.resource-card p,.plan-card p{font-size:14px;line-height:1.75;color:#667085;margin:0 0 14px}
.product-badge{display:inline-flex;width:max-content;max-width:100%;align-items:center;border:1px solid #dbe7ff;background:#f5f8ff;color:#1769e0;border-radius:999px;padding:4px 10px;font-size:12px;line-height:1;margin:0 0 14px}
.product-meta{display:grid;gap:7px;font-size:13px;line-height:1.65;color:#475467;margin:10px 0 18px}
.product-meta span{display:block}
.product-meta strong{color:#172033;font-weight:600}
.product-confirm{border-top:1px dashed #d8dde8;margin:2px 0 16px;padding-top:10px;font-size:12px;line-height:1.7;color:#667085}
.product-price{font-size:26px;line-height:1.15;font-weight:700;color:#1769e0;margin:4px 0 14px}
.product-card .commerce-actions{margin-top:auto}
.commerce-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.commerce-btn{display:inline-block;background:#1769e0;color:#fff!important;border:1px solid #1769e0;border-radius:4px;padding:10px 18px;text-decoration:none;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}
.commerce-btn:hover{background:#0f56c0;border-color:#0f56c0;color:#fff!important}
.commerce-btn.secondary{background:#fff;color:#1769e0!important}
.commerce-btn.secondary:hover{background:#f5f8ff;color:#0f56c0!important}
.commerce-btn.dark{background:#172033;border-color:#172033}
.commerce-note{margin-top:18px;font-size:13px;line-height:1.8;color:#667085}
@media(max-width:1180px){.product-grid,.resource-grid,.plan-grid,.home-products .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.commerce-wrap{max-width:90%}.commerce-hero{padding:42px 0 28px}.commerce-hero h1{font-size:28px}.commerce-title{text-align:left}.commerce-title h2{font-size:24px}.commerce-title p{margin:0}.product-filters{justify-content:flex-start}.product-grid,.resource-grid,.plan-grid,.home-products .product-grid{grid-template-columns:1fr}.product-card,.resource-card,.plan-card{padding:18px}.product-card,.home-products .product-card{min-height:0}.home-products{padding:46px 0}.home-products .commerce-actions{justify-content:flex-start}}
/* Commerce page polish: professional local background, right-side navigation */
.commerce-page{background:#f7f9fc;color:#172033}
.commerce-page #sz-wrapper{padding-top:64px;background:#fff}
.commerce-page .header{position:fixed!important;top:0;left:0;right:0;height:64px;background:rgba(28,28,31,.96)!important;z-index:90;display:flex;align-items:center;justify-content:space-between;padding:0 24px;box-sizing:border-box;border-bottom:1px solid rgba(255,255,255,.08)}
.commerce-page .header .logo{float:none!important;position:static!important;width:auto!important;height:auto!important;margin:0!important}
.commerce-page .header .logo a{display:flex;align-items:center}
.commerce-page .header .logo img{display:block;max-width:182px;max-height:36px;width:auto;height:auto}
.commerce-page .commerce-side-nav{position:fixed!important;right:22px!important;top:92px!important;left:auto!important;bottom:auto!important;width:96px!important;height:auto!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;padding:8px!important;box-shadow:0 14px 34px rgba(15,23,42,.14)!important;z-index:88!important}
.commerce-page .commerce-side-nav ul{display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;padding:0!important;list-style:none!important}
.commerce-page .commerce-side-nav ul li{float:none!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;border:0!important}
.commerce-page .commerce-side-nav ul li p{margin:0!important;padding:0!important}
.commerce-page .commerce-side-nav ul li a{display:block!important;width:100%!important;height:auto!important;line-height:1.2!important;box-sizing:border-box!important;border-radius:6px!important;padding:9px 6px!important;text-align:center!important;color:#334155!important;background:#fff!important;text-decoration:none!important;font-size:13px!important;font-weight:600!important}
.commerce-page .commerce-side-nav ul li a span{display:block!important;margin-top:3px!important;font-size:10px!important;font-weight:400!important;color:#94a3b8!important}
.commerce-page .commerce-side-nav ul li a:hover{background:#1769e0!important;color:#fff!important}
.commerce-page .commerce-side-nav ul li a:hover span{color:rgba(255,255,255,.76)!important}

.commerce-page .commerce-hero{position:relative;overflow:hidden;padding:72px 0 56px;background-color:#f7f9fc;background-image:linear-gradient(135deg,rgba(23,105,224,.08),rgba(23,105,224,0) 46%),linear-gradient(#e8eef7 1px,transparent 1px),linear-gradient(90deg,#e8eef7 1px,transparent 1px);background-size:auto,34px 34px,34px 34px;border-bottom:1px solid #e5ebf4}
.commerce-page .commerce-hero:before{content:"";position:absolute;right:9%;top:34px;width:310px;height:168px;border:1px solid rgba(148,163,184,.32);border-radius:8px;background:linear-gradient(#fff,#f8fafc);box-shadow:0 18px 44px rgba(15,23,42,.08)}
.commerce-page .commerce-hero:after{content:"产品选择__codex_directive_quoted_backslash__A需求确认__codex_directive_quoted_backslash__A交付上线";white-space:pre;position:absolute;right:13%;top:72px;font-size:14px;line-height:2;color:#64748b;letter-spacing:.5px}
.commerce-page .commerce-hero .commerce-wrap{position:relative;z-index:2}
.commerce-page .commerce-hero h1{max-width:720px;font-size:40px;color:#0f172a;margin-bottom:16px}
.commerce-page .commerce-hero p{max-width:680px;color:#475569}

.commerce-page .commerce-section{background:#fff;padding:48px 0 62px}
.commerce-page .commerce-title h2{color:#0f172a}
.commerce-page .commerce-title p{color:#526179}

.resource-grid .resource-card{min-height:210px}
.resource-card h3{font-size:20px;color:#0f172a}
.resource-card p{color:#526179}
.resource-card .product-meta{display:block;margin:14px 0 18px;color:#64748b}

.product-card{background:linear-gradient(#fff,#fff),linear-gradient(180deg,#1769e0,#7aa7ff);background-origin:border-box;border:1px solid transparent}
.product-confirm{color:#64748b;background:#f8fafc;border:1px dashed #d8e0ec;border-radius:6px;padding:9px 10px;margin:2px 0 16px}
.home-products{background-color:#f5f7fb;background-image:linear-gradient(#e9eef6 1px,transparent 1px),linear-gradient(90deg,#e9eef6 1px,transparent 1px);background-size:36px 36px}

@media(max-width:1180px){
  .commerce-page .commerce-hero:before,.commerce-page .commerce-hero:after{display:none}
}
@media(max-width:900px){
  .commerce-page #sz-wrapper{padding-top:58px}
  .commerce-page .header{height:58px;padding:0 14px}
  .commerce-page .header .logo img{max-width:160px;max-height:32px}
  .commerce-page .commerce-side-nav{right:10px!important;top:74px!important;width:82px!important;padding:6px!important}
  .commerce-page .commerce-side-nav ul li a{font-size:12px!important;padding:8px 4px!important}
  .commerce-page .commerce-hero{padding:46px 0 34px}
  .commerce-page .commerce-hero h1{font-size:28px}
}

/* subscribe-page-cleanup-20260716 */
.commerce-page .commerce-hero:before,
.commerce-page .commerce-hero:after{
  display:none!important;
  content:none!important;
}

.commerce-page .commerce-hero{
  position:relative;
  overflow:hidden;
  min-height:260px;
  padding:74px 0 58px;
  background-color:#07111f!important;
  background-image:
    linear-gradient(90deg,rgba(7,17,31,.94),rgba(7,17,31,.78) 42%,rgba(7,17,31,.52)),
    url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1920&q=80")!important;
  background-size:cover!important;
  background-position:center center!important;
  border-bottom:0!important;
}

.commerce-page .commerce-hero h1{
  color:#fff!important;
  max-width:760px;
  text-shadow:0 12px 28px rgba(0,0,0,.26);
}

.commerce-page .commerce-hero p{
  color:#d7e5f8!important;
  max-width:720px;
  font-size:17px;
}

.commerce-page .commerce-hero .commerce-wrap:after{
  content:"源码资料 · 上线清单 · 案例拆解";
  display:inline-flex;
  margin-top:24px;
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  color:#dcecff;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(8px);
  font-size:14px;
}

.subscribe-clean-section{
  padding-top:52px!important;
  background:#fff!important;
}

.subscribe-intro{
  max-width:900px;
  margin:0 auto 42px;
  padding:28px 32px;
  background:#f8fafc;
  border:1px solid #e2eaf5;
  border-radius:10px;
}

.subscribe-intro h2{
  margin:0 0 12px;
  color:#172033;
  font-size:26px;
  line-height:1.35;
  font-weight:700;
  text-align:left;
}

.subscribe-intro p{
  margin:0;
  color:#526179;
  font-size:15px;
  line-height:1.85;
}

.subscribe-intro ul{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
}

.subscribe-intro li{
  position:relative;
  padding:13px 14px 13px 34px;
  background:#fff;
  border:1px solid #e5ebf4;
  border-radius:8px;
  color:#344054;
  font-size:14px;
  line-height:1.55;
}

.subscribe-intro li:before{
  content:"";
  position:absolute;
  left:14px;
  top:19px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#1769e0;
  box-shadow:0 0 0 4px rgba(23,105,224,.12);
}

.subscribe-clean-section .commerce-title{
  margin-bottom:26px;
}

.subscribe-clean-section .product-grid{
  max-width:420px;
  margin:0 auto;
  grid-template-columns:1fr!important;
}

.subscribe-clean-section .product-card{
  min-height:0;
}

@media(max-width:900px){
  .commerce-page .commerce-hero{
    min-height:0;
    padding:52px 0 42px;
  }

  .commerce-page .commerce-hero .commerce-wrap:after{
    font-size:12px;
    padding:8px 11px;
  }

  .subscribe-intro{
    padding:20px;
    margin-bottom:32px;
  }

  .subscribe-intro h2{
    font-size:22px;
  }

  .subscribe-intro ul{
    grid-template-columns:1fr;
  }
}

/* paid-content-entry-20260716 */
.paid-entry-card{
  position:fixed;
  right:24px;
  bottom:92px;
  z-index:96;
  width:260px;
  box-sizing:border-box;
  padding:18px;
  background:#fff;
  border:1px solid #dfe8f6;
  border-radius:10px;
  box-shadow:0 18px 42px rgba(15,23,42,.16);
  transition:transform .18s ease,opacity .18s ease;
}

.paid-entry-card.is-hidden{
  transform:translateY(12px);
  opacity:0;
}

.paid-entry-close{
  position:absolute;
  right:10px;
  top:8px;
  border:0;
  background:transparent;
  color:#94a3b8;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.paid-entry-kicker{
  display:inline-flex;
  margin-bottom:9px;
  padding:4px 9px;
  border-radius:999px;
  background:#eef5ff;
  color:#1769e0;
  font-size:12px;
}

.paid-entry-card strong{
  display:block;
  color:#172033;
  font-size:19px;
  line-height:1.35;
}

.paid-entry-card p{
  margin:8px 0 14px;
  color:#64748b;
  font-size:13px;
  line-height:1.6;
}

.paid-entry-action{
  width:100%;
  height:38px;
  border:1px solid #1769e0;
  border-radius:5px;
  background:#1769e0;
  color:#fff;
  cursor:pointer;
  font-size:14px;
}

.paid-modal-mask{
  position:fixed;
  inset:0;
  z-index:110;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.54);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}

.paid-modal-mask.is-open{
  opacity:1;
  pointer-events:auto;
}

.paid-modal{
  position:relative;
  width:760px;
  max-width:100%;
  background:#fff;
  border-radius:12px;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  overflow:hidden;
}

.paid-modal-close{
  position:absolute;
  right:16px;
  top:14px;
  width:32px;
  height:32px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#475569;
  font-size:22px;
  line-height:30px;
  cursor:pointer;
}

.paid-modal-head{
  padding:28px 32px 20px;
  background:
    linear-gradient(90deg,rgba(23,105,224,.94),rgba(18,145,255,.86)),
    linear-gradient(#1769e0,#1769e0);
  color:#fff;
}

.paid-modal-head span{
  display:inline-flex;
  padding:4px 10px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:999px;
  font-size:12px;
}

.paid-modal-head h3{
  margin:12px 0 8px;
  font-size:28px;
  line-height:1.25;
  color:#fff;
}

.paid-modal-head p{
  margin:0;
  max-width:620px;
  color:#eaf4ff;
  font-size:14px;
  line-height:1.75;
}

.paid-modal-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:24px 32px 10px;
}

.paid-modal-grid button{
  text-align:left;
  border:1px solid #e2eaf5;
  background:#fff;
  border-radius:8px;
  padding:17px;
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.paid-modal-grid button:hover{
  transform:translateY(-2px);
  border-color:#1769e0;
  box-shadow:0 12px 28px rgba(23,105,224,.12);
}

.paid-modal-grid strong{
  display:block;
  color:#172033;
  font-size:17px;
  line-height:1.35;
}

.paid-modal-grid em{
  display:block;
  margin:8px 0;
  color:#1769e0;
  font-style:normal;
  font-size:20px;
  font-weight:700;
}

.paid-modal-grid span{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.6;
}

.paid-modal-foot{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  padding:18px 32px 28px;
}

.paid-modal-chat{
  border:1px solid #1769e0;
  background:#1769e0;
  color:#fff;
  border-radius:5px;
  padding:10px 18px;
  cursor:pointer;
}

.paid-modal-foot a{
  color:#1769e0;
  text-decoration:none;
}

@media(max-width:900px){
  .paid-entry-card{
    left:12px;
    right:12px;
    bottom:78px;
    width:auto;
    padding:14px 16px;
  }

  .paid-entry-card strong{
    font-size:17px;
  }

  .paid-modal-mask{
    align-items:flex-end;
    padding:12px;
  }

  .paid-modal{
    max-height:88vh;
    overflow:auto;
  }

  .paid-modal-head{
    padding:24px 20px 18px;
  }

  .paid-modal-head h3{
    font-size:23px;
  }

  .paid-modal-grid{
    grid-template-columns:1fr;
    padding:18px 20px 8px;
  }

  .paid-modal-foot{
    align-items:stretch;
    flex-direction:column;
    padding:16px 20px 22px;
  }

  .paid-modal-chat{
    width:100%;
  }
}
