:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #251d1b;
  --muted: #8d706b;
  --line: #f2ddd9;
  --primary: #ff6f61;
  --primary-dark: #df4f44;
  --primary-soft: #ffffff;
  --coral: #ff6f61;
  --warm: #ffb199;
  --shadow: 0 14px 34px rgba(165, 74, 64, 0.12);
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.overlay-header {
  position: fixed;
  width: 100%;
  height: 78px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  color: #fff;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.overlay-header.is-scrolled {
  height: 64px;
  border-bottom-color: var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(165, 74, 64, 0.08);
  color: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 22px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 111, 97, .42);
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.header-phone:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
}

.consult-phone-copy span {
  display: block;
  white-space: nowrap;
}

.overlay-header:not(.is-scrolled) .header-phone {
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

.overlay-header:not(.is-scrolled) .header-inner {
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}

.brand-logo {
  display: block;
  width: 138px;
  height: 42px;
  object-fit: contain;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow-y: auto;
  background: #fff;
  color: #1d2430;
}

.mobile-menu-top {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f5;
}

.mobile-menu-close,
.mobile-menu-search {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: #1d2430;
}

.mobile-menu-close::before {
  transform: rotate(45deg);
}

.mobile-menu-close::after {
  transform: rotate(-45deg);
}

.mobile-menu-search::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid #1d2430;
  border-radius: 50%;
}

.mobile-menu-search::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #1d2430;
  transform: translate(12px, 12px) rotate(45deg);
}

.mobile-menu-brand {
  display: flex;
  justify-content: center;
}

.mobile-menu-brand .brand-logo {
  width: 132px;
  height: 42px;
}

.mobile-menu-list {
  display: grid;
  padding: 18px 18px 44px;
}

.mobile-menu-list a,
.mobile-menu-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid #edf1f5;
  color: #1d2430;
  font-size: 1.06rem;
  font-weight: 900;
  list-style: none;
}

.mobile-menu-list summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-list summary::after {
  content: "+";
  color: #1d2430;
  font-size: 1.45rem;
  line-height: 1;
}

.mobile-menu-list details[open] summary::after {
  content: "-";
}

.mobile-menu-list details a,
.mobile-menu-list details button {
  min-height: 44px;
  margin-left: 18px;
  border: 0;
  border-bottom: 1px solid #f3f5f8;
  padding: 0;
  color: #5d6878;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
}

.mobile-menu-list details button {
  display: flex;
  align-items: center;
  width: calc(100% - 18px);
  cursor: pointer;
}

.mobile-menu-login {
  color: var(--primary) !important;
}

.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu-open .mobile-menu-panel {
  display: block;
}

.overlay-header:not(.is-scrolled) .brand-logo {
  width: 156px;
  height: 48px;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
  background: var(--coral);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: var(--primary-dark);
  font-size: 1.22rem;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  flex: 1;
  color: #3a2d2a;
  font-size: 0.98rem;
  font-weight: 700;
}

.main-nav > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
}

.overlay-header:not(.is-scrolled) .main-nav > a,
.overlay-header:not(.is-scrolled) .nav-item > a {
  min-height: 78px;
}

.main-nav a:hover,
.nav-item:hover > a {
  color: var(--primary);
}

.main-nav > a.nav-current {
  position: relative;
  color: var(--primary);
}

.main-nav > a.nav-current::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 10px;
  left: 2px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.overlay-header .main-nav,
.overlay-header .login-button {
  color: #fff;
}

.overlay-header .main-nav a:hover,
.overlay-header .nav-item:hover > a {
  color: #ffe2dc;
}

.overlay-header.is-scrolled .main-nav,
.overlay-header.is-scrolled .login-button {
  color: #3a2d2a;
}

.overlay-header.is-scrolled .main-nav a:hover,
.overlay-header.is-scrolled .nav-item:hover > a {
  color: var(--primary);
}

.region-menu {
  flex: 0 0 auto;
}

.region-current {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.overlay-header:not(.is-scrolled) .region-current {
  min-height: 78px;
}

.region-current::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.region-current:hover,
.region-menu:hover .region-current {
  color: var(--primary);
}

.overlay-header:not(.is-scrolled) .region-current:hover,
.overlay-header:not(.is-scrolled) .region-menu:hover .region-current {
  color: #ffe2dc;
}

.region-dropdown {
  width: 116px;
}

.region-dropdown button {
  border: 0;
  padding: 10px 12px;
  color: #334155;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transform-origin: left center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.region-dropdown button:hover,
.region-dropdown button:focus,
.region-dropdown button.is-active {
  color: var(--primary-dark);
  outline: none;
  transform: scale(1.12);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.region-menu.has-dropdown > a::after {
  display: none;
}

.dropdown {
  position: absolute;
  top: 58px;
  left: 50%;
  display: grid;
  width: 132px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.overlay-header:not(.is-scrolled) .dropdown {
  top: 70px;
}

.wide-dropdown {
  width: 220px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.95rem;
  transform-origin: left center;
  transition: color 0.18s ease, transform 0.18s ease, font-size 0.18s ease;
}

.dropdown a:hover,
.dropdown a:focus {
  color: var(--primary-dark);
  background: transparent;
  transform: scale(1.12);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 800;
}

.overlay-header .login-button {
  border-color: rgba(255, 255, 255, 0.88);
}

.overlay-header.is-scrolled .login-button {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #251d1b;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateX(100%);
  transition: transform 0.7s ease;
}

.hero-slide.is-active {
  transform: translateX(0);
  z-index: 1;
}

.hero-slide.is-prev {
  transform: translateX(-100%);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-arrow {
  position: absolute;
  top: 52%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-arrow.prev {
  left: 52px;
}

.slider-arrow.next {
  right: 52px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.slider-dots .is-active {
  background: transparent;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
  position: relative;
  z-index: 2;
}

.entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 106px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.entry-card:hover {
  transform: translateY(-2px);
}

.entry-copy strong,
.entry-copy small {
  display: block;
}

.entry-copy strong {
  color: #253044;
  font-size: 1.18rem;
}

.entry-copy small {
  margin-top: 6px;
  color: var(--muted);
}

.entry-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--warm));
  box-shadow: 0 12px 26px rgba(255, 111, 97, 0.28);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.86fr) minmax(280px, 0.86fr);
  gap: 24px;
  margin-top: 42px;
}

.panel,
.promo-card,
.course-panel {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.course-panel {
  padding: 28px 30px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head h2,
.panel h2 {
  margin: 0;
  color: #1b263b;
  font-size: 1.55rem;
}

.panel-head h2 span {
  margin-left: 10px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.panel-head a {
  color: #5c687a;
}

.panel-head a::after {
  content: "›";
  margin-left: 10px;
  font-size: 1.4rem;
}

.news-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: news;
}

.news-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #332521;
}

.news-list li::before {
  counter-increment: news;
  content: counter(news) ".";
  color: var(--coral);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 900;
}

.news-list time {
  color: #a2acba;
}

.consult-panel {
  background: #fff;
}

.consult-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 9px;
  background: #fff;
}

.consult-card strong,
.consult-card small {
  display: block;
}

.consult-card small {
  margin-top: 6px;
  color: var(--muted);
}

.consult-card b {
  color: var(--primary);
  font-size: 1.6rem;
}

.mini-form {
  display: grid;
  gap: 10px;
}

.mini-form input,
.mini-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.mini-form textarea {
  min-height: 72px;
  resize: vertical;
}

.mini-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.promo-card {
  display: grid;
  align-content: center;
  min-height: 230px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff8b7f 48%, #ffb199);
}

.promo-card span {
  width: max-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 900;
}

.promo-card strong {
  margin-top: 12px;
  font-size: 2rem;
  line-height: 1.1;
}

.promo-card small {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.course-area {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 42px;
  margin-bottom: 72px;
}

.course-panel {
  background: #fff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  color: #536072;
  font-weight: 700;
}

.tabs span {
  padding: 9px 18px;
  border-radius: 8px;
}

.tabs .active {
  color: var(--primary);
  background: var(--primary-soft);
}

.course-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.course-card,
.service-grid a {
  display: grid;
  align-content: center;
  min-height: 110px;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
}

.course-card strong,
.course-card small {
  display: block;
}

.course-card strong {
  color: #27364f;
  font-size: 1.14rem;
}

.course-card small {
  margin-top: 8px;
  color: var(--muted);
}

.service-grid a {
  color: #24334a;
  font-size: 1.14rem;
  font-weight: 800;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #fff;
}

.sub-hero::after,
.course-store-hero::after {
  content: "";
  position: absolute;
  top: 30px;
  right: max(28px, calc((100vw - 1440px) / 2 + 24px));
  width: clamp(140px, 12vw, 230px);
  aspect-ratio: 2.6 / 1;
  background: url("../images/xueerzhiben.png") center / contain no-repeat;
  pointer-events: none;
}

.sub-hero .container,
.course-store-hero .container {
  position: relative;
  z-index: 1;
}

.sub-hero h1 {
  margin: 0;
  color: #1c2638;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.sub-hero p {
  max-width: 720px;
  color: #5c687a;
  font-size: 1.12rem;
}

.content-section {
  padding: 52px 0 76px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.module-card {
  min-height: 190px;
  padding: 26px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.module-card h2 {
  margin: 0 0 10px;
  color: #1c2638;
}

.module-card p {
  color: var(--muted);
}

.campus-card-grid,
.campus-detail-grid,
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.campus-card,
.media-placeholder,
.license-card {
  display: grid;
  align-content: center;
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.campus-card strong,
.media-placeholder strong,
.license-card strong {
  color: var(--primary);
  font-size: 1.28rem;
}

.campus-card span,
.media-placeholder span,
.license-card span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.campus-card:hover {
  transform: translateY(-2px);
}

.campus-list-section {
  background: #fff;
}

.campus-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campus-list-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  align-content: stretch;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
}

.campus-card-media {
  display: block;
  min-height: 210px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff9a8f);
  font-size: 1.35rem;
  font-weight: 900;
}

.campus-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.campus-card-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
}

.campus-card-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.campus-card-title {
  color: var(--primary);
  font-size: 1.28rem;
  font-weight: 900;
}

.campus-card-copy p {
  margin: 0;
  color: #657085;
  font-size: 0.94rem;
  line-height: 1.7;
}

.campus-card-copy .map-link {
  color: #202736;
  font-weight: 800;
}

.media-placeholder {
  min-height: 260px;
  border-style: dashed;
  background: #fff;
}

.campus-reference-photo {
  position: relative;
  grid-column: span 2;
  min-height: 330px;
  overflow: hidden;
  margin: 0;
  border-radius: 22px;
  background: #f5f5f7;
  box-shadow: var(--shadow);
}

.campus-reference-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.campus-reference-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: rgba(29, 29, 31, .72);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .campus-reference-photo {
    grid-column: 1 / -1;
  }
}

.text-link {
  width: max-content;
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 900;
}

.course-store-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 48px;
  text-align: center;
  background: #fff;
}

.course-store-hero h1 {
  margin: 8px 0 12px;
  color: #1d1d1f;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.course-store-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #6e6e73;
  font-size: 1.18rem;
}

.store-eyebrow {
  color: var(--primary);
  font-weight: 900;
}

.course-store {
  padding: 42px 0 76px;
}

.product-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 42px;
  border-radius: 999px;
  background: #e8e8ed;
}

.product-tabs a {
  padding: 13px 28px;
  border-radius: 999px;
  color: #424245;
  font-weight: 900;
}

.product-tabs .is-active {
  color: #fff;
  background: #1d1d1f;
}

.apple-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.course-category + .course-category {
  margin-top: 62px;
}

.course-category-head {
  margin-bottom: 22px;
}

.course-category-head span {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
}

.course-category-head h2 {
  margin: 6px 0 0;
  color: #1d1d1f;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.public-course-grid {
  grid-template-columns: 1fr;
  overflow: visible;
}

.public-course-card {
  justify-self: start;
  width: 100%;
  grid-template-columns: minmax(340px, 520px) minmax(320px, 1fr);
  column-gap: clamp(36px, 7vw, 110px);
  align-items: center;
  justify-items: start;
  text-align: left;
  padding: 0 0 28px;
}

.public-course-card .course-art {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.public-course-card > :not(.course-art) {
  grid-column: 2;
  width: min(560px, 100%);
}

.public-course-card .product-tag {
  margin-top: 0;
}

.public-course-card > p:not(.product-tag) {
  min-height: auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.major-group + .major-group {
  margin-top: 42px;
}

.major-group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.major-group-title strong {
  color: #1d1d1f;
  font-size: 1.45rem;
}

.major-group-title small {
  color: #6e6e73;
  font-size: 1rem;
}

.major-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.major-side-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 34, 41, 0.06);
}

.major-side-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #525866;
  font-size: 0.92rem;
  font-weight: 800;
}

