@charset "utf-8";
:root {
  --accent: #c8000a;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.64);
  --canvas: #f7f5f0;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  padding-top: 55px;
  box-sizing: border-box;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}
.header-inner {
  width: min(1480px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 48px;
}
.brand img { width: 132px; height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 16px;
}
.main-nav > a,
.main-nav > .nav-group > a {
  position: relative;
  color: #161616;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.main-nav > a::after,
.main-nav > .nav-group > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #161616;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}
.main-nav > a:hover::after,
.main-nav > .nav-group:hover > a::after,
.main-nav > a.current::after,
.main-nav > .nav-group > a.current::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-group { position: relative; }
.nav-group > a { padding-right: 18px; }
.nav-group::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  z-index: 19;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 156px;
  padding: 10px 10px 10px;
  border-radius: 0 0 12px 12px;
  background: rgba(200, 0, 10, 0.96);
  box-shadow: 0 10px 30px rgba(200, 0, 10, 0.18);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  z-index: 20;
}
.nav-group:hover .sub-menu,
.nav-group:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.sub-menu a {
  display: block;
  color: #fff;
  text-align: center;
  line-height: 34px;
  font-size: 14px;
  border-radius: 6px;
}
.sub-menu a:hover { background: rgba(255, 255, 255, 0.16); }
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(200, 0, 10, 0.18);
  background: rgba(200, 0, 10, 0.06);
  color: var(--accent);
}

.teach-page { padding-top: 92px; }
.hero-shell {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.hero-mask {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.08));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  text-align: center;
  padding: 140px 0 106px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: 2px;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 24px);
  letter-spacing: 4px;
  line-height: 1.9;
  font-weight: 400;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-summary {
  max-width: 900px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.9);
}

.section-tabs {
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.section-tab {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #333;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.78);
  transition: all 0.25s ease;
}
.section-tab:hover,
.section-tab.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(200, 0, 10, 0.22);
}

.teach-panel {
  position: relative;
  padding: 60px 0;
  display: none;
  scroll-margin-top: 100px;
}
.teach-panel.tab-active { display: block; }
.section-inner {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
  padding: 56px 0 78px;
  position: relative;
  overflow: visible;
}
.section-head::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  bottom: -50px;
  opacity: 0.46;
  pointer-events: none;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section-head > * { position: relative; z-index: 1; }
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: 6px;
}
.section-head p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 2px;
}
.section-head-commercial::before { background-image: url('../../images/life/07.png'); }
.section-head-home::before { background-image: url('../../images/life/08.png'); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 46px;
}
.video-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18, 26, 31, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(200, 0, 10, 0.14);
}
.video-image {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
}
.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(200, 0, 10, 0.82);
  box-shadow: 0 12px 24px rgba(200, 0, 10, 0.28);
}
.play-icon::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
}
.video-text {
  padding: 24px 22px 28px;
}
.video-text h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #1a1a1a;
}
.video-text p {
  margin: 0;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  min-height: 54px;
}
.video-text strong {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 15px;
}
.panel-home { background: linear-gradient(180deg, #faf6f2 0%, #fff7f3 100%); }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.video-modal.show { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.modal-content {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 5vh auto 0;
  padding: 18px 18px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 30px;
  line-height: 42px;
  color: #333;
  cursor: pointer;
}
.modal-video {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.modal-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}
#modalTitle {
  margin: 16px 0 0;
  text-align: center;
  font-size: 22px;
  letter-spacing: 1px;
}

.site-footer {
  margin-top: 58px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px min(28px, 2vw) 0;
  width: min(1400px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.contact-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #555;
  line-height: 2;
  font-size: 14px;
}
.qr-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}
.qr-list li {
  width: 96px;
  text-align: center;
  color: #666;
  font-size: 13px;
}
.qr-list img {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
}
.copy {
  width: min(1400px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #777;
  font-size: 13px;
  padding-bottom: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .page-header { height: 72px; }
  .teach-page { padding-top: 72px; }
  .header-inner { width: min(1480px, calc(100% - 24px)); }
  .brand img { width: 110px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 16px;
    width: 240px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    gap: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  }
  .main-nav.open > a,
  .main-nav.open > .nav-group > a {
    width: 100%;
    padding: 8px 0;
  }
  .main-nav.open .nav-group { width: 100%; }
  .main-nav.open .sub-menu {
    position: static;
    transform: none;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 6px 0 10px;
    background: rgba(200, 0, 10, 0.88);
    box-shadow: none;
  }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-shell { min-height: 420px; }
  .hero-content { padding: 112px 0 88px; }
  .hero-summary { font-size: 15px; }
  .section-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-inline: 16px;
  }
  .section-tab { min-width: 110px; }
  .teach-panel { padding: 48px 0; }
  .section-inner { width: min(1260px, calc(100% - 24px)); }
  .video-grid { grid-template-columns: 1fr; }
  .video-image { height: 220px; }
  .video-text h3 { font-size: 18px; }
  .site-footer { width: min(1400px, calc(100% - 24px)); }
  .copy { width: min(1400px, calc(100% - 24px)); }
  .modal-content { margin-top: 8vh; }
}