:root {
  --bg: #190611;
  --bg-dark: #1E0915;
  --panel: #2E0F20;
  --panel-light: #40162C;
  --main: #F45C96;
  --wine: #B93A70;
  --gold: #FFC879;
  --border: rgba(255, 190, 215, 0.10);
  --border-light: rgba(255, 190, 215, 0.20);
  --text: #F2D8E4;
  --text-dim: #B89EA9;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* For floating window */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 6, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 32px;
  border-radius: 8px;
}
.brand span {
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(90deg, var(--main), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu {
  display: flex;
  gap: 20px;
}
.nav-menu li a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.nav-menu li a:hover {
  color: var(--main);
  transform: translateY(-2px);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 40px 20px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(244, 92, 150, 0.15), transparent 60%);
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--main), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}
.hero p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-carousel {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-carousel img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.hero-carousel img:hover {
  transform: scale(1.05);
  border-color: var(--main);
}
.download-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  color: #190611;
  background: linear-gradient(135deg, var(--main), var(--gold));
  box-shadow: 0 4px 15px rgba(244, 92, 150, 0.3);
  transition: opacity 0.3s, transform 0.2s;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--main);
  border: 1px solid var(--main);
  box-shadow: none;
}
.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(90deg, var(--main), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 24px;
  margin: 40px 0 20px;
  color: var(--gold);
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--main);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Section 1: 今日吃瓜 */
.gossip-grid {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}
.gossip-card {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gossip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.gossip-card h3 {
  font-size: 16px;
  color: var(--main);
}
.gossip-card p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Section 2: 本周热瓜 & 校园大赛 (左右结构) */
.split-section {
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .split-section {
    flex-direction: row;
    align-items: flex-start;
  }
  .split-img {
    width: 40%;
    flex-shrink: 0;
  }
  .split-text {
    width: 60%;
  }
}
.split-img img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.split-text ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-text li {
  background: var(--panel-light);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid var(--main);
}
.split-text li strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

/* Section 3: 反差大赛 & 常见问题 */
.faq-section {
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: var(--panel);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 16px;
  color: var(--main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-item h3::before {
  content: 'Q';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--main), var(--gold));
  color: #190611;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 32px;
}

/* Section 4: 隐私安全 & 意见反馈 */
.info-blocks {
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .info-blocks {
    grid-template-columns: 1fr 1fr;
  }
}
.info-box {
  background: var(--panel-light);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
}
.info-box h3 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 15px;
}
.info-box ul li {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  gap: 8px;
}
.info-box ul li::before {
  content: '•';
  color: var(--main);
  font-weight: bold;
}

/* Section 5: Download Area */
.download-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-dark);
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-top: 40px;
}
.download-section h2 {
  color: var(--gold);
  margin-bottom: 15px;
}
.download-section p {
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 14px;
}
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.step-card {
  background: var(--panel);
  border-radius: 10px;
  padding: 15px;
  min-width: 200px;
  flex: 1;
  text-align: left;
  border: 1px solid var(--border);
}
.step-card span {
  display: inline-block;
  background: var(--main);
  color: #190611;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 30px 20px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: var(--text-dim);
}
.footer-nav a:hover {
  color: var(--main);
}

/* Floating Download Bar */
.floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 15, 32, 0.95);
  border: 1px solid var(--main);
  border-radius: 30px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(5px);
}
.floating-bar img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.floating-bar .float-btn {
  background: linear-gradient(135deg, var(--main), var(--gold));
  color: #190611;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--panel);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  text-align: center;
  max-width: 90%;
  width: 350px;
}
.modal-content p {
  margin-bottom: 15px;
  font-size: 15px;
}
.copy-btn {
  background: var(--main);
  color: #190611;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero h1 { font-size: 24px; }
  .hero-carousel img { width: 90px; height: 120px; }
  .floating-bar { width: 90%; justify-content: space-between; }
}