:root {
  --ink: #1a1a1a;
  --paper: #f7f3eb;
  --pop-pink: #ff4d6d;
  --pop-blue: #2f6bff;
  --pop-yellow: #ffcc00;
  --pop-purple: #6c3dff;
  --mint: #d8f5e6;
  --lavender: #ece6ff;
  --sunset: #fff0e1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--ink);
  padding: 0 20px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand img { height: 34px; width: 34px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 6px 12px; font-size: 14px; font-weight: 600;
  border-radius: 20px; transition: all .2s ease;
}
.nav-links a:hover {
  background: var(--pop-yellow); color: var(--ink);
  transform: translateY(-2px);
}
.menu-toggle {
  display: none; background: var(--pop-pink); color: #fff; border: 2px solid var(--ink);
  padding: 6px 14px; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #ffe9ef 0%, #e8f0ff 50%, #fff6e0 100%);
  padding: 48px 20px 0;
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 20px; }
.hero-tag {
  display: inline-block; background: var(--pop-pink); color: #fff;
  padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  border: 2px solid var(--ink); margin-bottom: 12px;
}
.hero h1 {
  font-size: 38px; line-height: 1.3; font-weight: 900;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--pop-pink); }
.hero-desc { font-size: 16px; max-width: 720px; color: #333; margin-bottom: 24px; }
.hero-visuals {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.hero-visuals img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: 14px; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(26,26,26,.15);
}
.download-btn-group {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 30px; border: 2px solid var(--ink);
  transition: transform .2s ease, background .2s ease;
}
.dl-btn:hover { transform: translateY(-3px); background: var(--pop-pink); }
.dl-btn.alt { background: #fff; color: var(--ink); }
.dl-btn.alt:hover { background: var(--pop-yellow); }

/* Marquee */
.marquee {
  background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 10px 0; border-top: 3px solid var(--pop-yellow);
}
.marquee-track {
  display: inline-block; animation: scroll-left 26s linear infinite;
  font-weight: 700; font-size: 15px;
}
.marquee-track span {
  display: inline-block; padding: 0 24px;
  background: linear-gradient(90deg, #ff4d6d, #ffcc00, #2f6bff, #6c3dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections Common */
section { padding: 56px 20px; border-bottom: 3px solid var(--ink); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 800;
  padding: 3px 12px; border-radius: 6px; margin-bottom: 10px;
  border: 2px solid var(--ink);
}
.section-title { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: #555; margin-bottom: 28px; max-width: 760px; }

/* Guoman section */
#guoman { background: var(--sunset); }
#guoman .section-label { background: var(--pop-yellow); }
.comic-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.comic-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 14px;
  overflow: hidden; transition: transform .2s ease;
  box-shadow: 4px 4px 0 rgba(26,26,26,.12);
}
.comic-card:hover { transform: translateY(-4px); }
.comic-card img { width: 100%; height: 180px; object-fit: cover; }
.comic-card-info { padding: 12px; }
.comic-card-info h3 { font-size: 15px; margin-bottom: 4px; }
.comic-card-info p { font-size: 12px; color: #666; line-height: 1.5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag-list span {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--lavender); color: var(--pop-purple); font-weight: 600;
}

/* Japanese / Korean split */
#riman { background: var(--mint); }
#riman .section-label { background: var(--pop-blue); color: #fff; }
.split-layout {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start;
}
.split-layout .side-img {
  border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 6px 6px 0 rgba(26,26,26,.15);
}
.split-layout .side-img img { width: 100%; height: auto; }
.text-list { list-style: none; }
.text-list li {
  padding: 10px 0; border-bottom: 1px dashed #ccc; font-size: 15px;
  display: flex; gap: 8px;
}
.text-list li::before { content: "◆"; color: var(--pop-pink); font-size: 12px; margin-top: 4px; }

/* Korean section */
#hanman { background: var(--lavender); }
#hanman .section-label { background: var(--pop-purple); color: #fff; }
.hanman-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hanman-item {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
}
.hanman-item img { width: 90px; height: 120px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.hanman-item-text h3 { font-size: 16px; margin-bottom: 6px; }
.hanman-item-text p { font-size: 13px; color: #555; }
.date-badge {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700;
  background: var(--sunset); padding: 2px 8px; border-radius: 6px;
}

/* Timeline */
#ranking { background: #1f2430; color: #fff; }
#ranking .section-label { background: var(--pop-yellow); color: var(--ink); }
#ranking .section-title { color: #fff; }
#ranking .section-sub { color: #bbb; }
.timeline { position: relative; margin-left: 20px; padding-left: 30px; border-left: 3px dashed var(--pop-yellow); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -40px; top: 6px;
  width: 16px; height: 16px; background: var(--pop-pink);
  border-radius: 50%; border: 3px solid var(--ink);
}
.timeline-time { font-weight: 800; color: var(--pop-yellow); font-size: 15px; margin-bottom: 4px; }
.timeline-content {
  background: #2c3345; border-radius: 12px; padding: 12px 16px;
  border-left: 4px solid var(--pop-blue);
}
.timeline-content strong { color: #fff; font-size: 15px; display: block; }
.timeline-content span { font-size: 13px; color: #b8bfd0; }

/* VIP */
#vip { background: var(--sunset); }
#vip .section-label { background: var(--pop-yellow); }
.vip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vip-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.vip-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: var(--pop-yellow); display: flex; align-items: center; justify-content: center;
  font-weight: 900; border: 2px solid var(--ink);
}
.vip-card h3 { font-size: 16px; margin-bottom: 4px; }
.vip-card p { font-size: 13px; color: #555; }

/* Privacy & Feedback */
#privacy { background: var(--mint); }
.privacy-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.faq-item {
  background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: 16px;
}
.faq-q { font-weight: 800; margin-bottom: 6px; color: var(--pop-blue); }
.faq-a { font-size: 14px; color: #444; }

/* Reviews */
#reviews { background: #fff8f0; }
.review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review-item {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 18px; display: flex; gap: 14px;
}
.review-item img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.review-text strong { font-size: 15px; display: block; margin-bottom: 4px; }
.review-text p { font-size: 14px; color: #555; }

/* Install steps */
#download-area { background: var(--lavender); }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.step-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 20px; text-align: center;
}
.step-num {
  width: 48px; height: 48px; margin: 0 auto 12px;
  background: var(--pop-pink); color: #fff; font-weight: 900; font-size: 20px;
  border-radius: 50%; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: #555; }

/* FAQ */
#faq { background: #f0f4ff; }
.faq-list { display: grid; gap: 12px; }
.faq-block {
  background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: 16px;
}
.faq-block h3 { font-size: 16px; margin-bottom: 6px; color: var(--pop-blue); }
.faq-block p { font-size: 14px; color: #444; }

/* Footer */
footer {
  background: #1a1a1a; color: #999; padding: 40px 20px 30px;
  font-size: 13px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-brand p { margin-top: 10px; line-height: 1.8; color: #888; }
.footer-nav h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-nav a { display: block; margin-bottom: 6px; color: #aaa; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 16px;
  border-top: 1px solid #333; text-align: center; color: #777;
  font-size: 12px;
}
.footer-bottom a { color: #999; }
.footer-bottom time { color: #777; }

/* Floating download */
.float-dl {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: #fff; border: 3px solid var(--ink);
  border-radius: 40px; padding: 8px 18px 8px 8px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  max-width: 94vw;
}
.float-dl img { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); }
.float-dl-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-dl-text strong { font-size: 14px; }
.float-dl-text span { font-size: 11px; color: #666; }
.float-dl-btn {
  background: var(--pop-pink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 20px; border: 2px solid var(--ink);
  white-space: nowrap;
}

/* Copy dialog */
.copy-dialog {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center;
  padding: 20px;
}
.copy-dialog.active { display: flex; }
.copy-box {
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 24px; max-width: 400px; width: 100%; text-align: center;
}
.copy-box p { font-size: 14px; margin-bottom: 16px; }
.copy-input {
  width: 100%; padding: 10px; border: 2px solid var(--ink); border-radius: 8px;
  margin-bottom: 16px; font-size: 13px; text-align: center;
}
.copy-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.copy-actions button {
  padding: 8px 18px; border-radius: 20px; border: 2px solid var(--ink);
  font-weight: 700; cursor: pointer; font-size: 14px;
}
.btn-copy { background: var(--pop-pink); color: #fff; }
.btn-close { background: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 30px; }
  .comic-row { grid-template-columns: repeat(3, 1fr); }
  .hanman-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column;
    padding: 12px 0; border-top: 2px solid var(--ink);
  }
  .nav-links.open { display: flex; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .hero { padding: 32px 16px 0; }
  .hero h1 { font-size: 24px; }
  .hero-desc { font-size: 14px; }
  .hero-visuals { grid-template-columns: 1fr; }
  .hero-visuals img { height: 180px; }
  .comic-row { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 22px; }
  .split-layout { grid-template-columns: 1fr; }
  .hanman-grid { grid-template-columns: 1fr; }
  .vip-grid, .privacy-faq, .review-list, .install-steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-dl { padding: 6px 12px 6px 6px; }
  .float-dl-text span { display: none; }
  section { padding: 36px 16px; }
}