.major-side-nav a:hover {
  color: #fff;
  background: var(--primary);
}

.major-content {
  min-width: 0;
}

.course-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 12px;
}

.hot-course-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.course-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 111, 97, 0.22);
  border-radius: 14px;
  color: #1f2633;
  background: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 26px rgba(255, 111, 97, 0.08);
}

.course-chip:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.course-chip.hot {
  min-height: 66px;
  color: var(--primary-dark);
  background: #fff;
}

.course-chip.hot:hover {
  color: #fff;
  background: var(--primary);
}

.major-course-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  overflow: visible;
}

.placeholder-course-row {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
}

.placeholder-course-row article {
  min-height: 170px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fff;
}

.placeholder-course-row h3 {
  margin: 0 0 10px;
  color: var(--primary);
}

.placeholder-course-row p {
  margin: 0;
  color: #6e6e73;
}

.apple-product-card {
  display: grid;
  justify-items: center;
  text-align: center;
  min-width: 280px;
  padding: 0 18px 28px;
  color: #1d1d1f;
}

.course-art {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 250px;
  border-radius: 18px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 18px 50px rgba(255, 111, 97, 0.18);
}

.course-art-large {
  min-height: 420px;
}

.course-art span {
  font-size: 1.42rem;
  font-weight: 900;
}

.course-art small,
.course-art em {
  font-style: normal;
  opacity: 0.9;
}

.product-tag {
  margin: 24px 0 8px;
  color: var(--primary-dark);
  font-weight: 900;
}

.apple-product-card h2 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.18;
}

.apple-product-card > p:not(.product-tag) {
  min-height: 58px;
  color: #6e6e73;
}

.apple-product-card strong {
  font-size: 1.48rem;
}

.public-course-card > strong {
  color: #17181c;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.product-action {
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(255, 111, 97, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
}

.product-action:hover {
  background: var(--primary-dark);
}

.product-detail-page {
  background: #fff;
}

.product-back-row {
  padding: 28px 0 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  background: #fff;
  font-weight: 900;
}

.back-link:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 70px;
  padding-bottom: 90px;
}

.product-poster {
  border: 1px solid #eee;
  background: #fff;
}

.product-info h1 {
  margin: 0 0 26px;
  color: #333;
  font-size: 2rem;
  font-weight: 500;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  color: #666;
}

.price-line strong {
  color: var(--primary);
  font-size: clamp(3.3rem, 4.6vw, 4.5rem);
}

.price-line del {
  color: #999;
}

.product-meta {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  color: #5f6368;
  font-size: 1.08rem;
}

.product-meta div {
  display: flex;
  gap: 4px;
}

.product-meta dt,
.product-meta dd {
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.buy-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 900;
}

.buy-button {
  color: #fff;
  background: var(--primary);
}

.outline-button {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.teacher-section + .teacher-section {
  margin-top: 70px;
}

.teacher-section h2 {
  margin: 0 0 26px;
  color: #1d1d1f;
  font-size: 2rem;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.teacher-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.teacher-photo {
  display: grid;
  place-items: center;
  min-height: 260px;
  aspect-ratio: 4 / 5;
  color: var(--primary);
  background: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.teacher-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  color: #1d1d1f;
  background: #fff;
}

.teacher-band span,
.teacher-band strong {
  padding: 10px 14px;
  font-size: 1.2rem;
}

.teacher-band span {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.teacher-band strong {
  overflow: hidden;
  color: #1d1d1f;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-card p {
  margin: 0;
  padding: 24px 24px 30px;
  color: #3a2d2a;
  line-height: 1.9;
}

.campus-hero-detail {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #251d1b;
}

.campus-hero-detail img {
  width: 100%;
  height: 72vh;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.campus-hero-slider img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.campus-hero-slider img.is-active {
  opacity: 1;
}

.campus-hero-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 29, 27, 0.58), rgba(37, 29, 27, 0.12));
}

.campus-hero-detail::before {
  content: "";
  position: absolute;
  top: 34px;
  right: max(28px, calc((100vw - 1440px) / 2 + 24px));
  z-index: 3;
  width: clamp(140px, 12vw, 230px);
  aspect-ratio: 2.6 / 1;
  background: url("../images/xueerzhiben.png") center / contain no-repeat;
  pointer-events: none;
}

.campus-hero-copy {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 2;
  color: #fff;
  transform: translateX(-50%);
}

.campus-hero-copy p {
  margin: 0 0 12px;
  font-weight: 900;
}

.campus-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.05;
}

