/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #999999;
  --accent-color: #ff9500;
  --accent-gradient: linear-gradient(135deg, #ffcc00 0%, #ff6b00 50%, #ff4444 100%);
  --promo-gradient: linear-gradient(90deg, #ffcc00 0%, #ff9500 50%, #ff4444 100%);
  --tag-bg: #2a2a2a;
  --border-color: #333333;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

#app {
  max-width: 600px;
  margin: 0 auto;
}

/* 顶部 Logo */
.header {
  padding: 16px;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Hero 区域 */
.hero {
  position: relative;
  background: var(--bg-color);
  padding-bottom: 20px;
}

/* Hero 静态图片 */
.hero-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 10px;
}

.hero-img {
  border-radius: 8px;
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.hero-img-far-left,
.hero-img-far-right {
  width: 60px;
  height: 90px;
}

.hero-img-left,
.hero-img-right {
  width: 70px;
  height: 105px;
}

.hero-img-center {
  width: 90px;
  height: 130px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 文字内容区域 - 在图片下方，标题稍微上移盖住图片 */
.hero-overlay {
  position: relative;
  margin-top: -60px;
  text-align: center;
  z-index: 20;
}

.hero-overlay .download-buttons {
  margin-top: 12px;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffcd00;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffcd00;
  margin-bottom: 8px;
}

.hero-cta {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

/* 下载按钮 */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffcd00 0%, #ff9500 100%);
  border: none;
  border-radius: 30px;
  padding: 14px 32px;
  text-decoration: none;
  color: #000000;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 149, 0, 0.5);
}

.download-btn:active {
  transform: scale(0.98);
}

.store-icon {
  width: 26px;
  height: 26px;
}

.store-icon path {
  fill: #000000;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000;
}

/* 剧集轮播 */
.drama-section {
  padding: 0 16px 20px;
}

.drama-swiper {
  padding-bottom: 35px;
}

.drama-swiper .swiper-pagination {
  bottom: 0;
}

.drama-swiper .swiper-pagination-bullet {
  background: var(--border-color);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.drama-swiper .swiper-pagination-bullet-active {
  background: #ffcc00;
}

.drama-card {
  display: flex;
  gap: 14px;
  background: var(--bg-color);
  width: 100%;
  align-items: flex-start;
}

.drama-cover {
  flex: 0 0 100px;
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
}

.drama-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drama-info {
  flex: 1 1 0;
  min-width: 0;
}

.drama-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: #f5c518;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #000000;
  font-weight: 500;
  border: none;
}

.drama-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 发现更多 */
.discover-section {
  padding: 20px 16px;
  background: linear-gradient(180deg, #1a1510 0%, var(--bg-color) 100%);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.discover-swiper {
  overflow: hidden;
}

.discover-swiper .swiper-slide {
  width: auto;
}

.discover-item {
  width: 80px;
  text-align: center;
}

.discover-item img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}

.discover-name {
  font-size: 0.7rem;
  color: var(--text-color);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 底部 */
.footer {
  background: var(--bg-secondary);
  padding: 30px 16px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-logo .logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-logo .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.footer-contact,
.footer-legal {
  margin-bottom: 20px;
}

.footer-contact h4,
.footer-legal h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.footer-contact p,
.footer-legal p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copyright {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-copyright p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 响应式 */
@media (min-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .drama-cover {
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
  }
}
