/* ==========================================================================
   Taimei Technology — Homepage
   Native HTML/CSS/JS, PC-only, pixel-faithful to Figma (1440px master)
   ========================================================================== */

:root {
  --bg: #000f60;
  --blue: #0a47ed;
  --cyan: #00d8e3;
  --light-blue: #5ea4ff;
  --blue-soft: #85beff;
  --white: #ffffff;
  --white-50: rgba(255, 255, 255, 0.5);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-10: rgba(255, 255, 255, 0.1);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;

  --title-gradient: linear-gradient(180deg, #ffffff 20%, #5985ff 100%);
  --page-width: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 不能在 body 上设置 overflow-x: hidden：html 已设置时 body 会自身
     成为滚动容器（overflow-y 计算为 auto），出现第二条垂直滚动条。 */
}

img {
  max-width: none;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page-wrap {
  width: 100%;
  overflow-x: hidden;
}

.page {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
  min-height: 5575px;
}

/* The header is fixed and overlays the hero, so main starts at the very top. */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gradient headline used by section titles */
.section-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1198px;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  text-align: center;
  letter-spacing: 0;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: 1;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 1168px;
}

.hero__banner {
  position: absolute;
  top: -297px;
  left: -529px;
  width: 3112px;
  height: 1173px;
  object-fit: cover;
  z-index: 0;
}

.hero__cube {
  position: absolute;
  top: 68px;
  left: calc(50vw - 296px);
  width: 1034px;
  height: 600px;
  transform: scaleY(-1);
  z-index: 1;
}

.hero__glow {
  position: absolute;
  top: 170px;
  left: 207px;
  width: 1026px;
  height: 541px;
  z-index: 1;
}

.hero__badge {
  position: absolute;
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.12),
    0 0 20px rgba(10, 71, 237, 0.2);
  z-index: 2;
  transition: background 0.2s ease;
}

.hero__badge:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero__badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: var(--blue);
  border-radius: 40px;
}

.hero__badge-text {
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
  white-space: nowrap;
}

.hero__title {
  position: absolute;
  top: 249px;
  left: 50%;
  transform: translateX(-50%);
  width: 1193px;
  /* 标题合并为一行后仍占原来两行的高度块，文字垂直居中，
     这样与下方副标题（top:420）的间距不变；英文站标题换行时块也能自然撑高 */
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: -0.05em;
  text-align: center;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: 2;
}

.hero__subtitle {
  position: absolute;
  top: 420px;
  left: 50%;
  transform: translateX(-50%);
  width: 1039px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  color: var(--white);
  z-index: 2;
}

/* --- Browser mockup --- */
.screen {
  position: absolute;
  top: 548px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  border: 4px solid transparent;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(0, 4, 32, 1) 67%, rgba(0, 15, 96, 0) 100%) padding-box,
    linear-gradient(180deg, rgba(95, 138, 255, 1) 0%, rgba(29, 52, 144, 1) 70%, rgba(0, 15, 96, 0) 100%) border-box;
  z-index: 2;
  overflow: hidden;
}

.screen__content {
  position: absolute;
  inset: 0;
}

