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

:root {
  --banana-yellow: #f5a623;
  --banana-yellow-light: #ffd166;
  --banana-yellow-dark: #d48a0f;
  --night-black: #1a1a2e;
  --night-black-light: #25253d;
  --night-black-lighter: #2e2e4a;
  --text-white: #ffffff;
  --text-gray: #b8b8d0;
  --text-gray-light: #8a8aa0;
  --card-bg: #222240;
  --border-color: #35355a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(245, 166, 35, 0.25);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  scroll-behavior: auto;
}

section[id] {
  scroll-margin-top: 64px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--night-black);
  color: var(--text-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  height: 64px;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo .logo-text {
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-gray);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--banana-yellow);
  background: rgba(245, 166, 35, 0.1);
}

.nav-download-btn {
  padding: 8px 20px !important;
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-dark));
  color: var(--night-black) !important;
  font-weight: 700;
  border-radius: 50px !important;
  font-size: 0.88rem;
}

.nav-download-btn:hover {
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Hero 区域 ========== */
.hero {
  position: relative;
  margin-top: 64px;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.85)),
    url("https://yumingjiasu3.com/public/drama/cover/hongguo_7418456054628879385.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 209, 102, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 166, 35, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .hero-sub {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--banana-yellow);
}

.hero-stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--text-gray-light);
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-dark));
  color: var(--night-black);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--banana-yellow);
  color: var(--banana-yellow);
  background: rgba(245, 166, 35, 0.06);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-3d-gallery {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 460px;
  margin: 0 auto;
  perspective: 1200px;
}

.gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  background: #1a1a2e;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-item.item-1 {
  transform: translate(-50%, -50%) translateX(-60%) translateZ(-100px) rotateY(20deg);
  z-index: 1;
  opacity: 0.6;
}

.gallery-item.item-2 {
  transform: translate(-50%, -50%) translateX(0) translateZ(0) rotateY(0deg);
  z-index: 3;
  width: 65%;
  max-width: 260px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.gallery-item.item-3 {
  transform: translate(-50%, -50%) translateX(60%) translateZ(-100px) rotateY(-20deg);
  z-index: 2;
  opacity: 0.7;
}

.hero-3d-gallery:hover .item-1 {
  transform: translate(-50%, -50%) translateX(-80%) translateZ(-50px) rotateY(25deg);
  opacity: 0.8;
}

.hero-3d-gallery:hover .item-2 {
  transform: translate(-50%, -50%) translateX(0) translateZ(40px) rotateY(0deg);
  box-shadow: 0 35px 70px rgba(245, 166, 35, 0.3);
  border-color: rgba(245, 166, 35, 0.5);
}

.hero-3d-gallery:hover .item-3 {
  transform: translate(-50%, -50%) translateX(80%) translateZ(-50px) rotateY(-25deg);
  opacity: 0.9;
}

/* ========== 通用 Section ========== */
.section {
  padding: 72px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-header h2 .accent {
  color: var(--banana-yellow);
}

.section-header p {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  max-width: 1280px;
  margin: 0 auto;
}

/* ========== 每日大赛 ========== */
.daily-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.match-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--shadow-hover);
}

.match-card .match-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #2e2e4a, #3a3a5a);
}

.match-card .match-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: var(--transition);
}

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

.match-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(245, 166, 35, 0.92);
  color: var(--night-black);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.match-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.match-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.match-body .match-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-gray-light);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  gap: 8px;
  flex-wrap: wrap;
}

.match-meta .match-score {
  color: var(--banana-yellow);
  font-weight: 700;
}

/* ========== 短剧专题 ========== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.topic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 166, 35, 0.4);
}

.topic-card .topic-bg {
  position: absolute;
  inset: 0;
}

.topic-card .topic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition);
}

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

.topic-card .topic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(26, 26, 46, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.topic-card .topic-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.topic-card .topic-overlay p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
}

.topic-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--banana-yellow);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  align-self: flex-start;
}

/* ========== 香蕉社区 ========== */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.community-intro h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.community-intro > p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.community-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.community-feature-list .feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.community-feature-list .feature-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.community-feature-list .feature-text p {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.community-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.post-card:hover {
  border-color: rgba(245, 166, 35, 0.3);
}

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

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--night-black);
  flex-shrink: 0;
}

.post-user-info .post-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.post-user-info .post-time {
  font-size: 0.78rem;
  color: var(--text-gray-light);
}

.post-content {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 14px;
}

.post-actions {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-gray-light);
}

.post-actions span {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.post-actions span:hover {
  color: var(--banana-yellow);
}

/* ========== 真人短剧 ========== */
.real-drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.real-drama-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.real-drama-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--shadow-hover);
}

.real-drama-card .drama-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #2e2e4a, #3a3a5a);
  position: relative;
}

.real-drama-card .drama-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: var(--transition);
}

.real-drama-card:hover .drama-poster img {
  transform: scale(1.05);
}

.real-drama-card .drama-info {
  padding: 16px;
}

