:root {
  --bg: #11131a;
  --bg-soft: #1a1e28;
  --orange: #f6731a;
  --orange-glow: rgba(246, 115, 26, 0.35);
  --white: #ffffff;
  --gray: #aaaaaa;
  --line: rgba(255, 255, 255, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 19, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; border-radius: 6px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex: 1;
}
.nav-menu a {
  font-size: 14px;
  color: var(--gray);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--orange); }
.nav-menu a.community { color: var(--orange); font-weight: 600; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--orange); }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  width: 110px;
}
.search-box input::placeholder { color: #666; }
.btn-download {
  background: linear-gradient(135deg, #f6731a, #ff9440);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--orange-glow);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 20px;
}
.hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 160, 60, 0.45), transparent 55%),
    linear-gradient(120deg, #2a1508 0%, #4a2408 45%, #f6731a 100%);
  padding: 56px 48px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hero-text { max-width: 560px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  color: #ffd9b3;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.btn-hero {
  display: inline-block;
  background: #fff;
  color: #c24800;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero-visual {
  position: relative;
  z-index: 1;
  width: 320px;
  flex-shrink: 0;
}
.hero-visual img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Main layout */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
section { scroll-margin-top: 80px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
}
.section-head span {
  font-size: 13px;
  color: var(--gray);
}

/* Movie grid */
.movie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.movie-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}
.movie-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-card .card-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 16px;
  font-weight: 700;
}

/* Anime grid */
.anime-block { margin-top: 40px; }
.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.anime-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}
.anime-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}
.anime-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anime-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(246, 115, 26, 0.92);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
}
.anime-card .card-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.anime-card .card-name small {
  display: block;
  font-size: 11px;
  color: var(--gray);
  font-weight: 400;
  margin-top: 2px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 84px;
}
.rank-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
}
.rank-panel h2 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-list { list-style: none; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  cursor: default;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
  width: 22px;
  font-weight: 800;
  font-size: 16px;
  font-style: italic;
  flex-shrink: 0;
  color: #555;
}
.rank-list li:nth-child(1) .rank-num { color: #ff4d4d; }
.rank-list li:nth-child(2) .rank-num { color: #f6731a; }
.rank-list li:nth-child(3) .rank-num { color: #ffc93c; }
.rank-title {
  flex: 1;
  color: #ddd;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-list li:hover .rank-title { color: var(--orange); }

/* Download zone */
.download-zone {
  margin-top: 56px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 115, 26, 0.22), transparent 55%),
    linear-gradient(150deg, #1c1a20, #14161f);
  border: 1px solid var(--line);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.download-text { max-width: 480px; }
.download-text h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
}
.download-text h2 em {
  color: var(--orange);
  font-style: normal;
}
.download-text p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
}
.download-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.2s;
}
.btn-platform:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-platform.primary {
  background: linear-gradient(135deg, #f6731a, #ff9440);
  border-color: transparent;
  color: #fff;
}
.btn-platform.primary:hover {
  color: #fff;
  box-shadow: 0 8px 24px var(--orange-glow);
}
.qr-box {
  text-align: center;
  flex-shrink: 0;
}
.qr-code {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: #777;
  font-size: 13px;
  margin-bottom: 10px;
}
.qr-box span { font-size: 12px; color: var(--gray); }

/* Community */
.community {
  margin-top: 56px;
}
.community-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 16px 22px;
  transition: transform 0.2s, background 0.2s;
}
.post-card::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background 0.2s;
}
.post-card:hover { transform: translateX(6px); background: #20242f; }
.post-card:hover::before { background: var(--orange); }
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.post-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6731a, #7a2d8f);
  flex-shrink: 0;
}
.post-title {
  font-size: 15px;
  font-weight: 600;
  color: #f0f0f0;
}
.post-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
  background: rgba(246, 115, 26, 0.15);
  color: var(--orange);
}
.post-tag.discuss {
  background: rgba(90, 160, 255, 0.15);
  color: #5aa0ff;
}
.post-summary {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
  padding-left: 36px;
}
.post-meta {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #666;
  padding-left: 36px;
}

/* Footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: #0d0f15;
  padding: 40px 20px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.notice-box {
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: rgba(255, 77, 77, 0.04);
}
.notice-col h3 {
  font-size: 14px;
  color: #ff7676;
  margin-bottom: 10px;
}
.notice-col p {
  font-size: 12px;
  color: #8b8f99;
  line-height: 1.8;
}
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #555;
  line-height: 2;
}
.footer-bottom a {
  color: #666;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom time { color: #555; }

/* Floating download */
.float-download {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  background: linear-gradient(135deg, #f6731a, #ff9440);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 26px;
  box-shadow: 0 8px 26px var(--orange-glow);
  transition: transform 0.2s;
}
.float-download:hover { transform: translateY(-3px) scale(1.03); }

/* Responsive */
@media (max-width: 1100px) {
  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: 13px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .anime-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
  .movie-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .nav-menu { order: 3; width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
  .nav-menu::-webkit-scrollbar { display: none; }
  .search-box { display: none; }
  .hero { margin-top: 16px; padding: 0 16px; }
  .hero-card { flex-direction: column; padding: 32px 24px; text-align: left; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 14px; }
  .hero-visual { width: 100%; max-width: 300px; }
  .main-wrap { padding: 32px 16px 0; }
  .anime-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 19px; }
  .download-zone { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .download-text h2 { font-size: 24px; }
  .notice-box { grid-template-columns: 1fr; }
  .float-download { display: none; }
  .post-summary, .post-meta { padding-left: 0; }
}
@media (max-width: 480px) {
  .anime-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .movie-card .card-label { font-size: 14px; }
}