.campus-hero-copy span {
  display: block;
  margin-top: 18px;
  font-size: 1.2rem;
  font-weight: 800;
}

.campus-overview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 70px 0 40px;
}

.campus-overview h2 {
  margin: 0 0 16px;
  font-size: 2.2rem;
}

.campus-overview p {
  color: var(--muted);
  line-height: 1.9;
}

.campus-overview dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.campus-overview div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.campus-overview dt,
.campus-overview dd {
  margin: 0;
}

.campus-overview dt {
  color: var(--primary);
  font-weight: 900;
}

.campus-overview dd {
  margin-top: 8px;
  color: var(--muted);
}

.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 111, 97, 0.55);
}

.map-link::after {
  content: "  高德导航";
  color: var(--primary);
  font-size: 0.86em;
  font-weight: 900;
}

.map-link:hover {
  color: var(--primary-dark);
}

.campus-service-tags {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-right: 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.campus-media-section {
  padding: 30px 0 70px;
}

.compact-heading {
  margin-bottom: 30px;
}

.campus-zone + .campus-zone {
  margin-top: 58px;
}

.campus-zone h3 {
  margin: 0 0 22px;
  font-size: 1.8rem;
}

.campus-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.campus-photo-grid.equal-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campus-photo-grid.equal-photo-grid figure,
.campus-photo-grid.equal-photo-grid img {
  height: 340px;
  min-height: 340px;
}

.campus-photo-grid figure {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  margin: 0;
  border-radius: 14px;
  background: #eee;
}

.campus-photo-grid .feature-photo {
  grid-column: span 2;
  grid-row: span 2;
}

.campus-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.campus-photo-grid figure:hover img {
  transform: scale(1.04);
}

.campus-photo-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 29, 27, 0.58);
  font-weight: 900;
}

.campus-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 80px;
  padding: 34px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff9a8f);
}

.campus-visit h2,
.campus-visit p {
  margin: 0;
}

.campus-visit p {
  margin-top: 8px;
  opacity: 0.92;
}

.campus-visit .buy-button {
  color: var(--primary);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-shell {
  margin-top: 42px;
  padding: 38px 0 22px;
  border-radius: 24px 24px 0 0;
}

.footer-follow {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid #dde5ed;
}

.footer-slogan h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.6rem;
}

.footer-slogan p {
  margin: 8px 0 0;
  color: #253044;
  font-size: 1.28rem;
  font-weight: 900;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  height: 86px;
  perspective: 900px;
}

.social-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.social-card:hover .social-flip {
  transform: rotateY(180deg);
}

.social-front,
.social-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  backface-visibility: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.social-front {
  color: #4b5563;
  font-size: 0.98rem;
  font-weight: 900;
}

.social-back {
  transform: rotateY(180deg);
}

.social-back img {
  width: 70px;
  height: 70px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 30px 0;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: #253044;
  font-size: 0.98rem;
}

.footer-links a {
  display: block;
  margin-top: 8px;
  color: #687386;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.campus-section {
  display: grid;
  grid-template-columns:
    max-content minmax(320px, 1.5fr)
    max-content minmax(320px, 1.5fr);
  gap: 0 28px;
  padding: 16px 0 14px;
  border-top: 1px solid #dde5ed;
  border-bottom: 1px solid #dde5ed;
}

.campus-item {
  display: contents;
  color: #7b8798;
  font-size: 0.82rem;
  line-height: 1.55;
}

.campus-name {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.campus-name,
.campus-address {
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 111, 97, 0.22);
}

.campus-address {
  color: #253044;
  overflow-wrap: break-word;
}

.campus-item:hover .campus-name {
  color: var(--primary-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: #7b8798;
  font-size: 0.88rem;
}

.icp-record {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.icp-record:hover,
.icp-record:focus-visible {
  color: var(--primary);
}

.compact-footer .footer-bottom {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 150px;
  }

  .header-phone {
    padding: 0 9px;
    font-size: 12px;
  }

  .login-button {
    min-width: 92px;
  }

  .main-nav {
    gap: 20px;
  }

  .quick-entry,
  .home-grid,
  .course-area,
  .module-grid,
  .campus-card-grid,
  .campus-detail-grid,
  .license-grid,
  .teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apple-product-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .public-course-grid,
  .major-course-grid,
  .placeholder-course-row,
  .major-layout {
    grid-template-columns: 1fr;
  }

  .public-course-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .public-course-card .course-art,
  .public-course-card > :not(.course-art) {
    grid-column: 1;
  }

  .public-course-card .course-art {
    grid-row: auto;
  }

  .major-side-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .campus-section {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 18px;
  }

  .campus-overview,
  .campus-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header,
  .overlay-header,
  .overlay-header.is-scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    backdrop-filter: blur(14px);
  }

  .header-inner,
  .overlay-header:not(.is-scrolled) .header-inner {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    height: 60px;
    gap: 0;
  }

  .mobile-nav-toggle {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    min-width: 0;
  }

  .brand-logo,
  .overlay-header:not(.is-scrolled) .brand-logo {
    width: 126px;
    height: 40px;
  }

  .main-nav,
  .region-menu,
  .login-button {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1440px);
  }

  .header-inner {
    padding: 0;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    display: none;
  }

  .main-nav > a,
  .nav-item > a {
    min-height: 42px;
    white-space: nowrap;
  }

  .dropdown {
    top: 42px;
    left: 0;
    transform: translate(0, 8px);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: translate(0, 0);
  }

  .login-button {
    min-width: 84px;
  }

  .hero-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-top: 60px;
  }

  .overlay-header {
    position: sticky;
  }

  .hero-slide img {
    object-fit: contain;
    background: #ff6f61;
  }

  .sub-hero::after,
  .course-store-hero::after,
  .campus-hero-detail::before {
    width: 118px;
    top: 18px;
    right: 18px;
  }

  .slider-arrow {
    display: none;
  }

  .quick-entry,
  .home-grid,
  .course-area,
  .course-grid,
  .service-grid,
  .module-grid,
  .campus-card-grid,
  .campus-detail-grid,
  .license-grid,
  .teacher-grid,
  .footer-follow,
  .campus-section {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }

  .campus-section {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 14px;
  }

  .product-tabs {
    display: flex;
    overflow-x: auto;
  }

  .apple-product-grid {
    grid-template-columns: 1fr;
  }

  .major-group-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .major-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-overview,
  .campus-photo-grid {
    grid-template-columns: 1fr;
  }

  .campus-list-card {
    grid-template-columns: 1fr;
  }

  .campus-card-media,
  .campus-card-media img {
    min-height: 220px;
  }

  .campus-photo-grid .feature-photo {
    grid-column: auto;
    grid-row: auto;
  }

  .campus-visit {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-entry {
    margin-top: 18px;
  }

  .news-list li {
    grid-template-columns: 30px 1fr;
  }

  .news-list time {
    display: none;
  }

  .panel,
  .course-panel {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-shell {
    padding-top: 40px;
  }

  .social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-card {
    height: 96px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .campus-section {
    grid-template-columns: 1fr;
  }

  .campus-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 111, 97, 0.22);
  }

  .campus-name,
  .campus-address {
    padding: 0;
    border-bottom: 0;
  }
}