.real-drama-card .drama-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.real-drama-card .drama-info .drama-desc {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drama-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.drama-tag {
  padding: 3px 9px;
  background: rgba(245, 166, 35, 0.1);
  color: var(--banana-yellow);
  font-size: 0.72rem;
  border-radius: 50px;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

/* ========== 常见问题 ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(245, 166, 35, 0.3);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  color: var(--banana-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--banana-yellow);
  color: var(--night-black);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ========== 客户端下载 ========== */
.download-section {
  background: linear-gradient(160deg, var(--night-black-light) 0%, var(--night-black) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 72px 24px;
}

.download-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.download-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-inner h2 .accent {
  color: var(--banana-yellow);
}

.download-inner > p {
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-width: 180px;
  justify-content: center;
}

.download-btn:hover {
  border-color: var(--banana-yellow);
  background: rgba(245, 166, 35, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.15);
}

.download-btn .dl-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.download-btn .dl-text {
  text-align: left;
}

.download-btn .dl-text .dl-platform {
  font-size: 0.72rem;
  color: var(--text-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-btn .dl-text .dl-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-gray-light);
}

.qr-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.qr-code-img-box {
  width: 140px;
  height: 140px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-code-img-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.2);
}

.qr-code-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.qr-code-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.qr-code-desc {
  font-size: 0.8rem;
  color: var(--text-gray-light);
}

/* ========== 同款短剧推荐 ========== */
.recommend-section {
  background-color: #0f0f16;
  border-top: 1px solid var(--border-color);
  padding: 56px 24px;
}

.recommend-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.recommend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.recommend-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0;
  background: linear-gradient(90deg, #c77dff 0%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  letter-spacing: 0.5px;
}

.recommend-more-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c77dff;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(199, 125, 255, 0.3);
}

.recommend-more-link:hover {
  color: #ff007f;
  border-color: rgba(255, 0, 127, 0.4);
  background: rgba(199, 125, 255, 0.08);
  transform: translateX(4px);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.recommend-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1c1c24;
  border: 1px solid #2e2e3a;
  border-radius: 12px;
  padding: 18px 22px;
  color: #d1d1e0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.recommend-card:hover {
  background-color: #252533;
  border-color: #4a4a60;
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.recommend-card .arrow-icon {
  font-size: 1.1rem;
  color: #6b6b80;
  transition: all 0.3s ease;
  font-family: Arial, sans-serif;
}

.recommend-card:hover .arrow-icon {
  color: #c77dff;
  transform: translate(2px, -2px);
}

/* ========== 页脚 ========== */
.footer {
  background: #12121f;
  border-top: 1px solid var(--border-color);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-brand .footer-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--banana-yellow);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-gray-light);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-gray-light);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--banana-yellow);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-gray-light);
}

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

.footer-bottom .footer-links a {
  font-size: 0.8rem;
  color: var(--text-gray-light);
}

.footer-bottom .footer-links a:hover {
  color: var(--banana-yellow);
}

/* ========== 浮动下载按钮 ========== */
.float-download {
  position: fixed;
  right: 16px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--banana-yellow), var(--banana-yellow-dark));
  color: var(--night-black);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.float-download.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-download .fd-icon {
  font-size: 0.95rem;
  line-height: 1;
  animation: fd-bounce 1.8s ease-in-out infinite;
}

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

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text .hero-sub {
    margin: 0 auto 28px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--night-black);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    text-align: left;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-3d-gallery {
    height: 320px;
    max-width: 100%;
  }

  .gallery-item {
    width: 60%;
    max-width: 160px;
  }

  .gallery-item.item-2 {
    width: 70%;
    max-width: 190px;
  }

  .gallery-item.item-1 {
    transform: translate(-50%, -50%) translateX(-45%) translateZ(-60px) rotateY(15deg);
  }

  .gallery-item.item-3 {
    transform: translate(-50%, -50%) translateX(45%) translateZ(-60px) rotateY(-15deg);
  }

  .hero-3d-gallery:hover .item-1 {
    transform: translate(-50%, -50%) translateX(-55%) translateZ(-30px) rotateY(20deg);
  }

  .hero-3d-gallery:hover .item-2 {
    transform: translate(-50%, -50%) translateX(0) translateZ(20px) rotateY(0deg);
  }

  .hero-3d-gallery:hover .item-3 {
    transform: translate(-50%, -50%) translateX(55%) translateZ(-30px) rotateY(-20deg);
  }

  .section-header h2,
  .download-inner h2 {
    font-size: 1.5rem;
  }

  /* ✅ 移动端整体间距优化 */
  .section {
    padding: 32px 16px;
  }

  .hero-inner {
    padding: 40px 16px;
  }

  .download-section {
    padding: 40px 16px;
  }

  .recommend-section {
    padding: 40px 16px;
  }

  /* ✅ 页脚紧凑左右式布局（减少右侧留白） */
  .footer {
    padding: 24px 16px 16px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
    margin-bottom: 14px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .footer-logo {
    margin-bottom: 6px;
  }

  .footer-brand .footer-logo img {
    width: 24px;
    height: 24px;
  }

  .footer-brand .footer-logo span {
    font-size: 0.95rem;
  }

  .footer-brand p {
    font-size: 0.72rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .footer-col h4 {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .footer-col ul {
    gap: 5px;
  }

  .footer-col ul li a {
    font-size: 0.72rem;
  }

  /* ✅ 底部版权与链接改为同一行左右分布 */
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 12px;
    gap: 6px 12px;
  }

  .footer-bottom p {
    font-size: 0.7rem;
    margin: 0;
  }

  .footer-bottom .footer-links {
    gap: 12px;
  }

  .footer-bottom .footer-links a {
    font-size: 0.7rem;
  }

  .download-btn {
    min-width: 100%;
  }

  .topic-card {
    height: 360px;
  }

  .real-drama-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .recommend-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ✅ 浮动下载按钮：仅在移动端启用 */
  .float-download {
    display: inline-flex;
  }
}
