:root {
  --purple: #5634e9;
  --purple-dark: #4022c9;
  --yellow: #ffd21f;
  --red: #ff464b;
  --ink: #292a2f;
  --muted: #68666f;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --radius: 22px;
  --shadow: 0 16px 40px rgba(52, 36, 117, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--soft); }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero { width: 100%; aspect-ratio: 1920 / 729; min-height: 0; background: #ffe683 url("images/hero.jpg?v=20260818-21") center / 100% 100% no-repeat; }
.main-nav { position: sticky; top: 0; z-index: 100; background: var(--purple); box-shadow: 0 5px 18px rgba(31, 19, 105, .22); }
.nav-inner { width: min(1285px, 100%); margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); font-size: 22px;}
.main-nav a { min-height: 58px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; transition: background .2s ease; }
.main-nav a:hover, .main-nav a.active { background: var(--red); }

.section-pad { padding: 56px 20px; }
.content-wrap { width: min(1200px, 100%); margin: auto; }
.intro { background: #fff url("images/intro_bg.jpg?v=20260818-29") center / 100% 100% no-repeat; }
.intro { padding-top: 38px; padding-bottom: 12px; }
.intro-copy { max-width: 1060px; margin: 0 auto 30px; font-size: 17px; text-align: justify; }
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.feature { display: flex; min-width: 0; flex-direction: column; align-items: center; padding: 0; color: var(--purple); text-align: center; }
.feature img { width: auto; height: auto; max-height: 57px; margin-bottom: 14px; object-fit: contain; object-position: center; }
.feature h2 { width: 86%; margin: 0; padding: 0 0 7px; border-bottom: 1px solid currentColor; font-size: 20px; line-height: 1.3; white-space: nowrap; }
.feature p { width: 100%; min-height: 88px; margin: 0; padding: 10px 9px 8px; border-radius: 0 0 10px 10px; background: color-mix(in srgb, var(--tone) 9%, #fff); color: #55515b; font-size: 13px; line-height: 1.55; text-align: left; }
.feature-orange { --tone: #ff6500; color: var(--tone); }.feature-red { --tone: #ff4050; color: var(--tone); }.feature-pink { --tone: #db22d5; color: var(--tone); }
.feature-purple { --tone: #6741e8; color: var(--tone); }.feature-blue { --tone: #347ee9; color: var(--tone); }.feature-green { --tone: #24aa52; color: var(--tone); }

.city-area {
  position: relative;
  overflow: hidden;
  padding-top: 12px;
  background: #f4f4f4 url("images/bg_city.png?v=20260818-21") center top / 100% auto no-repeat;
}
.city-tabs { position: sticky; top: 58px; z-index: 80; display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: #e8e8e8; border-top: 5px solid #5338e9; border-radius: 14px 14px 0 0; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.city-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.city-tabs button { flex: 1 0 96px; min-height: 52px; border: 0; background: transparent; color: #343238; font: inherit; font-weight: 700; cursor: pointer; }
.city-tabs button[aria-selected="true"] { color: var(--purple); background: #fff; }
.city-tabs button[aria-selected="true"]::before { content: "★"; color: var(--yellow); margin-right: 7px; }

.panel-section { padding: 24px 34px 46px; background: #fff; }
.panel-section:last-child { border-radius: 0 0 28px 28px }
.section-title { width: fit-content; margin: 0 auto 28px; position: relative; isolation: isolate; text-align: left; }
.section-title::before { content: ""; position: absolute; z-index: -1; inset: 15px -24px -6px -18px; border-radius: 12px 5px 12px 5px; background: var(--purple); box-shadow: inset 8px 0 rgba(255,255,255,.16); transform: skewX(-2deg); }
.section-title::after { content: ""; position: absolute; z-index: -2; left: -8px; top: 4px; width: 76%; height: 28px; background: var(--yellow); transform: rotate(3deg); }
.section-title small { color: #786e66; font-size: 11px; letter-spacing: .08em; }
.section-title h2 { margin: -2px 0 0; color: #fff; font-size: 34px; line-height: 1.25; letter-spacing: .08em; }
.section-title-image { width: 334px; max-width: 70vw; margin-bottom: 28px; }
.section-title-image::before, .section-title-image::after { display: none; }
.section-title-image img { width: 100%; height: auto; }

.carousel { position: relative; padding: 0; }
.carousel-stage { min-height: 120px; }
.carousel-placeholder { visibility: hidden; pointer-events: none; }
.carousel-arrow { display: none !important; }
.carousel-arrow:hover { background: var(--red); transform: translateY(-2px); }
.carousel-arrow.prev { left: -18px; }.carousel-arrow.next { right: -18px; }
.carousel-footer { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.dot { position: relative; width: 24px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.dot::after { content: ""; position: absolute; width: 11px; height: 11px; left: 50%; top: 50%; border-radius: 50%; background: #ddd; transform: translate(-50%, -50%); }
.dot.active::after { background: var(--red); }
.pause { display: none !important; }

.speaker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; width: 100%; margin: 0 auto; }
.speaker-card { overflow: hidden; background: var(--purple); color: #fff; box-shadow: -14px -16px 0 var(--yellow); }
.speaker-card img { width: 100%; aspect-ratio: 1.06; object-fit: cover; object-position: center top; }
.speaker-card .speaker-copy { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px 16px; }
.speaker-card h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.speaker-card p { margin: 0; min-height: 50px; font-size: 13px; line-height: 1.3; }
.speaker-placeholder-image { width: 100%; aspect-ratio: 1.06; }

.school-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 14px; }
.school-card { text-align: center; }
.school-card img { width: 100%; aspect-ratio: 1.45; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.school-card p { margin: 7px 0 0; font-size: 15px; line-height: 1.35; }
.school-placeholder-image { display: block; width: 100%; aspect-ratio: 1.45; }
.school-card.carousel-placeholder p { min-height: 36px; }

.news-section { color: #fff; background: #5033e9 url("images/news_bg.jpg?v=20260818-21") center / 100% 100% no-repeat; }
.news-heading { text-align: center; margin-bottom: 40px; }
.news-heading h2 { margin: 0; font-size: 36px; }.news-heading h2 span { color: var(--yellow); }
.news-heading p { margin: 5px 0 0; font-size: 12px; letter-spacing: .3em; }
.news-grid { display: grid; min-height: 198px; grid-template-columns: repeat(2, 1fr); gap: 26px 50px; align-content: start; }
.news-card { display: grid; grid-template-columns: 106px 1fr; gap: 18px; align-items: start; }
.news-card img { width: 106px; height: 106px; object-fit: cover; border-radius: 4px; }
.news-card a { margin-top: 7px; color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; text-underline-offset: 6px; }
.news-card a:hover { text-decoration: underline; }
.news-section .carousel-arrow { background: #fff; color: var(--purple); }
.news-section .pause { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); color: #fff; }
.news-carousel .dots { gap: 6px; }
.news-carousel .dot { width: 24px; height: 24px; background: #fff; color: #403d49; font-size: 12px; font-weight: 700; line-height: 24px; }
.news-carousel .dot::after { display: none; }
.news-carousel .dot.active { background: var(--red); color: #fff; }

.lower-area { background: var(--soft) url("images/bg_gallery.png?v=20260818-21") center top / 100% auto no-repeat; }
.gallery-section { position: relative; overflow: hidden; background: transparent; }
.gallery-section .carousel { position: relative; }
.gallery-grid { display: grid; grid-template-columns: 11.667% 76.666% 11.667%; gap: 0; align-items: center; aspect-ratio: 1200 / 497; }
.gallery-card { height: 84%; align-self: center; margin: 0; overflow: hidden; border-radius: 0; opacity: .48; }
.gallery-card.main { height: 100%; opacity: 1; box-shadow: 0 16px 34px rgba(42, 31, 105, .12); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.gallery-section .carousel-footer { position: absolute; top: 10px; right: calc(11.667% + 18px); z-index: 5; min-height: 24px; margin: 0; }
.gallery-section .dots { gap: 0; }
.gallery-section .dot { width: 20px; height: 24px; }
.gallery-section .dot::after { width: 11px; height: 11px; background: #fff; }
.gallery-section .dot.active::after { background: var(--red); }

.reviews-section { background: transparent; padding-top: 30px; }
.review-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { text-decoration: none; }
.review-card img { width: 100%; aspect-ratio: 1.92; object-fit: cover; }
.review-card span { display: block; padding: 8px; text-align: center; color: #fff; background: var(--purple); }
.review-card:hover span { text-decoration: underline; text-underline-offset: 4px; }
.review-links { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
.review-links a { color: #302d35; font-size: 14px; text-decoration: none; text-underline-offset: 4px; }
.review-links a:hover { text-decoration: underline; }

.footer { overflow: hidden; background: var(--purple); }
.contact { margin: 0; padding: 34px 20px; color: var(--ink); background: transparent; text-align: center; font-size: clamp(22px, 2.4vw, 38px); font-weight: 700; letter-spacing: .04em; }
.footer img { width: 100%; height: auto; }

@media (min-width: 1301px) {
  .main-nav a { min-height: 70px; }

  .intro { height: auto; padding: 53px 20px 10px; }
  .intro .content-wrap { width: 1132px; }
  .intro-copy { max-width: 1132px; margin-bottom: 40px; font-size: 20px; line-height: 2.1; }
  .features { gap: 9px; }
  .feature h2 { width: 80%; }

  .city-area { height: 2888px; padding: 48px 0 0; background-size: 100% 2888px; }
  .city-area > .content-wrap { width: 1272px; }
  .city-tabs {
    position: relative;
    top: 0;
    height: 84px;
    padding-top: 40px;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .city-tabs::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 13px;
    left: 31px;
    right: 48px;
    height: 1px;
    background: #5338e9;
  }
  .city-tabs::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 26px;
    height: 58px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(to bottom, #5338e9 0 14px, #e8e8e8 14px 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
  }
  .city-tabs button { position: relative; z-index: 1; align-self: flex-end; height: 44px; min-height: 44px; color: #4b4b4b; font-size: 18px; font-weight: 400; }
  .city-tabs button[aria-selected="true"] { clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 100%, 0 100%); color: #5338e9; font-weight: 700; }
  .panel-section { padding-left: 60px; padding-right: 60px; }
  #speakers { padding-top: 42px; padding-bottom: 0; }
  #speakers .section-title { margin-bottom: 67px; }
  .speaker-grid { max-width: 1129px; grid-template-columns: repeat(3, 328px); column-gap: 0; row-gap: 45px; justify-content: space-between; }
  .speaker-card { width: 328px; height: 394px; box-shadow: -12px -13px 0 var(--yellow); }
  .speaker-card img { height: 312px; aspect-ratio: auto; }
  .speaker-placeholder-image { height: 312px; aspect-ratio: auto; }
  .speaker-card .speaker-copy { height: 82px; padding: 10px 12px 12px; }
  .speaker-card h3 { font-size: 18px;  width: 90px}
  .speaker-card p { min-height: 0; font-size: 13px; }
  #schools { padding-top: 68px; padding-bottom: 0; }
  #schools .section-title { margin-bottom: 42px; }
  .school-grid { max-width: 1130px; margin: auto; grid-template-columns: repeat(6, 176px); grid-auto-rows: 174px; column-gap: 0; row-gap: 24px; justify-content: space-between; }
  .school-card img { width: 176px; height: 129px; aspect-ratio: auto; }
  .school-placeholder-image { width: 176px; height: 129px; aspect-ratio: auto; }

  .news-section { height: 581px; padding: 52px 20px 0; }
  .news-section .content-wrap { width: 1168px; }
  .news-heading { margin-bottom: 54px; }
  .news-heading h2 { font-size: 42px; line-height: 1.1; }
  .news-grid { min-height: 257px; gap: 27px 39px; }
  .news-card { grid-template-columns: 106px 1fr; gap: 18px; }
  .news-card img { width: 106px; height: 106px; }
  .news-carousel .carousel-footer { min-height: 22px; margin-top: 30px; }

  .lower-area { height: 1510px; background-size: 100% 1510px; }
  .gallery-section { height: 775px; padding: 77px 0 0; }
  .gallery-section .content-wrap { width: 1201px; }
  .gallery-section .section-title { margin-bottom: 53px; }
  .gallery-grid { height: 497px; aspect-ratio: auto; }
  .reviews-section { height: 647px; padding: 47px 0 0; }
  .reviews-section .content-wrap { width: 1250px; }
  .reviews-section .section-title { margin-bottom: 45px; }
  .review-featured { gap: 24px; }
  .review-card img { height: 200px; aspect-ratio: auto; }
  .review-links { margin-top: 39px; }
  .contact { height: 60px; padding: 0 20px; display: grid; place-items: center; }
  .footer { height: auto; }
  .footer img { height: auto; object-fit: cover; }
}

@media (max-width: 980px) {
  .section-pad { padding: 44px 18px; }
  .intro { padding-top: 30px; padding-bottom: 12px; }
  .city-area { padding-top: 12px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: repeat(6, 1fr); gap: 18px 8px; }
  .school-card p { font-size: 10px; }
  .review-links { grid-template-columns: repeat(3, 1fr); }
  .lower-area { height: auto; }
}

@media (max-width: 640px) {
  .nav-inner { overflow-x: auto; display: flex; scrollbar-width: none; }
  .main-nav a { flex: 0 0 96px; min-height: 50px; font-size: 14px; }
  .section-pad { padding: 46px 14px; }
  .intro { padding-top: 28px; padding-bottom: 10px; }
  .city-area { padding-top: 12px; }
  .intro-copy { font-size: 16px; line-height: 1.85; margin-bottom: 30px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature { padding: 0; }
  .feature img { width: auto; height: 46px; max-width: 60px; }
  .feature h2 { font-size: 16px; }.feature p { min-height: 112px; padding: 9px 8px; font-size: 12px; }
  .city-tabs { top: 50px; border-radius: 10px 10px 0 0; }
  .city-tabs button { flex-basis: 78px; min-height: 48px; font-size: 14px; }
  .panel-section { padding: 24px 14px 38px; }
  .section-title { margin-bottom: 34px; }
  .section-title-image { width: 240px; margin-bottom: 28px; }
  .section-title h2 { font-size: 27px; }
  .carousel { padding: 0; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 32px; }
  .carousel-arrow.prev { left: -13px; }.carousel-arrow.next { right: -13px; }
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .speaker-card { box-shadow: -7px -7px 0 var(--yellow); }
  .speaker-card .speaker-copy { display: block; }
  .speaker-card h3 { margin-bottom: 5px; }
  .speaker-card h3 { font-size: 16px; }.speaker-card p { font-size: 12px; min-height: 70px; }
  .school-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .school-card p { font-size: 12px; }
  .news-heading h2 { font-size: 30px; }
  .news-heading p { font-size: 9px; letter-spacing: .16em; }
  .news-grid { min-height: 162px; grid-template-columns: 1fr; gap: 18px; }
  .news-card { grid-template-columns: 72px 1fr; gap: 12px; }
  .news-card img { width: 72px; height: 72px; }.news-card a { margin-top: 3px; font-size: 15px; }
  .gallery-grid { grid-template-columns: 1fr; aspect-ratio: 923 / 497; }
  .gallery-card { display: none; }.gallery-card.main { display: block; height: 100%; }
  .gallery-section .carousel-footer { top: 8px; right: 10px; }
  .review-featured { grid-template-columns: 1fr; gap: 16px; }
  .review-links { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer img { width: 150%; max-width: none; transform: translateX(-16.67%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