/* Apple-inspired polish layer */
:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e8ed;
  --primary: #ff6f61;
  --primary-dark: #e15348;
  --primary-soft: #fff3f1;
  --shadow: 0 18px 44px rgba(29, 29, 31, 0.08);
  --soft-shadow: 0 4px 18px rgba(29, 29, 31, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro SC", "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.container {
  width: min(1512px, calc(100% - 48px));
}

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header:not(.overlay-header),
.overlay-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.overlay-header:not(.is-scrolled) {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.brand-logo {
  width: 146px;
  height: 46px;
}

.main-nav {
  gap: clamp(24px, 3vw, 52px);
  color: #1d1d1f;
  font-size: 0.94rem;
  font-weight: 800;
}

.main-nav a,
.region-current,
.login-button {
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.main-nav > a:hover,
.nav-item:hover > a,
.region-current:hover,
.region-menu:hover .region-current {
  transform: scale(1.08);
}

.login-button {
  min-width: 124px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.login-button:hover {
  color: #fff;
  background: var(--primary);
}

.dropdown {
  top: 60px;
  min-width: 150px;
  padding: 14px;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(29, 29, 31, 0.16);
}

.dropdown a,
.region-dropdown button {
  border-radius: 12px;
}

.hero-slider {
  background: #000;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 26%, rgba(0, 0, 0, 0.12));
}

.slider-arrow {
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--soft-shadow);
  font-size: 2.4rem;
}

.slider-arrow:hover {
  color: #fff;
  background: rgba(255, 111, 97, 0.92);
}

.slider-dots {
  bottom: 34px;
  z-index: 5;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
}

.slider-dots .is-active {
  width: 24px;
  border-radius: 999px;
  background: #fff;
}

.quick-entry {
  gap: 18px;
  margin-top: 34px;
}

.entry-card,
.panel,
.promo-card,
.course-panel,
.module-card,
.campus-card,
.license-card {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.entry-card {
  min-height: 116px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.entry-card,
.course-card,
.service-grid a,
.module-card,
.campus-card,
.apple-product-card,
.teacher-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.entry-card:hover,
.course-card:hover,
.service-grid a:hover,
.module-card:hover,
.campus-card:hover,
.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(29, 29, 31, 0.12);
}

.entry-copy strong {
  color: #1d1d1f;
  font-size: 1.12rem;
}

.entry-copy small,
.course-card small,
.panel-head h2 span,
.course-store-hero p,
.sub-hero p,
.apple-product-card > p:not(.product-tag),
.campus-card-copy p,
.footer-links a {
  color: var(--muted);
}

.entry-icon {
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.entry-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-grid {
  align-items: stretch;
  margin-top: 32px;
}

.panel,
.course-panel {
  padding: 34px;
}

.panel-head h2,
.panel h2 {
  color: #1d1d1f;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: 0;
}

.news-list {
  gap: 16px;
}

.news-list li {
  min-height: 38px;
  border-bottom: 1px solid #f1f1f3;
  padding-bottom: 10px;
}

.news-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.consult-card {
  min-height: 94px;
  margin: 22px 0;
  border: 1px solid #f1f1f3;
  border-radius: 16px;
}

.mini-form {
  gap: 14px;
}

.mini-form input,
.mini-form textarea {
  min-height: 50px;
  border-color: #e6e6eb;
  border-radius: 14px;
  background: #fff;
}

.mini-form textarea {
  min-height: 104px;
}

.mini-form button,
.buy-button,
.product-action {
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(255, 111, 97, 0.22);
}

.mini-form button:hover,
.buy-button:hover,
.product-action:hover {
  background: var(--primary-dark);
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: #1d1d1f;
}

.promo-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 111, 97, 0.28);
}

.promo-card > * {
  position: relative;
  z-index: 1;
}

.course-area {
  align-items: stretch;
}

.course-card,
.service-grid a {
  min-height: 132px;
  border: 1px solid #f1f1f3;
  border-radius: 16px;
  background: #fbfbfd;
}

.tabs span {
  border-radius: 999px;
}

.tabs .active {
  background: #1d1d1f;
  color: #fff;
}

.course-store-hero,
.sub-hero {
  background: #fbfbfd;
}

.course-store-hero {
  padding: 120px 0 64px;
}

.course-store-hero h1,
.sub-hero h1 {
  color: #1d1d1f;
  font-weight: 900;
  letter-spacing: 0;
}

.product-tabs {
  position: sticky;
  top: 76px;
  z-index: 8;
  background: rgba(232, 232, 237, 0.88);
  backdrop-filter: blur(16px);
}

.course-store {
  padding-top: 48px;
}

.course-category {
  padding: 24px 0 6px;
}

.course-category-head {
  margin-bottom: 28px;
}

.course-category-head span {
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.course-category-head h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.public-course-card {
  min-height: 560px;
  border-radius: 26px;
  padding: 28px clamp(20px, 4vw, 58px);
  background: #fff;
  box-shadow: var(--shadow);
}

.course-art {
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6f61, #ff8c7f);
}

.course-art-large {
  min-height: clamp(340px, 38vw, 520px);
}

.public-course-card .product-tag {
  align-self: end;
  justify-self: center;
  margin: 0;
  color: var(--primary);
}

.public-course-card h2 {
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  font-weight: 900;
}

.public-course-card > strong {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.product-action {
  min-width: 150px;
  min-height: 46px;
  padding: 12px 24px;
  text-align: center;
}

.major-layout {
  gap: 42px;
}

.major-side-nav {
  top: 94px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.major-side-nav a {
  border-radius: 14px;
}

.major-group {
  padding: 34px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.major-group + .major-group {
  margin-top: 28px;
}

.course-planner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 54px;
  padding: 34px clamp(24px, 5vw, 56px);
  border: 1px solid rgba(255, 111, 97, 0.2);
  border-radius: 26px;
  color: var(--text);
  background: linear-gradient(135deg, #fff 0%, #fff7f5 58%, #ffe9e5 100%);
  box-shadow: 0 20px 55px rgba(165, 74, 64, 0.12);
}

.course-planner-cta span {
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.course-planner-cta h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.course-planner-cta p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.course-planner-cta > a {
  flex: 0 0 auto;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 99, 92, 0.28);
}

.course-planner-cta > a:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.major-group-title strong {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.course-chip {
  min-height: 68px;
  border-color: #f0d9d6;
  border-radius: 18px;
  box-shadow: none;
  font-size: 1.02rem;
}

.course-chip.hot {
  color: #1d1d1f;
  background: #fbfbfd;
}

.product-detail {
  padding-top: 18px;
}

.product-info h1 {
  color: #1d1d1f;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

.product-poster,
.product-poster .course-art {
  border-radius: 24px;
}

.price-line strong {
  font-weight: 900;
}

.outline-button {
  border-radius: 999px;
}

.teacher-card {
  border: 0;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.teacher-photo {
  min-height: 300px;
  background: #f5f5f7;
}

.teacher-band {
  background: #fff;
}

.teacher-band span {
  border-radius: 0;
}

.campus-list-card {
  border-radius: 26px;
}

.campus-card-media,
.campus-card-media img {
  min-height: 260px;
}

.campus-card-placeholder {
  background: linear-gradient(135deg, #ff6f61, #ff9f8f);
}

.campus-hero-detail,
.campus-hero-detail img {
  min-height: 520px;
}

.campus-overview {
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
}

.campus-overview > div:first-child {
  align-self: start;
}

.campus-overview dl div {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.campus-photo-grid figure {
  border-radius: 22px;
}

.site-footer {
  background: #f5f5f7;
}

.footer-shell {
  padding-top: 42px;
}

.footer-follow,
.footer-links,
.campus-section {
  border-color: #d8d8df;
}

.social-front,
.social-back {
  box-shadow: var(--soft-shadow);
}

.footer-links {
  gap: 34px;
}

.footer-links h3 {
  color: #1d1d1f;
}

.campus-section {
  grid-template-columns:
    max-content minmax(360px, 1.8fr)
    max-content minmax(360px, 1.8fr);
  gap: 0 22px;
}

.campus-name,
.campus-address {
  padding: 8px 0;
}

.campus-address {
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .product-tabs {
    top: 68px;
  }

  .public-course-card {
    min-height: auto;
    padding: 26px;
  }

  .campus-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header,
  .overlay-header,
  .overlay-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
  }

  .mobile-menu-panel {
    background: #fbfbfd;
  }

  .mobile-menu-list {
    gap: 10px;
    padding-top: 24px;
  }

  .mobile-menu-list a,
  .mobile-menu-list summary {
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
  }

  .mobile-menu-list details a,
  .mobile-menu-list details button {
    margin: 8px 0 0 18px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    width: calc(100% - 18px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1512px);
  }

  .quick-entry {
    margin-top: 20px;
  }

  .hero-slider {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-grid,
  .course-area {
    margin-top: 24px;
  }

  .panel,
  .course-panel,
  .major-group {
    padding: 24px;
    border-radius: 22px;
  }

  .product-tabs {
    top: 66px;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .product-tabs a {
    flex: 0 0 auto;
    padding: 12px 22px;
  }

  .public-course-card {
    text-align: center;
  }

  .course-art-large {
    min-height: 310px;
  }

  .major-side-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .major-side-nav a {
    flex: 0 0 auto;
  }

  .campus-section {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .course-store-hero,
  .sub-hero {
    padding: 68px 0 38px;
  }

  .course-store-hero h1,
  .sub-hero h1 {
    font-size: 2.45rem;
  }

  .course-category-head h2 {
    font-size: 2.3rem;
  }

  .campus-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .course-planner-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 38px;
  }

  .course-planner-cta > a {
    width: 100%;
    text-align: center;
  }

  .product-detail-page {
    overflow-x: hidden;
  }

  .product-back-row {
    padding: 18px 0 12px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 52px;
  }

  .product-poster {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
  }

  .product-poster .course-art {
    min-height: 310px;
    padding: 34px 20px;
    border-radius: 22px;
  }

  .product-info h1 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.18;
    text-align: left;
  }

  .price-line {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 6px 12px;
    padding: 22px 0 24px;
  }

  .price-line span {
    grid-column: 1;
    padding-top: 12px;
    color: #6e6e73;
    white-space: nowrap;
  }

  .price-line strong {
    grid-column: 2;
    font-size: clamp(3.1rem, 15vw, 4.8rem);
    line-height: 0.95;
    white-space: nowrap;
  }

  .price-line del {
    grid-column: 2;
    color: #9ca3af;
    font-size: 1rem;
  }

  .product-meta {
    gap: 14px;
    margin: 24px 0;
    font-size: 1rem;
  }

  .product-meta div {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buy-button,
  .outline-button {
    width: 100%;
  }
}

.product-tabs {
  --tab-left: 8px;
  --tab-width: 0px;
  position: sticky;
  isolation: isolate;
}

.product-tabs::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  z-index: 0;
  width: var(--tab-width);
  border-radius: 999px;
  background: #1d1d1f;
  transform: translateX(var(--tab-left));
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-tabs a {
  position: relative;
  z-index: 1;
  background: transparent !important;
  white-space: nowrap;
}

.product-tabs a.is-active {
  color: #fff;
  background: transparent !important;
}

.product-tabs a:not(.is-active):hover {
  color: var(--primary);
}

@media (max-width: 420px) {
  .product-poster .course-art {
    min-height: 280px;
  }

  .product-info h1 {
    font-size: 2.15rem;
  }

  .price-line strong {
    font-size: 3.5rem;
  }
}
.brand-intro-section {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background: #fff;
}

.brand-intro-section::after {
  content: "";
  position: absolute;
  top: 34px;
  right: max(28px, calc((100vw - 1440px) / 2 + 24px));
  width: clamp(140px, 12vw, 230px);
  aspect-ratio: 2.6 / 1;
  background: url("../images/xueerzhiben.png") center / contain no-repeat;
  pointer-events: none;
}

.brand-intro-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.brand-intro-heading p {
  margin: 0 0 12px;
  color: #777;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-intro-heading h1 {
  margin: 0;
  color: #ff645c;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.15;
}

.brand-intro-copy {
  max-width: 1100px;
  margin: 46px 0 52px;
  color: #2d2d2d;
  font-size: 18px;
  line-height: 1.9;
}

.brand-intro-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 58px;
  align-items: stretch;
}

.brand-license-summary {
  display: flex;
  flex-direction: column;
  padding-right: 42px;
  border-right: 2px solid #aaa;
  color: #333;
  text-align: center;
  text-decoration: none;
}

.brand-license-documents {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-license-paper {
  position: relative;
  min-height: 168px;
  border: 1px solid #d8d0c4;
  background-color: #f7f4ee;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 5px 14px rgba(40, 35, 28, .08);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.brand-license-paper.business-license {
  background-image: url("../documents/licenses/business-license.jpg");
}

.brand-license-paper.school-license {
  background-image: url("../documents/licenses/school-license.jpg");
}

.brand-license-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.brand-license-summary strong {
  font-size: 17px;
}

.brand-license-summary em {
  margin-top: 5px;
  color: #ff645c;
  font-style: normal;
  font-weight: 800;
}

.brand-data-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.brand-data-heading h2 {
  margin: 0;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  background: #ff645c;
  font-size: 20px;
}

.brand-data-heading span {
  color: #777;
  font-size: 16px;
}

.brand-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 36px;
}

.brand-data-grid article strong {
  display: block;
  color: #ff645c;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1;
}

.brand-data-grid article strong small {
  margin-left: 4px;
  color: #666;
  font-size: 18px;
}

.brand-data-grid article p {
  margin: 12px 0 0;
  color: #666;
  font-size: 17px;
}

@media (max-width: 820px) {
  .brand-intro-section {
    padding: 52px 0 64px;
  }

  .brand-intro-section::after {
    top: 24px;
    right: 20px;
    width: 125px;
    opacity: .72;
  }

  .brand-intro-copy {
    margin: 30px 0 36px;
    font-size: 16px;
  }

  .brand-intro-content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .brand-license-summary {
    padding: 0 0 36px;
    border-right: 0;
    border-bottom: 2px solid #ddd;
  }

  .brand-license-documents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 520px) {
  .brand-license-documents,
  .brand-data-grid {
    grid-template-columns: 1fr;
  }

  .brand-data-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.brand-services,
.brand-philosophy {
  margin-top: 82px;
}

.brand-section-title {
  position: relative;
  margin: 0 0 32px;
  padding-left: 24px;
  color: #ff645c;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.brand-section-title::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 7px;
  border-radius: 999px;
  background: #ff645c;
}

.brand-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff5f3, #fff9ed);
}

.brand-service-grid article {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 111, 97, .08);
}

.brand-service-grid article:last-child {
  border-right: 0;
}

.brand-service-grid h3 {
  margin: 0;
  padding: 20px 24px;
  color: #fff;
  background: #ff6b61;
  font-size: 26px;
  text-align: center;
}

.brand-service-grid article:nth-child(2) h3 {
  background: #ff9958;
}

.brand-service-grid article:nth-child(3) h3 {
  background: #ffbd59;
}

.brand-service-grid article > p {
  margin: 0;
  padding: 30px 48px 38px;
  color: #262626;
  font-size: 18px;
  line-height: 1.95;
}

.brand-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding: 18px 48px 38px;
}

.brand-service-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  font-size: 18px;
  font-weight: 900;
}

.brand-service-tags b {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  background: #ff645c;
  font-size: 16px;
}

.brand-philosophy p {
  margin: 0;
  color: #2c2c2c;
  font-size: 18px;
  line-height: 2;
}

.brand-philosophy strong {
  color: #ff645c;
}

@media (max-width: 820px) {
  .brand-services,
  .brand-philosophy {
    margin-top: 58px;
  }

  .brand-service-grid {
    grid-template-columns: 1fr;
  }

  .brand-service-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 111, 97, .12);
  }

  .brand-service-grid article > p {
    padding: 26px 28px 16px;
    font-size: 16px;
  }

  .brand-service-tags {
    padding: 12px 28px 28px;
  }

  .brand-philosophy p {
    font-size: 16px;
  }
}
/* 临时停用顶部“职途”入口；文旅入口已恢复。 */
.main-nav > a[href$="career.html"],
.mobile-menu-list > a[href$="career.html"] {
  display: none !important;
}

.consult-qr-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1200;
  width: 178px;
  padding: 16px 14px 13px;
  border: 1px solid rgba(255, 111, 97, .24);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(59, 40, 36, .2);
  text-align: center;
  backdrop-filter: blur(10px);
}

.ai-volunteer-float {
  position: fixed;
  right: 22px;
  bottom: 410px;
  z-index: 1199;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 178px;
  min-height: 64px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 111, 97, .26);
  border-radius: 18px;
  color: #3e2723;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 42px rgba(59, 40, 36, .2);
  backdrop-filter: blur(10px);
}

.ai-volunteer-float:hover {
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(255, 111, 97, .26);
}

.ai-volunteer-float-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8278, #ff5f52);
  box-shadow: 0 8px 18px rgba(255, 111, 97, .32);
  font-size: 15px;
  font-weight: 900;
}

.ai-volunteer-float > span:last-child,
.ai-volunteer-float strong,
.ai-volunteer-float small {
  display: block;
}

.ai-volunteer-float strong {
  font-size: 15px;
}

.ai-volunteer-float small {
  margin-top: 3px;
  color: #8a6e68;
  font-size: 11px;
}

.consult-qr-float > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 17px;
}

.consult-qr-float img {
  display: block;
  width: 100%;
  aspect-ratio: 700 / 908;
  object-fit: cover;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
}

.consult-float-phone {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  margin: 0 0 10px;
  padding: 9px 8px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff756a, #ee5145);
  text-align: left;
}

.consult-float-phone > span {
  grid-row: 1 / 3;
  font-size: 20px;
  text-align: center;
}

.consult-float-phone b,
.consult-float-phone small {
  display: block;
  line-height: 1.25;
}

.consult-float-phone b {
  font-size: 13px;
}

.consult-float-phone small {
  color: rgba(255, 255, 255, .84);
  font-size: 10px;
}

.consult-float-phone:hover {
  color: #fff;
  transform: translateY(-1px);
}

.consult-qr-float > span {
  display: block;
  margin-top: 8px;
  color: #66514c;
  font-size: 13px;
  font-weight: 800;
}

.consult-qr-close {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #eee;
  border-radius: 50%;
  color: #777;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 680px) {
  .header-phone {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-phone .phone-wechat {
    display: none;
  }

  .ai-volunteer-float {
    right: 12px;
    bottom: 282px;
    width: 128px;
    min-height: 52px;
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }

  .ai-volunteer-float-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 12px;
  }

  .ai-volunteer-float strong {
    font-size: 12px;
  }

  .ai-volunteer-float small {
    display: none;
  }

  .consult-qr-float {
    right: 12px;
    bottom: 14px;
    width: 128px;
    padding: 11px 10px 9px;
    border-radius: 14px;
  }

  .consult-qr-float > strong {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .consult-qr-float > span {
    margin-top: 5px;
    font-size: 11px;
  }

  .consult-float-phone {
    grid-template-columns: 22px 1fr;
    padding: 7px 5px;
  }

  .consult-float-phone > span {
    font-size: 16px;
  }

  .consult-float-phone b {
    font-size: 10px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 150px;
  }

  .main-nav {
    gap: 18px;
    font-size: .84rem;
  }

  .header-phone {
    padding: 0 8px;
    font-size: 11px;
  }

  .login-button {
    min-width: 88px;
  }
}

@media (max-width: 760px) {
  .header-phone {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
  }

  .header-phone b {
    display: none;
  }
}

/* =========================================================
   AI 志愿规划页面
   已合并至官网统一样式入口，页面通过 body 类限制作用范围。
   ========================================================= */

.ai-volunteer-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 111, 97, .12), transparent 28%),
    radial-gradient(circle at 92% 32%, rgba(255, 166, 151, .12), transparent 25%),
    #f7f7fa;
}

.ai-planner-main {
  min-height: calc(100vh - 148px);
}

.ai-planner-sub-hero {
  border-bottom: 1px solid rgba(255, 111, 97, .08);
}

.ai-planner-hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 111, 97, .12);
  background: linear-gradient(135deg, #fff 0%, #fff7f5 54%, #ffe9e5 100%);
}

