:root {
  --bg-dark: #0f0f15;
  --bg-purple: #1e1035;
  --bg-blue: #0d1b2a;
  --bg-pink: #1a0f1a;
  --bg-gray: #f7f7f9;
  --text-light: #ffffff;
  --text-muted: #b0b0b8;
  --accent-green: #00ff88;
  --accent-pink: #ff3366;
  --accent-blue: #00aaff;
  --accent-purple: #b300ff;
  --button-bg: #ff3366;
  --button-hover: #ff1a4d;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 80px;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 32px;
  border-radius: 50%;
}

.brand span {
  font-size: 1.2rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-menu a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent-green);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 40px 0;
  background: radial-gradient(circle at top right, var(--bg-purple), var(--bg-dark));
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff, #c0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-image-collage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 400px;
}

.hero-image-collage img {
  border-radius: var(--border-radius);
  object-fit: cover;
  width: 100%;
  height: 180px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-collage img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Downloads */
.download-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--button-bg);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
}

.download-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

.download-btn.secondary {
  background: transparent;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.download-btn.secondary:hover {
  background: rgba(0, 170, 255, 0.1);
}

/* Marquee */
.marquee-wrapper {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  margin-top: 30px;
  border-radius: 30px;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: bold;
  margin: 0 15px;
  background: linear-gradient(90deg, #ff007f, #ff7f00, #ffff00, #00ff00, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
section {
  padding: 50px 0;
}

.section-bg-purple { background-color: var(--bg-purple); }
.section-bg-blue { background-color: var(--bg-blue); }
.section-bg-pink { background-color: var(--bg-pink); }
.section-bg-gray { background-color: var(--bg-gray); color: var(--bg-dark); }

/* 同款魔改 */
.magic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.magic-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.magic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.magic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.magic-card-content {
  padding: 15px;
}

.magic-card-content h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.magic-card-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  background: rgba(0, 255, 136, 0.2);
  color: var(--accent-green);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* 完结魔改剧 */
.completed-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.completed-item {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-purple);
  transition: var(--transition);
}

.completed-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.completed-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.completed-item div {
  flex: 1;
}

.completed-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.completed-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 本周热播榜 */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rank-item::before {
  counter-increment: rank;
  content: counter(rank);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-pink);
  min-width: 30px;
}

.rank-item img {
  width: 50px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-item h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.rank-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 用户神评 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-header h4 {
  font-size: 0.95rem;
}

.review-card p {
  font-size: 0.95rem;
  color: #e0e0e0;
  font-style: italic;
}

/* 会员权益 */
.vip-card {
  background: linear-gradient(135deg, #2b1055, #7597de);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vip-card::before {
  content: 'VIP';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  font-weight: bold;
  color: rgba(255,255,255,0.05);
  transform: rotate(15deg);
}

.vip-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.vip-item {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.9rem;
}

/* 隐私安全 */
.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-icon {
  font-size: 1.5rem;
  color: var(--accent-green);
}

/* 时间轴 */
.timeline-section {
  background: var(--bg-blue);
}

.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-time {
  width: 45%;
  text-align: right;
  padding-right: 20px;
  font-weight: bold;
  color: var(--accent-blue);
}

.timeline-item:nth-child(odd) .timeline-time {
  text-align: left;
  padding-left: 20px;
  padding-right: 0;
}

.timeline-content {
  width: 45%;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-blue);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
}

.faq-answer {
  padding: 0 20px 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Download Section Bottom */
.download-bottom {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}

.download-bottom img {
  max-width: 300px;
  margin: 0 auto 30px;
  border-radius: var(--border-radius);
}

.install-steps {
  text-align: left;
  max-width: 600px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: var(--border-radius);
}

.install-steps h3 {
  margin-bottom: 15px;
  color: var(--accent-green);
}

.install-steps ol {
  padding-left: 20px;
  color: var(--text-muted);
}

.install-steps li {
  margin-bottom: 8px;
}

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
  justify-content: space-between;
}

.floating-download img {
  height: 30px;
  border-radius: 50%;
}

.floating-info {
  flex: 1;
}

.floating-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.floating-info strong {
  font-size: 0.9rem;
  color: var(--accent-green);
}

.floating-btn {
  background: var(--button-bg);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}

/* Footer */
footer {
  background: #050508;
  padding: 40px 0 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links a:hover {
  color: var(--text-light);
}

.copyright {
  margin-bottom: 10px;
}

.beian a {
  color: var(--text-muted);
}

.update-time {
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.2rem; }
  .hero-image-collage { max-width: 350px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 21, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu.active { display: flex; }
  .menu-toggle { display: block; }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-image-collage {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }
  .download-section { justify-content: center; }
  
  .timeline-wrapper::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
  }
  .timeline-time, .timeline-item:nth-child(odd) .timeline-time {
    width: 100%;
    text-align: left;
    padding: 0;
    margin-bottom: 5px;
  }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }
  
  .floating-download { width: 95%; padding: 8px 15px; }
}