/* 因思国际教育集团 · 集团官网 */
:root {
  --yi-navy: #0b1f3a;
  --yi-navy-2: #123056;
  --yi-ink: #142033;
  --yi-gold: #c5a46a;
  --yi-gold-2: #e0c48a;
  --yi-paper: #f4f6f9;
  --yi-line: rgba(11, 31, 58, 0.1);
  --yi-muted: #5c6b80;
  --yi-white: #fff;
  --yi-max: 1160px;
  --yi-font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --yi-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.yi-body {
  margin: 0;
  font-family: var(--yi-font);
  color: var(--yi-ink);
  background: var(--yi-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.yi-wrap {
  width: min(100% - 32px, var(--yi-max));
  margin-inline: auto;
}

.mh-ssr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* header — modern single bar */
.yi-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
  box-shadow: 0 1px 0 rgba(197, 164, 106, 0.15);
}
.yi-header-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 8px 0;
}
.yi-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 10px;
}
.yi-logo {
  height: 80px;
  width: auto;
  max-width: min(360px, 48vw);
  object-fit: contain;
}
.yi-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.yi-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.yi-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  /* 预留字重空间，避免选中加粗后整栏左右抖 */
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--yi-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.yi-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--yi-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.15s ease;
  pointer-events: none;
}
.yi-nav-link:hover {
  color: var(--yi-navy);
}
.yi-nav-link.is-active {
  color: var(--yi-navy);
  font-weight: 600;
}
.yi-nav-link.is-active::after,
.yi-nav-item.is-active > .yi-nav-link::after {
  transform: scaleX(1);
}
.yi-sub {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 188px;
  padding: 10px 0;
  background: var(--yi-white);
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.12);
  border-radius: 4px;
}
.yi-nav-item:hover .yi-sub {
  display: block;
}
.yi-sub a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--yi-muted);
  white-space: nowrap;
}
.yi-sub a:hover,
.yi-sub a.is-active {
  color: var(--yi-navy);
  background: var(--yi-paper);
  font-weight: 500;
}
.yi-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  min-width: 220px;
}
.yi-header-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--yi-navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.yi-header-phone:hover {
  color: var(--yi-gold);
}
.yi-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--yi-navy) 0%, var(--yi-navy-2) 100%);
  color: var(--yi-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 2px;
}
.yi-header-cta:hover {
  background: var(--yi-navy);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.2);
}
.yi-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
}
.yi-burger span,
.yi-burger span::before,
.yi-burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--yi-navy);
  position: relative;
}
.yi-burger span::before,
.yi-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.yi-burger span::before {
  top: -6px;
}
.yi-burger span::after {
  top: 6px;
}
.yi-mobile-nav {
  display: none;
  border-top: 1px solid var(--yi-line);
  background: var(--yi-white);
  padding: 8px 16px 16px;
}
.yi-mobile-nav.is-open {
  display: block;
}
.yi-mobile-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--yi-line);
  font-size: 15px;
  color: var(--yi-muted);
}
.yi-mobile-nav a.is-active {
  color: var(--yi-navy);
  font-weight: 700;
  border-left: 3px solid var(--yi-gold);
  padding-left: 10px;
}
.yi-mobile-nav a.yi-mobile-sub {
  padding-left: 18px;
  font-size: 14px;
}

/* hero */
.yi-hero {
  position: relative;
  min-height: min(42vh, 380px);
  display: grid;
  align-items: end;
  color: var(--yi-white);
  overflow: hidden;
  background: var(--yi-navy);
}
.yi-hero-media,
.yi-hero-media video,
.yi-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yi-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.35) 0%, rgba(11, 31, 58, 0.78) 70%, rgba(11, 31, 58, 0.92) 100%),
    radial-gradient(1200px 480px at 20% 10%, rgba(197, 164, 106, 0.18), transparent 60%);
}
.yi-hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
  animation: yi-rise 0.8s ease both;
}
.yi-hero-kicker {
  display: inline-block;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--yi-gold-2);
  margin-bottom: 14px;
}
.yi-hero h1 {
  margin: 0 0 14px;
  font-family: var(--yi-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.yi-hero p {
  margin: 0 0 24px;
  max-width: 560px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}
.yi-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.yi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border: 1px solid transparent;
}
.yi-btn-gold {
  background: var(--yi-gold);
  color: var(--yi-navy);
}
.yi-btn-gold:hover {
  background: var(--yi-gold-2);
}
.yi-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--yi-white);
}
.yi-btn-ghost:hover {
  border-color: var(--yi-gold);
  color: var(--yi-gold-2);
}
.yi-btn-navy {
  background: var(--yi-navy);
  color: var(--yi-white);
}

