  :root{
    --brand:#4c7df0;          /* 主色：蓝紫 */
    --brand-2:#7a4cf0;        /* 辅色：紫 */
    --text:#222;
    --muted:#666;
    --bg:#f7f8fc;
    --card-bg:#fff;
    --border:#e8e8ee;
    --ok:#0aa35b;
  }
  *{box-sizing:border-box}
  body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,Helvetica,sans-serif;
    color:var(--text);
    background:linear-gradient(135deg,#f3f5ff 0%, #f8fbff 35%, #fff 100%);
  }
  /* 页面容器（你已有头部导航，这里直接从main开始用即可） */
  .wrap{
    max-width:1200px;
    margin:24px auto 48px;
    padding:0 16px;
  }
  .page-title{
    font-size:30px;
    font-weight:700;
    line-height:1.3;
    margin:40px 0 20px;
    color:#1d2144;text-align: center;
  }
  .sub-tip{
    color:var(--muted);
    font-size:16px;
    margin-bottom:30px;  text-align:center;
    line-height: 25px;
  }

  /* 商品网格 */
  .grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }
  @media (max-width:980px){
    .grid{grid-template-columns:repeat(2,1fr);}
  }
  @media (max-width:640px){
    .grid{grid-template-columns:1fr;margin-bottom: 70px;}
  }

  /* 商品卡片 */
  .card{
    background:var(--card-bg);
    border-radius:0px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 6px 16px rgba(28,30,54,.04);
    transition:transform .2s ease, box-shadow .2s ease;        border: 1px solid #33CCCC;
  }
  .card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 20px rgba(28,30,54,.08);
  }
  .thumb{
aspect-ratio: 4 / 1;
    border-bottom: 1px solid #33CCCC;
    display: block;
    width: 100%;
    object-fit: cover;
    text-align: justify;
    line-height: 25px;
    padding: 15px;
    color: #666;
  }
  .content{
    padding:14px 14px 16px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .title{
    font-size: 22px;
    font-weight: 700;
    line-height: 2;
    text-align: center;
  }
  .desc{
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
    min-height:40px;
  }

  /* 价格 + 数量 */
  .row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }
  .price{
    font-weight:400;
    font-size:16px;
    color:#1c2340;
  }
  .price small{
    color:var(--muted);
    font-weight:400;
    font-size:15px;
    margin-left:6px;
  }
  .qty{
    display:inline-flex;
    align-items:center;
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
    background:#fafbff;
  }
  .qty button{
    width:36px;
    height:34px;
    border:0;
    background:transparent;
    cursor:pointer;
    font-size:18px;
    line-height:1;
  }
  .qty input{
    width:48px;
    height:34px;
    border:0;
    text-align:center;
    font-weight:700;
    color:#1c2340;
    background:transparent;
    -moz-appearance:textfield;
  }
  .qty input::-webkit-outer-spin-button,
  .qty input::-webkit-inner-spin-button{ -webkit-appearance: none; margin:0; }

  /* 行金额 */
  .line-total{
    font-size:16px;
    color:#0d142e;
  }
  .line-total b{
    color:#A52A2A;
    font-size:16px;font-weight: 400;
  }

  /* 支付方式（卡片内简版） */
  .pay-mini{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:13px;
    color:var(--muted);
  }
  .pay-tag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-weight:600;
    color:#3a54b3;font-size: 17px;
  }
  .pay-tag svg{width:16px;height:16px;opacity:.9}

  /* 购买按钮 */
  .buy-btn{font-size: 22px;
    margin-top:6px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:100%;
    height:60px;
    border-radius:10px;
    border:0;
    cursor:pointer;
    color:#fff;
    font-weight:800;
    letter-spacing:.2px;
    background:linear-gradient(135deg,var(--brand),var(--brand-2));
    box-shadow:0 8px 18px rgba(76,125,240,.25);
    transition:filter .2s ease, transform .06s ease;
  }
  .buy-btn:active{ transform:scale(.98); }
  .buy-btn svg{ width:18px;height:18px; }

  /* 页脚提示 */
  .legend{
    margin-top:18px;
    font-size:12px;
    color:#8a8fa3;
  }

  /* 弹窗 */
  .modal{
    position:fixed; inset:0;
    display:none;
    align-items:center; justify-content:center;
    background:rgba(13,17,29,.45);
    backdrop-filter: blur(6px);
    z-index:999;
    padding:18px;
  }
  .modal.active{ display:flex; }
  .dialogg{
    width:min(520px, 92vw);
    border-radius:16px;
    background:var(--card-bg);
    border:1px solid var(--border);
    box-shadow:0 16px 36px rgba(18,22,40,.18);
    overflow:hidden;
  }
  .dialogg-header{
    padding:14px 16px;
    background:linear-gradient(135deg,#eef2ff,#f9f7ff);
    border-bottom:1px solid var(--border);
     align-items:center; justify-content:space-between;text-align: center;
  }
  .dialogg-title{
    font-size: 14px; color:#1c2340;
  }
  .close{
    border:0; background:transparent; cursor:pointer; font-size:20px; line-height:1;
    color:#4b4f65;
  }
  .dialogg-body{
    padding:16px;
    display:grid;
    grid-template-columns: 160px 1fr;
    gap:16px;
  }
  @media (max-width:520px){
    .dialogg-body{ grid-template-columns:1fr; }
  .page-title{
    font-size:30px;
    font-weight:700;
    line-height:1.3;
    margin:20px 0 20px;
    color:#1d2144;text-align: center;
  }
    .sub-tip{
    color:var(--muted);
    font-size:16px;
    margin-bottom:30px;  text-align: justify;
    line-height: 25px;
  }
  }
  .qrr{
    border:1px dashed #cfd6ff;
    border-radius:12px;
    padding:10px;
    display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,#f4f7ff,#fff);
  }
  .qrr img{ width:100%; max-width:200px; aspect-ratio:1/1; object-fit:cover; border-radius:8px; }
  .pay-form{
    display:flex; flex-direction:column; gap:12px;
  }
  .pay-row{
    display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  }
  .chip{
    padding:8px 12px;
    border:1px solid var(--border);
    border-radius:999px;
    background:#fafbff;
    font-size:13px;
    cursor:default;
  }
  .radios{
    display:flex; gap:10px; flex-wrap:wrap;
  }
  .radios label{
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 12px; border:1px solid var(--border); border-radius:999px; cursor:pointer;
  }
  .radios input{ accent-color:var(--brand); }

  .dialogg-foot{
    padding:14px 16px;
    border-top:1px solid var(--border);
    display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  }
  .btn{
    border:0; cursor:pointer;  padding:0 16px; border-radius:10px; font-weight:800;
  }
  .btn.secondary{ background:#f3f5ff; color:#2f3868;     height: 40px;    font-weight: 500;    font-size: 18px;    padding: 0 20px;}
  .btn.primary{ background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff;     height: 40px;    font-weight: 300;    font-size: 18px;    padding: 0 20px; }

  /* 轻微动效 */
  .pulse{
    position:relative;
  }
  .pulse::after{
    content:""; position:absolute; inset:0;
    border-radius:inherit;
    animation:pulse 1.6s ease-in-out infinite;
    background:linear-gradient(135deg,rgba(76,125,240,.22),rgba(122,76,240,.22));
    opacity:0;
  }
  @keyframes pulse{
    0%{ transform:scale(1); opacity:0;}
    50%{ transform:scale(1.03); opacity:.5;}
    100%{ transform:scale(1); opacity:0;}
  }

  /* 小标签 */
  .badge{
    display:inline-block;
    padding:4px 8px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    color:#3250b9;
    background:linear-gradient(135deg,#e9efff,#f6f2ff);
    border:1px solid #dfe6ff;
  }