.ai-planner-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: 58px;
  padding-bottom: 52px;
}

.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9e4e46;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.ai-eyebrow b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 9px 20px rgba(255, 111, 97, .28);
}

.ai-planner-hero h1 {
  margin: 18px 0 12px;
  color: #1d1d1f;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ai-planner-hero p {
  max-width: 760px;
  margin: 0;
  color: #68686d;
  font-size: 18px;
  line-height: 1.8;
}

.ai-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 5px;
}

.ai-hero-points span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 111, 97, .2);
  border-radius: 999px;
  color: #8f4d45;
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.ai-planner-layout {
  display: block;
  padding-top: 30px;
  padding-bottom: 48px;
}

.ai-profile-card,
.ai-chat-card {
  border: 1px solid rgba(29, 29, 31, .055);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(31, 31, 38, .085);
}

.ai-profile-card {
  position: sticky;
  top: 88px;
  overflow: hidden;
}

body.ai-profile-modal-open {
  overflow: hidden;
}

.ai-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.ai-profile-modal[hidden] {
  display: none;
}

.ai-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 24, 24, .48);
  backdrop-filter: blur(9px);
}

.ai-profile-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(255, 111, 97, .16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(24, 20, 20, .28);
}

.ai-profile-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f0f0f3;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.ai-profile-dialog-header span,
.ai-profile-dialog-header b,
.ai-profile-dialog-header small {
  display: block;
}

