:root {
  --pink: #ff5e8a;
  --purple: #7c4dff;
  --blue: #4a90e2;
  --mint: #17c0a8;
  --yellow: #ffbe3d;
  --dark: #1b1b2a;
  --text: #333344;
  --light-text: #666677;
  --bg-1: #fdf6f9;
  --bg-2: #f4f0ff;
  --bg-3: #eef8f7;
  --bg-4: #fffbf0;
  --radius: 16px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background-color: var(--bg-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Header & Nav */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 4px 8px;
}
.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  justify-content: center;
}
.nav-list a {
  font-size: 0.9rem;
  color: var(--light-text);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.25s ease;
  display: inline-block;
}
.nav-list a:hover, .nav-list a.active {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff0f5 0%, #f3e8ff 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 16px;
}
.hero-text h1 span {
  color: var(--pink);
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--light-text);
  margin-bottom: 24px;
}
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 4px 12px rgba(255,94,138,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,94,138,0.4);
}
.btn-download.blue { background: var(--blue); box-shadow: 0 4px 12px rgba(74,144,226,0.3); }
.btn-download.purple { background: var(--purple); box-shadow: 0 4px 12px rgba(124,77,255,0.3); }
.btn-download.mint { background: var(--mint); box-shadow: 0 4px 12px rgba(23,192,168,0.3); }

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.hero-gallery img:hover {
  transform: scale(1.03);
}
.hero-gallery img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

/* Marquee */
.marquee-wrap {
  background: var(--dark);
  color: #fff;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-content {
  display: inline-block;
  animation: scroll-left 25s linear infinite;
}
.marquee-content span {
  margin: 0 24px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(90deg, #ff5e8a, #ffbe3d, #7c4dff, #17c0a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Common */
section {
  padding: 60px 20px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--light-text);
  font-size: 0.95rem;
}

/* Comic Grid Section */
.bg-purple { background-color: var(--bg-2); }
.bg-mint { background-color: var(--bg-3); }
.bg-yellow { background-color: var(--bg-4); }

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.comic-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.comic-card:hover {
  transform: translateY(-5px);
}
.comic-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.comic-card-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.comic-card-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
}
.comic-card-info p {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 12px;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f0e6ff;
  color: var(--purple);
}
.comic-meta {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* Daily Rank */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.rank-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow);
  width: 40px;
  text-align: center;
  margin-right: 16px;
}
.rank-item:nth-child(1) .rank-num { color: #ff5e8a; }
.rank-item:nth-child(2) .rank-num { color: #ffbe3d; }
.rank-item:nth-child(3) .rank-num { color: #17c0a8; }
.rank-info {
  flex: 1;
}
.rank-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.rank-info p {
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Timeline Schedule */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 3px solid var(--pink);
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #fff;
}
.timeline-time {
  font-weight: 700;
  color: var(--pink);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.timeline-item p { font-size: 0.85rem; color: var(--light-text); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.faq-item h3 {
  font-size: 1rem;
  color: var(--purple);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Comments */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.comment-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-body h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.comment-body p {
  font-size: 0.85rem;
  color: var(--light-text);
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, #1b1b2a 0%, #3a2a4a 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 900px;
}
.download-section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.download-section p { font-size: 0.95rem; color: #ccc; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.download-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.step {
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
}
.step span { color: var(--yellow); font-weight: 700; margin-right: 6px; }
.download-section .download-group { justify-content: center; }

/* Footer */
.site-footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 40px 20px 20px;
  font-size: 0.85rem;
  color: #999;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer-col h4 { color: var(--text); margin-bottom: 12px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #777; transition: color 0.2s; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--pink); }

/* Floating Download */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 40px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1000;
  border: 1px solid #f0f0f0;
}
.floating-download img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.floating-info {
  display: flex;
  flex-direction: column;
}
.floating-info strong {
  font-size: 0.9rem;
  color: var(--dark);
}
.floating-info span {
  font-size: 0.75rem;
  color: var(--light-text);
}
.btn-float-download {
  background: var(--pink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-float-download:hover { background: #e04e77; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-box h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.5;
}
.modal-box p {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 20px;
  word-break: break-all;
}
.modal-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 0.9rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-text { text-align: center; }
  .hero-text .download-group { justify-content: center; }
  .hero-gallery img:first-child { height: 220px; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    padding: 0 20px 12px;
    background: #fff;
  }
  .main-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #f9f9f9;
  }
  .hero { padding: 30px 16px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 0.95rem; }
  .btn-download { flex: 1 1 calc(50% - 12px); padding: 10px 16px; font-size: 0.9rem; }
  .hero-gallery { grid-template-columns: 1fr; }
  .hero-gallery img { height: 200px !important; }
  section { padding: 40px 16px; }
  .section-title h2 { font-size: 1.5rem; }
  .timeline { padding-left: 20px; }
  .timeline-item::before { left: -28px; width: 10px; height: 10px; }
  .floating-download { padding: 6px 12px 6px 6px; gap: 8px; width: calc(100% - 32px); max-width: 360px; }
  .floating-download img { width: 32px; height: 32px; }
  .floating-info strong { font-size: 0.8rem; }
  .floating-info span { font-size: 0.7rem; }
  .btn-float-download { padding: 6px 12px; font-size: 0.8rem; }
  .footer-inner { flex-direction: column; gap: 24px; }
}