:root {
  --red-dark: #8E1414;
  --red-light: #C01E1E;
  --gold: #FFD54A;
  --gold-dark: #D4A017;
  --black-22: rgba(0, 0, 0, 0.22);
  --max-width: 1150px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  background-attachment: fixed;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 213, 74, 0.05) 0deg 15deg, transparent 15deg 30deg);
  pointer-events: none;
  z-index: -1;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.3; }
.gold-text {
  color: var(--gold);
  text-shadow: 1px 1px 0 #4a0505, 2px 2px 0 #4a0505, 3px 3px 0 #4a0505, 0px 4px 10px rgba(0,0,0,0.6);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.section-title::before {
  content: "福";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--red-dark);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  margin-right: 12px;
  text-shadow: none;
}

/* Layout */
section { scroll-margin-top: 80px; padding: 4rem 1.5rem; }
.container { max-width: var(--max-width); margin: 0 auto; }
.panel {
  background: var(--black-22);
  border: 2px solid var(--gold-dark);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(192, 30, 30, 0.95);
  border-bottom: 2px solid var(--gold-dark);
  z-index: 1000;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 36px; width: auto; border-radius: 4px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text span:first-child { font-size: 1.2rem; font-weight: bold; color: var(--gold); }
.logo-text span:last-child { font-size: 0.6rem; color: var(--gold-dark); letter-spacing: 1px; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.btn-download {
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--red-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  border-bottom: 3px solid #8c6d00;
  transition: transform 0.1s;
}
.btn-download:active { transform: translateY(2px); border-bottom-width: 1px; }

/* Side Nav */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}
.side-nav a {
  width: 12px; height: 12px;
  background: #555;
  border-radius: 50%;
  position: relative;
  transition: background 0.3s, box-shadow 0.3s;
}
.side-nav a:hover, .side-nav a.active {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.side-nav a::after {
  content: attr(data-name);
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--gold);
  color: var(--red-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  font-weight: bold;
}
.side-nav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Home */
#home { padding-top: 120px; min-height: 100vh; display: flex; align-items: center; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.home-content .tag {
  display: inline-block;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--red-dark);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.home-content h1 { font-size: 3.5rem; margin-bottom: 1rem; letter-spacing: 2px; }
.home-content .subtitle { font-size: 1.2rem; color: #ffeba1; margin-bottom: 1.5rem; letter-spacing: 1px; }
.home-content .desc { font-size: 1.1rem; margin-bottom: 2rem; color: #f0f0f0; }
.home-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.btn-main {
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--red-dark);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 4px solid #8c6d00;
  display: inline-block;
  transition: transform 0.1s;
}
.btn-main:active { transform: translateY(3px); border-bottom-width: 1px; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--red-dark); }
.home-note { font-size: 0.9rem; color: #ffeba1; opacity: 0.8; }
.home-poster { border: 3px solid var(--gold); border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.home-poster img { width: 100%; display: block; }
.poster-caption {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: rgba(0,0,0,0.7);
  color: var(--gold);
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { position: relative; }
.feature-card .corner-badge {
  position: absolute;
  top: -12px; left: -12px;
  background: var(--gold);
  color: var(--red-dark);
  padding: 4px 12px;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  z-index: 10;
}
.feature-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 0.8rem; }
.feature-card p { font-size: 1rem; color: #eee; }

/* Promise Banner */
.promise-banner {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(255,213,74,0.15) 0%, rgba(255,213,74,0.05) 100%);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 2rem;
}
.promise-text { flex: 1; }
.promise-text h3 { color: var(--gold); font-size: 1.5rem; margin-bottom: 0.5rem; }
.promise-text p { color: #f0f0f0; font-size: 1rem; line-height: 1.8; }
.promise-img { width: 200px; margin-left: 2rem; border: 2px solid var(--gold); border-radius: 8px; }

/* Library */
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.library-card { position: relative; padding: 0 !important; overflow: hidden; }
.library-card .corner-badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--gold);
  color: var(--red-dark);
  padding: 4px 10px;
  font-weight: bold;
  border-bottom-right-radius: 8px;
  z-index: 10;
  font-size: 0.9rem;
}
.poster-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.card-info { padding: 1rem; background: rgba(0,0,0,0.4); }
.card-info h3 { font-size: 1.1rem; color: var(--gold); margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-info .tag-text { font-size: 0.8rem; color: #ccc; margin-bottom: 0.3rem; }
.card-info .hot-text { font-size: 0.9rem; color: #ff6b6b; font-weight: bold; }

/* Scenes */
.scenes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.scene-card { padding: 0 !important; overflow: hidden; }
.scene-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.scene-caption { padding: 1rem; font-weight: bold; color: var(--gold); text-align: center; background: rgba(0,0,0,0.5); }

/* UI */
.ui-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ui-card { display: flex; align-items: center; padding: 0 !important; overflow: hidden; }
.ui-card img { width: 60%; object-fit: cover; }
.ui-info { padding: 1.5rem; width: 40%; }
.ui-info h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 0.5rem; }
.ui-info p { font-size: 0.95rem; color: #ddd; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.review-card .stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.review-card p { font-size: 1rem; font-style: italic; margin-bottom: 1rem; color: #eee; }
.review-author { display: flex; align-items: center; gap: 10px; color: #ffeba1; font-size: 0.9rem; }
.review-author span { font-weight: bold; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }
.faq-item { cursor: pointer; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 1.1rem; padding: 0.5rem 0; }
.faq-q span { color: var(--gold); transition: transform 0.3s; }
.faq-item.active .faq-q span { transform: rotate(180deg); }
.faq-a { display: none; padding-top: 1rem; border-top: 1px solid rgba(255,213,74,0.3); margin-top: 1rem; color: #ddd; }
.faq-item.active .faq-a { display: block; }
.faq-img-wrap { margin-top: 1rem; max-width: 420px; border: 1px solid var(--gold); }
.faq-img-wrap p { font-size: 0.8rem; color: #aaa; text-align: center; margin-top: 0.5rem; }

/* Download */
.download-panel {
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  background: var(--black-22);
  box-shadow: inset 0 0 20px rgba(255,213,74,0.1);
}
.download-panel::before {
  content: "揭榜";
  position: absolute;
  top: -20px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  color: var(--red-dark);
  padding: 4px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.download-panel h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.download-panel p { font-size: 1.1rem; color: #eee; margin-bottom: 2rem; }

/* Footer */
footer {
  border-top: 2px solid var(--gold-dark);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
footer p { margin-bottom: 0.5rem; }
footer a { color: rgba(255,255,255,0.7); text-decoration: underline; }
footer a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
  .home-content h1 { font-size: 3rem; }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; text-align: center; }
  .home-btns { justify-content: center; }
  .side-nav { display: none; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid { grid-template-columns: 1fr; }
  .ui-grid { grid-template-columns: 1fr; }
  .ui-card { flex-direction: column; }
  .ui-card img { width: 100%; }
  .ui-info { width: 100%; }
  .reviews-grid { grid-template-columns: 1fr; }
  .promise-banner { flex-direction: column; text-align: center; }
  .promise-img { width: 80%; margin: 1.5rem 0 0 0; }
  .home-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.6rem; }
  .download-panel { padding: 3rem 1rem; }
  .download-panel h2 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}