/* 通知弹窗 */
    .notif-popup{position:absolute;top:58px;right:70px;width:320px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,0.12);z-index:1001;overflow:hidden;}
    .notif-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,0.3);}
    .notif-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--border);font-weight:600;font-size:14px;}
    .notif-more{font-size:12px;color:var(--blue);cursor:pointer;font-weight:400;}
    .notif-more:hover{text-decoration:underline;}
    .notif-list{max-height:320px;overflow-y:auto;}
    .notif-item{padding:12px 16px;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s;}
    .notif-item:hover{background:var(--bg-hover);}
    .notif-item:last-child{border-bottom:none;}
    .notif-item.notif-loading{text-align:center;color:var(--text-2);font-size:13px;padding:20px;}
    .notif-item.notif-empty{text-align:center;color:var(--text-2);font-size:13px;padding:20px;}
    .notif-title{font-size:13px;font-weight:500;margin-bottom:4px;}
    .notif-desc{font-size:12px;color:var(--text-2);margin-bottom:4px;}
    .notif-time{font-size:11px;color:var(--text-3);}
    .notif-unread{width:6px;height:6px;background:var(--red);border-radius:50%;display:inline-block;margin-right:6px;}
    /* Hero */
    .hero {
      background: var(--gradient);
      color: #fff;
      padding: 32px 0 28px;
      border-radius: 0 0 20px 20px;
      margin-bottom: 0;
    }
    .hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
    .hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
    .hero p { font-size: 14px; opacity: 0.85; }

    /* Stats row */
    .stats-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin: 28px 0 20px;
    }
    .stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      box-shadow: var(--shadow);
      transition: transform 0.2s;
    }
    .stat-card:hover { transform: translateY(-2px); }
    .stat-num { font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1; }
    .stat-num.orange { color: var(--orange); }
    .stat-num.green { color: var(--success); }
    .stat-num.purple { color: var(--purple); }
    .stat-label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

    /* Toolbar */
    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }
    .filter-btns { display: flex; gap: 6px; }
    .filter-btn {
      padding: 8px 16px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-2);
      transition: all 0.2s;
    }
    .filter-btn:hover { color: var(--blue); border-color: var(--blue); }
    .filter-btn.active {
      background: var(--gradient);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 4px 12px rgba(37,99,235,.2);
    }

    /* Cards grid */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 16px;
      margin-bottom: 40px;
    }
    .ben-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: all 0.2s;
    }
    .ben-card:hover {
      border-color: var(--blue);
      box-shadow: var(--shadow-h);
      transform: translateY(-3px);
    }

    /* Card banner */
    .ben-banner {
      height: 120px;
      position: relative;
      display: flex;
      align-items: flex-end;
      padding: 14px 16px;
    }
    .ben-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
      z-index: 0;
    }
    .ben-banner.coupon { background: linear-gradient(135deg, #667eea, #764ba2); }
    .ben-banner.package { background: linear-gradient(135deg, #f093fb, #f5576c); }
    .ben-banner.trial { background: linear-gradient(135deg, #4facfe, #00f2fe); }
    .ben-banner.free { background: linear-gradient(135deg, #43e97b, #38f9d7); }
    .ben-banner.event { background: linear-gradient(135deg, #fa709a, #fee140); }
    .ben-icon { font-size: 40px; position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
    .ben-price-tag {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(255,255,255,0.95);
      color: #333;
      font-size: 13px;
      font-weight: 700;
      padding: 5px 12px;
      border-radius: 20px;
      z-index: 1;
    }

    /* Card body */
    .ben-body { padding: 16px; }
    .ben-type-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 100px;
      margin-bottom: 8px;
    }
    .ben-type-badge.coupon { background: #fef3c7; color: #92400e; }
    .ben-type-badge.package { background: #fce7f3; color: #9d174d; }
    .ben-type-badge.trial { background: #dbeafe; color: #1e40af; }
    .ben-type-badge.free { background: #d1fae5; color: #065f46; }
    .ben-type-badge.event { background: #fce7f3; color: #9d174d; }

    .ben-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
    .ben-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; }

    .ben-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      color: var(--text-3);
      margin-bottom: 14px;
    }
    .ben-meta span { display: flex; align-items: center; gap: 4px; }

    .ben-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .ben-publisher { display: flex; align-items: center; gap: 7px; }
    .ben-avatar {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: #fff;
      flex-shrink: 0;
    }
    .ben-publisher-info { min-width: 0; }
    .ben-publisher-name { font-size: 12px; font-weight: 600; color: var(--text); }
    .ben-publisher-time { font-size: 11px; color: var(--text-3); }

    .claim-btn {
      padding: 8px 18px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .claim-btn.available {
      background: var(--blue);
      color: #fff;
    }
    .claim-btn.available:hover { background: var(--blue-dark); }
    .claim-btn.claimed { background: var(--bg); color: var(--text-2); cursor: default; }
    .claim-btn.expired { background: var(--bg); color: var(--text-3); cursor: default; }
    .claim-btn.disabled { background: var(--bg); color: var(--text-3); cursor: not-allowed; }

    /* Detail modal */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      display: flex; align-items: center; justify-content: center;
      z-index: 1000;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s;
      padding: 20px;
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }
    .modal-panel {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      width: 100%;
      max-width: 560px;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(20px);
      transition: transform 0.3s;
    }
    .modal-overlay.open .modal-panel { transform: translateY(0); }

    .modal-banner {
      height: 160px;
      position: relative;
      display: flex;
      align-items: flex-end;
      padding: 16px 20px;
    }
    .modal-banner::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%);
    }
    .modal-banner.coupon { background: linear-gradient(135deg, #667eea, #764ba2); }
    .modal-banner.package { background: linear-gradient(135deg, #f093fb, #f5576c); }
    .modal-banner.trial { background: linear-gradient(135deg, #4facfe, #00f2fe); }
    .modal-banner.free { background: linear-gradient(135deg, #43e97b, #38f9d7); }
    .modal-banner.event { background: linear-gradient(135deg, #fa709a, #fee140); }
    .modal-banner-icon { font-size: 56px; position: relative; z-index: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4)); }
    .modal-banner-close {
      position: absolute; top: 14px; right: 14px;
      width: 34px; height: 34px; border-radius: 50%;
      background: rgba(255,255,255,0.2); border: none;
      color: #fff; font-size: 18px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      z-index: 2; transition: background 0.2s;
    }
    .modal-banner-close:hover { background: rgba(255,255,255,0.35); }

    .modal-body { padding: 20px; }
    .modal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
    .modal-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
    .modal-price { font-size: 32px; font-weight: 800; color: var(--orange); }
    .modal-price-unit { font-size: 14px; color: var(--text-2); }
    .modal-price-original { font-size: 15px; color: var(--text-3); text-decoration: line-through; }

    .modal-info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 16px;
    }
    .modal-info-item {
      background: var(--bg);
      border-radius: 10px;
      padding: 10px 12px;
    }
    .modal-info-label { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
    .modal-info-value { font-size: 14px; font-weight: 600; color: var(--text); }

    .modal-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }

    .modal-divider { height: 1px; background: var(--border); margin: 20px 0; }

    .modal-publisher { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
    .modal-publisher-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 700; color: #fff;
    }
    .modal-publisher-name { font-size: 15px; font-weight: 600; }
    .modal-publisher-role { font-size: 12px; color: var(--text-2); }

    .modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
    .modal-stat { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; }
    .modal-stat-num { font-size: 18px; font-weight: 700; color: var(--blue); }
    .modal-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }

    .modal-claim-btn {
      width: 100%;
      padding: 13px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
      margin-bottom: 10px;
    }

    /* Empty state */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-3);
    }
    .empty-icon { font-size: 56px; margin-bottom: 14px; }
    .empty-title { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
    .empty-desc { font-size: 13px; }

    @media (max-width: 768px) {
      .stats-row { grid-template-columns: repeat(2, 1fr); }
      .cards-grid { grid-template-columns: 1fr; }
      .modal-info-grid { grid-template-columns: 1fr; }
    }