:root {
  --brand-yellow: #F0D030;
  --brand-green: #8EC330;
  --bg-white: #FFFFFF;
  --bg-offwhite: #FAFAF7;
  --text-dark: #222222;
  --text-gray: #777777;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(142, 195, 48, 0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-offwhite);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* Header */
header {
  background-color: var(--bg-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo-area img { height: 36px; }
.nav-links { display: none; gap: 25px; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand-green); }
.btn-download-header {
  background-color: var(--brand-green);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}
.btn-download-header:hover { background-color: #7cae23; box-shadow: 0 4px 12px rgba(142, 195, 48, 0.3); }

/* Sections */
section { padding: 60px 0; }
.sec-title { font-size: 28px; margin-bottom: 10px; font-weight: 700; }
.sec-desc { color: var(--text-gray); margin-bottom: 30px; font-size: 16px; }
.center-text { text-align: center; }

/* Hero */
.hero {
  background: radial-gradient(circle at 10% 20%, rgba(240, 208, 48, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(142, 195, 48, 0.15) 0%, transparent 40%);
  padding: 80px 0;
}
.hero-content { display: flex; flex-direction: column; gap: 40px; }
.hero-text h1 { font-size: 40px; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { font-size: 18px; color: var(--text-gray); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 15px; }
.btn-primary {
  background-color: var(--brand-green);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-primary:hover { background-color: #7cae23; transform: translateY(-2px); }
.btn-secondary {
  border: 2px solid var(--brand-yellow);
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-secondary:hover { background-color: var(--brand-yellow); }
.hero-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* Hot Search */
.hot-search { padding: 0 0 40px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hot-tag {
  background-color: rgba(240, 208, 48, 0.2);
  color: #B59A00;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Masterpiece */
.masterpiece { background-color: var(--bg-white); }
.masterpiece-layout { display: flex; flex-direction: column; gap: 40px; }
.score-big { font-size: 80px; color: var(--brand-green); font-weight: 900; line-height: 1; }
.score-text { font-size: 20px; font-weight: 600; margin-top: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.gallery-grid img { border-radius: var(--radius-md); object-fit: cover; aspect-ratio: 2/3; width: 100%; box-shadow: var(--shadow-soft); transition: transform 0.3s; }
.gallery-grid img:hover { transform: translateY(-5px); }

/* Trending */
.trending-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-card { flex: 0 0 260px; background: var(--bg-white); border-radius: var(--radius-md); padding: 15px; box-shadow: var(--shadow-soft); }
.trending-card img { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 15px; }
.progress-bar { height: 6px; background: #eee; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand-green); width: 80%; }

/* Anime */
.anime-zone { background: var(--bg-white); }
.anime-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.anime-grid img { border-radius: var(--radius-md); width: 100%; object-fit: cover; }

/* Thriller */
.thriller { background: #3a3a3a; color: #fff; }
.thriller .sec-desc { color: #aaa; }
.thriller-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.thriller-grid img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 2/3; object-fit: cover; }

/* Doc */
.doc-banner img { border-radius: var(--radius-lg); width: 100%; max-height: 500px; object-fit: cover; box-shadow: var(--shadow-soft); }

/* Variety */
.variety { background: var(--bg-white); }
.variety-flex { display: flex; flex-direction: column; gap: 20px; }
.variety-flex img { border-radius: var(--radius-md); width: 100%; }

/* Partition */
.partition { text-align: center; }
.tags-matrix { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.partition-tag {
  background: var(--bg-white);
  padding: 10px 24px;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.partition-tag:hover { background: var(--brand-green); color: #fff; }

/* Smart */
.smart-match { display: flex; flex-direction: column; gap: 30px; align-items: center; }
.smart-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.smart-text h2 { margin-bottom: 15px; }

/* Danmaku */
.danmaku { background: var(--bg-white); text-align: center; }
.danmaku-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.danmaku-box img { width: 100%; display: block; }

/* Rankings */
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.rank-item { display: flex; align-items: center; background: var(--bg-white); padding: 15px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.rank-num { font-size: 24px; font-weight: 900; background: linear-gradient(45deg, var(--brand-yellow), var(--brand-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; width: 50px; }
.rank-img { width: 50px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); margin-right: 20px; }
.rank-name { font-weight: 600; font-size: 18px; flex-grow: 1; }

/* Sanctuary */
.sanctuary { text-align: center; background: var(--bg-offwhite); }
.polaroid { background: #fff; padding: 20px 20px 60px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: inline-block; border-radius: 4px; }
.polaroid img { border-radius: 4px; }

/* Testimonials */
.testimonials { background: var(--bg-white); }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card { background: var(--bg-offwhite); padding: 20px; border-radius: var(--radius-md); }
.testi-card p { font-style: italic; color: var(--text-gray); margin-bottom: 15px; }
.testi-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.testi-avatar { width: 40px; height: 40px; background: var(--brand-yellow); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: bold; }

/* Download */
.download-sec { background: linear-gradient(135deg, rgba(240,208,48,0.1), rgba(142,195,48,0.15)); border-radius: var(--radius-lg); margin: 40px 20px; padding: 60px 20px; }
.dl-wrap { display: flex; flex-direction: column; gap: 40px; align-items: center; }
.dl-img img { border-radius: var(--radius-lg); max-width: 300px; }
.dl-text h2 { font-size: 32px; margin-bottom: 15px; }
.dl-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.dl-btn { background: var(--brand-green); color: #fff; text-align: center; padding: 14px; border-radius: 30px; font-weight: 600; font-size: 16px; transition: background 0.3s; }
.dl-btn:hover { background: #7cae23; }

/* FAQ */
.faq-sec { background: var(--bg-white); }
.faq-item { border-bottom: 1px solid #eee; padding: 20px 0; }
.faq-q { font-weight: 600; font-size: 18px; margin-bottom: 10px; cursor: pointer; }
.faq-a { color: var(--text-gray); font-size: 15px; }

/* Footer */
footer { background: #222; color: #888; padding: 40px 0; margin-top: 40px; position: relative; }
.footer-line { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand-yellow), var(--brand-green)); }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; font-size: 14px; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--brand-green); }
.footer-info { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-info a { color: #888; }
.slogan { font-size: 18px; font-weight: bold; color: var(--brand-yellow); margin-top: 10px; }

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero-content { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-img { flex: 1; }
  .masterpiece-layout { flex-direction: row; align-items: center; }
  .masterpiece-left { flex: 0 0 300px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .anime-grid { grid-template-columns: repeat(3, 1fr); }
  .thriller-grid { grid-template-columns: repeat(4, 1fr); }
  .variety-flex { flex-direction: row; }
  .variety-flex img { flex: 1; width: 50%; object-fit: cover; }
  .smart-match { flex-direction: row; }
  .smart-img { flex: 1; }
  .smart-text { flex: 1; padding-left: 40px; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-wrap { flex-direction: row; justify-content: center; }
  .dl-text { max-width: 400px; }
  .dl-buttons { flex-direction: row; }
  .dl-btn { flex: 1; padding: 14px 20px; }
}
@media (min-width: 1024px) {
  .hero-text h1 { font-size: 56px; }
  .hero-text p { font-size: 20px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .anime-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 80px 0; }
}