@font-face {
  font-family: 'Oasis Sans SC';
  src: url('./assets/fonts/oasis-sans-sc.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Oasis Serif SC';
  src: url('./assets/fonts/oasis-serif-sc.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/fonts/instrument-serif-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky: #cfeffc;
  --sky-strong: #78cfef;
  --blue: #168bc8;
  --blue-deep: #123652;
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #112433;
  --muted: #5d6b74;
  --line: rgba(17, 36, 51, 0.2);
  --display: 'Instrument Serif', 'Oasis Serif SC', 'Noto Serif SC',
    'Source Han Serif SC', 'Songti SC', serif;
  --serif-cn: 'Oasis Serif SC', 'Noto Serif SC', 'Source Han Serif SC',
    'Songti SC', serif;
  --sans: 'Oasis Sans SC', 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.site-shell {
  min-width: 320px;
  overflow: clip;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(17, 36, 51, 0.25);
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 36, 51, 0.16);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(18, 54, 82, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand-logo {
  display: block;
  width: clamp(112px, 9vw, 144px);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2vw, 38px);
}

.desktop-nav a {
  position: relative;
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav span {
  color: rgba(17, 36, 51, 0.58);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  padding-top: 92px;
  overflow: hidden;
  background: var(--sky);
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4470 / 2399;
  background-image: url('./assets/images/background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: hero-arrive 1.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(207, 239, 252, 0.35), transparent 58%),
    linear-gradient(0deg, rgba(247, 248, 244, 0.28), transparent 32%);
  content: '';
}

.hero-bottom {
  position: absolute;
  right: clamp(22px, 4vw, 72px);
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.scroll-button {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 54, 82, 0.2);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(18, 54, 82, 0.2);
  color: var(--white);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.scroll-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.scroll-button:hover {
  background: var(--blue-deep);
  box-shadow: 0 12px 28px rgba(18, 54, 82, 0.28);
}

.scroll-button-down:hover {
  transform: translateY(4px);
}

.scroll-button-up:hover {
  transform: translateY(-4px);
}

.section-pad {
  padding: clamp(92px, 11vw, 170px) clamp(22px, 6vw, 104px);
  scroll-margin-top: 24px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-kicker p {
  margin: 0;
}

.section-kicker span {
  color: var(--blue);
}

.section-kicker-light {
  border-color: rgba(255, 255, 255, 0.26);
}

.section-kicker-light span {
  color: var(--sky-strong);
}

.about-section {
  min-height: 82svh;
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(54px, 7vw, 120px);
  align-items: start;
  padding-top: clamp(64px, 8vw, 118px);
}

.about-title h2,
.guide-heading h2,
.news-grid h2,
.brands-heading h2,
.contact-copy > h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(68px, 6.8vw, 108px);
  font-weight: 340;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.about-title h2 em,
.news-grid h2 em,
.brands-heading h2 em {
  color: var(--blue);
  font-style: normal;
  font-weight: inherit;
}

.about-title > p {
  margin: clamp(36px, 5vw, 68px) 0 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.about-copy {
  border-bottom: 1px solid var(--line);
}

.about-language {
  display: grid;
  grid-template-columns: minmax(76px, 0.28fr) repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-top: 1px solid var(--ink);
}

.about-language header {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-language p {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 420;
  letter-spacing: 0.012em;
  line-height: 1.92;
  text-align: justify;
  text-justify: inter-ideograph;
}

.about-language-en {
  border-color: var(--line);
  color: var(--muted);
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
}

.about-language-en p {
  font-family: inherit;
  font-size: clamp(17px, 1.15vw, 19px);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.72;
  text-align: left;
}

.guide-section {
  background: var(--blue-deep);
  color: var(--white);
}

.guide-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
  padding: clamp(78px, 9vw, 140px) 0 clamp(58px, 7vw, 105px);
}

.guide-heading h2 em {
  color: var(--sky-strong);
  font-style: normal;
  font-weight: inherit;
}

.guide-heading > div {
  padding-bottom: 8px;
}

.guide-heading a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.guide-heading a span {
  color: var(--sky-strong);
  font-size: 24px;
  transition: transform 240ms ease;
}

.guide-heading a:hover span {
  transform: translate(4px, -4px);
}

.pdf-shell {
  padding: clamp(12px, 1.5vw, 22px);
  background: var(--white);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.pdf-shell iframe {
  display: block;
  width: 100%;
  height: min(82svh, 960px);
  min-height: 680px;
  border: 0;
  background: #ececec;
}

.pdf-shell > p {
  margin: 15px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.pdf-shell > p a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-section {
  min-height: 84svh;
  background: var(--sky);
}

.news-grid {
  padding-top: clamp(78px, 9vw, 140px);
}

.news-grid h2 {
  white-space: nowrap;
}

.xiaohongshu-card {
  display: grid;
  grid-template-areas:
    'top top'
    'profile bio';
  grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.24fr);
  column-gap: clamp(32px, 5vw, 70px);
  row-gap: clamp(28px, 3vw, 40px);
  width: 100%;
  max-width: 960px;
  margin: clamp(56px, 7vw, 100px) auto 0;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(18, 54, 82, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(18, 54, 82, 0.1);
  backdrop-filter: blur(14px);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.xiaohongshu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(18, 54, 82, 0.16);
}

.xiaohongshu-card-top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.xiaohongshu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ff2442;
  color: var(--white);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.xiaohongshu-open {
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 650;
}

.xiaohongshu-open i {
  display: inline-block;
  margin-left: 5px;
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  transition: transform 240ms ease;
}

.xiaohongshu-card:hover .xiaohongshu-open i {
  transform: translate(4px, -4px);
}

.xiaohongshu-profile {
  grid-area: profile;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.xiaohongshu-profile > img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(18, 54, 82, 0.14);
  border-radius: 50%;
  object-fit: cover;
}

.xiaohongshu-profile strong {
  display: block;
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 650;
  line-height: 1.25;
}

.xiaohongshu-profile small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.xiaohongshu-bio {
  grid-area: bio;
  display: grid;
  gap: 5px;
  padding-left: clamp(28px, 4vw, 58px);
  border-left: 1px solid rgba(18, 54, 82, 0.13);
  color: rgba(17, 36, 51, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.xiaohongshu-bio p {
  margin: 0;
}

.brands-section {
  background: var(--paper);
}

.brands-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: end;
  padding: clamp(78px, 9vw, 140px) 0 clamp(65px, 8vw, 120px);
}

.brands-heading h2 {
  white-space: nowrap;
}

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

.brand-column {
  display: grid;
  grid-template-rows: 150px auto;
  min-width: 0;
  justify-items: center;
  padding: 0 clamp(18px, 2.5vw, 42px) clamp(34px, 4vw, 58px);
  border-right: 1px solid var(--line);
}

.brand-column:last-child {
  border-right: 0;
}

.brand-logo {
  display: grid;
  width: 100%;
  height: 150px;
  place-items: center;
  padding: 24px 8px;
}

.brand-logo img {
  width: auto;
  height: auto;
  max-width: min(100%, 280px);
  max-height: 88px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-logo.is-inverse {
  background: var(--blue-deep);
}

.brand-logo.is-inverse img {
  mix-blend-mode: normal;
}

.certificate-thumb {
  position: relative;
  display: grid;
  width: min(100%, 300px);
  aspect-ratio: 1.42;
  place-items: center;
  margin-top: clamp(28px, 3vw, 44px);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 15px 45px rgba(18, 54, 82, 0.1);
}

.certificate-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.certificate-thumb:hover > img {
  transform: scale(1.025);
}

.certificate-thumb > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(18, 54, 82, 0.16);
  color: var(--blue-deep);
  font-size: 22px;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.certificate-thumb:hover > span {
  background: var(--blue);
  color: var(--white);
}

.contact-section {
  min-height: 88svh;
  padding: clamp(92px, 11vw, 170px) clamp(22px, 6vw, 104px);
  scroll-margin-top: 24px;
  background: var(--blue-deep);
  color: var(--white);
}

.contact-copy {
  padding-top: clamp(80px, 10vw, 150px);
}

.contact-copy > h2 {
  margin: 0 0 clamp(42px, 6vw, 80px);
  color: var(--sky-strong);
}

.contact-copy > a {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--sans);
  font-size: clamp(44px, 5.8vw, 88px);
  font-weight: 520;
  letter-spacing: -0.052em;
  line-height: 0.94;
}

.contact-copy em {
  color: var(--sky-strong);
  font-style: normal;
  font-weight: inherit;
}

.contact-copy > a > span {
  position: absolute;
  top: 0;
  right: -0.9em;
  color: var(--sky-strong);
  font-family: var(--sans);
  font-size: 0.25em;
  transition: transform 260ms ease;
}

.contact-copy > a:hover > span {
  transform: translate(6px, -6px);
}

.site-footer {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 30px;
  padding: 32px clamp(22px, 4vw, 72px);
  background: var(--sky-strong);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.site-footer p {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  justify-self: center;
  text-align: center;
}

.site-footer > a {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
}

@keyframes hero-arrive {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-range: entry 4% cover 30%;
    animation-timeline: view();
  }
}

@media (max-width: 1080px) {
  .brand-column {
    padding-right: clamp(12px, 2vw, 24px);
    padding-left: clamp(12px, 2vw, 24px);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    list-style: none;
  }

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

  .mobile-menu nav {
    position: absolute;
    top: 40px;
    right: 0;
    display: grid;
    width: min(90vw, 410px);
    padding: 12px 26px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(18, 54, 82, 0.2);
  }

  .mobile-menu nav a {
    display: grid;
    grid-template-columns: minmax(112px, auto) 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: 0.08em;
  }

  .about-grid,
  .guide-heading,
  .brands-heading {
    grid-template-columns: 1fr;
  }

  .about-grid {
    align-items: start;
  }

  .about-copy {
    width: min(100%, 840px);
    margin-left: auto;
  }

  .guide-heading > div {
    max-width: 520px;
    margin-left: auto;
  }

}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
  }

  .hero {
    padding-top: 76px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .site-brand-logo {
    width: 105px;
  }

  .hero-bottom {
    right: 22px;
    bottom: 24px;
  }

  .scroll-button {
    width: 48px;
    height: 48px;
  }

  .scroll-button svg {
    width: 23px;
    height: 23px;
  }

  .section-kicker {
    font-size: 12px;
  }

  .about-title h2,
  .guide-heading h2,
  .news-grid h2,
  .brands-heading h2,
  .contact-copy > h2 {
    font-size: clamp(52px, 15vw, 68px);
  }

  .about-language {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-language header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .about-language p {
    text-align: left;
  }

  .pdf-shell {
    margin: 0 -10px;
    padding: 8px;
  }

  .pdf-shell iframe {
    height: 68svh;
    min-height: 520px;
  }

  .xiaohongshu-card {
    display: block;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .xiaohongshu-profile {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    margin-top: 26px;
  }

  .xiaohongshu-profile > img {
    width: 58px;
    height: 58px;
  }

  .xiaohongshu-profile strong {
    font-size: 20px;
  }

  .xiaohongshu-bio {
    margin-top: 25px;
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(18, 54, 82, 0.13);
    border-left: 0;
    font-size: 14px;
  }

  .brand-matrix {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .brand-column {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .brand-logo {
    height: 132px;
  }

  .certificate-thumb {
    width: min(100%, 320px);
  }

  .contact-section {
    min-height: 72svh;
  }

  .contact-copy > a {
    font-size: clamp(34px, 10.5vw, 58px);
  }

  .contact-copy > a > span {
    display: none;
  }

  .site-footer {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 12px;
    padding-block: 24px;
  }

  .site-footer > p {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    margin-top: 0;
    opacity: 0.72;
  }

  .site-footer > a {
    grid-row: 1;
    grid-column: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
