/* =====================================================
   七决拼读 - 共享样式表
   适用页面：index.html / introduction.html / contact.html
   ===================================================== */

/* ─── Reset ─────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Body 基础 ──────────────────────────────────────── */
body {
  font-family: 'Microsoft YaHei', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 首页背景色 */
body.page-index {
  background-color: #7B3FA0;
}

/* 课程介绍 / 联系我们背景色 */
body.page-intro,
body.page-contact {
  background-color: #fefbff;
}

/* ─── Header ─────────────────────────────────────────── */
header {
  background: #8e72db;
  padding: 20px 60px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  background: url('logo.png') left center no-repeat;
  background-size: auto;
  width: 460px;
  height: 85px;
  margin-top: -5px;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 36px;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 8px 0;
}

nav a:hover {
  color: #FFD700;
}

nav a.active {
  color: #FFD700;
  font-weight: bold;
}

/* ─── Gold Divider ───────────────────────────────────── */
.gold-bar {
  height: 6px;
  background: linear-gradient(90deg, #C8A800, #FFD700, #C8A800);
}

/* ─── Main Container ─────────────────────────────────── */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* introduction.html 允许滚动 */
.main-container.scrollable {
  overflow: auto;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  background: #5e3fb3;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ─── Content Body（introduction / contact 公共包裹层）── */
.content-body {
  font-family: 'Work Sans', sans-serif;
  color: #1a1c1d;
}

/* contact.html 需要 flex 布局撑满剩余空间并限制溢出 */
.page-contact .content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 删除原有的 overflow: hidden，因为它导致了局部滚动 */
}

.content-body * {
  font-family: inherit;
}

/* =====================================================
   index.html 专属样式
   ===================================================== */

/* Hero Section */
.hero {
  position: relative;
  flex: 1;
  background: url('0.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 80px;
  gap: 60px;
  min-height: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 180, 120, 0.15);
}

/* Hero Left */
.hero-left {
  position: relative;
  flex: 1;
  color: #482090;
  transform: translateY(-120px);
}

.hero-left h1 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 18px;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-left .sub1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 14px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-left .sub2 {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Hero Right Card */
.hero-right {
  position: relative;
  flex: 1.1;
  max-width: 640px;
}

.card {
  background: #E8503A;
  border-radius: 12px;
  padding: 28px 28px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-title {
  color: #FFE4B5;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #8B4513 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  letter-spacing: 10px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #fff;
}

/* =====================================================
   contact.html 专属样式
   ===================================================== */

/* contact.html main 元素不需要单独设置 overflow，应由父容器控制滚动 */
.page-contact .content-body > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* 移除原来的 overflow: auto，改由父容器控制滚动 */
}

/* Contact Header */
.contact-header {
  background: linear-gradient(135deg, #6a4bc3 0%, #8e72db 100%);
  border-radius: 12px;
  padding: 160px;
  margin-bottom: 40px;
  color: white;
  box-shadow: 0 10px 30px rgba(106, 75, 195, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: rotate(30deg);
}

.contact-header-content {
  position: relative;
  z-index: 1;
}

.contact-header-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(255, 212, 60, 0.3);
  color: #ffd889;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-header-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-highlight {
  color: #ffd889;
  position: relative;
}

.contact-header-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
}

/* Map Container */
.map-container-custom {
  border-radius: 12px;
  overflow: hidden;
  height: 256px;
  position: relative;
}

.map-info {
  background-color: white;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.map-info-text {
  color: #5230a9;
  font-size: 12px;
  font-weight: bold;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}