/* sections — 收紧栏目间距 */
.yi-section {
  padding: 44px 0;
}
.yi-section-alt {
  background: var(--yi-paper);
}
.yi-head {
  margin-bottom: 20px;
}
.yi-head h2 {
  margin: 0 0 8px;
  font-family: var(--yi-display);
  font-size: clamp(24px, 2.8vw, 30px);
  color: var(--yi-navy);
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.yi-head p {
  margin: 0;
  max-width: 720px;
  color: var(--yi-muted);
  line-height: 1.6;
}
.yi-head-line {
  width: 48px;
  height: 2px;
  background: var(--yi-gold);
  margin-bottom: 12px;
}

.yi-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--yi-line);
  border: 1px solid var(--yi-line);
}
.yi-feature {
  padding: 24px 22px 22px;
  background: var(--yi-white);
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.yi-feature-idx {
  font-family: var(--yi-display);
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--yi-gold);
  line-height: 1;
  margin-bottom: 12px;
}
.yi-feature h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 650;
  color: var(--yi-navy);
  letter-spacing: 0.04em;
}
.yi-feature p {
  margin: 0;
  color: var(--yi-muted);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}

.yi-about-top {
  background: var(--yi-white);
  border-bottom: 1px solid var(--yi-line);
}
.yi-about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}
.yi-about-lead {
  color: var(--yi-muted);
  font-size: 15px;
  line-height: 1.75;
}
.yi-about-lead p {
  margin: 0 0 12px;
  color: var(--yi-muted);
}
.yi-about-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 22px 50px rgba(11, 31, 58, 0.14);
}
.yi-about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.06);
  border-radius: inherit;
}
.yi-about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
  border: 0;
  outline: 0;
}
.yi-about-body {
  color: var(--yi-muted);
  font-size: 15px;
}
.yi-about-body p {
  margin: 0 0 14px;
}

.yi-csr-flat {
  width: 100%;
  max-width: none;
  color: var(--yi-muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: left;
}
.yi-csr-flat p {
  margin: 0 0 12px;
}
.yi-csr-flat p:last-child {
  margin-bottom: 0;
}

.yi-scrm-frame-wrap {
  background: var(--yi-white);
  border: 1px solid var(--yi-line);
  min-height: 720px;
}
.yi-scrm-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: 80vh;
  border: 0;
  background: var(--yi-white);
}

.yi-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.yi-card,
.yi-product-card {
  display: block;
  background: var(--yi-white);
  border: 1px solid var(--yi-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.yi-card:hover,
.yi-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08);
}
.yi-product-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  padding: 22px 24px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--yi-line);
}
.yi-product-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 118px;
  max-height: 104px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.yi-product-fallback {
  font-family: var(--yi-display);
  font-size: 36px;
  color: var(--yi-gold);
}
.yi-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f9fc;
  padding: 16px;
}
.yi-card h3,
.yi-product-card h3 {
  margin: 0;
  padding: 14px 12px 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--yi-navy);
}
.yi-product-detail {
  max-width: 720px;
}
.yi-product-detail-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  min-height: 160px;
  margin: 0 0 24px;
  padding: 28px;
  background: #f7f9fc;
  border-radius: 4px;
}
.yi-product-detail-cover img {
  max-width: 160px;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.yi-product-detail h2 {
  margin: 0 0 14px;
  font-size: 28px;
  color: var(--yi-navy);
}
.yi-product-detail p {
  margin: 0 0 16px;
  color: var(--yi-muted);
  line-height: 1.85;
}

.yi-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--yi-white);
  border: 1px solid var(--yi-line);
}
.yi-news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--yi-line);
}
.yi-news-item:last-child {
  border-bottom: 0;
}
.yi-news-item img {
  width: 160px;
  height: 106px;
  object-fit: cover;
  background: #e8edf4;
}
.yi-news-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--yi-navy);
}
.yi-news-item p {
  margin: 0;
  font-size: 13px;
  color: var(--yi-muted);
}
.yi-news-list-plain .yi-news-item-plain {
  display: block;
  padding: 18px 20px;
  border-bottom: 1px solid var(--yi-line);
  grid-template-columns: none;
}
.yi-news-list-plain .yi-news-item-plain:hover {
  background: var(--yi-paper);
}
.yi-news-list-plain .yi-news-item-plain h3 {
  margin: 0 0 6px;
}

.yi-contact-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 28px;
  background: var(--yi-navy);
  color: rgba(255, 255, 255, 0.88);
}
.yi-contact-box h2 {
  margin: 0 0 12px;
  color: var(--yi-white);
  font-family: var(--yi-display);
}
.yi-contact-box p {
  margin: 0 0 10px;
}
.yi-contact-box a {
  color: var(--yi-gold-2);
}

