/* 优品铭师官网 — 参考 UE-22017 留学机构模板风格 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1e56a0;
  --primary-dark: #143d75;
  --primary-light: #2d6cb5;
  --accent: #3b82c4;
  --ink: #1d1e1f;
  --text: #555;
  --muted: #999;
  --line: #f2f2f2;
  --border: #e8e8e8;
  --bg: #fff;
  --bg-soft: #f7f8fa;
  --container: 1170px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body.ms-site {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.36s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
}

.site-brand__logo {
  height: 50px;
  width: auto;
  transition: height 0.36s var(--ease);
}

.site-header.is-scrolled .site-brand__logo {
  height: 44px;
}

.site-brand__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.site-nav__link {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  line-height: 78px;
  transition: color 0.36s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.36s var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--primary);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  width: 100%;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header__phone-icon {
  opacity: 0.8;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s;
}

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-nav-mobile[hidden] {
  display: none !important;
}

.site-nav-mobile:not([hidden]) {
  display: flex;
}

.site-nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

/* ── Banner ── */
.hero-banner {
  position: relative;
  height: 380px;
  background: linear-gradient(120deg, #0c2340 0%, var(--primary) 50%, var(--accent) 100%);
  background-size: cover;
  background-position: center;
}

.hero-banner--has-image .hero-banner__overlay {
  background: linear-gradient(180deg, rgba(12, 35, 64, 0.15) 0%, rgba(12, 35, 64, 0.35) 100%);
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
}

/* ── Modules common ── */
.module {
  position: relative;
  padding: 80px 0;
}

.module-head {
  margin-bottom: 48px;
}

.module-head__line {
  height: 1px;
  background: var(--line);
  margin-bottom: 28px;
}

.module-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.module-head__titles {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.module-head__en {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-head__cn {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.module-head__more {
  position: relative;
  font-size: 14px;
  color: var(--text);
  padding-bottom: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.module-head__more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.36s var(--ease);
}

.module-head__more:hover {
  color: var(--primary);
}

.module-head__more:hover::after {
  width: 60%;
}

.section-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* MORE button (reference style) */
.card-more {
  display: inline-block;
  position: relative;
  width: 114px;
  height: 40px;
  line-height: 40px;
  color: transparent;
  border: 1px solid rgba(102, 102, 102, 0.5);
  font-size: 13px;
  overflow: hidden;
  transition: border-color 0.36s var(--ease);
}

.card-more::before {
  content: "查看详情";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  color: var(--primary);
  text-indent: 30px;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid var(--primary);
  transition: width 0.36s var(--ease), text-indent 0.36s var(--ease), color 0.36s var(--ease);
}

.card-more::after {
  content: "";
  position: absolute;
  right: 58px;
  top: 50%;
  width: 0;
  border-top: 1px solid var(--primary);
  opacity: 0.6;
  transition: width 0.36s var(--ease);
}

.service-item:hover .card-more,
.course-item:hover .card-more,
.news-item:hover .card-more,
.team-item:hover .card-more {
  border-color: transparent;
}

.service-item:hover .card-more::before,
.course-item:hover .card-more::before,
.news-item:hover .card-more::before,
.team-item:hover .card-more::before {
  width: 100px;
  text-indent: 0;
}

.service-item:hover .card-more::after,
.course-item:hover .card-more::after,
.news-item:hover .card-more::after,
.team-item:hover .card-more::after {
  width: 56px;
}

.card-more--light::before {
  color: #646464;
}

.team-item:hover .card-more--light::before {
  color: var(--primary);
}

/* ── Service cards (overlap banner) ── */
.module-service {
  padding: 0 0 80px;
  margin-top: -120px;
  z-index: 10;
}

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

.service-item {
  position: relative;
  min-height: 360px;
  background: linear-gradient(145deg, #1a3d6b 0%, var(--primary) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: default;
}

.service-item__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 30, 55, 0.35) 0%,
    rgba(12, 30, 55, 0.72) 50%,
    rgba(12, 30, 55, 0.92) 100%
  );
  transition: background 0.36s var(--ease);
}

.service-item__frame {
  position: absolute;
  top: 6%;
  left: 3.5%;
  width: 93%;
  height: 88%;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.36s var(--ease), opacity 0.36s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.service-item:hover .service-item__shade {
  background: linear-gradient(
    180deg,
    rgba(30, 86, 160, 0.88) 0%,
    rgba(20, 61, 115, 0.96) 100%
  );
}

.service-item:hover .service-item__frame {
  border-color: rgba(255, 255, 255, 0.25);
}

.service-item__label {
  position: absolute;
  top: 28px;
  left: 28px;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  z-index: 3;
}

.service-item__index {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  z-index: 3;
  font-variant-numeric: tabular-nums;
}

.service-item__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 36px 32px 40px;
  text-align: center;
  z-index: 3;
}

.service-item__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.service-item:hover .service-item__title {
  font-size: 22px;
  margin-bottom: 14px;
}

.service-item__desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  max-width: 340px;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp 0.36s var(--ease);
}

.service-item:hover .service-item__desc {
  -webkit-line-clamp: 5;
}

.service-item .card-more {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.36s var(--ease), max-height 0.36s var(--ease), border-color 0.36s var(--ease);
}

.service-item:hover .card-more {
  opacity: 1;
  max-height: 40px;
}

.service-item .card-more::before {
  color: #fff;
  border-bottom-color: #fff;
}

.service-item .card-more::after {
  border-top-color: #fff;
}

/* ── Team ── */
.module-team {
  background: rgba(0, 0, 0, 0.03);
  padding-top: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-item {
  position: relative;
  background: #ddd;
  transition: transform 0.36s var(--ease);
}

.team-item--offset {
  transform: translateY(50px);
}

.team-item__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #c8cdd4;
}

.team-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-item:hover .team-item__photo img {
  transform: scale(1.03);
}

.team-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(160deg, var(--primary-dark), var(--primary-light));
}

