/* 全局重置与变量 */
:root {
  --bg-dark: #0B0B10;
  --surface-dark: #16161F;
  --accent-red: #FF4757;
  --text-main: #F2F2F5;
  --text-muted: #8E8E9A;
  --line-color: #2A2A35;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 50px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* 布局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航（App 界面复刻感） */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 11, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-color);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-sm);
}

.channel-nav {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-nav::-webkit-scrollbar {
  display: none;
}

.channel-nav a {
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.channel-nav a.active {
  color: var(--text-main);
  font-weight: 600;
  border-bottom-color: var(--accent-red);
}

/* 搜索栏区 */
.search-bar {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-fake {
  flex: 1;
  background-color: var(--surface-dark);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-color);
}

.filter-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 首屏 Hero */
.hero-section {
  padding: 24px 0 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-download {
  background-color: var(--accent-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-download:hover {
  opacity: 0.9;
}

.hero-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-dark);
}

.hero-visual img {
  width: 100%;
  height: 100%;
}

/* 主推大图 */
.feature-banner {
  margin: 20px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.feature-banner img {
  width: 100%;
  height: 100%;
}

.feature-banner-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.feature-banner-info h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  font-size: 12px;
  background-color: rgba(255, 71, 87, 0.2);
  color: var(--accent-red);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.feature-banner-info p {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
}

/* 卡片网格区 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 32px 0 16px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.section-header a {
  font-size: 13px;
  color: var(--text-muted);
}

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

.poster-card {
  cursor: pointer;
}

.poster-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
}

.ep-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
}

.poster-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* 分类区 */
.category-section {
  margin: 40px 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card {
  background-color: var(--surface-dark);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-color);
}
.cat-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--accent-red);
}
.cat-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 体验区 */
.experience-section {
  margin: 40px 0;
}
.exp-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.exp-item {
  display: flex;
  gap: 12px;
}
.exp-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-red);
  flex-shrink: 0;
  margin-top: 2px;
}
.exp-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.exp-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.screenshot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.screenshot-scroll::-webkit-scrollbar {
  display: none;
}
.screenshot-scroll img {
  width: 200px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--line-color);
}

/* 结尾 CTA */
.cta-section {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--line-color);
  margin-top: 40px;
}
.cta-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.cta-section .btn-download {
  display: inline-block;
}

/* 页脚 */
.site-footer {
  background-color: #060608;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-color);
}
.footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-main);
}
.site-footer p {
  margin-bottom: 8px;
}
.site-footer a.beian {
  color: var(--text-muted);
}

/* 底部浮窗导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(22, 22, 31, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  border-top: 1px solid var(--line-color);
  z-index: 100;
}
.bottom-nav-item {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bottom-nav-item.active {
  color: var(--accent-red);
}

/* 响应式：768px */
@media (min-width: 768px) {
  .hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .hero-content {
    flex: 1;
    margin-bottom: 0;
  }
  .hero-visual {
    flex: 1;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .poster-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-banner {
    aspect-ratio: 21 / 9;
  }
  .exp-features {
    flex-direction: row;
  }
  .exp-item {
    flex: 1;
  }
}

/* 响应式：1024px */
@media (min-width: 1024px) {
  .poster-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* 为了避免底部导航挡住内容，手机端加 padding */
body {
  padding-bottom: 60px;
}
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}