/* mcres/static/css/pages/resource/list/children/shaderpack_presets.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  }
  body {
    background: #0b0f14;
    color: #e6edf3;
    padding-top: 92px;
    min-height: 100vh;
  }

  /* ===== 顶部 Banner ===== */
  .banner {
    position: relative;
    padding: 24px 20px 20px;
    margin-bottom: 28px;
    background: linear-gradient(
      145deg,
      rgba(245, 166, 35, 0.12),
      rgba(20, 24, 29, 0.9) 80%
    );
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
    overflow: hidden;
  }
  .banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(
      circle,
      rgba(245, 166, 35, 0.06),
      transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
  }
  .banner .container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
  }
  .banner .left {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .banner .left .title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .banner .left .title .name {
    background: linear-gradient(135deg, #f5a623, #f7b83a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .banner .left .title .badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #b0b8c2;
    -webkit-text-fill-color: #b0b8c2;
  }
  .banner .left .sub {
    font-size: 14px;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .banner .left .sub span i {
    margin-right: 4px;
    opacity: 0.6;
  }
  .banner .left .sub .count {
    color: #f5a623;
    font-weight: 600;
  }

  /* ===== 投稿按钮 ===== */
  .btn-post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5a623, #e0941a);
    color: #14181d;
    padding: 10px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
  }
  .btn-post i {
    font-size: 16px;
  }
  .btn-post:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 6px 28px rgba(245, 166, 35, 0.4);
  }
  .btn-post:active {
    transform: scale(0.96);
  }

  /* ===== 卡片网格 ===== */
  .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px 40px;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  /* ===== 预设卡片 ===== */
  .preset-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition:
      transform 0.3s cubic-bezier(0.2, 0, 0, 1),
      box-shadow 0.3s ease;
  }
  .preset-card-link:hover {
    transform: translateY(-6px);
  }

  .preset-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .preset-card-link:hover .preset-card {
    border-color: rgba(245, 166, 35, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .preset-card .screenshot-area {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b0f14;
    overflow: hidden;
    cursor: pointer;
  }
  .preset-card .screenshot-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
  }
  .preset-card .screenshot-area .placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #3b434d;
    font-size: 32px;
  }
  .preset-card .screenshot-area .dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 999px;
  }
  .preset-card .screenshot-area .dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s;
  }
  .preset-card .screenshot-area .dots .dot.active {
    background: #f5a623;
    width: 16px;
    border-radius: 4px;
  }

  .preset-card .card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .preset-card .card-body .header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
  }
  .preset-card .card-body .header .name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    flex: 1;
  }
  .preset-card .card-body .header .version-tag {
    font-size: 11px;
    font-weight: 600;
    background: rgba(245, 166, 35, 0.15);
    color: #f5a623;
    padding: 0 10px;
    border-radius: 999px;
    line-height: 22px;
    border: 1px solid rgba(245, 166, 35, 0.1);
  }
  .preset-card .card-body .meta {
    font-size: 12px;
    color: #8b949e;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 8px;
  }
  .preset-card .card-body .meta i {
    width: 14px;
    opacity: 0.5;
  }
  .preset-card .card-body .desc {
    font-size: 13px;
    color: #b0b8c2;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
  }
  .preset-card .card-body .footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    font-size: 12px;
    color: #6b7480;
  }
  .preset-card .card-body .footer .time {
    font-size: 11px;
    color: #4d5663;
  }

  /* ===== 空状态 ===== */
  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
  }
  .empty-state i.fa-sliders-h {
    font-size: 48px;
    opacity: 0.2;
    display: block;
    margin-bottom: 16px;
  }
  .empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 6px;
  }
  .empty-state p {
    font-size: 15px;
    max-width: 460px;
    margin: 0 auto 24px;
    color: #6b7480;
  }

  /* ===== 响应式 ===== */
  @media (max-width: 768px) {
    .banner {
      padding: 18px 16px 16px;
    }
    .banner .container {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .banner .btn-post {
      justify-content: center;
      width: 100%;
    }
    .banner .left .title {
      font-size: 20px;
    }
    .grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 480px) {
    .grid {
      grid-template-columns: 1fr;
    }
    .banner .left .title {
      font-size: 18px;
    }
    .preset-card .card-body .header .name {
      font-size: 15px;
    }
    .empty-state .btn-post {
      width: 100%;
      justify-content: center;
    }
  }
