:root {
  --bg-main: #121212;
  --bg-card: #1e1e1e;
  --bg-accent: #2a2a2a;
  --text-main: #f2f2f2;
  --text-muted: #a0a0a0;
  --brand-pink: #ff477e;
  --brand-purple: #b549ff;
  --brand-cyan: #00d2ff;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for floating bar */
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Nav */
header {
  background-color: rgba(18, 18, 18, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bg-accent);
  backdrop-filter: blur(8px);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-pink);
}
.brand-logo img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 4px 8px;
  border-radius: 4px;
}
.nav-links a:hover {
  color: var(--brand-cyan);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  padding: 30px 0;
  text-align: center;
  background: linear-gradient(145deg, #1a1a1a 0%, #121212 100%);
}
.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
}
.hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.hero-gallery img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: center;
  border: 1px solid var(--bg-accent);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple));
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan);
}
.btn-outline:hover {
  background: rgba(0, 210, 255, 0.1);
}

/* Marquee */
.marquee-wrap {
  background: #000;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 30px;
}
.marquee-text {
  display: inline-block;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-cyan), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Content Sections Common */
section {
  padding: 40px 0;
}
.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--brand-pink);
  border-radius: 2px;
}

/* Section 1: 今日吃瓜 - 左右分栏 */
.layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .layout-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
}
/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
.card-item {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-accent);
  transition: transform 0.2s;
}
.card-item:hover {
  transform: translateY(-3px);
}
.card-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--brand-cyan);
}

/* Section 2: 本周热瓜 - 列表样式 */
.list-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg-accent);
  border-radius: var(--radius-md);
}
.list-idx {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--brand-purple);
  opacity: 0.6;
}

/* Section 3: 校园大赛 - 创意块 */
.info-block {
  background: #1c1318;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-left: 4px solid var(--brand-pink);
}
@media (min-width: 768px) {
  .info-block { grid-template-columns: 1fr 1fr; }
}

/* Section 4: 社会时间 - 对话感 */
.chat-style {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  background: #232323;
  padding: 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 0.95rem;
}

/* Section 5: 隐私安全 - FAQ */
.faq-item {
  background: var(--bg-card);
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  background: #1f1f1f;
}
.faq-a {
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--bg-accent);
}

/* Download Section */
.download-area {
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  margin: 40px 0;
  text-align: center;
}
.download-img {
  max-height: 220px;
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
}

/* Floating Bar */
.floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid var(--brand-purple);
  padding: 10px 16px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  width: max-content;
  max-width: 90%;
}
.floating-bar img {
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
.floating-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.floating-info strong {
  font-size: 0.9rem;
  color: var(--text-main);
}
.floating-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.floating-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Footer */
footer {
  padding: 30px 0 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-accent);
}
footer .footer-nav {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer .footer-nav a {
  color: var(--text-muted);
}
footer .footer-nav a:hover {
  color: var(--brand-cyan);
}
.time-stamp {
  margin-bottom: 8px;
}

/* Modal for Baidu/iOS */
.copy-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.copy-modal.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.modal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.modal-input {
  width: 100%;
  padding: 10px;
  background: var(--bg-accent);
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

/* Mobile menu */
@media (max-width: 767px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
  .nav-links.active {
    display: flex;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-gallery img {
    height: 160px;
  }
}