/* styles.css — 黑底 + 红色按钮 + 大字版 */
/* 设计参考: tptraders.com.my */

:root {
  --primary: #e50914;
  --accent: #ff1e2d;
  --dark: #ffffff;
  --muted: #bbbbbb;
  --bg: #000000;
  --card: #111111;
  --glass: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --max-width: 1200px;
  --radius: 12px;
  --gap: 20px;

  font-family: "Segoe UI", Roboto, "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #222 0%, #000 100%);
  color: var(--dark);
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header { position: relative; z-index: 40; }
.hero-banner { width: 100%; height: auto; object-fit: cover; display: block; }
.hero-overlay { position: relative; display: flex; gap: 20px; padding: 40px 0; margin-top: -200px; }
.hero-left {
  flex: 1; color: #fff; padding: 40px;
  background: linear-gradient(135deg, rgba(229,9,20,0.95), rgba(111,6,12,0.85));
  border-radius: 16px; box-shadow: var(--shadow);
}
.hero-card { width: 320px; align-self: flex-end; }

/* 标题层级 */
h1,h2,h3,h4,h5 { margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 56px; line-height: 1.2; }
h2 { font-size: 40px; line-height: 1.3; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
p { font-size: 20px; margin: 0 0 1.2em; line-height: 1.8; }

.main-headline { font-size: 56px; margin-bottom: 12px; font-weight: 700; }
.subheadline { margin: 0 0 20px; opacity: 0.95; font-size: 22px; }

/* 视频 */
.poster-wrap { max-width: 640px; margin: 20px 0; }
.poster-wrap iframe {
  width: 100%; height: 360px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* offer */
.offer { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.urgency-title { font-weight: 700; font-size: 20px; }
.countdown { display: flex; gap: 8px; flex-wrap: wrap; font-size: 20px; }
.cd-item { background: rgba(255,255,255,0.1); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.price { display: flex; gap: 12px; align-items: baseline; margin-top: 8px; }
.price-note { background: var(--primary); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.price-old { color: rgba(255,255,255,0.7); text-decoration: line-through; }

/* CTA 按钮 */
.hero-ctas { display: flex; gap: 14px; margin-top: 20px; }
.btn {
  display: inline-block; text-decoration: none; padding: 14px 26px;
  border-radius: 10px; font-weight: 700; font-size: 20px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(229,9,20,0.3); }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: #fff; color: #000; }
.btn.big { font-size: 22px; padding: 16px 32px; }

/* 卡片 */
.card { background: var(--card); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.core-card { padding: 24px; }

/* section */
.section { padding: 64px 0; }
.section-title { font-size: 40px; margin: 0 0 24px; color: var(--dark); text-align: center; }
.muted { color: var(--muted); text-align: center; margin-bottom: 18px; }

/* 课程卡片 2列布局 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  margin-top: 18px;
}

/* 导师栏 2列布局 */
.instructor-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.instructor { text-align: left; padding: 24px; }
.instructor-photo { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; }
.promo-video iframe {
  width: 100%; height: 400px; border-radius: 12px;
  margin-top: 12px; box-shadow: var(--shadow);
}

/* Testimonials 轮播 */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%; /* 一次显示一个（手机体验好） */
  box-sizing: border-box;
  margin: 0 10px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  z-index: 10;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }


/* Modal 报名 */
.modal {
  display: none; position: fixed; z-index: 1000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center; align-items: center;
}
.modal-content {
  background: var(--card); padding: 30px; border-radius: 12px;
  width: 90%; max-width: 500px; color: var(--dark);
}
.modal-close { float: right; font-size: 28px; cursor: pointer; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input { padding: 10px; border-radius: 6px; border: 1px solid #444; }

/* footer */
.site-footer { padding: 24px 0; background: #000; color: var(--muted); text-align: center; font-size: 14px; }

/* 响应式 */
@media (max-width: 980px) {
  .hero-overlay { flex-direction: column; margin-top: -160px; }
  .cards-grid { grid-template-columns: 1fr; }
  .instructor-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-headline { font-size: 36px; }
  .poster-wrap iframe { height: 220px; }
  .promo-video iframe { height: 300px; }
  .hero-right {max-width:100% !important}
  .final-cta {padding:20px}
  .hero-left {margin-top:100px}
  .cd-item {font-size:0.7rem}
  .card-body{text-align:center}
  .center-cta  {text-align: center;}
	.center-cta a {display: inline-block; /* 保持按钮形状 */}
	.testimonial p{font-size:0.7rem;}
	.testimonial {padding: 0px 20px 0 20px;
        height: 100px;}
	.btn {font-size:0.8rem} 
}

/* ✅ 动画效果 */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-up { opacity: 0; transform: translateY(40px); transition: all .9s ease; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

.zoom-in { opacity: 0; transform: scale(0.9); transition: all .8s ease; }
.zoom-in.visible { opacity: 1; transform: scale(1); }

.animated-card { transition: transform .3s ease, box-shadow .3s ease; }
.animated-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }

/* ✅ Lightbox Modal */
.modal {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); z-index: 9999;
  justify-content: center; align-items: center;
}
.modal-content {
  background: #111; padding: 20px; border-radius: 12px;
  max-width: 900px; width: 95%; position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.modal-content iframe { width: 100%; border-radius: 8px; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  font-size: 28px; background: none; border: none; color: #fff;
  cursor: pointer; transition: color .3s;
}
.modal-close:hover { color: var(--primary); }

img {max-width: 100%;border-radius:16px}
.value-text {padding-top:50px}
.hero-right {max-width:35%}
.final-cta {text-align:center}
#value {text-align:center}
strong {font-weight:800}


.center-cta {
  text-align: center;
  margin-top: 50px;
}

/* 原有样式可保留，这里只新增动画 */
.btn-register {
  display: inline-block;
  animation: floatUpDown 2s ease-in-out infinite;
}

/* 上下摆动动画 */
@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* 向上移动10px，可调整幅度 */
  }
  100% {
    transform: translateY(0);
  }
}

