:root {
  --pink: #FF69B4;
  --deep-purple: #4A2C5E;
  --white: #FFFFFF;
  --yellow: #FFE600;
  --bg-dark: #1A0B2E;
  --text-light: #F5EBFB;
  --text-dim: #D1BBDD;
  --border-radius: 20px;
  --font-round: 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* 通用样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.text-pink { color: var(--pink); }
.text-yellow { color: var(--yellow); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: var(--white);
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--pink);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(255,105,180,0.4);
}
.btn:hover {
  background: var(--white);
  color: var(--pink);
  box-shadow: 0 0 25px var(--pink);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--pink);
}
.btn-outline:hover {
  background: var(--pink);
  color: var(--white);
}
.section-title {
  font-family: var(--font-round);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--pink);
  letter-spacing: 1px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-top: -30px;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 11, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--pink);
  z-index: 1000;
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
}
.brand span {
  font-family: var(--font-round);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  text-shadow: 0 0 10px var(--pink);
}
.main-nav {
  display: none;
}
.main-nav a {
  margin: 0 15px;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-light);
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--pink);
}
.header-btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* 首屏 Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at center, #2B1245 0%, var(--bg-dark) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--pink) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
.hero-text {
  text-align: center;
}
.hero-text h1 {
  font-family: var(--font-round);
  font-size: 3rem;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--pink), -2px -2px 0 var(--yellow);
  margin-bottom: 20px;
  animation: glitch 3s infinite;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.hero-actions .btn {
  min-width: 160px;
}
.hero-posters {
  display: flex;
  justify-content: center;
  gap: 15px;
  perspective: 1000px;
}
.poster-card {
  width: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 2px solid var(--pink);
  transition: transform 0.4s ease;
  transform: rotate(-5deg) translateY(0);
}
.poster-card:nth-child(2) {
  transform: rotate(0deg) translateY(-20px);
}
.poster-card:nth-child(3) {
  transform: rotate(5deg) translateY(10px);
}
.poster-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.poster-card:hover {
  transform: scale(1.05) rotate(0deg) translateY(-10px);
  z-index: 10;
}

/* 弹幕动画 */
.barrage-wrap {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.barrage-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  animation: scrollBarrage 20s linear infinite;
}
.barrage-track span {
  display: inline-block;
  background: rgba(255,105,180,0.2);
  border: 1px solid var(--pink);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  backdrop-filter: blur(4px);
}
@keyframes scrollBarrage {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes glitch {
  0% { transform: translate(0); }
  2% { transform: translate(-2px, 2px); }
  4% { transform: translate(2px, -2px); }
  6% { transform: translate(0); }
  100% { transform: translate(0); }
}

/* 魔改剧场 */
.theater-section {
  padding: 80px 0;
  background: var(--bg-dark);
  position: relative;
}
.theater-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,105,180,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.theater-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
.theater-card {
  background: #2B1245;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}
.theater-card:hover {
  transform: scale(1.02) rotate(1deg);
  border-color: var(--pink);
  box-shadow: 0 15px 30px rgba(255,105,180,0.3);
  z-index: 5;
}
.theater-card .cover {
  position: relative;
  overflow: hidden;
}
.theater-card .cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.theater-card:hover .cover img {
  transform: scale(1.1);
}
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 2;
}
.tag-group {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
}
.tag {
  background: var(--pink);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}
.theater-card .info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.theater-card .info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theater-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.play-btn {
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.theater-card:hover .play-btn {
  opacity: 1;
  box-shadow: 0 0 10px var(--pink);
}
.poster-hover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(74, 44, 94, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.theater-card:hover .poster-hover {
  opacity: 1;
}

/* 同人专区 */
.doujin-section {
  padding: 80px 0;
  background: #2B1245;
  position: relative;
}
.doujin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.doujin-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.doujin-gallery img {
  border-radius: 12px;
  border: 2px solid var(--pink);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doujin-gallery img:nth-child(1) { grid-row: span 2; }
.doujin-gallery img:nth-child(2) { grid-row: span 1; }
.doujin-gallery img:nth-child(3) { grid-row: span 1; }
.doujin-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doujin-content h2 {
  font-family: var(--font-round);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--pink);
}
.doujin-content p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 1.05rem;
}
.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cp-tags span {
  background: rgba(255,105,180,0.15);
  border: 2px solid var(--pink);
  padding: 8px 16px;
  border-radius: 30px;
  color: var(--pink);
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
}
.cp-tags span:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-3px);
}

/* 爆款榜单 */
.ranking-section {
  padding: 80px 0;
  background: var(--bg-dark);
}
.ranking-podium {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.rank-card {
  display: flex;
  align-items: center;
  background: #2B1245;
  border-radius: var(--border-radius);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  border: 2px solid var(--pink);
  position: relative;
  transition: transform 0.3s;
}
.rank-card:hover {
  transform: translateX(5px);
}
.rank-card img {
  width: 100px;
  height: 140px;
  object-fit: cover;
}
.rank-info {
  padding: 15px;
  flex-grow: 1;
}
.rank-info h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.rank-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
}
.rank-num {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}
.rank-card:nth-child(1) { border-color: var(--yellow); box-shadow: 0 0 20px rgba(255,230,0,0.4); }

