:root {
    --bg: #0D0F14;
    --card: #161B22;
    --primary: #4DB8FF;
    --primary-light: #89C4FF;
    --text-main: #F0F6FC;
    --text-sub: #8B949E;
    --accent: #FF7B72;
    --border: #30363D;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; object-fit: cover; }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main);
  }
  .logo-area img {
    height: 32px;
    width: auto;
  }
  .nav-links {
    display: none;
    gap: 24px;
    color: var(--text-sub);
    font-size: 15px;
  }
  .nav-links a:hover { color: var(--primary-light); }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .search-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    color: var(--text-sub);
    font-size: 14px;
    display: none;
  }
  .btn-small {
    background: linear-gradient(135deg, #4DB8FF, #2b8cd6);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
  }

  /* Hero */
  .hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 80%; height: 150%;
    background: radial-gradient(circle, rgba(77,184,255,0.1) 0%, transparent 60%);
    z-index: -1;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .hero-text h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-main);
  }
  .hero-text h1 span {
    color: var(--primary);
  }
  .hero-text p {
    color: var(--text-sub);
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 500px;
  }
  .hero-banner {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
  }
  .hero-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  .hero-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
  }

  /* Filter Bar */
  .filter-bar {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -20px auto 40px;
    position: relative;
    z-index: 10;
  }
  .filter-tag {
    background: rgba(77, 184, 255, 0.1);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
  }
  .filter-tag:hover { border-color: var(--primary); }

  /* Sections */
  section { padding: 40px 0; }
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
  }
  .section-header h2 {
    font-size: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-header h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
  }
  .section-header .more {
    color: var(--text-sub);
    font-size: 14px;
  }

  /* Anime Card Grid */
  .anime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .anime-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
  }
  .anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77,184,255,0.15);
    border-color: var(--primary);
  }
  .card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
  }
  .card-img img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
  }
  .anime-card:hover .card-img img {
    transform: scale(1.05);
  }
  .card-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255, 123, 114, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
  }
  .card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .card-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-info p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Ranking List */
  .rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rank-item {
    display: flex;
    align-items: center;
    background: var(--card);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    gap: 16px;
  }
  .rank-num {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
    color: var(--border);
    width: 30px;
    text-align: center;
  }
  .rank-item:nth-child(1) .rank-num { color: var(--primary); }
  .rank-item:nth-child(2) .rank-num { color: var(--primary-light); }
  .rank-item:nth-child(3) .rank-num { color: var(--primary-light); opacity: 0.8; }
  .rank-item img {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
  }
  .rank-info { flex: 1; }
  .rank-info h4 { font-size: 15px; margin-bottom: 4px; }
  .rank-info span { font-size: 12px; color: var(--text-sub); }

  /* Download Section */
  .download-section {
    background: linear-gradient(180deg, #161B22 0%, #0D0F14 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
  }
  .download-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(77,184,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(77,184,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
  }
  .download-content {
    position: relative;
    z-index: 1;
  }
  .download-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--text-main);
  }
  .download-content p {
    color: var(--text-sub);
    margin-bottom: 24px;
  }
  .download-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }
  .download-tags span {
    background: rgba(77, 184, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(77, 184, 255, 0.3);
  }
  .download-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  .btn-large {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, #2380c4 100%);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77,184,255,0.3);
  }
  .btn-large.secondary {
    background: var(--card);
    border: 1px solid var(--primary);
    color: var(--primary);
  }
  .download-tip {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 20px;
  }

  /* FAQ */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
  }
  .faq-item h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
  }
  .faq-item p {
    font-size: 14px;
    color: var(--text-sub);
  }

  /* Footer */
  footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
  }
  footer p { margin-bottom: 8px; }
  footer a { color: var(--text-sub); transition: color 0.2s; }
  footer a:hover { color: var(--primary); }

  /* Floating Button */
  .floating-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), #2380c4);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(77,184,255,0.4);
    z-index: 200;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(77,184,255,0.6);
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(77,184,255,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(77,184,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(77,184,255,0); }
  }

  /* Responsive */
  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .search-box { display: block; }
    .hero-content { flex-direction: row; align-items: center; }
    .hero-text { flex: 1; }
    .hero-banner { flex: 1.2; }
    .hero-banner img { height: 400px; }
    .hero-text h1 { font-size: 48px; }
    .anime-grid { grid-template-columns: repeat(3, 1fr); }
    .download-btns { flex-direction: row; justify-content: center; }
    .btn-large { flex: 1; }
    .download-section { padding: 60px 40px; }
  }

  @media (min-width: 1024px) {
    .hero-text h1 { font-size: 56px; }
    .anime-grid { grid-template-columns: repeat(4, 1fr); }
    .filter-bar { margin-top: -30px; }
    .floating-btn { bottom: 40px; right: 40px; }
  }