* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f6f6;
  color: #2a2a2a;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

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

button {
  border: 0;
  font: inherit;
}

#app {
  max-width: 750px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 50px 0 0;
  background: #fff;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(100%, 750px);
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 4px 14px rgba(178, 28, 42, 0.12);
}

.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 44px;
  align-items: center;
  background: #fff;
}

.nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.nav a.active {
  color: #b51f2f;
}

.nav a.active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #b51f2f;
}

.home-hero {
  padding: 0;
  background: #fff;
}

.title-block p,
.section-head p {
  margin: 0 0 8px;
  color: #b51f2f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.consult-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #b51f2f;
  font-weight: 900;
}

.consult-link.block {
  display: flex;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #d73545, #b51f2f);
  color: #fff;
}

.home-hero > img {
  display: block;
  width: 100%;
  height: auto;
}

.home-about,
.worry-free,
.mentor-section,
.trust-section,
.page-section {
  padding: 30px 18px;
}

.home-about,
.mentor-section,
.page-section {
  background: #fff;
}

.title-block,
.section-head {
  text-align: center;
}

.title-block h2,
.section-head h1 {
  margin: 0;
  color: #2a2a2a;
  font-size: 28px;
  line-height: 1.25;
}

.section-head span,
.home-about > p {
  display: block;
  margin: 14px auto 0;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}

.home-about > p {
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

.about-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.about-image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.worry-free {
  background: linear-gradient(180deg, #d73545 0%, #8d1322 100%);
}

.worry-free .title-block h2,
.worry-free .title-block p {
  color: #fff;
}

.feature-list,
.mentor-grid,
.comment-list,
.course-grid,
.teacher-grid,
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.feature-list article,
.mentor-grid article,
.comment-list article,
.course-card,
.teacher-card,
.info-panel,
.about-copy,
.contact-list a {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(178, 28, 42, 0.08);
}

.feature-list article,
.mentor-grid article,
.comment-list article,
.info-panel,
.about-copy,
.contact-list a {
  padding: 16px;
}

.feature-list b {
  color: #b51f2f;
  font-size: 22px;
}

.feature-list h3,
.mentor-grid h3,
.comment-list h3,
.course-card h2,
.teacher-card h2,
.info-panel h2,
.about-copy h2 {
  margin: 8px 0;
  color: #2a2a2a;
  font-size: 21px;
  line-height: 1.3;
}

.feature-list p,
.mentor-grid p,
.comment-list p,
.course-card p,
.teacher-card p,
.info-panel p,
.about-copy p {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.75;
}

.trust-section {
  background: #f6f6f6;
}

.comment-list span,
.course-card strong,
.teacher-card strong,
.contact-list span {
  display: block;
  margin-top: 4px;
  color: #b51f2f;
  font-size: 13px;
  font-weight: 800;
}

.home-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.mentor-photo,
.teacher-banner {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 8px;
}

.mentor-photo {
  box-shadow: 0 10px 24px rgba(178, 28, 42, 0.12);
}

.course-card,
.teacher-card {
  overflow: hidden;
}

.course-card img,
.teacher-card img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top;
}

.course-card div,
.teacher-card div {
  padding: 16px;
}

.main-consult {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #d73545, #b51f2f);
  color: #fff;
  font-weight: 800;
}

.teacher-page {
  padding-top: 0;
}

.contact-list a {
  display: block;
}

.contact-list b {
  display: block;
  color: #2a2a2a;
  font-size: 16px;
}

.contact-list span {
  word-break: break-all;
}