/* APP下载 */
.app-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1A0B2E 0%, #2B1245 100%);
  position: relative;
  overflow: hidden;
}
.app-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,105,180,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.app-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.app-mockups {
  display: flex;
  gap: 15px;
}
.app-mockup {
  width: 120px;
  height: 240px;
  border-radius: 20px;
  border: 4px solid #333;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: #000;
  position: relative;
}
.app-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-mockup:nth-child(1) { transform: rotate(-8deg) translateY(20px); }
.app-mockup:nth-child(2) { transform: rotate(8deg) translateY(20px); }
.app-text {
  text-align: center;
}
.app-text h2 {
  font-family: var(--font-round);
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--white);
}
.app-text p {
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 400px;
}
.download-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-glow {
  box-shadow: 0 0 15px var(--pink);
  border: none;
}
.btn-glow:hover {
  box-shadow: 0 0 30px var(--pink), 0 0 50px var(--pink);
}

/* 每日神坑 */
.update-section {
  padding: 80px 0;
  background: #2B1245;
}
.update-table {
  width: 100%;
  border-collapse: collapse;
  background: #1A0B2E;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.update-table th, .update-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,105,180,0.2);
}
.update-table th {
  background: var(--pink);
  color: var(--white);
  font-weight: bold;
}
.update-table tr:hover td {
  background: rgba(255,105,180,0.1);
}
.update-table td:last-child {
  text-align: right;
  color: var(--yellow);
  font-weight: bold;
}

/* 哔友热评 */
.reviews-section {
  padding: 80px 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.review-track-wrap {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollReviews 30s linear infinite;
}
.review-track-wrap:hover {
  animation-play-state: paused;
}
.review-item {
  background: #2B1245;
  border: 2px solid var(--pink);
  padding: 15px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 250px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.review-text {
  font-size: 0.95rem;
  color: var(--text-light);
}
@keyframes scrollReviews {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* FAQ */
.faq-section {
  padding: 80px 0;
  background: #2B1245;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: #1A0B2E;
  border-radius: 12px;
  border-left: 4px solid var(--pink);
  overflow: hidden;
}
.faq-q {
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--white);
}
.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--pink);
  transition: transform 0.3s;
}
.faq-item.active .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dim);
}
.faq-item.active .faq-a {
  padding: 0 20px 20px;
  max-height: 200px;
}

/* 投稿 */
.join-section {
  padding: 80px 0;
  background: var(--bg-dark);
  text-align: center;
}
.join-section h2 {
  font-family: var(--font-round);
  font-size: 2.2rem;
  color: var(--yellow);
  margin-bottom: 20px;
}
.join-section p {
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.join-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}
.join-form input {
  padding: 15px;
  border-radius: 50px;
  border: 2px solid var(--pink);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1rem;
  outline: none;
}
.join-form input:focus {
  box-shadow: 0 0 15px rgba(255,105,180,0.5);
}

/* 页脚 */
.site-footer {
  background: var(--white);
  color: #333;
  padding: 40px 0 20px;
  border-top: 5px solid var(--pink);
  text-align: center;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
.footer-logo img {
  height: 28px;
}
.footer-logo span {
  font-family: var(--font-round);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--deep-purple);
}
.footer-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom {
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer-bottom a {
  color: #999;
  text-decoration: underline;
}

/* 响应式断点 */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  .hero-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-text {
    text-align: left;
    flex: 1;
  }
  .hero-text p {
    margin-left: 0;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-posters {
    flex: 1;
    justify-content: flex-end;
  }
  .poster-card {
    width: 180px;
  }
  .theater-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .doujin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ranking-podium {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
  }
  .rank-card {
    flex-direction: column;
    width: 200px;
    text-align: center;
  }
  .rank-card img {
    width: 100%;
    height: auto;
  }
  .rank-card:nth-child(1) { order: 2; width: 240px; }
  .rank-card:nth-child(2) { order: 1; }
  .rank-card:nth-child(3) { order: 3; }
  .app-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .app-text {
    text-align: left;
  }
  .app-text p {
    margin-left: 0;
  }
  .download-actions {
    justify-content: flex-start;
  }
  .app-mockup {
    width: 160px;
    height: 320px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 4rem;
  }
  .poster-card {
    width: 220px;
  }
  .theater-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .app-mockup {
    width: 200px;
    height: 400px;
  }
  .join-form {
    flex-direction: row;
  }
  .join-form input {
    flex: 1;
  }
  .join-form .btn {
    white-space: nowrap;
  }
}