:root {
    --bg-deep: #07080d;
    --bg-card: rgba(23, 26, 38, 0.65);
    --accent-red: #ff3b3b;
    --accent-orange: #ff7a18;
    --text-main: #f2f4f8;
    --text-muted: #9aa3b5;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 24px rgba(255, 59, 59, 0.35);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 59, 59, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 122, 24, 0.05) 0%, transparent 40%);
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  img {
    display: block;
    max-width: 100%;
  }

  /* 顶部导航 */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 8, 13, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
  }

  .brand-area img {
    height: 32px;
    width: auto;
    border-radius: 6px;
  }

  .main-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .main-nav a {
    transition: color 0.3s ease;
  }

  .main-nav a:hover {
    color: var(--text-main);
  }

  .main-nav a.active {
    color: var(--accent-red);
    font-weight: 600;
  }

  .search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* 轮播 Banner */
  .hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
  }

  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.65;
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(7, 8, 13, 0.4) 50%, transparent 100%),
                linear-gradient(to right, rgba(7, 8, 13, 0.9) 0%, transparent 60%);
    z-index: 2;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
  }

  .hero-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: var(--glow);
  }

  .hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }

  .hero-content p {
    font-size: 15px;
    color: #cbd2df;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.6);
  }

  /* 主要区域 */
  .main-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--accent-red), var(--accent-orange));
    border-radius: 2px;
  }

  /* 卡片网格 */
  .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .media-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    position: relative;
  }

  .media-card:hover {
    transform: translateY(-5px);
  }

  .media-card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #1a1c24;
  }

  .media-card-info {
    padding: 12px;
  }

  .media-card-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
  }

  .media-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .media-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }

  /* 分类标签 */
  .category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
  }

  .filter-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-tag:hover,
  .filter-tag.active {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.2), rgba(255, 122, 24, 0.2));
    border-color: var(--accent-red);
    color: var(--text-main);
  }

  /* 推荐区 */
  .recommend-section {
    margin-bottom: 40px;
  }

  /* 详情与介绍区 */
  .detail-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }

  .detail-poster {
    width: 120px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    object-fit: cover;
    background: #1a1c24;
  }

  .detail-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: 0;
  }

  .detail-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .detail-tags span {
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
  }

  .episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 20px;
  }

  .episode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .episode-btn:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--accent-red);
  }

  /* 页脚 */
  .site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 20px;
    text-align: center;
    font-size: 12px;
    color: #5a6478;
  }

  .site-footer p {
    margin-bottom: 10px;
  }

  .site-footer a {
    color: #5a6478;
    transition: color 0.3s;
  }

  .site-footer a:hover {
    color: var(--text-muted);
  }

  .update-time {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
  }

  /* 响应式 */
  @media (max-width: 768px) {
    .site-header {
      padding: 10px 15px;
      flex-wrap: wrap;
      gap: 10px;
    }

    .main-nav {
      order: 3;
      width: 100%;
      overflow-x: auto;
      white-space: nowrap;
      padding-bottom: 5px;
      gap: 15px;
    }

    .main-nav::-webkit-scrollbar {
      display: none;
    }

    .search-bar {
      display: none;
    }

    .hero-section {
      height: 50vh;
      min-height: 350px;
      padding: 20px;
    }

    .hero-content h1 {
      font-size: 26px;
    }

    .media-grid {
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 12px;
    }

    .detail-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .detail-poster {
      width: 100px;
    }

    .detail-tags {
      justify-content: center;
    }
  }

  @media (min-width: 1024px) {
    .main-content {
      padding: 40px;
    }

    .media-grid {
      grid-template-columns: repeat(5, 1fr);
      gap: 24px;
    }
  }