@charset "UTF-8";

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

a {
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

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

body {
  font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background-color: #1a0b08;
  color: #333;
}

.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: #1a0b08;
  overflow-x: hidden;
  min-height: 100vh;
}

@media (min-width: 431px) {
  body {
    background-color: #222;
  }

  .container {
    box-shadow: 0 0 20px rgba(26, 11, 8, 0.9);
  }
}

/* 顶栏 */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  z-index: 999;
  background-size: 100% auto;
}

.header .logo {
  height: 60px;
  width: auto;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header .server {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  padding: 0;
}

.header .server img {
  width: 100%;
  height: auto;
}

.main-content {
  padding-top: 60px;
}

/* 主视觉区 */
.hero-section {
  position: relative;
  width: 100%;
}

.hero-banner {
  width: 100%;
}

.hero-actions {
  position: absolute;
  left: 5%;
  top: 55%;
  width: 90%;
  display: flex;
  justify-content: space-between;
  gap: 4%;
}

.hero-actions .btn {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  border-radius: 25px;
  background: linear-gradient(180deg, #e3aa34, #ffffe0, #e3aa34);
}

.btn__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: 12%;
  margin-right: 8px;
}

.btn__icon img {
  width: 100%;
  height: 100%;
}

.btn__text {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: #000;
}

.channel-list {
  list-style: none;
  position: absolute;
  left: 5%;
  width: 90%;
  top: calc(55% + 65px);
}

.channel-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 10px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.channel-row--1 {
  background-image: url('../assets/images/row-bg-1.png');
}

.channel-row--2 {
  background-image: url('../assets/images/row-bg-2.png');
}

.channel-row--3 {
  background-image: url('../assets/images/row-bg-3.png');
}

.channel-row__main {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.channel-row__icon {
  width: 42px;
  height: 42px;
  margin: 4px;
  margin-left: -2.5%;
  flex-shrink: 0;
}

.channel-row__title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, #e3aa34, #ffffe0, #e3aa34, #ffffe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.channel-row__cta {
  position: absolute;
  right: 1px;
  top: 6px;
  height: 36px;
  line-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.channel-row__cta--purple {
  background-color: #b73ec7;
}

.channel-row__cta--green {
  background-color: #338f2b;
}

.channel-row__cta--orange {
  background-color: #cb5131;
}

/* 下方区块 */
.hero-section1 {
  width: 100%;
  background: url('../assets/images/section-bg.png') repeat-y;
  background-size: 100% auto;
  margin-top: -4px;
  padding-bottom: 24px;
}

.promo-link {
  display: block;
  width: 100%;
  margin: 5px auto;
  padding: 0;
}

.hint-image {
  width: 94%;
  margin: 0 3%;
  border-radius: 10px;
}

@media (max-width: 400px) {
  .hero-section1 {
    padding-top: 5%;
  }
}

/* 教程弹层 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay[hidden] {
  display: none;
}

.tutorial-popup {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  z-index: 999;
  background: #000;
  padding: 20px;
  box-sizing: border-box;
  height: calc(100vh - 60px);
  transition: bottom 0.3s ease;
}

.tutorial-popup[hidden] {
  display: none;
}

.popup-header {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.popup-btn {
  position: absolute;
  left: 5px;
  top: 0;
  padding: 4px;
}

.popup-content {
  height: calc(100vh - 160px);
  overflow-y: auto;
}

/* iOS 说明 */
.ios-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 344px;
  margin: 0;
  padding: 20px;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.ios-dialog:not([open]) {
  display: none;
}

.ios-dialog__text {
  line-height: 1.6;
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.ios-dialog__close {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: right;
  color: #4889da;
  font-weight: 700;
  font-size: 16px;
  background: none;
}

/* 下载提示 */
.download-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.download-mask[hidden] {
  display: none;
}

.download-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  padding: 24px 18px;
  text-align: center;
  max-width: 80vw;
}

.download-modal__msg {
  margin-bottom: 20px;
  color: #222;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
}

.download-modal__ok {
  margin-right: 12px;
  padding: 6px 18px;
  background: linear-gradient(90deg, #3e9adf, #3e9adf);
  color: #fff;
  border-radius: 6px;
  font-size: 18px;
}

.download-modal__cancel {
  padding: 6px 18px;
  background: #eee;
  color: #333;
  border-radius: 6px;
  font-size: 18px;
}
