:root {
  --green: #7C9473;
  --brown: #A86F4D;
  --sand: #B5A273;
  --apricot: #E3C9A7;
  --sage: #6E8E82;
  --coral: #B1725F;
  --brick: #D14D33;
  --text: #4A4A43;
  --text-light: #7A7A70;
  --bg: #F5F2E9;
  --white: #FFFDF8;
  --shadow-sm: 0 2px 8px rgba(74, 74, 67, 0.06);
  --shadow-md: 0 4px 16px rgba(74, 74, 67, 0.08);
  --radius: 16px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124, 148, 115, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 65%, rgba(168, 111, 77, 0.05) 0%, transparent 70%),
    var(--bg);
}

.hero-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.hero-back:hover {
  color: var(--green);
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin: 0.25rem 0 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.branches {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(74, 74, 67, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-left: 4px solid var(--green);
}

a.course-card {
  cursor: pointer;
}

a.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 148, 115, 0.25);
}

.course-card .course-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.course-card .course-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.course-card .course-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.course-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.75rem;
}

.course-meta li {
  font-size: 0.78rem;
  color: var(--sage);
  white-space: nowrap;
}

.course-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15em 0.7em;
  border-radius: 999px;
  align-self: flex-start;
}

.badge-online {
  background: rgba(124, 148, 115, 0.12);
  color: var(--green);
}

.badge-planning {
  background: rgba(181, 162, 115, 0.12);
  color: var(--sand);
}

.course-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
}

/* ─── Course Detail ─── */
.course-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  background: #000;
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-height: 70vh;
}

.course-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(74, 74, 67, 0.06);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.course-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.course-info .tagline {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 1rem;
}

.course-info .desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.course-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(74, 74, 67, 0.08);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.meta-item .meta-icon {
  font-size: 1.1rem;
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(74, 74, 67, 0.08);
}

.site-footer a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 700px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .course-card {
    padding: 1.5rem 1.25rem;
  }
}
