:root {
  --bg: #fff8f6;
  --red: #ff3b42;
  --green: #3fa62e;
  --pink-light: #ffe8e0;
  --panel: #ffffff;
  --panel2: #fff4ef;
  --text: #2a1214;
  --text-sub: #8a6b6b;
  --text-light: #b39a9a;
  --line: rgba(255, 59, 66, .22);
  --mono: 'Courier New', Courier, monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--pink-light);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 248, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  background: transparent;
}
.logo-text {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}
.logo-text span {
  color: var(--red);
}
.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-sub);
}
.nav-links a:hover {
  color: var(--red);
}
.btn-download {
  background-color: var(--red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s;
}
.btn-download:hover {
  opacity: 0.9;
}

/* Hero */
.hero {
  padding: 60px 0;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,59,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: var(--panel);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,59,66,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,59,66,0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,59,66,0); }
}
.hero h1 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--red);
}
.hero p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 30px;
}
.action-row {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
}
.btn-secondary {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--red);
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 16px;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--panel2);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Lab Side */
.lab-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(255, 59, 66, 0.05);
}
.lab-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 15px;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.compare-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.compare-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}
.compare-card.modified .compare-label {
  background: var(--red);
}
.progress-area {
  font-family: var(--mono);
  font-size: 12px;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.progress-bar-bg {
  height: 6px;
  background: var(--panel2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--green), var(--red));
  border-radius: 3px;
  animation: progressAnim 3s ease-in-out infinite alternate;
}
@keyframes progressAnim {
  0% { width: 25%; }
  100% { width: 98%; }
}

/* Sections Common */
section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.section-title h2 span {
  color: var(--red);
}
.section-title p {
  color: var(--text-sub);
  font-size: 14px;
}

/* Genre */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.genre-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.genre-img {
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--pink-light);
}
.genre-title {
  font-size: 14px;
  font-weight: bold;
}
.genre-sc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Steps */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.step-num {
  font-family: var(--mono);
  color: var(--red);
  font-size: 14px;
  margin-bottom: 15px;
}
.step-img {
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
  background: var(--pink-light);
}
.step-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-sub);
}

/* Ranking */
.ranking-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.rank-row {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.rank-row:last-child {
  border-bottom: none;
}
.rank-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: bold;
  width: 50px;
  color: var(--text-light);
}
.rank-num.top3 {
  color: var(--red);
}
.rank-poster {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 20px;
  background: var(--pink-light);
}
.rank-title {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
}
.rank-heat-bar {
  width: 150px;
  height: 8px;
  background: var(--panel2);
  border-radius: 4px;
  overflow: hidden;
  margin-right: 20px;
}
.rank-heat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--red));
}
.rank-heat-val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-sub);
  width: 60px;
  text-align: right;
}

/* Library */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
}
.filter-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.lib-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--pink-light);
}
.lib-sc {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(255, 59, 66, 0.9);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 2;
}

/* Wishlist */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.wish-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.wish-img {
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--pink-light);
}
.wish-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}
.wish-progress-text {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}
.wish-bar-bg {
  height: 4px;
  background: var(--panel2);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}
.wish-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s;
}
.btn-wish {
  width: 100%;
  padding: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--red);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-wish.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Mobile Experience */
.mobile-sec {
  overflow: hidden;
}
.carousel-wrap {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 24px;
  border: 8px solid #333;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.carousel-inner {
  display: flex;
  transition: transform 0.3s ease;
}
.carousel-inner img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 9/19.5;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Reviews */
.review-header {
  text-align: center;
  margin-bottom: 30px;
}
.review-score {
  font-size: 48px;
  font-weight: bold;
  color: var(--red);
  line-height: 1;
}
.review-stars {
  color: var(--red);
  font-size: 20px;
  margin-top: 5px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-weight: bold;
}
.review-name {
  font-size: 14px;
  font-weight: bold;
}
.review-content {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 15px;
}
.review-like {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
}

/* Download CTA */
.download-cta {
  background: var(--panel);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--green));
}
.download-cta h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.download-cta p {
  color: var(--text-sub);
  margin-bottom: 25px;
}

/* Footer */
.site-footer {
  background: var(--panel2);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-light);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-inner a {
  color: var(--text-light);
}
.footer-about {
  margin-top: 15px;
  text-align: center;
  max-width: 100%;
  font-size: 12px;
  color: var(--text-light);
}
.footer-about summary {
  cursor: pointer;
  outline: none;
  user-select: none;
}
.footer-about summary::-webkit-details-marker {
  display: none;
}
.footer-about-content {
  margin-top: 10px;
  line-height: 2;
}
.footer-about-content a {
  margin: 0 6px;
  color: var(--text-light);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }
  .genre-grid, .library-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 32px;
  }
  .genre-grid, .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-wrap {
    grid-template-columns: 1fr;
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .rank-heat-bar {
    display: none;
  }
}