:root {
  --brand-blue: #2b7de9;
  --brand-light: #e8f4fc;
  --sea-bg: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  --text-dark: #1a365d;
  --text-muted: #4a7c9b;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.9);
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* 水波背景动画 */
.water-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.caustic {
  position: absolute;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 60%);
  animation: waterFlow 20s linear infinite;
  opacity: 0.5;
}
.caustic:nth-child(2) {
  top: -50%; left: -50%;
  animation-duration: 25s;
  animation-direction: reverse;
}
@keyframes waterFlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 10%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* 导航 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 249, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 125, 233, 0.1);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
  color: var(--brand-blue);
}
.nav-brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.search-box {
  background: #fff;
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(43, 125, 233, 0.2);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 120px;
  color: var(--text-dark);
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); }

/* 首屏 */
.hero {
  padding: 60px 20px 100px;
  position: relative;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.hero-text h1 span { color: var(--brand-blue); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}
.stat-item { font-size: 14px; color: var(--text-muted); }
.stat-item strong { display: block; font-size: 24px; color: var(--brand-blue); }

.hero-buttons { display: flex; gap: 16px; }
.btn-download {
  background: var(--brand-blue);
  color: white;
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.3);
}
.btn-download.outline {
  background: white;
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  box-shadow: none;
}

/* 水族缸效果 */
.aquarium {
  flex: 0 0 450px;
  position: relative;
  height: 500px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(43, 125, 233, 0.1);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.aquarium-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.float-card {
  position: absolute;
  width: 90px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: floatSway 6s ease-in-out infinite alternate;
}
.float-card:hover { animation-play-state: paused; }
.float-card:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-card:nth-child(2) { top: 30%; right: 10%; animation-delay: 1.5s; }
.float-card:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 3s; }
.float-card:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 4.5s; }
.float-card:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 2s; }

@keyframes floatSway {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-20px) rotate(2deg); }
}

