:root {
  --mint: #10b981;
  --forest: #059669;
  --light-green: #d1fae5;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --shadow-soft: 0 10px 40px rgba(16, 185, 129, 0.1);
  --shadow-hover: 0 20px 50px rgba(16, 185, 129, 0.2);
  --radius-lg: 30px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px; /* Space for fixed header */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* 顶部固定悬浮导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--forest);
}

.brand img {
  height: 32px;
  border-radius: 8px;
}

.nav-pill {
  display: flex;
  background: #f1f5f9;
  border-radius: 50px;
  padding: 4px;
}

.nav-pill a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav-pill a:hover {
  background: var(--light-green);
  color: var(--forest);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 200px;
  height: 40px;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  padding: 0 16px 0 40px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background: var(--bg-gray);
}

.search-box input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.btn-primary {
  background: var(--mint);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--forest);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--light-green);
}

/* 首屏视觉焦点 */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 40px;
  margin: 24px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.08);
}

.hero::before {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.hero::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: 10%;
}

.hero-content {
  flex: 1;
  z-index: 2;
  max-width: 500px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  color: var(--forest);
  margin-bottom: 20px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* 通用区块 */
.section {
  padding: 60px 24px;
  scroll-margin-top: 90px; /* 锚点防遮挡 */
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  font-size: 32px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* 排行榜 */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ranking-item {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  gap: 20px;
}

.ranking-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.rank-num {
  font-size: 36px;
  font-weight: 900;
  width: 60px;
  text-align: center;
  font-style: italic;
}

.rank-1 .rank-num { color: #fbbf24; }
.rank-2 .rank-num { color: #94a3b8; }
.rank-3 .rank-num { color: #b45309; }

.rank-img {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.rank-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  flex: 1;
}

.rank-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

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

.rank-stats {
  font-weight: 700;
  color: var(--forest);
  font-size: 18px;
}

/* 卡片网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
}

/* 电影卡片 60% 比例 */
.aspect-movie {
  padding-top: 60%;
}

/* 竖版卡片 130% 比例 */
.aspect-poster {
  padding-top: 130%;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mint);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* 问答 & 帮助中心 */
.qa-section {
  background-color: var(--bg-gray);
  border-radius: 40px;
  margin: 24px;
  padding: 60px 40px;
}

.qa-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.qa-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border-left: 6px solid var(--forest);
  transition: all 0.3s ease;
  cursor: pointer;
}

.qa-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

.qa-card.guide {
  border-left-color: var(--mint);
}

.qa-card .qa-tag {
  display: inline-block;
  background: var(--light-green);
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.qa-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

/* 用户评价 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--forest);
  font-weight: 700;
}

.review-name {
  font-weight: 700;
  font-size: 16px;
}

.review-stars {
  color: #fbbf24;
  font-size: 14px;
}

.review-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 下载专区 */
.download-area {
  background: linear-gradient(135deg, var(--mint) 0%, var(--forest) 100%);
  border-radius: 40px;
  margin: 24px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.download-text {
  flex: 1;
}

.download-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.download-text p {
  font-size: 18px;
  opacity: 0.9;
}

.download-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-download {
  background: #fff;
  color: var(--forest);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-download:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.download-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  max-width: 400px;
}

.download-image img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: rotate(5deg);
}

/* 底部区域 */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
}

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

/* 右下角悬浮组件 */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-panel {
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.floating-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-gray);
  transition: background 0.2s;
}

.floating-panel a:hover {
  background: var(--light-green);
  color: var(--forest);
}

.floating-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  position: relative;
  animation: bounce 2s infinite ease-in-out;
  transition: all 0.3s ease;
}

.floating-main:hover {
  background: var(--forest);
  transform: scale(1.05);
}

.floating-main::before {
  content: "下载APP";
  position: absolute;
  right: 80px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-main:hover::before {
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .download-text h2 { font-size: 28px; }
  .nav-pill { display: none; } /* 简化导航 */
}

@media (max-width: 768px) {
  .header { padding: 0 16px; height: 64px; }
  body { padding-top: 72px; }
  .search-box { display: none; }
  .hero { flex-direction: column; padding: 40px 24px; text-align: center; border-radius: var(--radius-md); margin: 16px; }
  .hero h1 { font-size: 32px; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .hero-image { margin-top: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .qa-section, .download-area { margin: 16px; padding: 40px 24px; border-radius: var(--radius-md); }
  .download-area { flex-direction: column; text-align: center; }
  .download-buttons { flex-direction: column; width: 100%; }
  .download-image { display: none; }
  .ranking-item { flex-direction: column; text-align: center; gap: 12px; padding: 16px; }
  .rank-stats { margin-top: 8px; }
  .floating-widget { bottom: 20px; right: 20px; flex-direction: column-reverse; }
  .floating-panel { display: none; /* 移动端简化 */ }
  .floating-main { width: 56px; height: 56px; font-size: 24px; }
}