.team-item__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.team-item__index {
  display: block;
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.team-item__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-item .card-more {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
  border-color: rgba(255, 255, 255, 0.35);
}

.team-item:hover .card-more {
  opacity: 1;
  transform: translateY(0);
}

/* ── Courses ── */
.module-course {
  padding-bottom: 90px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.course-item {
  border: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.36s var(--ease);
  cursor: default;
}

.course-item__cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--bg-soft);
}

.course-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.course-item:hover .course-item__cover img {
  transform: scale(1.04);
}

.course-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  background: #e8eef5;
}

.course-item__body {
  padding: 24px 20px 28px;
  text-align: center;
  transition: background 0.36s var(--ease), color 0.36s var(--ease);
}

.course-item__index {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: rgba(30, 86, 160, 0.12);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.36s var(--ease);
}

.course-item__tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.36s var(--ease), opacity 0.36s var(--ease);
}

.course-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  transition: color 0.36s var(--ease);
}

.course-item:hover .course-item__body {
  background: var(--primary);
}

.course-item:hover .course-item__index {
  color: rgba(255, 255, 255, 0.2);
}

.course-item:hover .course-item__tag {
  color: rgba(255, 255, 255, 0.6);
}

.course-item:hover .course-item__title {
  color: #fff;
}

/* ── News ── */
.module-news {
  background: var(--bg-soft);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 534px;
  gap: 0 40px;
  align-items: start;
}

.news-list-col {
  min-width: 0;
}

.news-item {
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.news-item--featured {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-item__cover {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #ddd;
  margin-top: 46px;
}

.news-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.news-item--featured:hover .news-item__cover img {
  transform: scale(1.03);
}

.news-item__body {
  flex: 1;
  min-width: 0;
}

.news-item__date {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.news-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 10px;
  transition: color 0.36s var(--ease);
}

.news-item:hover .news-item__title {
  color: var(--primary);
}

.news-item__summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item--featured .news-item__summary {
  -webkit-line-clamp: 3;
}

.news-item__tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 16px;
}

.news-item .card-more {
  margin-top: 4px;
}

/* ── About ── */
.module-about {
  border-top: 1px solid var(--line);
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-content__en {
  display: block;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-content__title {
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

.about-content__text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 40px;
  font-size: 14px;
  line-height: 30px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background 0.36s var(--ease), color 0.36s var(--ease), border-color 0.36s var(--ease);
}

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

.btn--outline {
  background: transparent;
}

.about-stats {
  display: grid;
  gap: 16px;
}

.about-stat {
  padding: 28px 32px;
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  transition: background 0.36s var(--ease), transform 0.36s var(--ease);
}

.about-stat:hover {
  background: #eef3f9;
  transform: translateX(4px);
}

.about-stat strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.about-stat span {
  font-size: 13px;
  color: var(--muted);
}

.about-visual__img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(30, 86, 160, 0.12);
}

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

.site-footer__top {
  padding: 56px 0 40px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 48px;
}

.site-footer__brand h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.site-footer__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 15px;
}

.site-footer__phone a {
  color: var(--primary);
  font-weight: 600;
}

.site-footer__intro {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
}

.site-footer__col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.site-footer__col p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--primary);
}

.site-footer__copy {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ── Stub pages ── */
.stub-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.stub-page__inner {
  text-align: center;
  padding: 80px 0;
}

.stub-page__title {
  font-size: 36px;
  color: var(--ink);
  margin: 12px 0 16px;
}

.stub-page__message {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-item--offset {
    transform: none;
  }
}

@media (max-width: 992px) {
  .site-nav,
  .site-header__phone {
    display: none;
  }

  .site-nav-toggle {
    display: flex;
  }

  .service-grid,
  .about-grid,
  .site-footer__grid,
  .news-layout {
    grid-template-columns: 1fr;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-service {
    margin-top: 0;
    padding-top: 40px;
  }

  .service-item {
    min-height: 300px;
  }

  .news-item--featured {
    order: -1;
  }

  .news-item__cover {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .module {
    padding: 56px 0;
  }

  .module-head__cn {
    font-size: 22px;
  }

  .service-grid,
  .course-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    height: 260px;
  }

  .service-item__desc {
    -webkit-line-clamp: 4;
  }
}
