/* ==========================================================================
   STYLE 1: CYBER/TECH NAVY THEME (`css/dark.css`)
   ========================================================================== */

:root {
  --bg-dark-glow: radial-gradient(circle at 50% 0%, #15254A 0%, #080D1F 80%);
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-card-hover: rgba(58, 134, 255, 0.3);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #3a86ff;
  --accent-blue-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-orange: #ff6b6b;
}

body.dark-theme-body {
  background: #080D1F;
  background-image: var(--bg-dark-glow);
  color: var(--color-text-primary);
  min-height: 100vh;
}

/* --- Typographical Enhancements --- */
.gradient-text {
  background: var(--accent-blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.brand i {
  color: #ffb703;
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.5));
}

.hero-block {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 0.8rem 0;
}

.hero-title-group {
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
  display: inline-block;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  padding-bottom: 0.3rem;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-sub-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2.2rem;
  }
  .hero-sub-title {
    font-size: 1.2rem;
  }
  .poster-section {
    padding: 1.2rem 0;
  }
  .section-title-wrapper {
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   SECTION DEFAULTS
   ========================================================================== */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-main-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.poster-section {
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   SECTION 1: CORE TAKEAWAYS (核心收获)
   ========================================================================== */
.takeaways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .takeaways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .takeaways-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .takeaway-card {
    padding: 0.9rem 1rem;
    gap: 0.8rem;
  }
  .takeaway-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-bottom: 0;
    font-size: 1.1rem;
  }
  .takeaway-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .takeaway-desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

.takeaway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.takeaway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-fast);
}

.takeaway-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.takeaway-card:hover::before {
  background: var(--accent-blue-gradient);
}

.takeaway-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(58, 134, 255, 0.1);
  border: 1px solid rgba(58, 134, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
  margin-bottom: 0;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.takeaway-card:hover .takeaway-icon-box {
  transform: scale(1.1);
  color: #fff;
  background: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.takeaway-content {
  flex: 1;
}

.takeaway-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.takeaway-desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 2: JOURNEY STEPS (四步流程)
   ========================================================================== */
.journey-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
}

.journey-step-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.25rem;
  transition: all var(--transition-normal);
}

.journey-step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Image wrapper styling */
.step-image-wrapper {
  width: 200px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.journey-step-card:hover .step-image-wrapper {
  border-color: rgba(0, 242, 254, 0.3);
  transform: scale(1.02);
}

.journey-step-card:hover .step-img {
  transform: scale(1.06);
}

/* Step Content container */
.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

/* Step Header: Number + Title */
.step-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.journey-step-card:hover .step-number {
  background: var(--accent-cyan);
  color: #080d1f;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Responsive media queries */
@media (max-width: 992px) {
  .journey-timeline-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .step-image-wrapper {
    width: 180px;
    height: 135px;
  }
}

@media (max-width: 576px) {
  .journey-step-card {
    padding: 1rem;
    gap: 1rem;
    border-radius: 16px;
  }
  .step-image-wrapper {
    width: 110px;
    height: 82px;
    border-radius: 10px;
  }
  .step-header {
    gap: 0.5rem;
    margin-bottom: 0.4rem;
  }
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
  }
  .step-title {
    font-size: 1rem;
  }
  .step-desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

/* ==========================================================================
   SECTION 3: SCIENTIFIC COMPARISON (科学对比 - 表格格式)
   ========================================================================== */
.comparison-table-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: hidden; /* No scrollbar on mobile */
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed; /* Force exact 50% split */
}

/* Header styling */
.comparison-table th {
  padding: 1.8rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.col-feynman {
  width: 50%;
  background: rgba(0, 242, 254, 0.02);
  border-bottom: 2px solid rgba(0, 242, 254, 0.3) !important;
}

.col-traditional {
  width: 50%;
  border-bottom: 2px solid rgba(255, 107, 107, 0.2) !important;
}

.th-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.col-feynman .th-content {
  color: #fff;
}
.col-feynman .th-content i {
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4));
}

