:root {
  --primary: #FF7EB3;
  --primary-light: #FFF5F9;
  --primary-dark: #D94F8C;
  --secondary: #FFB347;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-card: #FFFFFF;
  --shadow: 0 4px 16px rgba(255, 126, 179, 0.12);
  --shadow-hover: 0 8px 24px rgba(255, 126, 179, 0.25);
  --radius: 12px;
  --radius-lg: 16px;
  --spacing-section: 56px;
  --spacing-title: 8px;
  --spacing-subtitle: 28px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--primary-light);
  background-image: radial-gradient(circle at 10% 20%, rgba(255,126,179,0.05) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(255,179,71,0.05) 0%, transparent 40%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 18px; color: var(--primary-dark); white-space: nowrap; }
.nav-brand img { height: 32px; width: auto; border-radius: 8px; }
.nav-menu { display: flex; gap: 24px; font-size: 15px; }
.nav-menu a { color: var(--text-dark); transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-search { display: flex; align-items: center; border: 1.5px solid var(--secondary); border-radius: 20px; padding: 4px 4px 4px 16px; background: #fff; }
.nav-search input { border: none; outline: none; width: 140px; font-size: 14px; }
.nav-search button { background: var(--secondary); border: none; border-radius: 16px; padding: 6px 14px; color: #fff; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.nav-search button:hover { background: #e69a2a; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #B84A7A 100%);
  color: #fff; padding: 48px 24px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.hero-content { flex: 1; max-width: 600px; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.3); }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--secondary); }
.hero-slogan { font-size: 20px; font-weight: 500; margin-bottom: 12px; opacity: 0.95; }
.hero-desc { font-size: 15px; margin-bottom: 20px; opacity: 0.85; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-tags span { background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 16px; font-size: 13px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 24px; font-weight: bold; font-size: 15px; transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.btn-primary { background: #fff; color: var(--primary-dark); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.hero-logo { flex-shrink: 0; z-index: 1; }
.hero-logo img { width: 240px; height: 240px; border-radius: 24px; box-shadow: 0 12px 32px rgba(0,0,0,0.2); background: rgba(255,255,255,0.1); padding: 16px; }

/* Common Section */
section { padding: 0 24px; margin-bottom: var(--spacing-section); }
.section-header { text-align: center; margin-bottom: var(--spacing-subtitle); }
.section-header h2 { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: var(--spacing-title); }
.section-sub { font-size: 15px; color: var(--text-light); }

/* Intro */
.intro-box {
  max-width: 900px; margin: 0 auto;
  background: #fff; border-left: 6px solid var(--primary); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  position: relative;
  max-height: 200px; overflow: hidden;
  transition: max-height 0.5s ease;
}
.intro-box.expanded { max-height: 2000px; }
.intro-box p { margin-bottom: 16px; font-size: 15px; color: var(--text-dark); line-height: 1.8; }
.intro-expand-btn {
  display: block; margin: 0 auto; background: none; border: none; color: var(--primary-dark);
  font-weight: bold; cursor: pointer; padding: 8px 16px; font-size: 14px;
}

/* Featured */
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.manga-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.manga-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.manga-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.manga-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.manga-card:hover .manga-cover img { transform: scale(1.05); }
.manga-badge {
  position: absolute; top: 8px; left: 8px; background: var(--secondary); color: #fff;
  padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: bold;
}
.manga-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.manga-title { font-size: 15px; font-weight: bold; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manga-desc { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.manga-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.manga-tags span { font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.tag-pink { background: #FFEBF2; color: #D94F8C; }
.tag-blue { background: #E6F0FF; color: #4A7CFF; }
.tag-orange { background: #FFF0E0; color: #E68A2E; }
.manga-update { font-size: 12px; color: #999; margin-top: auto; }

/* Curated */
.curated-section { max-width: 1200px; margin: 0 auto; }
.curated-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.curated-tab {
  padding: 8px 20px; border-radius: 20px; border: 1px solid #eee; background: #fff;
  cursor: pointer; font-size: 14px; transition: all 0.3s;
}
.curated-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.curated-track-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.curated-track { display: flex; transition: transform 0.5s ease; }
.curated-slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px; }
.curated-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; position: relative; }
.curated-main img { width: 100%; height: 100%; object-fit: cover; }
.curated-side { display: grid; grid-template-columns: 1fr; gap: 16px; }
.curated-mini { display: flex; gap: 12px; background: rgba(255,255,255,0.5); border-radius: var(--radius); padding: 12px; transition: background 0.3s; cursor: pointer; }
.curated-mini:hover { background: #fff; box-shadow: var(--shadow); }
.curated-mini img { width: 60px; height: 80px; border-radius: 8px; object-fit: cover; }
.curated-mini-info h4 { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.curated-mini-info p { font-size: 12px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.curated-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.curated-dots { display: flex; gap: 8px; }
.curated-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; cursor: pointer; transition: background 0.3s; }
.curated-dot.active { background: var(--primary); }
.curated-arrow { background: #fff; border: 1px solid #eee; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.curated-arrow:hover { background: var(--primary-light); border-color: var(--primary); }

/* Guide */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.guide-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s; }
.guide-panel:hover { transform: translateY(-4px); }
.guide-header { padding: 16px 20px; color: #fff; font-weight: bold; font-size: 16px; }
.guide-header.blue { background: #4A7CFF; }
.guide-header.orange { background: #E68A2E; }
.guide-header.purple { background: #8B5CF6; }
.guide-list { padding: 20px; }
.guide-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 14px; color: var(--text-dark); }
.guide-list li::before { content: ''; display: block; width: 6px; height: 6px; background: var(--primary); border-radius: 2px; margin-top: 7px; flex-shrink: 0; }

/* App Preview */
.app-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.app-screenshot { text-align: center; }
.app-screenshot img { width: 100%; aspect-ratio: 9/19.5; object-fit: cover; object-position: top; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform 0.3s; }
.app-screenshot:hover img { transform: translateY(-4px); }
.app-screenshot span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-light); }

/* Announcement */
.notice-box {
  max-width: 800px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; border-top: 4px solid var(--secondary);
  position: relative;
}
.notice-box h3 { font-size: 20px; margin-bottom: 16px; color: var(--text-dark); }
.notice-box p { margin-bottom: 12px; font-size: 15px; color: var(--text-light); line-height: 1.8; }
.notice-highlight { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 12px 16px; border-radius: 0 8px 8px 0; margin-top: 16px; font-size: 14px; color: var(--primary-dark); }
.notice-sign { text-align: right; font-size: 14px; color: #999; margin-top: 16px; }

/* Download */
.download-panel {
  max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.download-top-bar { height: 8px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.download-content { padding: 32px; }
.download-info { display: flex; gap: 24px; align-items: center; margin-bottom: 32px; }
.download-logo img { width: 80px; height: 80px; border-radius: 16px; box-shadow: var(--shadow); }
.download-text h3 { font-size: 22px; margin-bottom: 8px; }
.download-text p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; }
.download-features { display: flex; gap: 10px; flex-wrap: wrap; }
.download-features span { background: var(--primary-light); color: var(--primary-dark); padding: 4px 12px; border-radius: 16px; font-size: 13px; }
.download-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.download-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--primary-light); padding: 20px; border-radius: var(--radius); border: 2px solid transparent;
  transition: all 0.3s; cursor: pointer;
}
.download-btn:hover { border-color: var(--primary); background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.download-btn strong { font-size: 16px; color: var(--text-dark); margin-bottom: 4px; }
.download-btn span { font-size: 13px; color: var(--text-light); }
.download-note { text-align: center; font-size: 13px; color: #999; background: #f5f5f5; padding: 10px; border-radius: 8px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.review-card {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-4px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 18px; flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #FF7EB3, #FFB347); }
.avatar-2 { background: linear-gradient(135deg, #4A7CFF, #8B5CF6); }
.avatar-3 { background: linear-gradient(135deg, #8B5CF6, #FF7EB3); }
.avatar-4 { background: linear-gradient(135deg, #E68A2E, #FF7EB3); }
.review-meta h4 { font-size: 15px; font-weight: bold; }
.review-meta span { font-size: 12px; color: #999; }
.review-body { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 12px; flex-grow: 1; }
.review-stars { color: var(--secondary); font-size: 16px; letter-spacing: 2px; }

/* Hot List */
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.hot-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s; display: flex; flex-direction: column;
}
.hot-card:hover { transform: translateY(-4px); }
.hot-cover { aspect-ratio: 3/4; overflow: hidden; }
.hot-cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-info { padding: 16px; }
.hot-info h4 { font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.hot-date { font-size: 13px; color: var(--primary-dark); margin-bottom: 8px; }
.hot-desc { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Calendar */
.calendar-section { max-width: 1000px; margin: 0 auto; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 24px; }
.calendar-day {
  background: #fff; border-radius: var(--radius); padding: 16px 8px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; transition: all 0.3s; position: relative;
}
.calendar-day:hover { transform: translateY(-3px); }
.calendar-day.active { background: var(--primary); color: #fff; }
.calendar-day strong { display: block; font-size: 14px; margin-bottom: 6px; }
.calendar-count { font-size: 12px; background: var(--primary-light); color: var(--primary-dark); padding: 2px 8px; border-radius: 10px; display: inline-block; }
.calendar-day.active .calendar-count { background: rgba(255,255,255,0.3); color: #fff; }
.pulse-dot { display: inline-block; width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; margin-left: 4px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } 100% { transform: scale(0.9); opacity: 1; } }
.calendar-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-item { background: #fff; border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; box-shadow: var(--shadow); transition: transform 0.3s; }
.detail-item:hover { transform: translateY(-3px); }
.detail-item img { width: 50px; height: 66px; object-fit: cover; border-radius: 6px; }
.detail-info h5 { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.detail-info span { font-size: 12px; color: var(--primary-dark); }

/* Footer */
footer {
  background: #2A1A22; color: #ccc; padding: 48px 24px 24px; margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto 32px; }
.footer-brand img { height: 32px; margin-bottom: 12px; border-radius: 6px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #aaa; margin-bottom: 16px; }
.footer-qrcode { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; }
.footer-qrcode span { display: block; font-size: 12px; color: #333; text-align: center; margin-top: 4px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #aaa; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #3D2A33; padding-top: 24px; max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #888;
}
.footer-bottom-left { display: flex; align-items: center; gap: 8px; }
.footer-bottom-left .pulse-dot { background: var(--primary); width: 8px; height: 8px; }
.footer-features { display: flex; gap: 16px; }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--primary); color: #fff; border-radius: 50%; border: none;
  font-size: 20px; cursor: pointer; box-shadow: var(--shadow); display: none;
  align-items: center; justify-content: center; transition: transform 0.3s; z-index: 99;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-4px); }

/* Responsive */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --spacing-section: 40px;
    --spacing-subtitle: 20px;
  }
  .nav-menu, .nav-search { display: none; }
  .nav-toggle { display: block; }
  .nav-search.mobile-show { display: flex; width: 100%; position: absolute; top: 64px; left: 0; padding: 12px 24px; background: #fff; }
  .nav-search.mobile-show input { flex-grow: 1; }
  .hero { flex-direction: column; text-align: center; padding: 32px 20px; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .hero-logo img { width: 180px; height: 180px; }
  .hero-tags { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .curated-slide { grid-template-columns: 1fr; }
  .curated-side { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .app-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .download-buttons { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .calendar-days { grid-template-columns: repeat(4, 1fr); }
  .calendar-detail { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 32px 20px 20px; margin-top: 40px; }
  .download-info { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hot-grid { grid-template-columns: 1fr; }
  .calendar-days { grid-template-columns: repeat(3, 1fr); }
  .calendar-detail { grid-template-columns: 1fr; }
}