:root {
  --bg-deep: #190611;
  --bg-dark: #1E0915;
  --panel-1: #2E0F20;
  --panel-2: #40162C;
  --primary: #F45C96;
  --wine: #B93A70;
  --gold: #FFC879;
  --line-light: rgba(255,190,215,.10);
  --line-strong: rgba(255,190,215,.20);
  --text-main: #FCE8F0;
  --text-muted: #B89FAA;
  --grad-main: linear-gradient(135deg, #F45C96 0%, #FFC879 100%);
  --grad-text: linear-gradient(90deg, #F45C96, #FFC879, #F45C96);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 跑马灯 */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--panel-1);
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  animation: scroll 20s linear infinite;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 14px;
}

@keyframes scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* 顶部导航 */
header {
  background: rgba(30, 9, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  height: 32px;
  border-radius: 6px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* 首屏 */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #190611;
  background: var(--grad-main);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 92, 150, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(244, 92, 150, 0.1);
}

.hero-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
}

.hero-gallery img:first-child {
  grid-column: span 2;
  height: 200px;
}

.hero-gallery img:not(:first-child) {
  height: 140px;
}

/* 通用区块 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--grad-main);
  border-radius: 3px;
}

/* 今日吃瓜 - 左右分栏，左边图右边字 */
.bg-alt {
  background-color: var(--bg-dark);
}

.today-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.today-img-col {
  flex: 0 0 35%;
}

.today-img-col img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
}

.today-list-col {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.news-card {
  background: var(--panel-1);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line-light);
  transition: border-color 0.3s;
}

.news-card:hover {
  border-color: var(--primary);
}

.news-card h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 本周热瓜 - 卡片流 */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.hot-card {
  background: var(--panel-2);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: flex;
  gap: 16px;
}

.hot-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.hot-card-content h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 6px;
}

.hot-card-content p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 反差大赛 - 图文交错 */
.contrast-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contrast-row {
  display: flex;
  gap: 20px;
  background: var(--panel-1);
  border-radius: 12px;
  border: 1px solid var(--line-light);
  overflow: hidden;
}

.contrast-row:nth-child(even) {
  flex-direction: row-reverse;
}

.contrast-row img {
  width: 200px;
  object-fit: cover;
}

.contrast-content {
  padding: 20px;
  flex: 1;
}

.contrast-content h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.contrast-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* 校园大赛 - 双列卡片 */
.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.campus-card {
  background: var(--bg-dark);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 20px;
}

.campus-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.campus-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* 问答块 */
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--panel-2);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--primary);
}

.faq-item h3 {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 用户评论 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment {
  display: flex;
  gap: 16px;
  background: var(--panel-1);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
}

.comment img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.comment-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 下载专区 */
.download-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.dl-box {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--panel-2);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
}

.dl-box-img {
  flex: 0 0 200px;
  text-align: center;
}

.dl-box-img img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(244, 92, 150, 0.2);
}

.dl-box-content {
  flex: 1;
}

.dl-box-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dl-box-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.steps {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gold);
}

.step span {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--bg-deep);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
}

/* 浮动下载框 */
.float-dl {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s;
}

.float-dl:hover {
  transform: translateX(-50%) translateY(-4px);
}

.float-dl img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.float-dl-info {
  display: flex;
  flex-direction: column;
}

.float-dl-info strong {
  font-size: 14px;
  color: var(--text-main);
}

.float-dl-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.float-dl .btn {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 20px;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--line-strong);
  padding: 40px 20px 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  margin-bottom: 8px;
}

/* 弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--panel-2);
  padding: 24px;
  border-radius: 16px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--line-strong);
}

.modal-box p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--gold);
}

.modal-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  background: var(--bg-dark);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-text { flex: none; width: 100%; }
  .dl-buttons { justify-content: center; }
  .hero-gallery { width: 100%; max-width: 600px; margin: 0 auto; }
  .today-grid { flex-direction: column; }
  .today-img-col { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }
  .dl-box { flex-direction: column; text-align: center; }
  .steps { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.active { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: var(--bg-dark); 
    padding: 20px; 
    border-bottom: 1px solid var(--line-strong);
  }
  .hero { padding: 20px; }
  .hero-text h1 { font-size: 24px; }
  .hero-gallery img:first-child { height: 150px; }
  .hero-gallery img:not(:first-child) { height: 100px; }
  .today-list-col { grid-template-columns: 1fr; }
  .contrast-row, .contrast-row:nth-child(even) { flex-direction: column; }
  .contrast-row img { width: 100%; height: 200px; }
  .campus-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 20px; }
  .section-title { font-size: 22px; }
  .float-dl { padding: 6px 12px 6px 6px; width: 90%; justify-content: space-between; }
}