:root {
  --bg-dark: #20140c;
  --bg-card: #2e1c11;
  --color-gold: #ffb13c;
  --color-orange: #ff8a3d;
  --color-light-gold: #ffd07a;
  --color-warm-brown: #a8692e;
  --color-text: #fbf1e2;
  --duo-gradient: linear-gradient(135deg, #ffb13c 0%, #ff8a3d 100%);
  --font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 吸顶导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(32, 20, 12, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 177, 60, 0.2);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-light-gold);
}

.brand img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.nav-links {
  display: none;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: var(--color-text);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.btn-download-top {
  display: none;
  background: var(--duo-gradient);
  color: #20140c;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.hamburger {
  display: block;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 24px;
  cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg-card);
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 177, 60, 0.2);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 177, 60, 0.1);
  color: var(--color-text);
}

/* 首屏 */
.hero {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 177, 60, 0.1);
  border: 1px solid var(--color-warm-brown);
  color: var(--color-gold);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--duo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 16px;
  color: #d1c0ab;
  margin-bottom: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 177, 60, 0.3);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--duo-gradient);
  color: #20140c;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  text-align: center;
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  text-align: center;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  color: #d1c0ab;
}

.hero-stats div {
  text-align: center;
}

.hero-stats span {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: var(--color-gold);
}

.hero-visual {
  position: relative;
  width: 260px;
  height: 390px;
  margin-top: 40px;
  z-index: 1;
}

.sun-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 177, 60, 0.4) 20deg, transparent 40deg, transparent 80deg, rgba(255, 177, 60, 0.4) 100deg, transparent 120deg, transparent 160deg, rgba(255, 177, 60, 0.4) 180deg, transparent 200deg, transparent 240deg, rgba(255, 177, 60, 0.4) 260deg, transparent 280deg, transparent 320deg, rgba(255, 177, 60, 0.4) 340deg, transparent 360deg);
  border-radius: 50%;
  filter: blur(8px);
  animation: spin 20s linear infinite;
  z-index: -1;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-poster {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--duo-gradient) border-box;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 通用版块 */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--color-light-gold);
}

.section-desc {
  text-align: center;
  font-size: 14px;
  color: #a39a8f;
  margin-bottom: 40px;
}

/* 题材卡 */
.genre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.genre-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.genre-card:hover {
  transform: translateY(-5px);
}

.genre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.genre-card:nth-child(1)::before { background: var(--color-gold); }
.genre-card:nth-child(2)::before { background: var(--color-orange); }
.genre-card:nth-child(3)::before { background: var(--color-light-gold); }
.genre-card:nth-child(4)::before { background: var(--color-warm-brown); }

.genre-icon {
  font-size: 40px;
  font-weight: bold;
  background: var(--duo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.genre-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.genre-card p {
  font-size: 14px;
  color: #a39a8f;
}

/* 追剧方式 */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  border-left: 4px solid var(--color-gold);
}

.step-card:nth-child(2) { border-left-color: var(--color-orange); margin-left: 0; }
.step-card:nth-child(3) { border-left-color: var(--color-light-gold); margin-left: 0; }

.step-num {
  font-size: 32px;
  font-style: italic;
  font-weight: bold;
  color: var(--color-gold);
  opacity: 0.5;
}

.step-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.step-info p {
  font-size: 14px;
  color: #a39a8f;
}

/* 热播榜 */
.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 20px;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.hot-card {
  flex: 0 0 160px;
  position: relative;
}

.hot-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--duo-gradient);
  color: #20140c;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 0 0 10px 0;
  z-index: 2;
}

.hot-card:nth-child(n+4) .hot-rank {
  background: var(--bg-card);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.hot-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hot-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-tag {
  font-size: 12px;
  color: #a39a8f;
  display: inline-block;
  margin-right: 5px;
}

.hot-score {
  font-size: 12px;
  color: var(--color-gold);
  float: right;
}

/* 片库 */
.filter-bar {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 177, 60, 0.3);
  background-color: var(--bg-card);
  color: var(--color-text);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--color-gold);
}

.tag-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
}
.tag-list::-webkit-scrollbar { display: none; }

