/* ============================================================
   products.css — Ledger 产品列表页样式
   ============================================================ */

/* ── 产品页专属样式 ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;color:#1a1a2e;background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:0 auto;padding:0 48px}

/* 面包屑 */
.breadcrumb{background:#f8f8fc;padding:14px 0;border-bottom:1px solid #eee}
.breadcrumb-inner{display:flex;align-items:center;gap:8px;font-size:13px;color:#666}
.breadcrumb-inner a{color:#3730d4;transition:color .2s}
.breadcrumb-inner a:hover{color:#1a0a4a}
.breadcrumb-inner .sep{color:#bbb}

/* 页面头 */
.products-hero{
  background:#fff;
  padding:60px 0 40px;
  text-align:center;
  border-bottom:1px solid #f0f0f8;
}
.products-hero h1{
  font-size:clamp(32px,5vw,56px);
  font-weight:900;color:#1a1a2e;
  margin-bottom:16px;
  letter-spacing:-.02em;
}
.products-hero p{
  font-size:16px;color:#555;
  max-width:680px;margin:0 auto;
  line-height:1.75;
}

/* 产品卡片网格 */
.products-section{background:#fff;padding:60px 0}
.products-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.product-card{
  background:#f5f5fb;
  border-radius:16px;
  padding:32px 24px 28px;
  display:flex;flex-direction:column;
  align-items:center;text-align:center;
  position:relative;
  transition:transform .3s ease,box-shadow .3s ease;
  border:2px solid transparent;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 48px rgba(55,48,212,.12);
  border-color:rgba(55,48,212,.15);
}
.product-card.featured{
  border-color:#3730d4;
  background:linear-gradient(145deg,#f0f0ff,#f8f8fc);
}

/* 推荐标签 */
.badge{
  position:absolute;top:-1px;left:50%;transform:translateX(-50%);
  background:#3730d4;color:#fff;
  font-size:11px;font-weight:700;
  padding:4px 16px;border-radius:0 0 8px 8px;
  letter-spacing:.06em;white-space:nowrap;
}
.badge-new{background:#00c16996}
.badge-hot{background:#ff5252}

/* 产品图 */
.product-img{
  width:100%;height:200px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
}
.product-img img{
  max-height:190px;max-width:100%;
  object-fit:contain;
  transition:transform .4s ease;
  filter:drop-shadow(0 8px 24px rgba(0,0,0,.15));
}
.product-card:hover .product-img img{transform:translateY(-6px) scale(1.04)}

/* 产品信息 */
.product-tagline{font-size:13px;color:#888;margin-bottom:8px;line-height:1.5}
.product-name{font-size:22px;font-weight:800;color:#1a1a2e;margin-bottom:8px}
.product-stars{display:flex;align-items:center;justify-content:center;gap:4px;margin-bottom:12px}
.stars{color:#f5a623;font-size:14px;letter-spacing:1px}
.review-count{font-size:12px;color:#888}
.product-price{font-size:28px;font-weight:800;color:#3730d4;margin-bottom:4px}
.product-price-note{font-size:11px;color:#aaa;margin-bottom:20px}
.btn-buy{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;padding:13px 0;
  background:#3730d4;color:#fff;
  font-size:15px;font-weight:700;
  border-radius:999px;cursor:pointer;
  border:none;font-family:inherit;
  transition:background .2s,transform .2s,box-shadow .2s;
}
.btn-buy:hover{background:#2820b8;transform:translateY(-1px);box-shadow:0 6px 20px rgba(55,48,212,.35)}

/* 产品特性标签 */
.product-tags{
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px;
  margin-top:14px;
}
.tag{
  font-size:11px;padding:3px 10px;border-radius:999px;
  background:rgba(55,48,212,.08);color:#3730d4;font-weight:500;
}

/* 移动端：产品改为竖排 */
@media(max-width:900px){
  .products-grid{grid-template-columns:1fr 1fr;gap:16px}
  .product-img{height:160px}
  .product-name{font-size:18px}
  .product-price{font-size:24px}
}
@media(max-width:600px){
  .products-grid{grid-template-columns:1fr}
  .container{padding:0 16px}
  .products-hero{padding:40px 0 28px}
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   对比表区域
━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.compare-section{
  background:#f8f8fc;
  padding:72px 0 80px;
  border-top:1px solid #eee;
}
.compare-section h2{
  font-size:clamp(26px,4vw,42px);
  font-weight:900;color:#1a1a2e;
  text-align:center;margin-bottom:12px;
}
.compare-sub{
  text-align:center;font-size:15px;color:#666;
  margin-bottom:48px;line-height:1.7;
}

/* 对比表 */
.compare-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.compare-table{
  width:100%;min-width:700px;
  border-collapse:separate;border-spacing:0;
}

/* 表头 */
.compare-table thead tr th{
  padding:20px 16px;
  font-size:14px;font-weight:700;
  background:#fff;color:#1a1a2e;
  border-bottom:2px solid #eee;
  text-align:center;
  position:sticky;top:0;z-index:2;
}
.compare-table thead tr th:first-child{
  text-align:left;
  background:#fff;
  min-width:160px;
}
.th-product{
  display:flex;flex-direction:column;
  align-items:center;gap:8px;
}
.th-product img{
  height:70px;object-fit:contain;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.12));
}
.th-product-name{font-size:14px;font-weight:800;color:#1a1a2e}
.th-product-price{font-size:13px;font-weight:700;color:#3730d4}
.th-btn{
  display:inline-flex;padding:6px 16px;
  background:#3730d4;color:#fff;
  font-size:12px;font-weight:600;
  border-radius:999px;margin-top:4px;
  transition:background .2s;
}
.th-btn:hover{background:#2820b8}

/* 行 */
.compare-table tbody tr{border-bottom:1px solid #eee}
.compare-table tbody tr:last-child{border-bottom:none}
.compare-table tbody tr:hover{background:rgba(55,48,212,.03)}
.compare-table tbody tr.row-highlight{background:rgba(55,48,212,.04)}

.compare-table td{
  padding:16px;
  font-size:14px;color:#333;
  text-align:center;
  vertical-align:middle;
  border-bottom:1px solid #f0f0f8;
}
.compare-table td:first-child{
  text-align:left;font-weight:600;
  color:#555;font-size:13px;
  background:#fafafe;
  border-right:1px solid #eee;
  padding-left:20px;
}

/* 特色列高亮 */
.col-featured td:not(:first-child){background:rgba(55,48,212,.03)}
.compare-table thead .col-featured-th{
  background:linear-gradient(135deg,#f0f0ff,#e8e8fc);
  border-top:3px solid #3730d4;
  border-radius:8px 8px 0 0;
}

/* ✓ ✗ 符号 */
.yes{color:#00c16996;font-size:18px;font-weight:700}
.no {color:#ddd;font-size:18px}
.partial{color:#f5a623;font-size:13px;font-weight:600}

/* 分类行标题 */
.row-cat td{
  background:#f0f0fc !important;
  font-weight:800;color:#3730d4 !important;
  font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;padding:10px 20px;
  border-bottom:none;
}

/* 推荐徽章列 */
.recommend-badge{
  display:inline-flex;align-items:center;
  padding:3px 10px;border-radius:999px;
  font-size:11px;font-weight:700;
}
.rb-best{background:#3730d4;color:#fff}
.rb-value{background:#00c16996;color:#fff}
.rb-new{background:#ff5252;color:#fff}
.rb-flagship{background:#f5a623;color:#fff}

/* 滚动提示 */
.scroll-hint{
  text-align:center;font-size:12px;color:#aaa;
  margin-bottom:12px;display:none;
}
@media(max-width:768px){.scroll-hint{display:block}}

/* ── 底部CTA ── */
.bottom-cta{
  background:linear-gradient(135deg,#3730d4,#4c3ce8);
  padding:64px 0;text-align:center;
  position:relative;overflow:hidden;
}
.bottom-cta::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 60% 60% at 50% 0%,rgba(255,255,255,.08) 0%,transparent 60%);
  pointer-events:none;
}
.bottom-cta h2{font-size:clamp(22px,3.5vw,38px);font-weight:800;color:#fff;margin-bottom:12px}
.bottom-cta p{font-size:15px;color:rgba(255,255,255,.8);margin-bottom:32px}
.cta-btns{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.btn-white-cta{
  padding:14px 40px;background:#fff;color:#3730d4;
  font-size:15px;font-weight:700;border-radius:999px;
  cursor:pointer;transition:transform .2s,box-shadow .2s;
}
.btn-white-cta:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,.2)}
.btn-ol-cta{
  padding:13px 40px;background:transparent;color:#fff;
  font-size:15px;font-weight:700;border-radius:999px;
  border:2px solid rgba(255,255,255,.6);cursor:pointer;
  transition:border-color .2s,background .2s,transform .2s;
}
.btn-ol-cta:hover{border-color:#fff;background:rgba(255,255,255,.1);transform:translateY(-2px)}

/* 公告栏适配 */
.page-offset{padding-top:106px}
@media(max-width:960px){.page-offset{padding-top:96px}}

/* sr-only */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}