/* TCET — 对齐 Figma 主色与布局 (node 526:508) */
:root {
  --navy-900: #001e40;
  --navy-800: #012d5b;
  --blue-link: #1e3a8a;
  --text-muted: #64748b;
  --text-card: #737780;
  --footer-line: #91a2bb;
  --footer-brand: rgba(255, 255, 255, 0.5);
  --bg-page: #f3faff;
  --bg-about: #e6f6ff;
  --white: #ffffff;
  --shadow-topnav: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px rgba(1, 45, 91, 0.08);
  --container: 1280px;
  --pad: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Noto Sans SC", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 16px;
  color: var(--navy-800);
  background: linear-gradient(90deg, var(--bg-page), var(--bg-page)), var(--white);
  padding-top: 68px;
}

main,
.page-main {
  flex: 1 0 auto;
}

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

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

a:hover {
  opacity: 0.88;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* —— Top bar —— */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-topnav);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: #172554;
  flex-shrink: 0;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: #172554;
  border-radius: 1px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.nav__link {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.025em;
  padding: 4px 0 6px;
  border-bottom: 2px solid transparent;
}

.nav__link--active {
  font-weight: 700;
  color: var(--blue-link);
  border-bottom-color: var(--blue-link);
  letter-spacing: 0;
  padding-top: 4px;
  padding-bottom: 6px;
}

.lang {
  position: relative;
  flex-shrink: 0;
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: var(--blue-link);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.lang__icon {
  flex-shrink: 0;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(1, 45, 91, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 200;
}

.lang-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu__opt {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--navy-800);
  cursor: pointer;
}

.lang-menu__opt:hover {
  background: var(--bg-about);
}

@media (max-width: 900px) {
  .topnav__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px 12px;
  }

  .logo {
    grid-column: 1;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
  }

  .lang {
    grid-column: 3;
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 8px 0 20px;
    box-shadow: none;
    border-top: 1px solid rgba(1, 45, 91, 0.08);
    display: none;
  }

  .nav--open {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  width: 100%;
  min-height: min(70vw, 600px);
  max-height: 600px;
  background: #000;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  min-height: min(70vw, 600px);
  max-height: 600px;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero__slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-color: #012d5b;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 与 Figma 近似的左右渐变 */
.hero__shade--lr {
  background: linear-gradient(
    90deg,
    rgba(1, 45, 91, 0.6) 0%,
    rgba(1, 45, 91, 0.37) 36.1%,
    rgba(1, 45, 91, 0) 65.6%
  );
}

.hero__shade--lr.hero__shade--mid {
  background: linear-gradient(
    90deg,
    rgba(1, 45, 91, 0.43) 0%,
    rgba(1, 45, 91, 0.26) 36.1%,
    rgba(1, 45, 91, 0) 65.6%
  );
}

.hero__shade--tb {
  background: linear-gradient(180deg, rgba(1, 45, 91, 0.3) 0%, rgba(1, 45, 91, 0) 18.4%);
}

.hero__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  margin: 0;
  max-width: min(90vw, 920px);
  width: 100%;
  padding: 0 var(--pad);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  z-index: 2;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .hero__title {
    left: 350px;
    transform: none;
    width: auto;
    max-width: 712px;
    margin-left: 0;
  }
}

.hero__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__dot {
  width: 40px;
  height: 5px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.hero__dot--active,
.hero__dot:hover {
  background: #fff;
}

/* —— Sections —— */
.section {
  padding: 96px 0;
}

.section--about {
  background: var(--bg-about);
}

.section__head {
  margin-bottom: 32px;
  max-width: 672px;
}

.section__title {
  margin: 0 0 6px;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section__lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy-800);
}

.prose {
  max-width: 100%;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--navy-800);
}

.prose p {
  margin: 0 0 0.5em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose__strong {
  display: block;
  margin: 0.5em 0 0.25em;
  font-weight: 700;
}

.section--adv .section__title {
  margin-bottom: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
}

.card__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.card__title {
  margin: 0;
  padding-top: 4px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-900);
}

.card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-card);
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* —— Footer —— */
.footer {
  background: var(--navy-800);
  color: #cbd5e1;
  padding: 48px var(--pad);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1232px;
}

.footer__brand {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--footer-brand);
  line-height: 1.4;
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #64748b;
  max-width: 520px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-line);
}

.footer__links a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
  }
}

/* —— Inner pages: 联系 / 条款 / 隐私 —— */
.page-main {
  width: 100%;
}

.page-strip,
.contact-top {
  background: var(--bg-about);
  padding: 36px 0 28px;
}

.page-strip__h,
.contact-top__h {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.contact-top {
  padding: 68px 0 48px;
}

.contact-top__text {
  margin-top: 16px;
  max-width: 672px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--navy-800);
}

.contact-top__text p {
  margin: 0 0 0.25em;
}

.contact-top__text p:last-child {
  margin-bottom: 0;
}

.section.contact-addr {
  padding: 68px 0 96px;
  background: var(--white);
}

.contact-addr__h {
  margin: 0 0 24px;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.04em;
}

.contact-addr__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 148px;
  align-items: flex-start;
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 672px;
}

.contact-row__ic {
  flex-shrink: 0;
  object-fit: contain;
}

.contact-row__txt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 552px;
}

.contact-row__txt--mono {
  font-variant-numeric: tabular-nums;
}

.contact-addr__col2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

a.contact-mail {
  color: var(--text-muted);
}

a.contact-mail:hover {
  color: var(--blue-link);
  opacity: 1;
}

.legal-sheets {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
  width: 100%;
  background: var(--bg-page);
}

.legal-sheets__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

@media (max-width: 900px) {
  .contact-addr__grid {
    flex-direction: column;
    gap: 24px;
  }
}
