.vue-ticket-page,
    .vue-ticket-page ~ * {
      /* 不适用 */
    }

    .vue-ticket-page {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Helvetica Neue", sans-serif;
      background: linear-gradient(155deg, #0a1628 0%, #0f1f3d 25%, #0c182e 50%, #111d38 75%, #0a1628 100%);
      min-height: 100vh;
      padding: 24px;
      overflow-x: hidden;
      color: #c8d6e5;
    }

    /* ---- Page Header ---- */
    .page-header {
      padding: 32px 28px 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1100px;
      margin: 0 auto;
    }

    .page-title {
      color: #ffffff;
      font-size: 26px;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .page-subtitle {
      color: rgba(255,255,255,0.45);
      font-size: 13px;
      margin-top: 2px;
      font-weight: 400;
    }

    .count-badge {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 20px;
      padding: 6px 16px;
      color: #f5c842;
      font-size: 13px;
      font-weight: 600;
    }

    /* ---- Stats Row ---- */
    .stats-row {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 28px 16px;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }

    .stat-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.55);
      font-size: 12px;
    }

    .stat-value {
      color: #f5c842;
      font-weight: 700;
      font-size: 15px;
    }

    .stat-divider {
      width: 1px;
      height: 16px;
      background: rgba(255,255,255,0.1);
      align-self: center;
    }

    /* ---- Filter Tabs ---- */
    .filter-tabs {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 28px 20px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .filter-tab {
      padding: 7px 18px;
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.15);
      background: transparent;
      color: rgba(255,255,255,0.55);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.25s;
      font-family: inherit;
      white-space: nowrap;
    }

    .filter-tab:hover {
      border-color: rgba(255,255,255,0.3);
      color: rgba(255,255,255,0.8);
    }

    .filter-tab.active {
      background: rgba(245,200,66,0.18);
      border-color: #f5c842;
      color: #f5c842;
    }

    .ticket-toolbar {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 28px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: rgba(255,255,255,0.5);
      font-size: 13px;
    }

    .view-toggle-btn,
    .page-btn {
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.78);
      border-radius: 18px;
      padding: 7px 14px;
      cursor: pointer;
      font-family: inherit;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
      white-space: nowrap;
    }

    .view-toggle-btn:hover,
    .page-btn:hover:not(:disabled) {
      background: rgba(245,200,66,0.16);
      border-color: rgba(245,200,66,0.6);
      color: #f5c842;
    }

    .page-btn:disabled {
      opacity: 0.35;
      cursor: default;
    }

    /* ---- Cards Container ---- */
    .cards-container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 28px 40px;
      transition: min-height 0.35s ease;
    }

    .cards-container.is-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
      gap: 28px;
    }

    .cards-container.is-stack {
      display: block;
      position: relative;
      min-height: 620px;
      cursor: pointer;
    }

    .cards-container.is-stack::after {
      content: attr(data-stack-label);
      position: absolute;
      left: 50%;
      bottom: 46px;
      transform: translateX(-50%);
      padding: 8px 16px;
      border-radius: 18px;
      border: 1px solid rgba(245,200,66,0.35);
      background: rgba(10,22,40,0.78);
      color: #f5c842;
      font-size: 13px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
      pointer-events: none;
      white-space: nowrap;
    }

    .pagination-bar {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 28px 40px;
      display: none;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: rgba(255,255,255,0.55);
      font-size: 13px;
    }

    .pagination-bar.active {
      display: flex;
    }

    .page-size-select {
      border: 1px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.78);
      border-radius: 16px;
      padding: 6px 10px;
      font-family: inherit;
      outline: none;
    }

    .page-size-select option {
      color: #1a2a4a;
    }

    @media (max-width: 560px) {
      .cards-container {
        padding: 0 16px 40px;
      }
      .cards-container.is-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .cards-container.is-stack {
        min-height: 420px;
      }
      .page-header {
        padding: 24px 16px 8px;
      }
      .stats-row {
        padding: 0 16px 12px;
      }
      .filter-tabs {
        padding: 0 16px 16px;
      }
      .ticket-toolbar {
        padding: 0 16px 14px;
        flex-direction: column;
        align-items: stretch;
      }
      .pagination-bar {
        padding: 0 16px 32px;
        flex-wrap: wrap;
      }
    }

    /* ---- Single Ticket Card ---- */
    .ticket-card {
      background: linear-gradient(135deg, #141b2d 0%, #1a2338 40%, #161e32 100%);
      border-radius: 14px;
      overflow: hidden;
      display: flex;
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
      position: relative;
      transition: transform 0.35s ease, box-shadow 0.3s, opacity 0.3s;
      cursor: pointer;
      aspect-ratio: 2.5 / 1;
    }

    .cards-container.is-grid .ticket-card {
      animation: cardGridIn 0.32s ease both;
    }

    .cards-container.is-stack .ticket-card {
      position: absolute;
      top: 0;
      left: 50%;
      width: min(760px, calc(100% - 56px));
      transform:
        translateX(-50%)
        translateY(calc(var(--stack-index, 0) * 34px))
        scale(calc(1 - var(--stack-index, 0) * 0.025))
        rotate(calc((var(--stack-index, 0) - 2) * 0.55deg));
      z-index: calc(20 - var(--stack-index, 0));
      opacity: calc(1 - var(--stack-index, 0) * 0.075);
      box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .cards-container.is-stack:hover .ticket-card {
      transform:
        translateX(-50%)
        translateY(calc(var(--stack-index, 0) * 42px))
        scale(calc(1 - var(--stack-index, 0) * 0.018))
        rotate(calc((var(--stack-index, 0) - 2) * 0.8deg));
    }

    .cards-container.is-stack .ticket-card:hover {
      box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    @keyframes cardGridIn {
      from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .ticket-card:hover {
      transform: translateY(-6px);
      box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .ticket-card.used {
      opacity: 0.78;
      filter: saturate(0.5) brightness(0.95);
    }

    .ticket-card.used:hover {
      opacity: 0.92;
      filter: saturate(0.7) brightness(1);
    }

    /* ---- Card Left ---- */
    .card-left {
      flex: 1;
      display: flex;
      flex-direction: column;
      position: relative;
      min-width: 0;
    }

    /* ============ Theme 1: Sunset Gold (日落金) ============ */
    .theme-gold .card-header { background: linear-gradient(135deg, #5c3d1a 0%, #8b5e2f 45%, #5c3d1a 100%); }
    .theme-gold .route-strip { background: linear-gradient(90deg, #ffb347, #ffcc66, #ffb347); }
    .theme-gold .gate-num { color: #ffb347; }
    .theme-gold .airline-dot { background: linear-gradient(135deg, #ffb347, #ffcc66); box-shadow: 0 2px 10px rgba(255,179,71,0.3); }
    .theme-gold.ticket-card::after { background: linear-gradient(90deg, #ffb347, #ffcc66, #ffb347); }

    /* ============ Theme 2: Ocean Blue (海洋蓝) ============ */
    .theme-ocean .card-header { background: linear-gradient(135deg, #0d3b5c 0%, #1565a0 45%, #0d3b5c 100%); }
    .theme-ocean .route-strip { background: linear-gradient(90deg, #4fc3f7, #81d4fa, #4fc3f7); }
    .theme-ocean .gate-num { color: #4fc3f7; }
    .theme-ocean .airline-dot { background: linear-gradient(135deg, #4fc3f7, #81d4fa); box-shadow: 0 2px 10px rgba(79,195,247,0.3); }
    .theme-ocean.ticket-card::after { background: linear-gradient(90deg, #4fc3f7, #81d4fa, #4fc3f7); }

    /* ============ Theme 3: Forest Emerald (翡翠绿) ============ */
    .theme-emerald .card-header { background: linear-gradient(135deg, #0d3b2e 0%, #1a6b4a 45%, #0d3b2e 100%); }
    .theme-emerald .route-strip { background: linear-gradient(90deg, #4caf50, #81c784, #4caf50); }
    .theme-emerald .gate-num { color: #4caf50; }
    .theme-emerald .airline-dot { background: linear-gradient(135deg, #4caf50, #81c784); box-shadow: 0 2px 10px rgba(76,175,80,0.3); }
    .theme-emerald.ticket-card::after { background: linear-gradient(90deg, #4caf50, #81c784, #4caf50); }

    /* ============ Theme 4: Violet Dream (紫罗兰) ============ */
    .theme-violet .card-header { background: linear-gradient(135deg, #2d1b5c 0%, #5c3d99 45%, #2d1b5c 100%); }
    .theme-violet .route-strip { background: linear-gradient(90deg, #ab47bc, #ce93d8, #ab47bc); }
    .theme-violet .gate-num { color: #ab47bc; }
    .theme-violet .airline-dot { background: linear-gradient(135deg, #ab47bc, #ce93d8); box-shadow: 0 2px 10px rgba(171,71,188,0.3); }
    .theme-violet.ticket-card::after { background: linear-gradient(90deg, #ab47bc, #ce93d8, #ab47bc); }

    /* ============ Theme 5: Cherry Rose (樱粉) ============ */
    .theme-rose .card-header { background: linear-gradient(135deg, #5c1a3a 0%, #993355 45%, #5c1a3a 100%); }
    .theme-rose .route-strip { background: linear-gradient(90deg, #ff6b8a, #ff8fa3, #ff6b8a); }
    .theme-rose .gate-num { color: #ff6b8a; }
    .theme-rose .airline-dot { background: linear-gradient(135deg, #ff6b8a, #ff8fa3); box-shadow: 0 2px 10px rgba(255,107,138,0.3); }
    .theme-rose.ticket-card::after { background: linear-gradient(90deg, #ff6b8a, #ff8fa3, #ff6b8a); }

    /* Card Header */
    .card-header {
      padding: 10px 20px 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }

    .card-header::before {
      content: "";
      position: absolute;
      top: -30px;
      right: -30px;
      width: 100px;
      height: 100px;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
      border-radius: 50%;
    }

    .airline-info {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      z-index: 1;
      flex: 1;
      min-width: 0;
    }

    .airline-info > div:last-child {
      min-width: 0;
    }

    .airline-dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: #0d1528;
      box-shadow: 0 2px 10px rgba(245, 200, 66, 0.3);
      flex-shrink: 0;
    }

    .airline-code {
      color: #ffffff;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }

    .airline-sub {
      color: rgba(255,255,255,0.7);
      font-size: 9px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .status-tag {
      position: relative;
      z-index: 1;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      flex-shrink: 0;
      white-space: nowrap;
    }

    .status-upcoming {
      background: rgba(245,200,66,0.18);
      border: 1px solid rgba(245,200,66,0.45);
      color: #f5c842;
    }

    .status-used {
      background: rgba(168,185,210,0.12);
      border: 1px solid rgba(168,185,210,0.25);
      color: #a8b9d2;
    }

    .status-cancelled {
      background: rgba(244,143,177,0.14);
      border: 1px solid rgba(244,143,177,0.35);
      color: #f48fb1;
    }

    /* Route Strip */
    .route-strip {
      padding: 6px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      flex-shrink: 0;
    }

    .city-code {
      font-size: 22px;
      font-weight: 800;
      color: #1a2035;
      letter-spacing: 0.5px;
      line-height: 1;
    }

    .city-name-sm {
      font-size: 8px;
      color: rgba(13,20,40,0.7);
      font-weight: 600;
      margin-top: 1px;
      white-space: nowrap;
    }

    .city-country-sm {
      font-size: 7px;
      color: rgba(13,20,40,0.55);
      font-weight: 500;
      white-space: nowrap;
    }

    .route-line-sm {
      display: flex;
      align-items: center;
      gap: 5px;
      flex: 1;
      max-width: 100px;
    }

    .route-dot-sm {
      width: 5px;
      height: 5px;
      background: #1a2035;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .route-dash-sm {
      flex: 1;
      height: 1px;
      background: repeating-linear-gradient(90deg, #1a2035 0px, #1a2035 4px, transparent 4px, transparent 8px);
    }

    .route-icon-sm {
      color: #1a2035;
      font-size: 14px;
      flex-shrink: 0;
    }

    /* Card Body */
    .card-body {
      padding: 6px 20px 4px;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 2px 12px;
      position: relative;
      flex: 1;
    }

    .card-body::before {
      content: "";
      position: absolute;
      top: 0;
      left: 20px;
      right: 20px;
      height: 0;
      border-top: 1px dashed #2a3350;
    }

    .info-block-sm {
      display: flex;
      flex-direction: column;
      gap: 1px;
      min-width: 0;
    }

    .info-block-sm.passenger {
      grid-column: 1 / -1;
      margin-bottom: 2px;
    }

    .info-label-sm {
      font-size: 8px;
      text-transform: uppercase;
      color: #7a8194;
      font-weight: 600;
      letter-spacing: 1px;
    }

    .info-value-sm {
      font-size: 11px;
      font-weight: 700;
      color: #c8d6e5;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .info-value-sm.lg {
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .info-sub-sm {
      font-size: 8px;
      color: #5a6070;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Card Footer */
    .card-footer-sm {
      padding: 4px 20px 6px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .etkt-sm {
      font-size: 8px;
      color: #7a8194;
    }
    .etkt-sm strong {
      display: block;
      color: #c8d6e5;
      font-size: 11px;
      font-weight: 700;
    }

    .gate-sm {
      text-align: right;
      flex-shrink: 0;
    }
    .gate-label-sm {
      font-size: 9px;
      text-transform: uppercase;
      color: #7a8194;
      font-weight: 600;
      letter-spacing: 1.2px;
    }
    .gate-num {
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
    }
    .gate-sub-sm {
      font-size: 8px;
      color: #5a6070;
      margin-top: 1px;
      white-space: nowrap;
    }

    /* ---- Card Divider ---- */
    .card-divider {
      position: relative;
      width: 1.5px;
      flex-shrink: 0;
      background: repeating-linear-gradient(
        180deg,
        #2a3350 0px,
        #2a3350 6px,
        transparent 6px,
        transparent 12px
      );
    }

    .card-divider::before,
    .card-divider::after {
      content: "";
      position: absolute;
      left: -7px;
      width: 16px;
      height: 16px;
      background: #0a1628;
      border-radius: 50%;
    }

    .card-divider::before { top: -8px; }
    .card-divider::after { bottom: -8px; }

    /* ---- Card Right (Stub) ---- */
    .card-right {
      flex: 0 0 160px;
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #1c2438 0%, #151d30 100%);
      padding: 8px 12px 8px;
      min-width: 0;
    }

    .stub-flight-sm {
      font-size: 16px;
      font-weight: 800;
      color: #e8edf5;
      letter-spacing: 0.5px;
      text-align: center;
    }

    .stub-date-sm {
      font-size: 9px;
      color: #8892a8;
      font-weight: 600;
      text-align: center;
      margin-bottom: 6px;
    }

    .stub-route-sm {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      color: #c8d6e5;
      margin-bottom: 6px;
    }

    .stub-route-sm .arrow {
      color: #f5c842;
    }

    .stub-rows {
      display: flex;
      flex-direction: column;
      gap: 3px;
      margin-bottom: auto;
    }

    .stub-row-sm {
      display: flex;
      justify-content: space-between;
      font-size: 9px;
    }

    .stub-row-sm .lbl {
      color: #7a8194;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .stub-row-sm .val {
      color: #c8d6e5;
      font-weight: 700;
    }

    .stub-qr {
      width: 40px;
      height: 40px;
      background: #1e2d50;
      border-radius: 6px;
      padding: 3px;
      margin: 4px auto 0;
    }

    .stub-qr svg {
      width: 100%;
      height: 100%;
    }

    /* ---- Bottom accent ---- */
    .ticket-card::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2.5px;
      border-radius: 0 0 12px 12px;
      z-index: 1;
    }


    /* ---- Empty state ---- */
    .empty-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 80px 20px;
      color: rgba(255,255,255,0.3);
    }

    .empty-state .icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .empty-state .text {
      font-size: 15px;
    }

    /* ---- Flight Map Modal ---- */
    .map-modal-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.75);
      z-index: 9999;
      justify-content: center;
      align-items: center;
      animation: fadeIn 0.25s ease;
    }
    .map-modal-overlay.active { display: flex; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .map-modal {
      background: #141b2d;
      border-radius: 16px;
      width: 92vw;
      max-width: 1000px;
      height: 80vh;
      max-height: 700px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 24px 80px rgba(0,0,0,0.6);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .map-modal-header {
      padding: 16px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      flex-shrink: 0;
    }

    .map-modal-title {
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .map-modal-route {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #f5c842;
      font-size: 14px;
      font-weight: 600;
    }

    .map-modal-close {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.15);
      background: transparent;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    .map-modal-close:hover {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.3);
    }

    .map-modal-body {
      flex: 1;
      position: relative;
      min-height: 0;
    }

    .map-modal-body #flightMap {
      width: 100%;
      height: 100%;
    }

    .map-modal-footer {
      padding: 10px 24px;
      border-top: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: rgba(255,255,255,0.45);
      font-size: 12px;
      flex-shrink: 0;
    }

    .map-info-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .map-info-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .map-info-dot.from { background: #00e5ff; }
    .map-info-dot.to { background: #ff6e9f; }

    /* 飞行轨迹上的小飞机图标 */
    .plane-marker-icon {
      width: 28px !important;
      height: 28px !important;
      margin-left: -14px !important;
      margin-top: -14px !important;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
      /* rotation 由 JS 动态设置 */
    }
