:root {
  --red: #e60012;
  --black: #111111;
  --white: #ffffff;
  --yellow: #ffc107;
  --gray-bg: #f5f5f7;
  --text-main: #222222;
  --text-muted: #666666;
  --border-color: #eaeaea;
  --radius: 16px;
}

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

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

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

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

/* 吸顶导航 */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 4px solid var(--red);
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-area img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 24px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--red);
}

.btn-download-sm {
  background-color: var(--red);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.btn-download-sm:hover {
  transform: scale(1.05);
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  background-color: var(--red);
  border-radius: 4px;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Hero 首屏 */
.hero {
  padding: 30px 20px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--black);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.hero-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(230,0,18,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-text {
  padding: 40px 30px;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 900;
}

.hero-text h1 span {
  color: var(--red);
}

.hero-text p {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #cc0010;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #444;
  cursor: pointer;
  transition: border-color 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--white);
}

.hero-image {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* 极速更新 */
.update-timeline {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.update-timeline::-webkit-scrollbar {
  display: none;
}

.update-pill {
  white-space: nowrap;
  background-color: var(--gray-bg);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.update-pill.today {
  background-color: var(--red);
  color: var(--white);
}

/* 排行榜 Bento */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.bento-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.bento-main img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.bento-main:hover img {
  transform: scale(1.02);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--yellow);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
  z-index: 2;
}

.bento-sub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.bento-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
}

.bento-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-item .rank {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* 分类库 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.cat-card {
  background-color: var(--gray-bg);
  padding: 20px;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  border-left: 4px solid var(--red);
}

.cat-card:hover {
  background-color: var(--red);
  color: var(--white);
}

/* 编辑推荐 */
.editor-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pick-card {
  display: flex;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pick-card img {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pick-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pick-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 截图墙 */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.wall-item {
  background: var(--white);
  padding: 10px 10px 30px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.wall-item img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 4px;
  margin-bottom: 10px;
}

.wall-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 驴友放映室 */
.watch-room {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screen-left {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.danmaku-right {
  flex: 1;
  background-color: var(--black);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.danmaku-line {
  font-size: 0.95rem;
  color: #aaa;
}

.danmaku-line span {
  color: var(--red);
  font-weight: bold;
}

/* 下载区 */
.download-section {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0;
}

.dl-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.dl-image {
  width: 100%;
  max-width: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s;
}

.dl-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dl-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.dl-text p {
  color: #ccc;
  margin-bottom: 30px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.feature-tag {
  background: #333;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-android {
  background-color: var(--yellow);
  color: var(--black);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

/* 悬浮按钮 */
.float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--red);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--black);
  font-weight: bold;
  z-index: 99;
  box-shadow: 0 8px 16px rgba(230,0,18,0.3);
  cursor: pointer;
  transition: transform 0.2s;
}

.float-btn:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--white);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

/* 响应式 */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hero-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-text {
    flex: 1;
    padding: 60px 40px;
  }
  .hero-image {
    flex: 1;
    height: auto;
  }
  .bento-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .editor-picks {
    grid-template-columns: repeat(2, 1fr);
  }
  .wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .watch-room {
    flex-direction: row;
  }
  .dl-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .btn-group {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .bento-sub {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .wall-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}