/* kanav 安装引导页 —— 深色主题 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0a; /* kanav 背景色系(深黑) */
  color: #e8e8ea;
  overflow-x: hidden;
}

/* ===== 顶部品牌区 ===== */
.brand {
  padding: 10px 20px 0;
}

.brand-row {
  display: flex;
  align-items: center;
}

.logo {
  height: 38px;
  width: auto;
  margin-right: 12px;
  flex-shrink: 0;
  display: block;
}

/* 两行文字: 「免费观影」与「kanav.so」左对齐、字体一致, 总高度与 logo 一致 */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 38px; /* 与 logo 同高 */
  line-height: 1.2;
}

.brand-slogan,
.brand-domain {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ===== 大图轮播 ===== */
.carousel {
  margin-top: 10px;
  position: relative;
  height: 130px;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;   /* 横图卡片(330x186 ≈ 16:9) */
  height: 113px;
  margin-left: -100px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, left 0.5s ease;
  opacity: 0.45;
  transform: scale(0.8) translateY(6px);
}

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

/* 居中大图 */
.carousel-item.center {
  opacity: 1;
  transform: scale(1.1) translateY(0);
  z-index: 3;
}

/* 两侧小图(相邻) */
.carousel-item.side {
  opacity: 0.7;
  transform: scale(0.85) translateY(6px);
  z-index: 2;
}

/* 更远的小图 */
.carousel-item.far {
  opacity: 0.4;
  transform: scale(0.7) translateY(14px);
  z-index: 1;
}

/* ===== 标语 ===== */
.tagline {
  text-align: center;
  margin: 12px 20px 4px;
  font-size: 16px;
  color: #c9c9d1;
  letter-spacing: 1px;
}

/* 「燥热」暖色调 */
.tagline .hot {
  color: #ff6b4a; /* 灼热橙红 */
}

/* 「清凉」冷色调 */
.tagline .cool {
  color: #4ab8ff; /* 清凉冰蓝 */
}

/* ===== 近期热门标题 ===== */
.section-title {
  margin: 10px 20px 6px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* ===== 跑马灯 ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 2px 0 4px;
}

.marquee-track {
  display: inline-flex;
  gap: 10px;
  padding-right: 10px;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  width: 112px;  /* 大图一半高(横版) */
  height: 75px;  /* 大图一半宽(横版) */
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== 下载按钮(右下角, 始终浮动) ===== */
.download-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;                                              /* 兜底: 任何环境都生效 */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));     /* 增强: 适配 iPhone Home 指示条 */
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
  cursor: pointer;
  z-index: 999; /* 始终浮在最上层 */
}

.download-btn:active {
  opacity: 0.85;
}

/* 右上角下载按钮 */
.download-btn-top {
  right: 16px;
  top: 16px;
  top: calc(16px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

/* ===== 左下角二维码 ===== */
.qrcode-corner {
  position: fixed;
  left: 16px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.qrcode-img {
  width: 88px;
  height: 88px;
  display: block;
}

/* ===== 超级签信任教程弹窗 ===== */
.trust-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.trust-modal.show {
  display: flex;
}

.trust-dialog {
  background: #17171c;
  border-radius: 16px;
  padding: 22px 20px 18px;
  max-width: 340px;
  width: 100%;
  color: #e8e8ea;
}

.trust-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 14px;
}

.trust-steps {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: #c9c9d1;
}

.trust-steps li {
  margin-bottom: 8px;
}

.trust-confirm,
.trust-close {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.trust-confirm {
  color: #fff;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  margin-bottom: 10px;
}

.trust-confirm:active {
  opacity: 0.85;
}

.trust-close {
  color: #a0a0a8;
  background: transparent;
}