.col-traditional .th-content {
  color: var(--color-text-secondary);
}
.col-traditional .th-content i {
  color: var(--accent-orange);
}

.recommend-badge-sm {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent-blue-gradient);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(58, 134, 255, 0.3);
}

/* Body styling */
.comparison-table td {
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  text-align: center; /* Center-align content for clean 2-column layout */
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.cell-feynman {
  color: #fff;
  background: rgba(0, 242, 254, 0.015);
}

.cell-feynman strong.highlight-cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

.cell-traditional {
  color: var(--color-text-secondary);
}

/* Table Mobile Responsiveness */
@media (max-width: 768px) {
  .comparison-table th {
    padding: 1.2rem 0.6rem;
    font-size: 1rem;
  }
  .th-content {
    gap: 0.3rem;
  }
  .comparison-table td {
    padding: 1rem 0.6rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .metric-badge {
    font-size: 1.25rem;
    margin-right: 0.2rem;
  }
  .recommend-badge-sm {
    padding: 0.1rem 0.3rem;
    font-size: 0.6rem;
    margin-left: 0.2rem;
  }
}

/* Metric badge within table */
.metric-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-right: 0.4rem;
}

.metric-badge.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.metric-badge.passive {
  color: var(--accent-orange);
}

/* ==========================================================================
   SECTION 4: TEACHERS (教练天团)
   ========================================================================== */
.coaches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.4rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 1.2rem);
  min-width: 320px;
  max-width: 360px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.coach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-fast);
}

.coach-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.coach-card:hover::before {
  background: var(--accent-blue-gradient);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.coach-image-wrapper {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  width: 72px;
  height: 72px;
  background: #111a33;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.coach-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.coach-card:hover .coach-avatar-img {
  transform: scale(1.1);
}

.coach-badge {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(58, 134, 255, 0.4);
  vertical-align: middle;
  margin-left: 0.5rem;
}

.coach-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.coach-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.coach-school {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.coach-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.coach-section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.coach-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.coach-section-title i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.coach-bullets {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.coach-bullets li {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  position: relative;
  padding-left: 0.9rem;
}

.coach-bullets li::before {
  content: "•";
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.coach-text {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .coach-card {
    flex: 1 1 calc(50% - 1.2rem);
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .coach-card {
    flex: 1 1 100%;
    padding: 1.1rem;
  }
}

/* ==========================================================================
   SECTION 5: TESTIMONIALS (用户见证 - 真实微信聊天反馈)
   ========================================================================== */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.feedback-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  aspect-ratio: 620 / 1300; /* Preserve WeChat aspect ratio */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feedback-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(8, 13, 31, 0) 60%, rgba(8, 13, 31, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

.feedback-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Hover effects */
.feedback-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.25);
}

.feedback-card:hover img {
  transform: scale(1.04);
}

/* Overlay hint on hover */
.feedback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 13, 31, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
  gap: 0.5rem;
}

.feedback-card:hover .feedback-overlay {
  opacity: 1;
}

.feedback-overlay i {
  color: var(--accent-cyan);
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  animation: pulseScale 1.5s infinite alternate;
}

.feedback-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(0, 242, 254, 0.2);
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

@keyframes pulseScale {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

/* Media Queries for responsive grid */
@media (max-width: 768px) {
  .feedback-grid {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .feedback-grid {
    gap: 0.6rem;
  }
}

/* ==========================================================================
   LIGHTBOX MODAL SYSTEM
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 9, 23, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Navigation & control buttons */
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.lightbox-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3005;
  font-size: 1.2rem;
}

.lightbox-nav-btn:hover {
  background: var(--accent-cyan);
  color: #080d1f;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.lightbox-prev-btn {
  left: 2rem;
}

.lightbox-next-btn {
  right: 2rem;
}

/* Lightbox caption/counter */
.lightbox-counter {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .lightbox-prev-btn {
    left: 0.5rem;
  }
  .lightbox-next-btn {
    right: 0.5rem;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   FOOTER (网页底部)
   ========================================================================== */
.brand-footer {
  padding: 1.5rem 0;
  text-align: center;
  background: #050917;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
