:root {
  --pink: #FF69B4;
  --white: #FFFFFF;
  --dark-purple: #4A2C5E;
  --yellow: #FFE600;
  --font-title: 'Arial Rounded MT Bold', 'Helvetica Rounded', sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background-color: var(--dark-purple);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 900; }

/* 全局背景网点纸特效 */
.bg-halftone {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: radial-gradient(var(--pink) 15%, transparent 16%);
  background-size: 20px 20px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  animation: pulse-bg 4s infinite alternate;
}
@keyframes pulse-bg { 0% { opacity: 0.1; } 100% { opacity: 0.25; } }

/* 顶部导航 */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(74, 44, 94, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { height: 32px; filter: drop-shadow(0 0 8px var(--pink)); }
.logo-text { font-family: var(--font-title); font-size: 1.2rem; color: var(--pink); text-shadow: 1px 1px 0 #000; }
nav { display: none; }
.nav-links a { margin: 0 15px; font-weight: bold; font-size: 1rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--pink); }
.btn-nav {
  background: var(--white); color: var(--pink);
  padding: 8px 20px; border-radius: 20px; font-weight: bold; border: 2px solid var(--pink);
  transition: all 0.3s;
}
.btn-nav:hover { box-shadow: 0 0 15px var(--pink); transform: scale(1.05); }

/* 首屏 Hero */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 100px 5% 50px; position: relative; text-align: center;
}
.hero-bg-lines {
  position: absolute; top: 50%; left: 50%; width: 200vw; height: 200vh;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 5deg, rgba(255, 105, 180, 0.1) 5deg 10deg);
  animation: rotate 60s linear infinite;
}
@keyframes rotate { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white);
  -webkit-text-stroke: 2px var(--pink);
  text-shadow: 3px 3px 0 var(--dark-purple), 0 0 20px var(--pink);
  margin-bottom: 20px;
  animation: glitch 3s infinite;
}
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  2% { transform: translate(2px, 1px); }
  4% { transform: translate(-2px, -1px); }
  6% { transform: translate(0); }
}
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #f0e6f5; text-shadow: 1px 1px 2px #000; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 15px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 30px;
  border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--pink); color: var(--white); box-shadow: 0 0 20px var(--pink); }
.btn-primary:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--pink); }
.btn-secondary { background: transparent; color: var(--pink); border: 2px solid var(--pink); }
.btn-secondary:hover { background: var(--pink); color: var(--white); transform: translateY(-5px); }
.hero-posters {
  display: flex; gap: 15px; margin-top: 50px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2;
}
.hero-posters img {
  width: 120px; border-radius: 10px; border: 2px solid var(--pink);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5); transition: transform 0.3s;
}
.hero-posters img:hover { transform: translateY(-10px) scale(1.05) rotate(0deg) !important; }

