/* ===== 基础重置样式 ===== */
html,
body,
div,
a,
img {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  line-height: 1;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: PingFang SC;
}

/* ===== 背景模糊效果 ===== */
.blur-mask {
  position: fixed;
  left: 0;
  top: 62px;
  z-index: -1;
  width: 100%;
  height: 150%;
  background: rgba(0, 0, 0, 0.7);
}

.blur-bg {
  width: 100%;
  position: absolute;
  z-index: -1;
  top: 62px;
  filter: blur(40px);
  object-fit: cover;
  height: calc(100vh - 100px);
}

/* ===== 文本容器样式 ===== */
.text-container {
  padding: 0 15px;
  position: relative;
}

.text-container:before {
  content: "";
  display: block;
  position: absolute;
  top: -1.67rem;
  left: 0;
  z-index: -1;
  width: 100%;
  height: calc(100% + 1.67rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    #000000 4.32rem,
    #000000 100%
  );
}

.title.text-md {
  font-size: 24px;
  line-height: 35px;
}

.title + .body {
  margin-top: 16px;
}

.title-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

/* ===== 正文样式 ===== */
.body.text-sm {
  font-size: 16px;
  line-height: 22px;
}

.body-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
}

/* ===== 字体样式 ===== */
.font-bold {
  font-weight: 600;
}

/* ===== 文本对齐 ===== */
.align-center {
  text-align: center;
}

/* ===== 文本大小（通用） ===== */
.text-sm {
  font-size: 16px;
  line-height: 24px;
}

.text-md {
  font-size: 19px;
  line-height: 29px;
}

/* ===== 视频封面样式 ===== */
div[component].video-cover {
  margin: 0;
}

.video-cover {
  position: relative;
  height: calc(100vh - 182px);
  overflow: hidden;
}

.video-cover:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 2.32rem;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.play-icon {
  width: 64px;
  height: 64px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ===== 头部导航栏样式 ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 8px;
  padding: 12px 20px;
  height: 62px;
  box-sizing: border-box;
  background: rgba(7, 51, 41, 1) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header .flex-1 {
  overflow: hidden;
}

.header .subtitle {
  text-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 18px;
  margin-top: 4px;
}

.header .btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  color: #fff;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
  transition: all 0.3s ease;
}

.header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
}

/* ===== 按钮样式 ===== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ===== 图标样式 ===== */
.logo-icon {
  max-width: 60px;
  max-height: 60px;
}

.brand-logo {
  display: block;
  vertical-align: middle;
}

.hand-icon {
  width: 87px;
  height: 87px;
  position: absolute;
  top: 0;
  right: -10px;
}

/* ===== 底部CTA按钮样式 ===== */
.bottom-cta {
  display: flex;
  align-items: center;
  column-gap: 8px;
  padding: 0 20px;
  height: 48px;
  box-sizing: border-box;
  font-size: 16px;
  margin-top: 0 !important;
}

.bottom-cta .btn {
  height: 56px;
  width: 100%;
  border-radius: 28px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 30px rgba(79, 172, 254, 0.5);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.bottom-cta .btn:active {
  transform: scale(0.98);
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.bottom-cta-topreel {
  height: 124px;
  padding: 16px 16px 32px;
}

.bottom-cta-topreel .hand-icon {
  animation: hand-breath 1s linear infinite;
}

.bottom-cta-topreel.breathing .btn {
  animation: none;
}

/* ===== 布局工具类 ===== */
.flex-1 {
  flex: 1;
}

.relative {
  position: relative;
}

.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  margin-top: 0 !important;
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
  margin-top: 0 !important;
}

.fixed-bottom-content {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 124px;
  z-index: 999;
}

/* ===== 动画效果 ===== */
.breathing .btn {
  animation: breath 1s linear infinite;
}

@keyframes hand-breath {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

@keyframes breath {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}