.ai-profile-dialog-header b {
  color: #252529;
  font-size: 21px;
}

.ai-profile-dialog-header small {
  margin-top: 5px;
  color: #8a8a91;
  font-size: 12px;
}

.ai-profile-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ececf0;
  border-radius: 50%;
  color: #77777d;
  background: #fff;
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.ai-profile-close:hover {
  border-color: rgba(255, 111, 97, .36);
  color: #e15348;
  background: #fff7f5;
}

.ai-profile-close.is-required {
  visibility: hidden;
  pointer-events: none;
}

.ai-profile-dialog .ai-profile-form {
  padding: 22px 24px 24px;
}

.ai-profile-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  cursor: pointer;
  list-style: none;
}

.ai-profile-card > summary::-webkit-details-marker {
  display: none;
}

.ai-profile-card > summary span,
.ai-profile-card > summary b,
.ai-profile-card > summary small {
  display: block;
}

.ai-profile-card > summary b {
  color: #252529;
  font-size: 19px;
}

.ai-profile-card > summary small {
  margin-top: 5px;
  color: #8a8a91;
  font-size: 12px;
}

.ai-profile-card > summary i {
  width: 10px;
  height: 10px;
  border-right: 2px solid #ff6f61;
  border-bottom: 2px solid #ff6f61;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.ai-profile-card:not([open]) > summary i {
  transform: rotate(-45deg);
}

.ai-profile-form {
  padding: 0 24px 24px;
}

.ai-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.ai-form-wide {
  grid-column: 1 / -1;
}

.ai-profile-form label,
.ai-profile-form label > span {
  display: block;
}

.ai-profile-form label > span {
  margin: 0 0 7px 2px;
  color: #55555b;
  font-size: 12px;
  font-weight: 800;
}

.ai-profile-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #e5e5ea;
  border-radius: 13px;
  outline: 0;
  color: #242428;
  background: #fbfbfd;
  font: inherit;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ai-profile-form input:focus {
  border-color: rgba(255, 111, 97, .68);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 111, 97, .1);
}

.ai-save-profile,
.ai-switch-user,
.ai-chat-header button,
.ai-suggestions button,
.ai-chat-composer button {
  font: inherit;
  cursor: pointer;
}

.ai-save-profile {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ff786d, #ff5f52);
  box-shadow: 0 12px 26px rgba(255, 111, 97, .24);
  font-weight: 900;
}

.ai-save-profile:disabled {
  cursor: wait;
  opacity: .62;
}

.ai-profile-note {
  min-height: 18px;
  margin: 12px 0 0;
  color: #909096;
  font-size: 11px;
  line-height: 1.6;
}

.ai-profile-note.is-success {
  color: #2d8a58;
}

.ai-profile-note.is-error,
.ai-chat-error {
  color: #cf443a;
}

.ai-switch-user {
  margin: 0;
  text-decoration: none;
}

.ai-chat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 690px;
  overflow: hidden;
}

.ai-chat-gate {
  position: absolute;
  inset: 85px 0 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  color: #38383d;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(13px);
  text-align: center;
}

.ai-chat-gate[hidden],
.ai-chat-card:not(.is-locked) .ai-chat-gate {
  display: none;
}

.ai-gate-lock {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border-radius: 19px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 14px 30px rgba(255, 111, 97, .25);
  font-size: 28px;
  font-weight: 900;
}

.ai-chat-gate h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.ai-chat-gate p {
  max-width: 440px;
  margin: 0;
  color: #77777d;
  font-size: 14px;
  line-height: 1.75;
}

.ai-chat-gate button {
  min-width: 150px;
  min-height: 43px;
  margin-top: 21px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 10px 24px rgba(255, 111, 97, .22);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 24px;
  border-bottom: 1px solid #eeeeF2;
}

.ai-chat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ai-chat-actions #aiEditProfile {
  border-color: rgba(255, 111, 97, .28);
  color: #d95147;
  background: #fff7f5;
}

.ai-assistant {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: transparent;
  background-color: #fff;
  background-image: url("../../zhiben.jpg");
  background-repeat: no-repeat;
  background-position: 29% 42%;
  background-size: 300%;
  box-shadow: 0 10px 23px rgba(255, 111, 97, .28);
  font-weight: 900;
}

.ai-assistant > span:last-child,
.ai-assistant strong,
.ai-assistant small {
  display: block;
}