/* 鱼群居中大卡 */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.fish-market {
  position: relative;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-feature-card {
  width: 240px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 2;
  transition: transform 0.3s;
}
.main-feature-card img { width: 100%; height: 340px; }
.main-feature-info { padding: 12px; }
.main-feature-info h3 { font-size: 16px; margin-bottom: 4px; }
.main-feature-info p { font-size: 12px; color: var(--text-muted); }
.main-feature-info .heat { color: #ff6b6b; font-size: 12px; margin-top: 8px; }

.orbit-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.orbit-item {
  position: absolute;
  width: 80px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s;
}
.orbit-item:hover { transform: scale(1.1) !important; }

/* 更新日历 */
.schedule-row {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px dashed rgba(43, 125, 233, 0.2);
  gap: 20px;
}
.schedule-row.highlight {
  background: rgba(43, 125, 233, 0.05);
  border-bottom: 2px solid var(--brand-blue);
}
.schedule-row.future { opacity: 0.6; }
.schedule-time {
  font-size: 18px;
  font-weight: bold;
  width: 80px;
  color: var(--brand-blue);
}
.schedule-covers { display: flex; gap: 12px; flex-wrap: wrap; }
.schedule-cover-item { text-align: center; }
.schedule-cover-item img { width: 60px; height: 85px; border-radius: 4px; }
.schedule-cover-item p { font-size: 12px; margin-top: 4px; }
.badge {
  font-size: 10px;
  background: #ff6b6b;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

/* 排行榜 */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.rank-item:nth-child(1) { border: 2px solid var(--brand-blue); }
.rank-num { font-size: 20px; font-weight: bold; width: 30px; color: var(--text-muted); }
.rank-item:nth-child(1) .rank-num { color: var(--brand-blue); }
.rank-cover { width: 50px; height: 70px; border-radius: 4px; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 16px; margin-bottom: 4px; }
.rank-info p { font-size: 12px; color: var(--text-muted); }
.rank-heat { font-size: 14px; font-weight: bold; color: #ff6b6b; }

/* 题材分类 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.glass-tank {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.glass-tank:hover {
  background: white;
  box-shadow: 0 8px 24px rgba(43, 125, 233, 0.15);
  transform: translateY(-4px);
}
.glass-tank h3 { margin-bottom: 10px; font-size: 18px; }
.glass-tank p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.tank-covers { display: flex; justify-content: center; gap: 8px; }
.tank-covers img { width: 50px; height: 70px; border-radius: 4px; }

/* 独播 */
.exclusive-layout { display: flex; gap: 40px; }
.exclusive-main { flex: 1; background: white; border-radius: 16px; padding: 24px; border: 2px solid var(--brand-blue); }
.exclusive-main img { width: 100%; max-width: 200px; border-radius: 8px; margin-bottom: 16px; }
.exclusive-main h3 { font-size: 20px; margin-bottom: 10px; }
.exclusive-main p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.countdown { font-size: 24px; color: var(--brand-blue); font-weight: bold; margin-bottom: 20px; }
.exclusive-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.exclusive-list-item { display: flex; align-items: center; gap: 16px; background: white; padding: 12px; border-radius: 12px; }
.exclusive-list-item img { width: 50px; height: 70px; border-radius: 4px; }

/* 免费专区 */
.free-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.free-card { background: white; border-radius: 8px; overflow: hidden; position: relative; }
.free-card img { width: 100%; height: 200px; }
.free-tag { position: absolute; top: 8px; right: 8px; background: #4ade80; color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.free-info { padding: 8px; }
.free-info h3 { font-size: 14px; }
.free-info p { font-size: 12px; color: var(--text-muted); }

/* 用户评价 */
.stat-header { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; text-align: center; }
.stat-header strong { display: block; font-size: 32px; color: var(--brand-blue); }
.bottle-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bottle-card {
  background: rgba(255,255,255,0.8);
  border-radius: 16px 16px 16px 4px;
  padding: 20px;
  position: relative;
  transform: rotate(-1deg);
}
.bottle-card:nth-child(even) { transform: rotate(1deg); }
.bottle-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bottle-user img { width: 32px; height: 32px; border-radius: 50%; }
.bottle-user span { font-size: 14px; font-weight: bold; }
.bottle-content { font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; justify-content: center; }
.faq-tag {
  padding: 8px 20px;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(43,125,233,0.2);
  cursor: pointer;
  font-size: 14px;
}
.faq-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  min-height: 100px;
  font-size: 15px;
  color: var(--text-muted);
}

/* 下载区 */
.download-section {
  text-align: center;
  background: white;
  border-radius: 24px;
  padding: 60px 20px;
  box-shadow: 0 8px 32px rgba(43, 125, 233, 0.1);
}
.steps { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 200px; }
.step-num { width: 40px; height: 40px; background: var(--brand-blue); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 12px; font-weight: bold; }
.porthole-panel { display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 40px; }
.porthole {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 8px solid #94a3b8;
  background: #e2e8f0;
  display: flex; justify-content: center; align-items: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}
.porthole div { font-size: 12px; color: #64748b; text-align: center; }

/* 页脚 */
footer {
  background: rgba(255, 255, 255, 0.5);
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 1px solid rgba(43, 125, 233, 0.1);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }

@media (max-width: 1024px) {
  .hero-text h1 { font-size: 32px; }
  .aquarium { flex: 0 0 350px; height: 400px; }
  .exclusive-layout { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .aquarium { width: 100%; flex: auto; height: 300px; }
  .nav-links { display: none; }
  .fish-market { height: auto; flex-direction: column; gap: 30px; padding-top: 20px; }
  .orbit-container { position: relative; height: auto; display: flex; flex-wrap: wrap; gap: 10px; }
  .orbit-item { position: static; width: 60px; }
  .porthole-panel { flex-direction: column; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}