/* page */
.yi-page-hero {
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.92), rgba(18, 48, 86, 0.88)),
    center / cover no-repeat var(--yi-page-hero-img, none);
  color: var(--yi-white);
  padding: 56px 0 48px;
}
.yi-page-hero h1 {
  margin: 0;
  font-family: var(--yi-display);
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0.04em;
}
.yi-page-hero .crumb {
  margin-bottom: 12px;
  font-size: 13px;
  opacity: 0.8;
}
.yi-page-hero .crumb a:hover {
  color: var(--yi-gold-2);
}
.yi-page-body {
  padding: 40px 0 72px;
}
.yi-article {
  width: 100%;
  max-width: none;
  font-size: 16px;
  color: var(--yi-ink);
  line-height: 1.9;
  text-align: justify;
}
.yi-contact-page {
  max-width: 720px;
  text-align: left;
}
.yi-contact-page h2 {
  margin: 0 0 20px;
  font-size: 28px;
  color: var(--yi-navy);
}
.yi-contact-page p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--yi-muted);
  line-height: 1.8;
}
.yi-article img {
  margin: 12px 0;
  max-width: 100%;
  height: auto;
}
.yi-article h2,
.yi-article h3 {
  color: var(--yi-navy);
  text-align: left;
}
.yi-muted {
  color: var(--yi-muted);
}

/* form */
.yi-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
}
.yi-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--yi-muted);
}
.yi-form input,
.yi-form textarea,
.yi-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--yi-line);
  background: var(--yi-white);
  font: inherit;
  color: var(--yi-ink);
}
.yi-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* footer */
.yi-footer {
  background: #081628;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 24px;
}
.yi-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.yi-footer-logo {
  height: 78px;
  width: auto;
  max-width: min(340px, 80%);
  margin-bottom: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.yi-footer h4 {
  margin: 0 0 12px;
  color: var(--yi-white);
  font-size: 15px;
}
.yi-footer p,
.yi-footer li {
  margin: 0 0 8px;
  font-size: 13px;
  list-style: none;
}
.yi-footer ul {
  margin: 0;
  padding: 0;
}
.yi-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.yi-copy a:hover {
  color: var(--yi-gold-2);
}

/* dock — mobile only */
.yi-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 -6px 24px rgba(11, 31, 58, 0.08);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.yi-dock a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  color: #6b7788;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}
.yi-dock-ico {
  display: block;
  width: 22px;
  height: 22px;
}
.yi-dock a em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
}
.yi-dock a.is-active {
  color: var(--yi-navy);
}
.yi-dock a.is-active .yi-dock-ico {
  color: var(--yi-gold);
}
.yi-dock a.is-active em {
  color: var(--yi-navy);
}

@keyframes yi-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .yi-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .yi-feature-grid {
    grid-template-columns: 1fr;
  }
  .yi-about-split,
  .yi-contact-box,
  .yi-footer-grid {
    grid-template-columns: 1fr;
  }
  .yi-about-split {
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .yi-nav,
  .yi-header-actions {
    display: none;
  }
  .yi-burger {
    display: grid;
  }
  .yi-header-row {
    min-height: 64px;
    padding: 4px 0;
  }
  .yi-logo {
    height: 48px;
    max-width: min(220px, 62vw);
  }
  .yi-hero {
    min-height: 32vh;
  }
  .yi-hero-copy {
    padding-bottom: 24px;
  }
  .yi-hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .yi-section {
    padding: 28px 0;
  }
  .yi-dock {
    display: flex;
  }
  body.yi-body,
  #yi-root {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .yi-footer {
    padding-bottom: 20px;
  }
  .yi-about-lead,
  .yi-csr-flat,
  .yi-article {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }
  .yi-feature-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .yi-feature {
    min-height: 0;
    padding: 24px 20px;
  }
  .yi-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .yi-news-item {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .yi-news-item img {
    width: 96px;
    height: 72px;
  }
  .yi-news-item h3 {
    font-size: 15px;
  }
  .yi-page-hero {
    padding: 36px 0 28px;
  }
}

/* Ѷҳ */
.yi-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 28px 0 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.yi-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.yi-page-btn:hover:not(:disabled) { border-color: #98a2b3; }
.yi-page-btn.is-active {
  border-color: #175cd3;
  background: #eff8ff;
  color: #175cd3;
  font-weight: 600;
}
.yi-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.yi-pager-meta { margin-left: 8px; color: #667085; font-size: 13px; }