.ai-assistant strong {
  color: #26262a;
  font-size: 17px;
}

.ai-assistant small {
  margin-top: 3px;
  color: #8b8b91;
  font-size: 11px;
}

.ai-assistant small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: #36b46d;
  box-shadow: 0 0 0 3px rgba(54, 180, 109, .12);
}

.ai-chat-header button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #ececf0;
  border-radius: 999px;
  color: #66666d;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ai-chat-header button:hover {
  border-color: rgba(255, 111, 97, .32);
  color: #e15348;
  background: #fff7f5;
}

.ai-chat-messages {
  flex: 1 1 auto;
  min-height: 430px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 26px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 111, 97, .32) transparent;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.ai-message-user {
  justify-content: flex-end;
}

.ai-message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  overflow: hidden;
  color: transparent;
  background-color: #fff;
  background-image: url("../../zhiben.jpg");
  background-repeat: no-repeat;
  background-position: 29% 42%;
  background-size: 300%;
  font-size: 10px;
  font-weight: 900;
}

.ai-message-bubble {
  max-width: min(78%, 760px);
  padding: 14px 17px;
  border: 1px solid #eeeeF2;
  border-radius: 8px 18px 18px 18px;
  color: #35353a;
  background: #f8f8fb;
  font-size: 15px;
  line-height: 1.82;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-message-user .ai-message-bubble {
  border-color: transparent;
  border-radius: 18px 8px 18px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff786d, #ff6659);
  box-shadow: 0 10px 24px rgba(255, 111, 97, .18);
}

.ai-message-markdown {
  white-space: normal;
}

.ai-message-markdown > :first-child {
  margin-top: 0;
}

.ai-message-markdown > :last-child {
  margin-bottom: 0;
}

.ai-message-markdown p {
  margin: 0 0 13px;
}

.ai-message-markdown h3,
.ai-message-markdown h4,
.ai-message-markdown h5,
.ai-message-markdown h6 {
  margin: 17px 0 8px;
  color: #28282d;
  font-size: 1.05em;
  line-height: 1.55;
}

.ai-message-markdown strong {
  color: #222227;
  font-weight: 800;
}

.ai-message-markdown ul,
.ai-message-markdown ol {
  margin: 8px 0 14px;
  padding-left: 1.55em;
}

.ai-message-markdown li {
  margin: 4px 0;
  padding-left: .15em;
}

.ai-message-markdown blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 3px solid #ff8b80;
  border-radius: 0 8px 8px 0;
  color: #686870;
  background: rgba(255, 111, 97, .07);
}

.ai-message-markdown code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #a8453c;
  background: rgba(255, 111, 97, .1);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .92em;
}

.ai-message-markdown .ai-markdown-table-wrap {
  width: 100%;
  margin: 12px 0 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #eadfdd;
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.ai-message-markdown table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: #34343a;
  font-size: .92em;
  line-height: 1.55;
}

.ai-message-markdown th,
.ai-message-markdown td {
  min-width: 96px;
  max-width: 280px;
  padding: 10px 12px;
  border-right: 1px solid #eee5e3;
  border-bottom: 1px solid #eee5e3;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-message-markdown th:last-child,
.ai-message-markdown td:last-child {
  border-right: 0;
}

.ai-message-markdown tbody tr:last-child td {
  border-bottom: 0;
}

.ai-message-markdown th {
  color: #7f332d;
  font-weight: 800;
  background: rgba(255, 111, 97, .1);
}

.ai-message-markdown tbody tr:nth-child(even) {
  background: #fff9f8;
}

.ai-message-markdown .ai-table-align-center {
  text-align: center;
}

.ai-message-markdown .ai-table-align-right {
  text-align: right;
}

.ai-message-markdown .ai-table-align-left {
  text-align: left;
}

.ai-message-loading .ai-message-bubble {
  display: block;
  box-sizing: border-box;
  width: min(440px, 72vw);
  max-width: 100%;
  padding: 18px 19px 16px;
  line-height: 1.5;
  white-space: normal;
}

.ai-thinking-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.ai-thinking-spinner {
  position: relative;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 111, 97, .18);
  border-top-color: var(--primary, #ff6f61);
  border-radius: 50%;
  animation: aiThinkingSpin .85s linear infinite;
}

.ai-thinking-spinner::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: rgba(255, 111, 97, .2);
  content: "";
  animation: aiThinkingPulse 1.4s ease-in-out infinite;
}

.ai-thinking-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ai-thinking-copy strong {
  color: #24242a;
  font-size: 15px;
  line-height: 1.35;
}

.ai-thinking-phase {
  overflow: hidden;
  color: #777985;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-thinking-time {
  color: #ff6f61;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ai-thinking-track {
  height: 7px;
  margin-top: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 111, 97, .12);
}

.ai-thinking-fill {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6f61, #ff9a8f);
  box-shadow: 0 0 12px rgba(255, 111, 97, .34);
  transition: width .3s ease;
}

.ai-thinking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.ai-thinking-steps span {
  position: relative;
  padding-top: 9px;
  color: #a2a3aa;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.ai-thinking-steps span::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8d9df;
  content: "";
  transform: translateX(-50%);
}

.ai-thinking-steps span.is-active,
.ai-thinking-steps span.is-complete {
  color: #ff6f61;
}

.ai-thinking-steps span.is-active::before {
  background: #ff6f61;
  box-shadow: 0 0 0 4px rgba(255, 111, 97, .14);
}

.ai-thinking-steps span.is-complete::before {
  background: #ff9a8f;
}

.ai-message-streaming .ai-message-bubble::after {
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 4px;
  border-radius: 2px;
  background: #ff6f61;
  vertical-align: -.18em;
  content: "";
  animation: aiStreamCursor .75s steps(1) infinite;
}

@keyframes aiThinkingSpin {
  to { transform: rotate(360deg); }
}

@keyframes aiThinkingPulse {
  0%, 100% { transform: scale(.72); opacity: .55; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes aiStreamCursor {
  50% { opacity: 0; }
}

.ai-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 24px 12px;
  scrollbar-width: none;
}

.ai-suggestions::-webkit-scrollbar {
  display: none;
}

.ai-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 111, 97, .2);
  border-radius: 999px;
  color: #9b5149;
  background: #fff8f6;
  font-size: 12px;
}

.ai-chat-error {
  min-height: 18px;
  margin: 0;
  padding: 0 25px 8px;
  font-size: 12px;
}

.ai-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0 22px;
  padding: 10px;
  border: 1px solid #e4e4e9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 25, 31, .07);
}

.ai-chat-composer:focus-within {
  border-color: rgba(255, 111, 97, .55);
  box-shadow: 0 0 0 4px rgba(255, 111, 97, .08), 0 12px 32px rgba(25, 25, 31, .07);
}

.ai-chat-composer textarea {
  width: 100%;
  max-height: 150px;
  padding: 9px 10px;
  resize: none;
  border: 0;
  outline: 0;
  color: #2c2c31;
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
}

.ai-chat-composer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 9px 20px rgba(255, 111, 97, .24);
  font-weight: 900;
}

.ai-chat-composer button b {
  font-size: 20px;
  line-height: 1;
}

.ai-chat-composer button:disabled {
  cursor: wait;
  opacity: .55;
}

