/* gacha.css — 盲盒系统样式 */
    /* ════════════════════════════════════════
       盲盒系统样式
    ════════════════════════════════════════ */

    .gacha-toggle-btn {
      position: fixed;
      top: 20px;
      right: 76px;
      z-index: 100;
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
      border: 2px solid #fff;
      color: #fff;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transition: all 0.3s ease;
    }

    .gacha-toggle-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .gacha-count {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #ff1744;
      color: #fff;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: bold;
      border: 2px solid #fff;
    }

    .gacha-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 200;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .gacha-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .gacha-panel {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #fff;
      border-radius: 24px 24px 0 0;
      z-index: 210;
      max-height: 80vh;
      overflow-y: auto;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }

    .gacha-panel.open {
      transform: translateY(0);
    }

    .gacha-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid #eee;
      position: sticky;
      top: 0;
      background: #fff;
    }

    .gacha-panel-header h3 {
      font-size: 1.2rem;
      margin: 0;
    }

    .gacha-panel-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #999;
    }

    .gacha-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid #eee;
      padding: 0 24px;
    }

    .gacha-tab {
      flex: 1;
      padding: 12px 6px;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 0.78rem;
      color: #999;
      border-bottom: 3px solid transparent;
      transition: all 0.3s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gacha-tab.active {
      color: #ff6b9d;
      border-bottom-color: #ff6b9d;
    }

    .gacha-content {
      padding: 24px;
      min-height: 300px;
    }

    .gacha-draw-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
      padding: 40px 24px;
    }

    .gacha-tickets-display {
      text-align: center;
    }

    .gacha-tickets-count {
      font-size: 3rem;
      font-weight: bold;
      color: #ff6b9d;
    }

    .gacha-tickets-label {
      font-size: 0.9rem;
      color: #999;
      margin-top: 8px;
    }

    .gacha-draw-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
      color: #fff;
      border: none;
      border-radius: 12px;
      font-size: 1.1rem;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-draw-btn:hover:not(.disabled) {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(255, 107, 157, 0.3);
    }

    .gacha-draw-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .gacha-tips {
      background: #f5f5f5;
      padding: 16px;
      border-radius: 8px;
      font-size: 0.85rem;
      line-height: 1.6;
      color: #666;
      text-align: center;
    }

    .gacha-inventory {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
    }

    .gacha-inventory-item {
      border: 2px solid #ddd;
      border-radius: 12px;
      padding: 16px;
      background: #f9f9f9;
      transition: all 0.3s ease;
    }

    .gacha-inventory-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .gacha-item-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .gacha-item-name {
      font-weight: bold;
      font-size: 0.95rem;
    }

    .gacha-item-rarity {
      font-size: 0.75rem;
      font-weight: bold;
    }

    .gacha-item-desc {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 12px;
      line-height: 1.4;
    }

    .gacha-item-count {
      font-size: 0.9rem;
      color: #999;
      margin-bottom: 12px;
    }

    .gacha-item-use-btn {
      width: 100%;
      padding: 8px;
      background: #ff6b9d;
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-item-use-btn:hover {
      background: #ff5588;
    }

    .gacha-shop {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .gacha-shop-item {
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 16px;
      background: #f9f9f9;
    }

    .gacha-shop-item-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .gacha-shop-item-name {
      font-weight: bold;
      font-size: 0.95rem;
    }

    .gacha-shop-item-price {
      color: #ff6b9d;
      font-weight: bold;
      font-size: 1rem;
    }

    .gacha-shop-item-desc {
      font-size: 0.8rem;
      color: #666;
      margin-bottom: 12px;
    }

    .gacha-shop-buy-btn {
      width: 100%;
      padding: 10px;
      background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
      color: #fff;
      border: none;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-shop-buy-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    }

    .gacha-empty {
      text-align: center;
      padding: 60px 24px;
      color: #999;
    }

    /* ── 收集进度条 ── */
    .gacha-collection-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      margin-bottom: 12px;
      background: rgba(255,255,255,0.04);
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.06);
    }

    .gacha-collection-text {
      font-size: 0.85rem;
      color: #ccc;
      white-space: nowrap;
    }

    .gacha-collection-text strong {
      color: #f39c12;
    }

    .gacha-collection-progress {
      flex: 1;
      height: 8px;
      background: rgba(255,255,255,0.1);
      border-radius: 4px;
      overflow: hidden;
    }

    .gacha-collection-fill {
      height: 100%;
      background: linear-gradient(90deg, #f39c12, #e74c3c);
      border-radius: 4px;
      transition: width 0.5s ease;
    }

    .gacha-collection-pct {
      font-size: 0.85rem;
      color: #f39c12;
      font-weight: 700;
      min-width: 36px;
      text-align: right;
    }

    /* ── 食材图鉴：品类分组 ── */
    .gacha-category-section {
      margin-bottom: 16px;
    }

    .gacha-category-header {
      font-size: 0.85rem;
      font-weight: 600;
      color: #aaa;
      padding: 6px 4px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 8px;
    }

    .gacha-category-count {
      font-weight: 400;
      color: #666;
      font-size: 0.8rem;
    }

    .gacha-category-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
      gap: 8px;
    }

    .gacha-ingredient-card {
      background: rgba(255,255,255,0.05);
      border: 1px solid;
      border-radius: 10px;
      padding: 10px 6px;
      text-align: center;
      transition: all 0.2s;
      position: relative;
      min-width: 0;
      overflow: hidden;
    }

    .gacha-ingredient-card.owned {
      background: rgba(255,255,255,0.08);
    }

    .gacha-ingredient-card.locked {
      opacity: 0.4;
      filter: grayscale(0.8);
    }

    .gacha-ingredient-card-count {
      position: absolute;
      top: 4px;
      right: 6px;
      font-size: 0.7rem;
      color: #f39c12;
      font-weight: 700;
    }

    .gacha-ingredient-card-name {
      font-size: 0.8rem;
      font-weight: 500;
      color: #ddd;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gacha-ingredient-card-rarity {
      font-size: 0.65rem;
      color: #888;
      margin-bottom: 2px;
    }

    .gacha-ingredient-card-price {
      font-size: 0.65rem;
      color: #666;
    }

    /* ── 食谱食材需求列表 ── */
    .gacha-card-ingredients {
      margin: 12px 0 8px;
      padding: 8px 12px;
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
    }

    .gacha-card-ingredients-title {
      font-size: 0.8rem;
      font-weight: 600;
      color: #aaa;
      margin-bottom: 6px;
    }

    .gacha-ingredient-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
      font-size: 0.8rem;
    }

    .gacha-ingredient-item.owned { color: #ccc; }
    .gacha-ingredient-item.missing { color: #888; }

    .gacha-ingredient-status { flex-shrink: 0; width: 16px; text-align: center; }
    .gacha-ingredient-name { flex: 1; }
    .gacha-ingredient-info { flex-shrink: 0; font-size: 0.7rem; color: #888; }

    .gacha-recipe-progress-mini {
      font-size: 0.8rem;
      color: #aaa;
      margin: 8px 0 4px;
      text-align: center;
    }

    .gacha-card-price {
      font-size: 0.85rem;
      color: #f39c12;
      margin: 6px 0;
      font-weight: 600;
    }

    .gacha-card-save-btn.disabled {
      background: #333 !important;
      color: #666 !important;
      cursor: not-allowed !important;
      opacity: 0.6;
    }

    .gacha-recipe-cookable {
      display: inline-block;
      margin-left: 6px;
      font-size: 0.7rem;
      color: #f39c12;
      font-weight: 600;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .gacha-recipe-record-ingredients {
      font-size: 0.75rem;
      color: #888;
      margin-top: 2px;
    }

    .gacha-recipes-history-link {
      padding-top: 8px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* ── 盲盒食谱记录列表 ── */
    .gacha-recipes-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 8px 0;
    }

    .gacha-recipe-record {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: rgba(255,255,255,0.06);
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .gacha-recipe-record:active {
      transform: scale(0.98);
      background: rgba(255,255,255,0.1);
    }

    .gacha-recipe-record-left {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      min-width: 0;
    }

    .gacha-recipe-record-badge {
      display: inline-block;
      align-self: flex-start;
      padding: 2px 8px;
      border-radius: 6px;
      color: #fff;
      font-size: 0.7rem;
      font-weight: 600;
    }

    .gacha-recipe-record-name {
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gacha-recipe-record-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .gacha-recipe-record-time {
      font-size: 0.75rem;
      color: #888;
    }

    .gacha-recipe-record-arrow {
      color: #666;
      font-size: 1rem;
    }

    .gacha-recipes-footer {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.06);
      text-align: center;
    }

    /* ── 盲盒食谱详情页 ── */
    .gacha-recipe-detail {
      animation: fadeInUp 0.3s ease;
    }

    .gacha-recipe-detail-header {
      margin-bottom: 16px;
    }

    .gacha-detail-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 14px;
      border-radius: 8px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      color: #ccc;
      font-size: 0.85rem;
      cursor: pointer;
      margin-bottom: 12px;
      transition: all 0.2s;
    }

    .gacha-detail-back-btn:active {
      background: rgba(255,255,255,0.15);
    }

    .gacha-recipe-detail-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .gacha-recipe-detail-badge {
      padding: 3px 10px;
      border-radius: 6px;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .gacha-recipe-detail-time {
      font-size: 0.8rem;
      color: #888;
    }

    .gacha-recipe-detail-title {
      font-size: 1.4rem;
      font-weight: 700;
      margin: 0;
    }

    .gacha-recipe-detail-body {
      margin-top: 12px;
    }

    .gacha-recipe-detail-footer {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.06);
      text-align: center;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .empty-icon {
      font-size: 3rem;
      display: block;
      margin-bottom: 16px;
    }

    .gacha-result-modal {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 300;
      background: rgba(0, 0, 0, 0.7);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .gacha-result-modal.show {
      opacity: 1;
      pointer-events: auto;
    }

    .gacha-result-card {
      background: #fff;
      border-radius: 16px;
      padding: 40px 24px;
      text-align: center;
      max-width: 300px;
      position: relative;
      animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes popIn {
      0% {
        transform: scale(0.5);
        opacity: 0;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .gacha-result-rarity {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      padding: 4px 16px;
      border-radius: 0 0 8px 8px;
      color: #fff;
      font-weight: bold;
      font-size: 0.8rem;
    }

    .gacha-result-content {
      margin-top: 20px;
    }

    .gacha-result-icon {
      font-size: 4rem;
      margin-bottom: 16px;
    }

    .gacha-result-name {
      font-size: 1.3rem;
      font-weight: bold;
      margin-bottom: 8px;
    }

    .gacha-result-desc {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 20px;
    }

    .gacha-result-use-btn {
      padding: 10px 24px;
      background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
      color: #fff;
      border: none;
      border-radius: 6px;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-result-use-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    }

    .gacha-result-close {
      position: absolute;
      top: 12px;
      right: 12px;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #999;
    }

    /* ════════════════════════════════════════
       盲盒神秘卡片样式
    ════════════════════════════════════════ */

    .gacha-recipe-card-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      transition: opacity 0.3s ease;
      backdrop-filter: blur(8px);
    }

    .gacha-recipe-card-modal.show {
      opacity: 1;
    }

    .gacha-recipe-card {
      background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
      border-radius: 24px;
      border: 3px solid;
      padding: 32px;
      max-width: 380px;
      width: 90%;
      text-align: center;
      position: relative;
      transform: scale(0.8) rotateY(90deg);
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      animation: cardShine 2s ease-in-out infinite;
    }

    .gacha-recipe-card-modal.show .gacha-recipe-card {
      transform: scale(1) rotateY(0deg);
    }

    @keyframes cardShine {
      0%, 100% { box-shadow: 0 0 40px currentColor; }
      50% { box-shadow: 0 0 60px currentColor, 0 0 80px currentColor; }
    }

    .gacha-card-rarity {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      padding: 4px 16px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
    }

    .gacha-card-icon {
      font-size: 4rem;
      margin: 16px 0;
      animation: iconFloat 2s ease-in-out infinite;
    }

    @keyframes iconFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .gacha-card-name {
      font-size: 1.4rem;
      font-weight: 800;
      color: #333;
      margin-bottom: 8px;
    }

    .gacha-card-desc {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 12px;
    }

    .gacha-card-story {
      font-size: 0.85rem;
      color: #888;
      font-style: italic;
      padding: 12px;
      background: #f8f9fa;
      border-radius: 12px;
      margin-bottom: 16px;
      border-left: 3px solid #ddd;
    }

    .gacha-card-mystery {
      font-size: 0.8rem;
      color: #9b59b6;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .gacha-card-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .gacha-card-cook-btn {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      border: none;
      padding: 14px 28px;
      border-radius: 30px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .gacha-card-cook-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }

    .gacha-card-save-btn {
      background: transparent;
      color: #888;
      border: 2px solid #ddd;
      padding: 10px 24px;
      border-radius: 30px;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-card-save-btn:hover {
      border-color: #aaa;
      color: #555;
    }

    .gacha-card-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: #f0f0f0;
      color: #888;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .gacha-card-close:hover {
      background: #e0e0e0;
      color: #555;
    }

    /* ════════════════════════════════════════
       神秘烹饪界面
    ════════════════════════════════════════ */

    .mystery-cooking-overlay {
      position: fixed;
      inset: 0;
      background: linear-gradient(145deg, rgba(20, 20, 40, 0.98) 0%, rgba(60, 20, 80, 0.98) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9998;
      backdrop-filter: blur(20px);
    }

    .mystery-cooking-content {
      text-align: center;
      color: #fff;
    }

    .mystery-cooking-icon {
      font-size: 5rem;
      margin-bottom: 24px;
      animation: mysteryPulse 1.5s ease-in-out infinite;
    }

    @keyframes mysteryPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.1); opacity: 0.8; }
    }

    .mystery-cooking-title {
      font-size: 1.6rem;
      font-weight: 800;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .mystery-cooking-recipe {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 32px;
    }

    .mystery-cooking-progress {
      width: 200px;
      height: 6px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 3px;
      margin: 0 auto 16px;
      overflow: hidden;
    }

    .mystery-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
      border-radius: 3px;
      width: 0%;
      transition: width 0.5s ease;
    }

    .mystery-cooking-hint {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.5);
      animation: hintBlink 1.5s ease-in-out infinite;
    }

    @keyframes hintBlink {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    /* ════════════════════════════════════════
       盲盒结果头部样式
    ════════════════════════════════════════ */

    .gacha-result-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
      border-radius: 16px;
      margin-bottom: 20px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .gacha-result-rarity-badge {
      color: #fff;
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 700;
    }

    .gacha-result-recipe-name {
      font-size: 1.2rem;
      font-weight: 800;
      color: #333;
    }

    /* ════════════════════════════════════════
       盲盒结果页样式
    ════════════════════════════════════════ */

    .gacha-result-page {
      position: fixed;
      inset: 0;
      background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      z-index: 10000;
      overflow-y: auto;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .gacha-result-page.show {
      opacity: 1;
    }

    .gacha-result-container {
      max-width: 600px;
      margin: 0 auto;
      padding: 20px;
      min-height: 100vh;
    }

    .gacha-result-banner {
      text-align: center;
      padding: 40px 20px;
      border-radius: 24px;
      margin-bottom: 30px;
      position: relative;
      overflow: hidden;
    }

    .gacha-result-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
      animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }

    .gacha-result-stars {
      font-size: 2rem;
      margin-bottom: 12px;
      animation: starsGlow 1.5s ease-in-out infinite alternate;
    }

    @keyframes starsGlow {
      0% { filter: brightness(1); }
      100% { filter: brightness(1.3) drop-shadow(0 0 10px gold); }
    }

    .gacha-result-reveal-title {
      font-size: 1.8rem;
      font-weight: 900;
      color: #fff;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .gacha-result-card-float {
      background: rgba(255,255,255,0.95);
      border-radius: 20px;
      padding: 30px;
      text-align: center;
      margin-top: -40px;
      margin-bottom: 30px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
      position: relative;
      animation: cardFloat 3s ease-in-out infinite;
    }

    @keyframes cardFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    .gacha-result-card-badge {
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff;
      padding: 6px 20px;
      border-radius: 25px;
      font-size: 0.85rem;
      font-weight: 700;
    }

    .gacha-result-card-icon {
      font-size: 4rem;
      margin: 20px 0 16px;
    }

    .gacha-result-card-name {
      font-size: 1.5rem;
      font-weight: 800;
      color: #333;
    }

    .gacha-result-content {
      background: rgba(255,255,255,0.95);
      border-radius: 20px;
      padding: 30px;
      margin-bottom: 30px;
      color: #333;
      line-height: 1.8;
    }

    .gacha-result-content h1 {
      font-size: 1.6rem;
      color: #333;
      margin-bottom: 20px;
      text-align: center;
    }

    .gacha-result-content h2 {
      font-size: 1.2rem;
      color: #555;
      margin: 20px 0 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid #eee;
    }

    .gacha-result-content h2:first-of-type {
      margin-top: 0;
    }

    .gacha-result-content p {
      margin-bottom: 12px;
    }

    .gacha-result-content ul, .gacha-result-content ol {
      margin: 12px 0;
      padding-left: 24px;
    }

    .gacha-result-content li {
      margin-bottom: 8px;
    }

    .gacha-result-content strong {
      color: #667eea;
    }

    .gacha-result-actions {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 40px;
    }

    .gacha-result-share-btn {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: #fff;
      border: none;
      padding: 16px 32px;
      border-radius: 30px;
      font-size: 1.1rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4);
    }

    .gacha-result-share-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 25px rgba(245, 87, 108, 0.6);
    }

    .gacha-result-back-btn {
      background: rgba(255,255,255,0.2);
      color: #fff;
      border: 2px solid rgba(255,255,255,0.3);
      padding: 14px 32px;
      border-radius: 30px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .gacha-result-back-btn:hover {
      background: rgba(255,255,255,0.3);
    }

    /* 移动端适配 */
    @media (max-width: 480px) {
      .gacha-result-page {
        padding-top: 20px;
      }

      .gacha-result-container {
        padding: 15px;
      }

      .gacha-result-banner {
        padding: 30px 15px;
      }

      .gacha-result-reveal-title {
        font-size: 1.4rem;
      }

      .gacha-result-card-float {
        padding: 25px 20px;
      }

      .gacha-result-card-icon {
        font-size: 3rem;
      }

      .gacha-result-card-name {
        font-size: 1.2rem;
      }

      .gacha-result-content {
        padding: 20px;
      }

      .gacha-result-content h1 {
        font-size: 1.3rem;
      }

      .gacha-result-content h2 {
        font-size: 1.1rem;
      }
    }

    /* 移动端适配 */
    @media (max-width: 480px) {
      .gacha-item-name { font-size: 0.85rem; }
      .gacha-item-desc { font-size: 0.7rem; }
      .gacha-inventory-item { padding: 12px; }
    }