.screen__bar {
  position: absolute;
  top: 25px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.screen__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.screen__dot--red { background: #e6655d; }
.screen__dot--yellow { background: #ebb64e; }
.screen__dot--green { background: #5fbd51; }

.screen__sidebar {
  position: absolute;
  top: 50px;
  left: 27px;
  width: 293px;
  height: 599px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(41, 41, 41, 1) 12%, rgba(143, 143, 143, 0) 88%) border-box;
  z-index: 3;
}

.screen__sidebar-logo {
  position: absolute;
  top: 41px;
  left: 56px;
  width: 182px;
  height: 36px;
}

.screen__menu {
  position: absolute;
  top: 118px;
  left: 12px;
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.screen__menu-item {
  width: 270px;
  height: 100px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 15px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.screen__menu-item span {
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  color: var(--white);
}

.screen__menu-item--active {
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.2) 57%, rgba(10, 71, 237, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 56, 186, 0.6) 0%, rgba(6, 40, 135, 0.6) 12%, rgba(8, 56, 186, 0.6) 76%, rgba(10, 71, 237, 0.6) 92%, rgba(36, 94, 255, 0.6) 100%);
}

.screen__menu-item--active span {
  line-height: 34px;
}

.screen__desc {
  position: absolute;
  top: 87px;
  left: 356px;
  width: 519px;
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.screen__icon {
  position: absolute;
  top: 63px;
  left: 905px;
  width: 130px;
  height: 131px;
}

.screen__chart {
  position: absolute;
  top: 194px;
  left: 356px;
  width: 705px;
  height: 328px;
}

.screen__axis {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.screen__axis span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.screen__gridline {
  position: absolute;
  left: 33px;
  width: 672px;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.screen__gridline--1 { top: 23px; }
.screen__gridline--2 { top: 96px; }
.screen__gridline--3 { top: 169px; }
.screen__gridline--4 { top: 241px; }
.screen__gridline--5 { top: 313px; }

.screen__chart-img {
  position: absolute;
  top: -34px;
  left: 33px;
  width: 666px;
  height: 347px;
}

.screen__panel {
  position: absolute;
  inset: 0;
  display: none;
}

.screen__panel.is-active {
  display: block;
}

.screen__commercial-img {
  position: absolute;
  top: 64px;
  left: 370px;
  width: 668px;
  height: 497px;
}

.screen__commercial-icon {
  position: absolute;
  top: 81px;
  left: 870px;
  width: 163px;
  height: 136px;
}

.screen__pv-img {
  position: absolute;
  top: 217px;
  left: 375px;
  width: 632px;
  height: 314px;
}

.screen__pv-icon {
  position: absolute;
  top: 50px;
  left: 911px;
  width: 150px;
  height: 190px;
}

/* ==========================================================================
   AI Agents
   ========================================================================== */

.agents {
  position: relative;
  height: 737px;
  overflow: hidden;
}

.agents__bg {
  position: absolute;
  top: 0;
  left: -821px;
  width: 2156px;
  height: 737px;
  background:
    radial-gradient(circle 900px at 70% 40%, rgba(234, 177, 254, 0.5) 0%, rgba(211, 86, 255, 0.3) 24%, rgba(22, 139, 239, 0) 40%),
    radial-gradient(circle 520px at center, rgba(10, 71, 237, 0.28) 0%, rgba(10, 71, 237, 0) 70%);
  z-index: 0;
}

.agents__title {
  top: 30px;
}

.video {
  position: absolute;
  top: 133px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 540px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(10, 71, 237, 1) 0%, rgba(49, 0, 141, 1) 100%);
  box-shadow: inset 0 0 40px 0 rgba(10, 71, 237, 1);
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.video::after {
  content: "";
  position: absolute;
  top: 115px;
  left: -137px;
  width: 630px;
  height: 765px;
  background: #0b79ff;
  filter: blur(112px);
  opacity: 0.5;
  pointer-events: none;
}

.video__logo {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 118px;
  height: 43px;
  z-index: 1;
}

.video__wordmark {
  position: absolute;
  top: 293px;
  left: 50px;
  width: 303px;
  height: 60px;
  z-index: 1;
}

.video__caption {
  position: absolute;
  top: 372px;
  left: 48px;
  width: 464px;
  font-size: 36px;
  line-height: 42px;
  color: var(--blue-soft);
  z-index: 1;
}

.video__caption-strong {
  color: #c4dfff;
  font-weight: 700;
}

.video__play {
  position: absolute;
  top: 212px;
  left: 422px;
  width: 115px;
  height: 115px;
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 2;
  transition: transform 0.25s ease, background 0.25s ease;
}

.video__play:hover {
  transform: scale(1.06);
  background: rgba(217, 217, 217, 0.32);
}

/* ==========================================================================
   Solutions
   ========================================================================== */

.solutions {
  position: relative;
  height: 832px;
}

.solutions__cube {
  position: absolute;
  top: 30px;
  left: calc(50vw - 296px);
  width: 1034px;
  height: 600px;
  transform: scaleY(-1);
  z-index: 0;
}

.solutions__title {
  top: 71px;
}

.solution-grid {
  position: absolute;
  top: 181px;
  left: 69px;
  width: 1302px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  z-index: 1;
}

.solution-card {
  position: relative;
  width: 420px;
  height: 280px;
  padding: 28px 22px;
  border: 1px solid var(--blue);
  border-radius: 20px;
  background:
    linear-gradient(45deg, rgba(4, 24, 132, 0.25) 57%, rgba(10, 71, 237, 0.25) 98%),
    linear-gradient(180deg, rgba(8, 56, 186, 0.3) 0%, rgba(6, 40, 135, 0.3) 12%, rgba(8, 56, 186, 0.3) 76%, rgba(10, 71, 237, 0.3) 92%, rgba(36, 94, 255, 0.3) 100%);
  box-shadow: 0 0 20px 6px rgba(10, 71, 237, 0.1), inset 0 4px 17px 0 rgba(0, 216, 227, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(82deg, rgba(4, 24, 132, 0.60) 57.43%, rgba(10, 71, 237, 0.60) 97.71%),
    linear-gradient(180deg, rgba(8, 56, 186, 0.80) 0%, rgba(6, 40, 135, 0.80) 11.59%, rgba(8, 56, 186, 0.80) 75.82%, rgba(10, 71, 237, 0.80) 92.38%, rgba(36, 94, 255, 0.80) 100%);
  background-blend-mode: screen, normal;
  box-shadow: 0 4px 17.2px 0 rgba(0, 216, 227, 0.40) inset, 0 0 20px 6px rgba(10, 71, 237, 0.30);
}

.solution-card__icon {
  position: absolute;
  top: 28px;
  left: 22px;
  width: 36px;
  height: 36px;
}

.solution-card__title {
  position: absolute;
  top: 28px;
  left: 64px;
  width: 322px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--white);
}

.solution-card__text {
  position: absolute;
  top: 80px;
  left: 22px;
  width: 380px;
  font-size: 18px;
  line-height: 30px;
  color: var(--light-blue);
  transition: color 0.25s ease;
}

/* 悬停高亮：卡片移入时正文变白（各卡片统一逻辑） */
.solution-card:hover .solution-card__text {
  color: var(--white);
}

.solution-card__btn {
  position: absolute;
  left: 252px;
  top: 215px;
  padding: 10px 32px 10.5px;
  font-size: 16px;
  line-height: 28px;
  color: var(--blue);
  background: var(--white);
  border-radius: 9999px;
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.solution-card:hover .solution-card__btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.solution-card:hover .solution-card__btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Experience
   ========================================================================== */

.experience {
  position: relative;
  height: 671px;
}

.experience__blur {
  position: absolute;
  top: -399px;
  left: 460px;
  width: 1728px;
  height: 530px;
  background: #041884;
  filter: blur(150px);
  z-index: 0;
}

.experience__map {
  position: absolute;
  top: 0;
  left: -751px;
  width: 2813px;
  height: 1015px;
  z-index: 0;
}

.experience__title {
  top: 52px;
}

.stats {
  position: absolute;
  top: 162px;
  left: 80px;
  width: 1257px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 4px 135px;
  z-index: 1;
}

.stat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
}

.stat__num {
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  color: var(--cyan);
}

.stat__label {
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.stat__desc {
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.stat__desc--zh {
  font-family: var(--font-cn);
  letter-spacing: 0.05em;
}

.offices {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.office {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 18px;
  line-height: 30px;
  color: var(--cyan);
}

.office img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.office__star {
  width: 36px;
  height: 36px;
  background: #ff5e5e;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.office--na { top: 469px; left: 1005px; }
.office--kr { top: 477px; left: 396px; }
.office--jp { top: 443px; left: 452px; }
.office--cn { top: 518px; left: 352px; color: #ff5e5e; }
.office--sg { top: 623px; left: 300px; }

/* ==========================================================================
   News
   ========================================================================== */

.news {
  position: relative;
  height: 801px;
  overflow: hidden;
}

.news__glow {
  position: absolute;
  top: 0;
  left: 545px;
  width: 1079px;
  height: 701px;
  background: radial-gradient(ellipse at 40% 40%, rgba(234, 177, 254, 0.7) 0%, rgba(211, 86, 255, 0.4) 25%, rgba(22, 139, 239, 0) 50%);
  z-index: 0;
}

.news__block {
  position: absolute;
  top: 501px;
  left: 573px;
  width: 880px;
  height: 500px;
  opacity: 0.3;
  z-index: 0;
}

.news__title {
  top: 46px;
  width: 361px;
  white-space: nowrap;
}

.news__layout {
  position: absolute;
  top: 156px;
  left: 80px;
  width: 1280px;
  height: 600px;
  z-index: 1;
}

.news__featured-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
}

.news__featured,
.news__item {
  display: block;
  position: relative;
  width: 600px;
  height: 160px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.news__highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.news__featured.is-active .news__highlight,
.news__item.is-active .news__highlight {
  opacity: 1;
}

.news__item.is-active span {
  color: var(--white);
}

.news__featured {
  border-radius: 0;
  display: flex;
  align-items: center;
}

.news__featured-text {
  position: relative;
  left: 40px;
  width: 520px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: var(--white);
  z-index: 1;
}

.news__item {
  display: flex;
  align-items: center;
}

.news__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(10, 71, 237, 0) 0%, rgba(10, 71, 237, 1) 50%, rgba(10, 71, 237, 0) 100%);
}

.news__item span {
  display: block;
  position: relative;
  z-index: 1;
  width: 520px;
  margin-left: 40px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  color: var(--light-blue);
}

.news__detail {
  position: absolute;
  top: 0;
  left: 640px;
  width: 640px;
  height: 597px;
}

.news__detail-media {
  width: 640px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
}

/* 右侧大图整体可点击，跳转到当前预览文章的详情页 */
.news__detail-link {
  display: block;
  width: 100%;
  height: 100%;
}

.news__detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 日期 + 地点同排显示 */
.news__detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 18px;
  line-height: 30px;
  color: var(--light-blue);
}

.news__detail-address::before {
  content: "·";
  margin-right: 10px;
}

.news__detail-address:empty {
  display: none;
}

.news__detail-text {
  margin-top: 10px;
  width: 640px;
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.news__detail::after {
  content: "";
  position: absolute;
  left: 101px;
  bottom: 0;
  width: 438px;
  height: 209px;
  background: var(--blue);
  filter: blur(60px);
  opacity: 0.6;
  z-index: -1;
}

/* ==========================================================================
   Resources (three blocks)
   ========================================================================== */

.resources {
  position: relative;
  height: 310px;
}

.resource-grid {
  position: absolute;
  top: 0;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-card {
  position: relative;
  width: 635px;
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 71, 237, 0) 0%, rgba(10, 71, 237, 0.2) 100%);
  transition: transform 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
}

.resource-card__icon {
  position: absolute;
  top: 32px;
  left: 28px;
  width: 36px;
  height: 36px;
}

.resource-card__title {
  position: absolute;
  top: 30px;
  left: 70px;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  color: var(--white);
}

.resource-card__btn {
  position: absolute;
  top: 137px;
  right: 37px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10.5px 32px;
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
  border-radius: 9999px;
}

.resource-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resource-card__arrow img {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Request a Demo
   ========================================================================== */

.demo {
  position: relative;
  height: 551px;
}

.demo__card {
  position: absolute;
  top: 0;
  left: 170px;
  width: 1100px;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
}

.demo__pattern {
  position: absolute;
  top: 3px;
  left: 0;
  width: 1100px;
  height: 473px;
  border-radius: 15px;
  opacity: 0.43;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 40%, #000 60%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 40%, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 40%, #000 60%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 40%, #000 60%, transparent 100%);
  mask-composite: intersect;
}

.demo__glow {
  position: absolute;
  top: -311px;
  left: 208px;
  width: 686px;
  height: 622px;
  background: radial-gradient(ellipse at 50% 35%, rgba(10, 71, 237, 0.6) 0%, rgba(10, 71, 237, 0) 72%);
}

.demo__title {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 428px;
  font-size: 48px;
  font-weight: 500;
  line-height: 60px;
  letter-spacing: -0.0506em;
  text-align: center;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  z-index: 1;
}

/* 申请试用入口：由原「邮箱输入 + 联系太美」表单改为跳转 /trial 的按钮 */
.demo__cta {
  position: absolute;
  top: 216px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  background: var(--white);
  color: #000;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.0101em;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.demo__cta:hover {
  filter: brightness(0.94);
}

.demo__note {
  position: absolute;
  top: 292px;
  left: 50%;
  transform: translateX(-50%);
  width: 476px;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: var(--white-50);
  z-index: 1;
  transition: color 0.2s ease;
}

.demo__note.is-success {
  color: var(--cyan);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  height: 505px;
  background: #000000;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #000000;
  z-index: 0;
}

.footer__logo {
  position: absolute;
  top: 120px;
  left: 80px;
  z-index: 1;
}

.footer__nav {
  position: absolute;
  top: 100px;
  left: 409px;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.footer__nav::before,
.footer__info::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -60px;
  width: 1px;
  height: 270px;
  background: rgba(255, 255, 255, 0.4);
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.footer__nav-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 25px;
  color: var(--white);
}

.footer__nav-col a {
  font-size: 12px;
  font-weight: 300;
  line-height: 25px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer__nav-col a:hover {
  opacity: 0.8;
}

.footer__info {
  position: absolute;
  top: 100px;
  left: 1027px;
  width: 255px;
  z-index: 1;
}

.footer__address {
  margin: 0;
  font-size: 12px;
  line-height: 25px;
  color: var(--white);
}

.footer__address strong,
.footer__address span {
  display: block;
}

.footer__address strong {
  font-weight: 700;
}

.footer__address span {
  font-weight: 300;
}

.footer__social {
  position: absolute;
  top: 146px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__social a {
  display: inline-flex;
  color: var(--white);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 20px;
  height: 20px;
}

.footer__qr {
  position: absolute;
  top: 189px;
  left: 0;
  width: 80px;
  height: 80px;
  z-index: 1;
}

/* 右侧二维码（带太美 logo）；左侧为普通二维码，靠 left: 0 定位 */
.footer__qr--taimei {
  left: 152px;
}

.footer__badge {
  position: absolute;
  top: 99px;
  left: 1320px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.footer__badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__divider {
  position: absolute;
  top: 394px;
  left: 80px;
  width: 1280px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.footer__legal {
  position: absolute;
  top: 416px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  z-index: 1;
}

.footer__legal span {
  font-size: 12px;
  line-height: 25px;
  color: var(--white);
  white-space: nowrap;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox__content {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox__content video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #000;
}

/* ==========================================================================
   Responsive scaling (PC) — keep the 1440px master centred and scaled
   ========================================================================== */

@media (min-width: 1280px) and (max-width: 1439px) {
  .page {
    zoom: calc(100vw / 1440px);
  }
}

/* ==========================================================================
   Homepage site-picker popup（进入首页弹出：太美医疗科技 / 太美智研医药）
   ========================================================================== */

.site-picker {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.65);
}

.site-picker.is-open {
  display: flex;
}

.site-picker__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 860px;
  height: 320px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 24px;
}

.site-picker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 280px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.75);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: background 0.3s ease;
}

.site-picker__card:hover {
  background: rgba(255, 255, 255, 1);
}

.site-picker__sub {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #333;
}

.site-picker__name {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  color: #111;
}

.site-picker__close {
  position: absolute;
  bottom: -68px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateX(-50%);
  background: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

/* 窄屏适配：固定 860px 会溢出，改为纵向排布并自适应宽度 */
@media (max-width: 900px) {
  .site-picker__panel {
    flex-direction: column;
    gap: 12px;
    width: auto;
    height: auto;
    max-width: calc(100vw - 32px);
    padding: 16px;
  }

  .site-picker__card {
    width: min(400px, calc(100vw - 64px));
    height: auto;
    padding: 28px 32px;
  }

  .site-picker__close {
    bottom: -60px;
  }
}