.tag-btn {
  padding: 6px 16px;
  border-radius: 20px;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.tag-btn.active {
  background: var(--duo-gradient);
  color: #20140c;
  border-color: transparent;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.library-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lib-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
}

.lib-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lib-title {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-meta {
  font-size: 12px;
  color: #a39a8f;
}

/* 心愿榜 */
.wishlist {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--bg-card);
  padding: 15px;
  border-radius: 12px;
}

.wish-cover {
  width: 60px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.wish-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wish-title {
  font-size: 16px;
  font-weight: bold;
}

.wish-tag {
  font-size: 12px;
  color: #a39a8f;
}

.wish-progress-wrap {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.wish-progress {
  height: 100%;
  background: var(--duo-gradient);
  width: 0%;
  transition: width 0.3s;
}

.wish-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-gold);
}

.wish-btn {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.wish-btn.wished {
  background: var(--duo-gradient);
  color: #20140c;
  border-color: transparent;
}

/* 竖屏体验 */
.experience-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.phone-mockup {
  width: 240px;
  height: 480px;
  background-color: #000;
  border-radius: 30px;
  margin: 0 auto;
  position: relative;
  border: 4px solid var(--color-warm-brown);
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.phone-frame.active {
  opacity: 1;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swipe-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.dot.active {
  background-color: var(--color-gold);
}

.exp-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.exp-item {
  background-color: var(--bg-card);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--color-gold);
}

.exp-item h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.exp-item p {
  font-size: 14px;
  color: #a39a8f;
}

/* 用户评价 */
.review-header {
  text-align: center;
  margin-bottom: 30px;
}

.score-board {
  display: inline-block;
  background-color: var(--bg-card);
  padding: 15px 40px;
  border-radius: 12px;
  border: 1px solid var(--color-gold);
}

.score-board span {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-gold);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.review-card {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border-top: 3px solid var(--color-gold);
}

.review-card:nth-child(even) {
  border-top-color: var(--color-orange);
}

.review-card p {
  font-size: 14px;
  color: #d1c0ab;
  margin-bottom: 10px;
}

.review-user {
  font-size: 12px;
  color: #a39a8f;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.faq-card {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
}

.faq-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.faq-card p {
  font-size: 14px;
  color: #a39a8f;
}

/* 下载区 */
.download-section {
  padding: 60px 20px;
}

.download-box {
  background: var(--duo-gradient);
  border-radius: 24px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #20140c;
}

.download-box::before,
.download-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.download-box::before {
  width: 100px;
  height: 100px;
  top: -30px;
  left: -30px;
}

.download-box::after {
  width: 150px;
  height: 150px;
  bottom: -50px;
  right: -50px;
}

.download-box h2 {
  font-size: 28px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.download-box p {
  font-size: 16px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.btn-dark {
  background-color: #20140c;
  color: var(--color-gold);
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 18px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* 页脚 */
footer {
  padding: 40px 20px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 177, 60, 0.1);
  font-size: 12px;
  color: #6b5f54;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #a39a8f;
}

.footer-links a:hover {
  color: var(--color-gold);
}

footer a {
  color: #8a7f74;
}

/* 媒体查询 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .btn-download-top { display: inline-block; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  
  .hero { flex-direction: row; text-align: left; justify-content: space-between; padding: 80px 0; }
  .hero-content { max-width: 50%; }
  .hero-tags { justify-content: flex-start; }
  .hero-cta { flex-direction: row; }
  .hero-visual { margin-top: 0; width: 300px; height: 450px; }
  
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  
  .experience-wrap { flex-direction: row; align-items: center; }
  .phone-mockup { width: 280px; height: 560px; margin: 0; flex-shrink: 0; }
  .exp-features { flex: 1; }
  
  .step-card:nth-child(2) { margin-left: 40px; }
  .step-card:nth-child(3) { margin-left: 80px; }
}

@media (min-width: 1024px) {
  .genre-grid { grid-template-columns: repeat(4, 1fr); }
  .library-grid { grid-template-columns: repeat(5, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { width: 340px; height: 510px; }
}

/* 滚动淡入 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}