/* 弹幕 */
.danmaku-bar {
  position: absolute; bottom: 20px; width: 100%; overflow: hidden; white-space: nowrap; opacity: 0.8; z-index: 1;
}
.danmaku-bar span {
  display: inline-block; background: rgba(255, 105, 180, 0.3); border: 1px solid var(--pink);
  padding: 5px 15px; border-radius: 15px; margin-right: 20px; font-size: 0.9rem;
  animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* 魔改剧场 */
.section-title { text-align: center; font-size: 2.5rem; color: var(--yellow); margin-bottom: 10px; text-shadow: 2px 2px 0 var(--pink); }
.section-desc { text-align: center; margin-bottom: 40px; color: #dcdcdc; }
.theater-section { padding: 80px 5%; background: var(--white); color: var(--dark-purple); }
.theater-section .section-desc { color: #666; }
.theater-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.drama-card {
  background: #f9f9f9; border-radius: 15px; overflow: hidden; position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.drama-card:hover { transform: translateY(-10px) rotate(2deg); box-shadow: 0 15px 30px rgba(255, 105, 180, 0.4); }
.drama-card img { width: 100%; height: 350px; object-fit: cover; transition: filter 0.3s; }
.drama-card:hover img { filter: brightness(0.7); }
.card-badge {
  position: absolute; top: 10px; right: 10px; background: var(--pink); color: var(--white);
  padding: 2px 8px; border-radius: 5px; font-size: 0.8rem; font-weight: bold;
}
.card-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.card-info h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--dark-purple); }
.card-tags { display: flex; gap: 5px; margin-bottom: 10px; }
.tag { background: #ffe6f2; color: var(--pink); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }
.play-btn {
  margin-top: auto; text-align: center; background: var(--dark-purple); color: var(--white);
  padding: 8px; border-radius: 8px; font-weight: bold; opacity: 0; transform: translateY(10px); transition: all 0.3s;
}
.drama-card:hover .play-btn { opacity: 1; transform: translateY(0); }

/* 同人专区 */
.doujin-section { padding: 80px 5%; background: #2d1b3d; position: relative; }
.doujin-layout { display: flex; flex-direction: column; gap: 30px; }
.doujin-images { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.doujin-images img { width: 100%; border-radius: 10px; border: 2px solid var(--pink); }
.doujin-text h2 { color: var(--pink); font-size: 2rem; margin-bottom: 20px; }
.doujin-text p { font-size: 1.1rem; margin-bottom: 20px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.trend-tag {
  background: rgba(255, 105, 180, 0.2); border: 1px solid var(--pink);
  padding: 5px 15px; border-radius: 20px; cursor: pointer; transition: all 0.2s;
  animation: float 3s ease-in-out infinite alternate;
}
.trend-tag:hover { background: var(--pink); color: var(--white); transform: scale(1.1); }
@keyframes float { 0% { transform: translateY(0); } 100% { transform: translateY(-5px); } }

/* 爆款榜单 */
.ranking-section { padding: 80px 5%; background: var(--dark-purple); }
.ranking-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.rank-item {
  display: flex; align-items: center; background: rgba(255, 255, 255, 0.05);
  border-radius: 15px; padding: 15px; border: 1px solid rgba(255, 105, 180, 0.3);
}
.rank-item.top-1 { border-color: var(--yellow); box-shadow: 0 0 20px rgba(255, 230, 0, 0.3); background: rgba(255, 230, 0, 0.05); }
.rank-num { font-size: 2rem; font-family: var(--font-title); width: 50px; text-align: center; color: var(--pink); }
.rank-item.top-1 .rank-num { color: var(--yellow); }
.rank-cover { width: 80px; height: 110px; border-radius: 8px; object-fit: cover; margin-right: 15px; }
.rank-info h3 { font-size: 1.2rem; margin-bottom: 5px; }

/* APP下载 */
.app-section { padding: 80px 5%; background: linear-gradient(135deg, #1a0b2e 0%, var(--dark-purple) 100%); text-align: center; position: relative; }
.app-content { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.app-mockups { position: relative; width: 100%; max-width: 300px; height: 400px; }
.app-mockups img { position: absolute; width: 200px; border-radius: 20px; border: 4px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.app-mockups img:nth-child(1) { top: 0; left: 10px; transform: rotate(-5deg); z-index: 2; }
.app-mockups img:nth-child(2) { top: 40px; right: 10px; transform: rotate(5deg); z-index: 1; }
.app-info h2 { color: var(--yellow); font-size: 2.5rem; margin-bottom: 20px; text-shadow: 2px 2px 0 var(--pink); }
.app-info p { font-size: 1.2rem; margin-bottom: 30px; }
.download-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* 每日神坑 */
.update-section { padding: 60px 5%; background: var(--white); color: var(--dark-purple); }
.update-list { max-width: 800px; margin: 0 auto; }
.update-row {
  display: flex; justify-content: space-between; padding: 15px 20px; border-bottom: 1px dashed #ccc;
  transition: background 0.3s;
}
.update-row:hover { background: rgba(255, 105, 180, 0.1); }
.day-label { font-weight: bold; color: var(--pink); }

/* 哔友热评 */
.reviews-section { padding: 60px 0; background: var(--dark-purple); overflow: hidden; }
.reviews-track { display: flex; gap: 20px; padding: 20px; width: max-content; animation: scroll-reviews 30s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll-reviews { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card {
  background: rgba(255, 255, 255, 0.1); padding: 15px 20px; border-radius: 20px;
  display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 105, 180, 0.5);
}
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* FAQ */
.faq-section { padding: 80px 5%; background: #fff; color: var(--dark-purple); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border: 2px solid #eee; border-radius: 10px; overflow: hidden; }
.faq-q {
  padding: 15px 20px; font-weight: bold; cursor: pointer; background: #f9f9f9;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--pink); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; background: #fff; }
.faq-item.active .faq-a { padding: 15px 20px; max-height: 200px; border-left: 4px solid var(--pink); }
.faq-item.active .faq-q { background: var(--pink); color: #fff; }
.faq-item.active .faq-q::after { content: '-'; color: #fff; }

/* 投稿 */
.join-section { padding: 80px 5%; background: var(--dark-purple); text-align: center; }
.join-box { max-width: 600px; margin: 0 auto; background: rgba(255,255,255,0.05); padding: 40px; border-radius: 20px; border: 2px dashed var(--pink); }
.join-box h2 { color: var(--pink); margin-bottom: 15px; }
.join-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.join-form input {
  padding: 15px; border-radius: 10px; border: 1px solid #555; background: #222; color: #fff; outline: none;
}
.join-form input:focus { border-color: var(--pink); box-shadow: 0 0 10px rgba(255, 105, 180, 0.5); }
.join-form button {
  padding: 15px; border-radius: 10px; border: none; background: var(--pink); color: #fff; font-weight: bold; font-size: 1.1rem; cursor: pointer;
}

/* 页脚 */
footer {
  background: var(--white); color: #666; padding: 40px 5% 20px; border-top: 5px solid var(--pink); text-align: center; font-size: 0.9rem;
}
footer .footer-logo { height: 30px; margin-bottom: 15px; }
footer p { margin-bottom: 10px; }
footer a { color: #666; }
footer a:hover { color: var(--pink); }
.footer-links { margin-top: 10px; font-size: 0.8rem; color: #999; }

/* 响应式 */
@media (min-width: 768px) {
  nav { display: block; }
  .hero-posters img { width: 180px; }
  .doujin-layout { flex-direction: row; align-items: center; }
  .doujin-images, .doujin-text { flex: 1; }
  .app-content { flex-direction: row; justify-content: center; text-align: left; }
  .app-info { max-width: 400px; }
  .ranking-grid { flex-direction: row; justify-content: center; }
  .rank-item { flex-direction: column; width: 250px; text-align: center; padding: 30px 20px; }
  .rank-cover { width: 120px; height: 160px; margin-bottom: 15px; }
}
@media (min-width: 1024px) {
  .hero-posters img { width: 220px; }
  .theater-grid { grid-template-columns: repeat(3, 1fr); }
}