:root {
  --pink: #FF69B4;
  --white: #FFFFFF;
  --purple: #4A2C5E;
  --yellow: #FFE600;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--purple);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 全局背景纹理 */
.bg-halftone {
  background-image: radial-gradient(var(--pink) 15%, transparent 0);
  background-size: 20px 20px;
  opacity: 0.1;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 导航 */
header {
  position: fixed;
  top: 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 20px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-container img { height: 32px; filter: drop-shadow(0 0 5px var(--pink)); }
.logo-text { font-size: 20px; font-weight: bold; color: var(--pink); text-shadow: 1px 1px 2px #000; }
.nav-links { display: none; }
.nav-links a { margin: 0 10px; font-weight: bold; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: var(--pink); }
.nav-btn {
  background: var(--white);
  color: var(--pink);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 0 10px var(--pink);
  transition: box-shadow 0.3s;
}
.nav-btn:hover { box-shadow: 0 0 20px var(--pink); }

/* 首屏 */
section { padding: 60px 20px; position: relative; }
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-concentric {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200vw; height: 200vw;
  background: repeating-radial-gradient(circle, transparent, transparent 50px, rgba(255, 105, 180, 0.1) 50px, rgba(255, 105, 180, 0.1) 52px);
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: 3rem;
  color: var(--pink);
  -webkit-text-stroke: 2px var(--white);
  text-shadow: 4px 4px 0 #000, 0 0 20px var(--pink);
  margin-bottom: 20px;
  animation: glitch 3s infinite;
}
@keyframes glitch {
  0%, 100% { transform: translate(0); }
  5% { transform: translate(-2px, 2px); }
  10% { transform: translate(2px, -2px); }
  15% { transform: translate(0); }
}
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--pink); color: var(--white); box-shadow: 0 5px 15px rgba(255, 105, 180, 0.5); }
.btn-secondary { background: var(--white); color: var(--purple); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 105, 180, 0.8); }

.hero-images {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1000px;
}
.hero-img-card {
  width: 200px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--pink);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.hero-img-card:nth-child(1) { transform: rotateY(15deg) rotateZ(-5deg); }
.hero-img-card:nth-child(2) { transform: rotateY(-15deg) rotateZ(5deg); }
.hero-img-card:hover { transform: scale(1.05) rotateY(0) rotateZ(0); z-index: 10; }

/* 魔改剧场 */
.theater { background: var(--white); color: var(--purple); }
.theater h2 { text-align: center; font-size: 2.5rem; margin-bottom: 10px; color: var(--pink); }
.theater-subtitle { text-align: center; margin-bottom: 40px; color: var(--purple); }
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.drama-card {
  background: var(--purple);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
}
.drama-card:hover { transform: translateY(-5px) rotate(2deg); }
.drama-card img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.drama-info { padding: 10px; color: var(--white); text-align: center; }
.drama-info h3 { font-size: 1rem; margin-bottom: 5px; }
.tag {
  background: var(--yellow); color: var(--purple); font-size: 0.8rem;
  padding: 2px 8px; border-radius: 10px; font-weight: bold;
}
.hover-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 105, 180, 0.6);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.3s; color: var(--white); font-weight: bold;
}
.drama-card:hover .hover-overlay { opacity: 1; }

/* 同人专区 */
.doujin { background: var(--purple); }
.doujin-content { display: flex; flex-direction: column; gap: 40px; }
.doujin-text h2 { font-size: 2.5rem; color: var(--pink); margin-bottom: 20px; }
.doujin-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-bubble {
  background: var(--pink); color: var(--white); padding: 8px 15px;
  border-radius: 20px; font-weight: bold; border: 2px solid var(--white);
  animation: float 3s infinite ease-in-out;
}
.tag-bubble:nth-child(even) { animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.doujin-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doujin-gallery img { border-radius: 10px; border: 2px solid var(--pink); }
.doujin-gallery img:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; object-fit: cover; }

