:root {
      --primary: #1a1a1a;
      --secondary: #666;
      --bg: #f8f9fa;
      --border: #e2e8f0;
      --accent: #d4af37;
      --accent-hover: #b89628;
      --accent-light: #fffdf5;
      --danger: #e53e3e;
      --success: #38a169;
      --sidebar-bg: #1a1a1a;

      --tab-bg: rgba(255,255,255,0.75);
      --tab-border: rgba(0,0,0,0.08);
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
      background-color: var(--bg);
      color: var(--primary);
      line-height: 1.6;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    }

    .container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

    /* Hero */
    /* Hero - 精致美观版 */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  background: linear-gradient(120deg, #1a1a1a 0%, #333 40%, #1a1a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.hero p {
  margin: 0 auto 32px;
  max-width: 760px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.85;
  font-weight: 400;
  padding: 0 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 32px auto 0;
  padding: 0 12px;
}

.badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.badge strong {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.3px;
}
    
    

    /* Tabs */
    .tabs-wrap { display: flex; justify-content: center; margin: 18px 0 28px; }
    .tabs {
      display: inline-flex; gap: 8px;
      background: var(--tab-bg);
      border: 1px solid var(--tab-border);
      padding: 6px;
      border-radius: 999px;
      backdrop-filter: blur(8px);
      box-shadow: 0 10px 26px rgba(0,0,0,0.05);
    }
    .tab-btn {
      border: none;
      background: transparent;
      padding: 10px 14px;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 900;
      font-size: 13px;
      color: #333;
      transition: all 0.25s ease;
    }
    .tab-btn:hover { background: rgba(0,0,0,0.04); }
    .tab-btn.active { background: var(--accent); color: #000; }

    /* Content Wrapper for Switching */
    .channel-content { display: none; }
    .channel-content.active { display: block; }

    /* Risk strip */
    .risk-strip {
      margin: 0 auto 28px;
      max-width: 980px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      display: grid;
      gap: 6px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    }
    .risk-strip .line1 { font-weight: 950; }
    .risk-strip .line2 { color: #555; font-size: 13px; }
    .risk-strip .line2 .red { color: var(--danger); font-weight: 900; }

    /* Quote */
    .quote-section {
      background: #fff;
      border-left: 5px solid var(--accent);
      padding: 30px 40px;
      margin-bottom: 28px;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.04);
      position: relative;
    }
    .quote-title {
      font-weight: 950;
      font-size: 18px;
      margin-bottom: 15px;
      color: var(--primary);
      display: flex;
      align-items: center;
    }
    .quote-title::before {
      content: '“';
      font-size: 40px;
      color: var(--accent);
      margin-right: 10px;
      line-height: 0;
      position: relative;
      top: 10px;
    }
    .quote-content { color: #555; font-size: 14px; line-height: 1.85; }
    .highlight-red { color: var(--danger); font-weight: 900; background: rgba(229, 62, 62, 0.06); padding: 0 4px; }
    .highlight-blue { color: #2b6cb0; font-weight: 900; background: rgba(43, 108, 176, 0.06); padding: 0 4px; }

    /* Layout */
    .layout-grid {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 40px;
      padding-bottom: 90px;
      align-items: start;
    }

    /* Products: 4 columns on large screens */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    @media (max-width: 1200px) {
      .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    }
    @media (max-width: 900px) {
      .layout-grid { grid-template-columns: 1fr; }
      .sidebar-sticky { position: static; margin-top: 32px; }
      .products-grid { grid-template-columns: 1fr; }
      .quote-section { padding: 22px 18px; }
      .container { padding: 0 16px; }
      .hero { padding-top: 34px; }
      .hero h1 { font-size: 28px; }
    }

    /* Group header */
    .group-block { grid-column: 1 / -1; margin: 8px 0 -6px; }
    .group-head {
      display:flex;
      justify-content: space-between;
      align-items: end;
      gap: 12px;
      padding: 6px 4px 0;
    }
    .group-title { font-weight: 1000; letter-spacing: 1px; }
    .group-desc { color:#777; font-size:12px; }
    .group-line { height:1px; background: rgba(0,0,0,0.08); margin: 10px 0 14px; }

    /* Card */
    .product-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 220px;
    }
    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.08);
      border-color: #ccc;
    }
    /* JS Toggle Class */
    .product-card.selected {
      border-color: var(--accent);
      background-color: var(--accent-light);
      box-shadow: 0 0 0 2px var(--accent);
    }
    .product-card.selected::after {
      content: '✓';
      position: absolute;
      top: -10px; right: -10px;
      background: var(--accent);
      color: #fff;
      width: 24px; height: 24px;
      border-radius: 50%;
      text-align: center;
      line-height: 24px;
      font-size: 14px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .p-title { font-size: 16px; font-weight: 950; margin-bottom: 10px; }
    .p-desc { font-size: 12px; color: #666; line-height: 1.6; margin-bottom: 10px; }

    /* Details (交付明细) */
    .p-details{
      list-style:none;
      padding: 12px 12px;
      margin: 0 0 12px;
      border: 1px dashed rgba(0,0,0,0.10);
      border-radius: 10px;
      background: rgba(0,0,0,0.02);
      display: grid;
      gap: 8px;
    }
    .p-details li{
      display:flex;
      justify-content: space-between;
      gap: 12px;
      font-size: 12px;
      line-height: 1.4;
    }
    .p-details .k{ color: #888; white-space: nowrap; }
    .p-details .v{ color: #222; font-weight: 950; text-align: right; }

    .product-card.selected .p-details{
      background: rgba(212,175,55,0.08);
      border-color: rgba(212,175,55,0.35);
    }

    /* Stats */
    .p-stats {
      display: flex;
      justify-content: space-between;
      background: #f8f9fa;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 12px;
      gap: 10px;
      margin-top: auto;
    }
    .product-card.selected .p-stats { background: rgba(212, 175, 55, 0.10); }

    .stat-item { display: flex; flex-direction: column; }
    .stat-label { color: #999; margin-bottom: 2px; transform: scale(0.95); transform-origin: left; }
    .stat-val { font-weight: 950; font-size: 13px; white-space: nowrap; }
    .stat-val.good { color: var(--success); }
    .stat-val.bad { color: var(--danger); }

    /* Sidebar */
    .sidebar-sticky { position: sticky; top: 30px; z-index: 100; }

    .summary-panel {
      background: var(--sidebar-bg);
      color: #fff;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
      border: 1px solid #333;
    }
    .panel-title {
      font-size: 16px;
      font-weight: 1000;
      margin-bottom: 18px;
      border-bottom: 1px solid #333;
      padding-bottom: 14px;
      letter-spacing: 1px;
    }

    .selected-items-list {
      list-style: none;
      padding: 0;
      margin: 0 0 18px;
      min-height: 60px;
    }
    .list-item {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      margin-bottom: 10px;
      color: #ccc;
      padding-bottom: 8px;
      border-bottom: 1px dashed #333;
      gap: 12px;
    }
    .list-item span:first-child { color: #fff; font-weight: 800; }
    .empty-tip { color: #666; text-align: center; font-size: 13px; font-style: italic; margin-top: 10px; }
    /* 隐藏未选中的列表项（配合JS） */
    .list-item.hidden { display: none; }

    .budget-alert {
      background: rgba(212, 175, 55, 0.10);
      border: 1px solid rgba(212, 175, 55, 0.30);
      color: var(--accent);
      padding: 14px;
      border-radius: 10px;
      text-align: center;
      font-size: 14px;
      font-weight: 1000;
      margin-bottom: 18px;
      letter-spacing: 0.5px;
    }

    .action-area { position: relative; }
    .btn-consult {
      width: 100%;
      padding: 14px;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: 10px;
      font-weight: 1000;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }
    .btn-consult:hover { background: var(--accent-hover); }

    .qr-popup {
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%) translateY(10px);
      width: 210px;
      background: #fff;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
      text-align: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      pointer-events: none;
      z-index: 101;
    }
    .qr-popup::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 8px 8px 0;
      border-style: solid;
      border-color: #fff transparent transparent transparent;
    }
    .action-area:hover .qr-popup {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(-15px);
      pointer-events: auto;
    }
    .qr-img { width: 100%; height: auto; display: block; margin-bottom: 10px; border-radius: 6px; }
    .qr-text { color: #333; font-size: 12px; font-weight: 1000; line-height: 1.4; }

    .fine-print {
      margin-top: 16px;
      font-size: 12px;
      color: #777;
      text-align: center;
      line-height: 1.5;
    }
    
    
    
    
    
    
    
/* ================ 响应式设计增强 ================ */

/* 平板及以下 */
@media (max-width: 1200px) {
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; padding: 0 8px; }
  .badge { padding: 8px 16px; font-size: 13px; }
  .tabs { padding: 5px; }
  .tab-btn { padding: 8px 12px; font-size: 12.5px; }
  .product-card { min-height: auto; padding: 16px; }
}

/* 手机横屏 / 小平板 */
@media (max-width: 768px) {
  .container { padding: 0 14px; }
  .hero { padding: 50px 0 24px; }
  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.5px;
  }
  .hero h1::after { width: 50px; height: 3px; margin-top: 12px; }
  .hero p {
    font-size: 15px;
    line-height: 1.65;
    padding: 0 6px;
  }
  .hero-badges { gap: 10px; margin-top: 24px; }
  .badge {
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 12px;
  }

  /* Tabs */
  .tabs-wrap { margin: 12px 0 20px; }
  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 120px;
    text-align: center;
  }

  /* Product grid: 单列 */
  .products-grid { grid-template-columns: 1fr !important; gap: 16px; }
}

/* 手机竖屏（超小屏） */
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero h1::after { width: 40px; height: 2.5px; }
  .hero p { font-size: 14px; padding: 0 4px; }
  .badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
  }
  .tabs { gap: 4px; }
  .tab-btn {
    padding: 7px 10px;
    font-size: 11.5px;
    min-width: 100px;
  }
}