:root {
  --purple: #8A2BE2;
  --cyan: #00F0FF;
  --pink: #FF007F;
  --dark: #0B0C10;
  --text: #E0E0E0;
  --text-dim: #999;
  --card-bg: rgba(255,255,255,0.03);
  --border-glow: rgba(0, 240, 255, 0.2);
}

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

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Halftone Background */
.halftone-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: radial-gradient(var(--purple) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* Nav */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
header.scrolled {
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 0 5px var(--cyan);
}
.logo-group img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
.nav-cta {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.8);
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  gap: 40px;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 20px;
}
.btn {
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.6);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.9);
}
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) inset;
}
.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) inset;
}
.hero-visual {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-covers {
  position: relative;
  width: 280px;
  height: 400px;
}
.hero-covers img {
  position: absolute;
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: transform 0.3s ease-out;
}
.hero-covers img:nth-child(1) { top: 0; left: -20px; z-index: 1; transform: rotate(-10deg); }
.hero-covers img:nth-child(2) { top: 40px; left: 40px; z-index: 2; transform: rotate(5deg); }
.hero-covers img:nth-child(3) { top: 100px; left: -40px; z-index: 3; transform: rotate(-5deg); }
.hero-covers img:nth-child(4) { top: 150px; left: 80px; z-index: 4; transform: rotate(10deg); }

/* Library */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}
.section-title span {
  color: var(--cyan);
}
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.masonry-grid.uneven {
  grid-auto-rows: 150px;
}
.manga-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.manga-card:nth-child(1) { grid-row: span 2; }
.manga-card:nth-child(2) { grid-row: span 2; }
.manga-card:nth-child(3) { grid-row: span 1; }
.manga-card:nth-child(4) { grid-row: span 2; }
.manga-card:nth-child(5) { grid-row: span 1; }
.manga-card:nth-child(6) { grid-row: span 2; }
.manga-card:nth-child(7) { grid-row: span 2; }
.manga-card:nth-child(8) { grid-row: span 1; }

.manga-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
  transition: transform 0.3s;
}
.manga-card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}
.manga-card:hover img {
  transform: scale(1.05);
}
.mc-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 15px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.mc-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-tag {
  font-size: 12px;
  color: var(--text-dim);
}
.mc-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(138, 43, 226, 0.8);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
  border: 1px solid var(--cyan);
}
.manga-card:hover .mc-btn {
  opacity: 1;
}

/* Ranking */
.ranking-section {
  display: flex;
  gap: 40px;
  align-items: center;
}
.ranking-list {
  flex: 1;
}
.rank-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}
.rank-item:hover {
  background: rgba(138, 43, 226, 0.1);
  border-left-color: var(--pink);
}
.rank-num {
  font-size: 24px;
  font-weight: bold;
  width: 40px;
  color: var(--text-dim);
}
.rank-item:nth-child(1) .rank-num { color: #FFD700; text-shadow: 0 0 10px #FFD700; }
.rank-item:nth-child(2) .rank-num { color: #C0C0C0; text-shadow: 0 0 10px #C0C0C0; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; text-shadow: 0 0 10px #CD7F32; }
.rank-info {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
}
.rank-heat {
  font-size: 14px;
  color: var(--pink);
}
.ranking-visual {
  flex: 1;
  height: 300px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ranking-visual img {
  width: 80%;
  height: 100%;
  object-fit: contain;
  transform: rotate(5deg);
}

/* Features */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.feature-row:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 28px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-text p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}
.feature-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}
.feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* App Download */
.app-section {
  background: linear-gradient(135deg, rgba(138,43,226,0.2) 0%, rgba(11,12,16,1) 100%);
  border-radius: 30px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(0,240,255,0.2);
  box-shadow: 0 0 40px rgba(0,240,255,0.1) inset;
}
.app-visual {
  flex: 1;
  position: relative;
  height: 400px;
}
.app-visual img {
  position: absolute;
  width: 200px;
  border-radius: 20px;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
  border: 4px solid #222;
}
.app-visual img:nth-child(1) { top: 20px; left: 20px; transform: rotate(-10deg); z-index: 2; }
.app-visual img:nth-child(2) { top: 80px; left: 120px; transform: rotate(10deg); z-index: 1; }
.app-text {
  flex: 1;
}
.app-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #fff;
}
.app-text p {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.app-btns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.app-btns .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}
.app-btns .btn img {
  width: 20px;
  height: 20px;
}

/* Update Timeline */
.update-section {
  max-width: 800px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}
.tl-item {
  position: relative;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}
.tl-item::before {
  content: '';
  position: absolute;
  top: 20px; left: -37px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.tl-item h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
}
.tl-item p {
  font-size: 14px;
  color: var(--text-dim);
}
.badge-new {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Reviews */
.reviews-wrap {
  overflow-x: auto;
  padding: 20px 0;
}
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
}
.review-card {
  width: 300px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s;
}
.review-card:hover {
  border-color: var(--cyan);
}
.rev-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.rev-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #fff;
}
.rev-name {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}
.rev-stars {
  color: #FFD700;
  font-size: 12px;
}
.rev-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}
.faq-item[open] {
  border-left-color: var(--pink);
}
.faq-item summary {
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--cyan);
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-content {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Join */
.join-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.join-section h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.join-section p {
  color: var(--text-dim);
  margin-bottom: 30px;
}
.subscribe-form {
  display: flex;
  gap: 10px;
}
.subscribe-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input:focus {
  border-color: var(--cyan);
}
.subscribe-form button {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  background: var(--cyan);
  color: var(--dark);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.subscribe-form button:hover {
  box-shadow: 0 0 15px var(--cyan);
}

/* Footer */
footer {
  background: #050508;
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 16px;
}
.footer-col p, .footer-col li {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--cyan);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: #666;
  font-size: 12px;
}
.footer-bottom a {
  color: #666;
  text-decoration: underline;
}
.footer-bottom .time-note {
  margin-top: 5px;
  color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero-btns { justify-content: center; }
  .hero-visual { margin-top: 40px; height: 400px; }
  .ranking-section { flex-direction: column; }
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 30px; }
  .app-section { flex-direction: column; padding: 40px 20px; }
  .app-visual { height: 300px; }
  .app-visual img { width: 150px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-text h1 { font-size: 32px; }
  .hero-visual { height: 300px; }
  .hero-covers { width: 200px; height: 280px; }
  .hero-covers img { width: 140px; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-grid.uneven { grid-auto-rows: 180px; }
  .manga-card:nth-child(n) { grid-row: span 1; }
  .subscribe-form { flex-direction: column; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .app-btns .btn { max-width: 100%; }
}