.ai-disclaimer {
  margin: 10px 22px 17px;
  color: #9a9aa0;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  .ai-planner-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .ai-hero-points {
    justify-content: flex-start;
  }

  .ai-planner-layout {
    grid-template-columns: 1fr;
  }

  .ai-profile-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .ai-planner-main {
    min-height: auto;
  }

  .ai-planner-hero-inner {
    padding-top: 38px;
    padding-bottom: 34px;
  }

  .ai-planner-hero h1 {
    margin-top: 14px;
    font-size: 40px;
  }

  .ai-planner-hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .ai-hero-points span {
    padding: 7px 11px;
    font-size: 11px;
  }

  .ai-planner-layout {
    gap: 18px;
    padding-top: 18px;
    padding-bottom: 26px;
  }

  .ai-profile-card,
  .ai-chat-card {
    border-radius: 21px;
  }

  .ai-profile-card > summary {
    padding: 19px 19px 15px;
  }

  .ai-profile-form {
    padding: 0 19px 19px;
  }

  .ai-chat-card {
    min-height: 620px;
  }

  .ai-chat-gate {
    inset: 120px 0 0;
    align-items: flex-start;
    padding: 24px 150px 24px 24px;
    text-align: left;
  }

  .ai-chat-gate h2 {
    font-size: 21px;
  }

  .ai-chat-gate button {
    min-width: 142px;
  }

  .ai-chat-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 15px 16px;
  }

  .ai-chat-actions {
    width: 100%;
  }

  .ai-chat-header button {
    flex: 1 1 0;
    padding: 0 12px;
  }

  .ai-profile-modal {
    align-items: start;
    padding: 12px;
  }

  .ai-profile-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 21px;
  }

  .ai-profile-dialog-header {
    padding: 20px 19px 15px;
  }

  .ai-profile-dialog .ai-profile-form {
    padding: 18px 19px 20px;
  }

  .ai-chat-messages {
    min-height: 360px;
    max-height: 55vh;
    padding: 20px 15px;
  }

  .ai-message-bubble {
    max-width: 85%;
    padding: 12px 14px;
    font-size: 14px;
  }

  .ai-message-loading .ai-message-bubble {
    width: min(440px, 78vw);
    padding: 16px;
  }

  .ai-thinking-head {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .ai-thinking-spinner {
    width: 26px;
    height: 26px;
  }

  .ai-thinking-time {
    grid-column: 2;
    margin-top: -2px;
  }

  .ai-thinking-track {
    margin-top: 12px;
  }

  .ai-suggestions {
    padding: 0 15px 10px;
  }

  .ai-chat-error {
    padding: 0 17px 8px;
  }

  .ai-chat-composer {
    margin: 0 12px;
    padding: 8px;
    border-radius: 18px;
  }

  .ai-chat-composer button {
    min-width: 46px;
    width: 46px;
  }

  .ai-chat-composer button span {
    display: none;
  }

  .ai-disclaimer {
    margin: 9px 15px 14px;
  }
}

@media (max-width: 440px) {
  .ai-form-grid {
    grid-template-columns: 1fr;
  }

  .ai-form-wide {
    grid-column: auto;
  }

  .ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .ai-assistant strong {
    font-size: 15px;
  }

  .ai-chat-actions {
    gap: 6px;
  }

  .ai-chat-header button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .ai-message-loading .ai-message-bubble {
    width: calc(100vw - 80px);
  }

  .ai-thinking-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-messages { scroll-behavior: auto; }
  .ai-thinking-spinner,
  .ai-thinking-spinner::after { animation: none; }
  .ai-thinking-fill { transition: none; }
  .ai-message-streaming .ai-message-bubble::after { animation: none; }
}

/* 文旅研学页面 */
.culture-page {
  background: #f7f7f9;
}

.culture-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 191, 98, .2), transparent 30%),
    linear-gradient(135deg, #fff 0%, #fff6f3 58%, #fffaf0 100%);
}

.culture-hero::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 54px solid rgba(255, 111, 97, .07);
  border-radius: 50%;
  content: "";
}

.culture-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  gap: 76px;
  align-items: center;
}

.culture-kicker,
.culture-section-head > span,
.culture-program-index,
.culture-cta-inner > div > span {
  color: #ff6f61;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
}

.culture-hero h1 {
  margin: 16px 0 20px;
  color: #222228;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.culture-hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: #6d6d75;
  font-size: 18px;
  line-height: 1.9;
}

.culture-hero-tags,
.culture-program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.culture-hero-tags span,
.culture-program-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 111, 97, .2);
  border-radius: 999px;
  color: #a24e46;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
}

.culture-hero-collage {
  position: relative;
  min-height: 435px;
}

.culture-hero-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 255, 255, .94);
  background: #eee;
  box-shadow: 0 26px 70px rgba(38, 31, 31, .16);
}

.culture-hero-photo img,
.culture-program-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.culture-hero-photo-main {
  inset: 0 116px 30px 0;
  border-radius: 30px;
  transform: rotate(-2.2deg);
}

.culture-hero-photo-side {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 55%;
  border-radius: 24px;
  transform: rotate(3.4deg);
}

.culture-values,
.culture-program-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.culture-section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.culture-section-head-left {
  max-width: 820px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.culture-section-head h2 {
  margin: 12px 0 12px;
  color: #29292f;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.culture-section-head p {
  margin: 0;
  color: #777780;
  font-size: 16px;
  line-height: 1.85;
}

.culture-value-grid {
  gap: 20px;
}

.culture-value-card {
  position: relative;
  min-height: 230px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 111, 97, .08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(30, 30, 35, .06);
}

.culture-value-card::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 111, 97, .075);
  content: "";
}

.culture-value-card b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 10px 23px rgba(255, 111, 97, .22);
  font-size: 13px;
}

.culture-value-card h3 {
  margin: 22px 0 10px;
  color: #29292f;
  font-size: 22px;
}

.culture-value-card p {
  margin: 0;
  color: #74747c;
  font-size: 14px;
  line-height: 1.8;
}

.culture-program-section {
  background: #fff;
}

.culture-program {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr);
  gap: 56px;
  align-items: center;
  padding: 48px;
  border: 1px solid #efedf0;
  border-radius: 30px;
  background: #fbfbfc;
  box-shadow: 0 24px 70px rgba(30, 30, 35, .07);
}

.culture-program + .culture-program {
  margin-top: 42px;
}

.culture-program-reverse {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
}

.culture-program-reverse .culture-program-copy {
  order: 2;
}

.culture-program-reverse .culture-program-gallery {
  order: 1;
}

.culture-program-copy h2 {
  margin: 13px 0 18px;
  color: #25252b;
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.culture-program-lead {
  margin: 0;
  color: #66666e;
  font-size: 15px;
  line-height: 1.9;
}

.culture-program-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.culture-program-points li {
  position: relative;
  padding-left: 22px;
  color: #4e4e55;
  font-size: 13px;
  line-height: 1.65;
}

.culture-program-points li::before {
  position: absolute;
  top: .68em;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6f61;
  box-shadow: 0 0 0 4px rgba(255, 111, 97, .12);
  content: "";
}

.culture-program-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, 132px);
  gap: 12px;
  min-width: 0;
}

.culture-program-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 16px;
  background: #e9e9ec;
}

.culture-program-gallery .culture-gallery-main {
  grid-row: 1 / span 3;
  border-radius: 22px;
}

.culture-program-gallery figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 28, 32, .62);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
}

.culture-program-gallery img {
  transition: transform .45s ease;
}

.culture-program-gallery figure:hover img {
  transform: scale(1.035);
}

.culture-cta {
  padding: 0 0 92px;
  background: #fff;
}

.culture-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 46px 52px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #29292f, #3a3031);
  box-shadow: 0 24px 64px rgba(31, 31, 36, .16);
}

.culture-cta-inner h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.culture-cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.75;
}

.culture-cta-inner a {
  flex: 0 0 auto;
  padding: 15px 24px;
  border-radius: 999px;
  color: #fff;
  background: #ff6f61;
  box-shadow: 0 12px 28px rgba(255, 111, 97, .3);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .culture-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .culture-program,
  .culture-program-reverse {
    grid-template-columns: 1fr;
  }

  .culture-program-reverse .culture-program-copy,
  .culture-program-reverse .culture-program-gallery {
    order: initial;
  }
}

@media (max-width: 760px) {
  .culture-hero {
    padding: 48px 0 42px;
  }

  .culture-hero-inner {
    grid-template-columns: 1fr;
  }

  .culture-hero-copy > p {
    font-size: 15px;
    line-height: 1.75;
  }

  .culture-hero-collage {
    min-height: 310px;
  }

  .culture-hero-photo-main {
    right: 66px;
  }

  .culture-hero-photo-side {
    width: 47%;
  }

  .culture-values,
  .culture-program-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .culture-section-head {
    margin-bottom: 30px;
  }

  .culture-value-grid {
    grid-template-columns: 1fr;
  }

  .culture-value-card {
    min-height: auto;
    padding: 25px;
  }

  .culture-program {
    gap: 30px;
    padding: 25px;
    border-radius: 23px;
  }

  .culture-program-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 160px);
  }

  .culture-program-gallery .culture-gallery-main {
    grid-row: auto;
    border-radius: 16px;
  }

  .culture-cta {
    padding-bottom: 60px;
  }

  .culture-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 26px;
  }
}

@media (max-width: 440px) {
  .culture-hero-collage {
    min-height: 260px;
  }

  .culture-program-gallery {
    grid-template-rows: repeat(2, 125px);
    gap: 8px;
  }

  .culture-program-gallery figcaption {
    display: none;
  }
}
