:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --panel-2: #1e1e1e;
  --yellow: #ffcc00;
  --yellow-dim: #c9a200;
  --red: #e60023;
  --red-hover: #ff1a3c;
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --border: #2a2a2a;
  --radius: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* 下落粒子 */
.falling-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  top: -10vh;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: .25;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
  10% { opacity: .3; }
  90% { opacity: .3; }
  100% { transform: translateY(110vh) translateX(30px); opacity: 0; }
}

/* 导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--yellow);
}
.brand img { height: 34px; width: auto; border-radius: 6px; }
.nav-toggle {
  background: var(--panel-2);
  color: var(--yellow);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.nav-toggle:hover { background: #2c2c2c; }
.nav-toggle .bar {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--yellow);
  position: relative;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--yellow);
}
.nav-toggle .bar::before { top: -5px; }
.nav-toggle .bar::after { top: 5px; }

.nav-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.nav-menu.open {
  max-height: 400px;
  padding: 6px 20px 16px;
}
.nav-menu a {
  font-size: .92rem;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--yellow); }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .2s;
}
.nav-menu a:hover::after { width: 100%; }

/* 首屏 */
.hero {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.3;
  font-weight: 900;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: var(--red);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 44px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(230,0,35,.35);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.download-btn:hover {
  background: var(--red-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(230,0,35,.5);
}
.update-hint {
  margin-top: 12px;
  font-size: .78rem;
  color: var(--muted);
}

/* 轮播 */
.carousel-section {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 20px auto 60px;
  padding: 0 20px;
}
.carousel {
  position: relative;
  height: 520px;
  perspective: 1600px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.card {
  position: absolute;
  width: 300px;
  height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0,0,0,.7);
  transition: transform .55s cubic-bezier(.2,.8,.3,1), opacity .55s, filter .55s;
  cursor: pointer;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.7);
  color: var(--yellow);
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,204,0,.3);
}
.card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.7);
}
.play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* 中间滚动横幅 */
.marquee-bar {
  position: relative;
  z-index: 2;
  background: var(--yellow);
  color: #111;
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
  font-weight: 700;
  font-size: .95rem;
}
.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
  padding-left: 100vw;
}
.marquee-track span { margin: 0 30px; }
.marquee-track span::before { content: "★ "; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 通用区块 */
.section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--yellow);
  font-weight: 800;
}
.section-head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: .95rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.poster-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s;
}
.poster-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,204,0,.5);
}
.poster-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.poster-card:hover .poster-thumb img { transform: scale(1.05); }
.poster-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s;
}
.poster-card:hover .play-overlay { opacity: 1; }
.poster-thumb .play-btn {
  width: 52px;
  height: 52px;
}
.poster-thumb .play-btn::after {
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.poster-info {
  padding: 14px;
}
.poster-info h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 6px;
}
.poster-info p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* 特色 */
.feature-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 36px;
  border-left: 4px solid var(--yellow);
}
.feature-box p {
  color: #d6d6d6;
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 18px;
}
.feature-box p:last-child { margin-bottom: 0; }
.feature-box strong { color: var(--yellow); }

/* 排行榜 */
.rank-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rank-item {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.rank-item:hover {
  border-color: rgba(255,204,0,.5);
  transform: translateY(-3px);
}
.rank-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  min-width: 32px;
  line-height: 1.2;
  opacity: .8;
}
.rank-thumb {
  width: 74px;
  height: 98px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-meta { flex: 1; min-width: 0; }
.rank-meta h3 {
  font-size: .95rem;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-meta .heat {
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
}
.rank-meta .views {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* 弹幕 */
.danmaku-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.danmaku-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.danmaku-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.danmaku-item {
  position: absolute;
  white-space: nowrap;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  animation: dm linear forwards;
}
@keyframes dm {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.dm-bottom-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  display: flex;
  align-items: center;
  gap: 10px;
}
.dm-input {
  flex: 1;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: #fff;
  font-size: .85rem;
  outline: none;
}
.dm-input::placeholder { color: rgba(255,255,255,.5); }
.dm-send {
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .85rem;
}

/* 历程 */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,204,0,.15);
}
.timeline-item h3 {
  color: var(--yellow);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.timeline-item p {
  color: var(--muted);
  font-size: .92rem;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary { color: var(--yellow); }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .92rem;
}

/* 评论 */
.comment-section {
  max-width: 820px;
  margin: 0 auto;
}
.comment-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: .92rem;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus { border-color: var(--yellow-dim); }
.comment-form .form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}
.comment-form .form-foot span { font-size: .8rem; color: var(--muted); }
.comment-submit {
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: .9rem;
  transition: background .2s;
}
.comment-submit:hover { background: #ffd633; }
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel-2);
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-body .c-name {
  font-weight: 700;
  color: var(--yellow);
  font-size: .9rem;
  margin-bottom: 4px;
}
.comment-body .c-text {
  color: #d0d0d0;
  font-size: .9rem;
  line-height: 1.6;
}

/* 页脚 */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 34px 20px 40px;
  text-align: center;
  color: #6e6e6e;
  font-size: .8rem;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-inner p { margin-bottom: 8px; }
.site-footer .footer-update { margin-bottom: 14px; }
.site-footer a { color: #8a8a8a; }
.site-footer a:hover { color: var(--yellow); }
.footer-about {
  margin-top: 18px;
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.footer-about summary {
  cursor: pointer;
  font-size: .8rem;
  color: #8a8a8a;
  list-style: none;
  display: inline-block;
}
.footer-about summary::-webkit-details-marker { display: none; }
.footer-about summary::after { content: ""; }
.footer-about[open] summary { color: var(--yellow); }
.footer-about .about-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .78rem;
}
.footer-about .about-links a { color: #8a8a8a; }
.footer-about .about-links a:hover { color: var(--yellow); }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 380px;
  width: 100%;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
.modal-box h3 {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.modal-box p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 22px;
}
.modal-box .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-box .btn-go {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 24px;
}
.modal-box .btn-close {
  background: var(--panel-2);
  color: var(--muted);
  padding: 11px 26px;
  border-radius: 24px;
}

/* 响应式 */
@media (max-width: 1023px) {
  .grid-3, .grid-6, .rank-list { grid-template-columns: repeat(2, 1fr); }
  .carousel { height: 440px; }
  .card { width: 250px; height: 360px; }
}
@media (max-width: 767px) {
  .hero { padding: 40px 16px 30px; }
  .download-btn { width: 100%; justify-content: center; padding: 15px 20px; }
  .grid-3, .grid-6, .rank-list { grid-template-columns: 1fr; }
  .carousel { height: 380px; }
  .card { width: 200px; height: 300px; }
  .section { padding: 44px 16px; }
  .feature-box { padding: 26px 20px; }
  .nav-menu.open { max-height: 600px; }
  .comment-item { padding: 12px; }
}