/* 爆款榜单 */
.ranking { background: var(--white); color: var(--purple); }
.ranking h2 { text-align: center; font-size: 2.5rem; color: var(--pink); margin-bottom: 40px; }
.rank-list { display: flex; flex-direction: column; gap: 20px; }
.rank-item {
  display: flex; align-items: center; gap: 15px;
  background: #f0f0f0; padding: 10px; border-radius: 15px;
}
.rank-item img { width: 80px; height: 100px; object-fit: cover; border-radius: 10px; }
.rank-num { font-size: 2rem; font-weight: bold; color: var(--pink); width: 40px; text-align: center; }
.rank-info h3 { margin-bottom: 5px; }
.rank-1 { border: 3px solid var(--pink); background: #fff0f5; box-shadow: 0 0 15px var(--pink); }

/* APP下载 */
.app-download { background: #2b1839; overflow: hidden; text-align: center; }
.app-mockups { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.app-mockups img {
  width: 140px; border-radius: 20px; border: 3px solid var(--pink);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.download-info h2 { font-size: 2rem; margin-bottom: 20px; color: var(--pink); }
.download-info p { margin-bottom: 30px; font-size: 1.1rem; }
.download-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.download-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--pink); color: var(--white);
  padding: 15px 40px; border-radius: 30px;
  font-size: 1.2rem; font-weight: bold;
  box-shadow: 0 0 15px var(--pink);
  transition: transform 0.2s;
  width: 100%; max-width: 300px; justify-content: center;
}
.download-btn:hover { transform: scale(1.05); }
.download-btn .icon { font-size: 1.5rem; }

/* 每日神坑 */
.update-schedule { background: var(--white); color: var(--purple); }
.update-schedule h2 { text-align: center; font-size: 2.5rem; color: var(--pink); margin-bottom: 10px; }
.update-schedule > p { text-align: center; margin-bottom: 30px; }
.schedule-list { display: flex; flex-direction: column; gap: 15px; }
.schedule-row {
  background: #f9f9f9; padding: 15px 20px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  border-left: 5px solid var(--purple); transition: all 0.3s;
}
.schedule-row:hover { background: rgba(255, 105, 180, 0.1); border-left-color: var(--pink); }
.schedule-day { font-weight: bold; font-size: 1.1rem; }
.schedule-theme { color: var(--pink); font-weight: bold; }

/* 哔友热评 */
.reviews { background: var(--purple); overflow: hidden; padding-bottom: 80px; }
.reviews h2 { text-align: center; font-size: 2.5rem; color: var(--pink); margin-bottom: 30px; }
.review-scroll {
  display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px;
  scrollbar-width: none;
}
.review-scroll::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 250px; background: rgba(255,255,255,0.1);
  padding: 15px; border-radius: 15px; border: 1px solid var(--pink);
}
.review-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-user img { width: 40px; height: 40px; border-radius: 50%; }
.review-user span { font-weight: bold; color: var(--yellow); }

/* FAQ */
.faq { background: var(--white); color: var(--purple); }
.faq h2 { text-align: center; font-size: 2.5rem; color: var(--pink); margin-bottom: 30px; }
.faq-item { margin-bottom: 15px; border-radius: 10px; background: #f4f4f4; overflow: hidden; }
.faq-q {
  padding: 15px 20px; font-weight: bold; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--pink); transition: transform 0.3s; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s; color: #666; }
.faq-item.active .faq-a { padding: 0 20px 15px; max-height: 200px; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }

/* 投稿 */
.join-section { background: #2b1839; text-align: center; }
.join-section h2 { font-size: 2.5rem; color: var(--pink); margin-bottom: 15px; }
.join-section p { margin-bottom: 30px; font-size: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 15px; max-width: 400px; margin: 0 auto; }
.form-input {
  padding: 15px; border-radius: 25px; border: 2px solid var(--pink);
  background: transparent; color: var(--white); outline: none;
}
.form-input::placeholder { color: #ccc; }
.form-input:focus { box-shadow: 0 0 15px var(--pink); }
.submit-btn {
  padding: 15px; border-radius: 25px; border: none;
  background: var(--pink); color: var(--white);
  font-size: 1.1rem; font-weight: bold; cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover { background: #ff4da6; }

/* 页脚 */
footer {
  background: var(--white); color: #888;
  padding: 30px 20px; text-align: center;
  border-top: 3px solid var(--pink);
  font-size: 0.9rem;
}
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-logo { height: 30px; }
.footer-links a { margin: 0 10px; color: #666; }
.footer-links a:hover { color: var(--pink); }
.footer-bottom { margin-top: 20px; font-size: 0.8rem; color: #aaa; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { text-decoration: underline; }

/* 响应式 */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero h1 { font-size: 4rem; }
  .hero-images { gap: 30px; }
  .hero-img-card { width: 250px; }
  .grid-container { grid-template-columns: repeat(3, 1fr); }
  .doujin-content { flex-direction: row; align-items: center; }
  .doujin-text, .doujin-gallery { flex: 1; }
  .rank-list { flex-direction: row; justify-content: center; align-items: flex-end; }
  .rank-item { flex-direction: column; width: 200px; text-align: center; padding: 20px; }
  .rank-item img { width: 100%; height: auto; aspect-ratio: 3/4; margin-bottom: 15px; }
  .app-download { display: flex; align-items: center; justify-content: center; gap: 50px; text-align: left; }
  .app-mockups { margin-bottom: 0; gap: 20px; }
  .app-mockups img { width: 180px; }
  .download-info h2 { font-size: 2.5rem; }
  .download-buttons { flex-direction: row; justify-content: flex-start; }
  .download-btn { width: auto; }
  .schedule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-content { flex-direction: row; justify-content: space-between; max-width: 1000px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  section { padding: 80px 40px; }
  .hero h1 { font-size: 5rem; }
  .grid-container { grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; }
  .doujin-content { max-width: 1200px; margin: 0 auto; gap: 80px; }
  .app-download { max-width: 1000px; margin: 0 auto; border-radius: 30px; padding: 60px; }
  .schedule-list { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
}