/* 匠将通·和光颐养广西覃塘培训基地 — 静态介绍页 */

:root {
  --color-primary: #0f4c81;
  --color-accent: #1a6bb5;
  --color-title: #0b2742;
  --color-text: #5a6b7d;
  --color-bg: #f0f5fa;
  --color-border: #d7e4f2;
  --color-cta: #c4783a;
  --color-cta-hover: #a8622e;
  --color-white: #ffffff;
  --max-w: 1120px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(15, 76, 129, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 76, 129, 0.97);
  color: var(--color-white);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(11, 39, 66, 0.25);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.72rem;
  opacity: 0.8;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0b2742;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 39, 66, 0.92) 0%,
    rgba(15, 76, 129, 0.78) 48%,
    rgba(15, 76, 129, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 64px;
  max-width: 640px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: none;
  opacity: 0.9;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-light:hover {
  background: #e8f1fa;
  color: var(--color-primary);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg);
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-label {
  display: inline-block;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  color: var(--color-title);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  font-size: 1rem;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-border);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-body h3 {
  margin: 0 0 12px;
  color: var(--color-title);
  font-size: 1.25rem;
}

.split-body p {
  margin: 0 0 14px;
}

.split-body p:last-child {
  margin-bottom: 0;
}

.split-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 107, 181, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Advantage cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(15, 76, 129, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--color-title);
  font-size: 1.02rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Facility magazine rows */
.facility-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.facility-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.facility-row:nth-child(even) .facility-media {
  order: 2;
}

.facility-row:nth-child(even) .facility-copy {
  order: 1;
}

.facility-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #c5d8ec;
}

.facility-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.facility-copy .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.facility-copy h3 {
  margin: 0 0 10px;
  color: var(--color-title);
  font-size: 1.2rem;
}

.facility-copy p {
  margin: 0;
}

/* Programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.program-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}

.program-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f1fa, #d0e4f5);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.program-card h3 {
  margin: 0 0 8px;
  color: var(--color-title);
  font-size: 1.05rem;
}

.program-card p {
  margin: 0;
  font-size: 0.9rem;
}

.direction-bar {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.direction-bar strong {
  color: var(--color-title);
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  background: linear-gradient(135deg, #0b3a66 0%, var(--color-primary) 55%, var(--color-accent) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.6rem;
}

.contact-card > p {
  margin: 0 0 22px;
  opacity: 0.92;
}

.contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  gap: 2px;
}

.contact-list .label {
  font-size: 0.8rem;
  opacity: 0.75;
}

.contact-list a,
.contact-list .value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-aside {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 22px;
}

.contact-aside h3 {
  margin: 0 0 12px;
  color: var(--color-title);
}

.contact-aside p {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.contact-aside ul {
  margin: 0;
  padding-left: 1.15em;
}

.contact-aside li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: #0b2742;
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer strong {
  color: #fff;
}

/* Mobile nav panel */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #0c3d6b;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .card-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .facility-row,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .facility-row:nth-child(even) .facility-media,
  .facility-row:nth-child(even) .facility-copy {
    order: initial;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 40px 0 48px;
  }

  .card-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }

  .contact-card {
    padding: 24px 18px;
  }
}

/* Promo video — cinematic stage on PC */
#promo[hidden],
.nav a[hidden] {
  display: none !important;
}

.promo-section {
  background: linear-gradient(165deg, #0b2742 0%, #0f4c81 58%, #0b3a66 100%);
  color: rgba(255, 255, 255, 0.88);
}

.promo-section .section-label {
  color: #9fd0ff;
}

.promo-section .section-head h2 {
  color: #fff;
}

.promo-section .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.promo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.promo-layout.is-multiple {
  grid-template-columns: minmax(0, 1.7fr) 300px;
}

.promo-player-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #07192c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #07192c;
}

.promo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(
    180deg,
    rgba(7, 25, 44, 0.12) 0%,
    rgba(7, 25, 44, 0.42) 100%
  );
  color: #fff;
}

.promo-player-wrap.is-playing .promo-play {
  opacity: 0;
  pointer-events: none;
}

.promo-play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 10px 28px rgba(196, 120, 58, 0.45);
  position: relative;
}

.promo-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.promo-play:hover .promo-play-icon {
  background: var(--color-cta-hover);
}

.promo-caption {
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.promo-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.promo-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.promo-item.is-active {
  border-color: rgba(196, 120, 58, 0.85);
  background: rgba(196, 120, 58, 0.18);
}

.promo-item-thumb {
  width: 112px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b3a66;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.promo-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .promo-layout.is-multiple {
    grid-template-columns: 1fr;
  }

  .promo-list {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
  }

  .promo-item {
    flex: 0 0 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }
}
