:root {
  color: #d9e7ff;
  background: #06101f;
  font-family:
    "Inter", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", Arial,
    sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #10223d;
  background: #f5f8fc;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #f6fbff;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(4, 16, 34, 0.92);
  border-bottom: 1px solid rgba(136, 192, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 1px;
  border: 1px solid rgba(116, 203, 255, 0.24);
  border-radius: 10px;
  background: #ffffff;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #9bb8d7;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #c7d8ef;
  font-size: 14px;
}

.site-nav a {
  padding-block: 8px;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #57d8ff;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  min-width: 92px;
  padding: 3px;
  border: 1px solid rgba(136, 192, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #c7d8ef;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.lang-switch button.is-active {
  color: #03162c;
  background: #68ddff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #ffffff;
  background: #06101f;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 12, 26, 0.95) 0%, rgba(3, 14, 30, 0.72) 43%, rgba(3, 14, 30, 0.15) 100%),
    linear-gradient(180deg, rgba(4, 12, 23, 0.28) 0%, rgba(4, 12, 23, 0.82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  padding: 164px 0 64px clamp(20px, 6vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #24b9ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: #0a2140;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: #0c2444;
  font-size: 22px;
}

.hero-copy {
  max-width: 620px;
  color: #c6d8ee;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 700;
}

.btn.primary {
  color: #03162c;
  background: #57d8ff;
  border-color: #57d8ff;
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 620px;
  margin: 0;
}

.hero-metrics div {
  padding-top: 18px;
  border-top: 1px solid rgba(162, 218, 255, 0.26);
}

.hero-metrics dt {
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: #98b7d9;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: #147bc0;
  font-size: 14px;
  font-weight: 800;
}

.section-dark .text-link {
  color: #68ddff;
}

.intro-band,
.section,
.contact {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 88px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  background: #ffffff;
}

.intro-band p:last-child {
  color: #40536d;
  font-size: 20px;
}

.section-heading {
  max-width: 760px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: #d7e1ef;
  border: 1px solid #d7e1ef;
}

.product-grid article {
  min-height: 260px;
  padding: 34px;
  background: #ffffff;
}

.index {
  color: #1684cb;
  font-size: 13px;
  font-weight: 800;
}

.product-grid p,
.news-panel h3,
.careers-contact p,
.contact p {
  color: #52647b;
}

.section-dark {
  color: #d8e8ff;
  background: #08182c;
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.solution-list {
  display: grid;
  margin-top: 36px;
  border-top: 1px solid rgba(120, 183, 255, 0.26);
}

.solution-list a {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(120, 183, 255, 0.26);
}

.solution-list strong {
  color: #ffffff;
  font-size: 24px;
}

.solution-list span {
  color: #9db9d9;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(32px, 6vw, 90px);
  background: #f7faff;
}

.news-panel {
  border-top: 1px solid #cfdced;
}

.news-panel article {
  padding: 24px 0;
  border-bottom: 1px solid #cfdced;
}

.news-panel time {
  color: #247fbd;
  font-size: 14px;
  font-weight: 800;
}

.news-panel h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.careers-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #ffffff;
}

.careers-contact div {
  max-width: 760px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 90px);
  color: #dceaff;
  background: #071321;
}

.contact h2 {
  color: #ffffff;
}

address {
  display: grid;
  gap: 14px;
  align-content: center;
  font-style: normal;
}

address span {
  padding: 18px 0;
  border-bottom: 1px solid rgba(163, 210, 255, 0.2);
}

.subpage {
  background: #f6f9fe;
}

.subpage main {
  padding-top: 66px;
}

.page-hero {
  padding: clamp(82px, 10vw, 140px) clamp(20px, 6vw, 88px) clamp(56px, 7vw, 92px);
  color: #dceaff;
  background:
    linear-gradient(120deg, rgba(6, 18, 35, 0.96), rgba(9, 39, 70, 0.88)),
    url("../assets/semiconductor-hero.png") center / cover;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 68px);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #bdd2ea;
  font-size: 18px;
}

.detail-grid,
.solution-cards,
.jobs-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d7e1ef;
}

.solution-cards,
.jobs-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid article,
.solution-cards article,
.jobs-list article {
  padding: clamp(26px, 4vw, 44px);
  background: #ffffff;
}

.detail-grid p,
.solution-cards p,
.jobs-list p,
.product-detail p,
.product-detail li,
.news-page p {
  color: #52647b;
}

.scenario-section {
  background: #ffffff;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: #d7e1ef;
  border: 1px solid #d7e1ef;
}

.scenario-grid article {
  min-height: 210px;
  padding: 30px;
  background: #ffffff;
}

.scenario-grid p,
.solution-detail p,
.solution-detail li {
  color: #52647b;
}

.solution-detail-list {
  display: grid;
  gap: 22px;
  background: #f7faff;
}

.solution-detail-list .section-heading {
  margin-bottom: 10px;
}

.solution-detail {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(300px, 0.82fr) minmax(260px, 0.5fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #ffffff;
}

.solution-detail h3 {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.5vw, 32px);
}

.solution-detail ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.solution-copy p {
  margin-bottom: 0;
}

.solution-media {
  display: grid;
  min-height: 190px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #f8fbff;
}

.solution-media img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.product-detail {
  display: grid;
  gap: 24px;
}

.product-detail article,
.news-page article {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #ffffff;
}

.product-detail ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.product-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d7e1ef;
}

.product-matrix article {
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
}

.product-matrix p {
  color: #52647b;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip-list span,
.application-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d6e4f2;
  border-radius: 8px;
  color: #17406c;
  font-size: 14px;
  font-weight: 700;
  background: #f6faff;
}

.product-table-section {
  background: #ffffff;
}

.table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid #d9e4f1;
  border-radius: 8px;
  background: #ffffff;
}

.product-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #d9e4f1;
  text-align: left;
  vertical-align: top;
}

.product-table th {
  color: #0a2140;
  font-size: 14px;
  background: #edf5ff;
}

.product-table td {
  color: #52647b;
  font-size: 14px;
}

.product-table td:first-child {
  color: #0a2140;
  font-weight: 800;
}

.model-code {
  color: #155e9f;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  font-weight: 700;
}

.application-section {
  background: #f7faff;
}

.application-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.news-page {
  display: grid;
  gap: 18px;
}

.news-page time {
  color: #247fbd;
  font-size: 14px;
  font-weight: 800;
}

.news-page h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.contact-page {
  min-height: 420px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 88px);
  text-align: center;
  color: #9fb5d0;
  background: #040d19;
  border-top: 1px solid rgba(136, 192, 255, 0.16);
}

.site-footer div {
  justify-self: start;
  text-align: left;
}

.site-footer a {
  grid-column: 2;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #ffffff;
  font-size: 15px;
}

.site-footer span,
.site-footer a {
  color: #9fb5d0;
  font-size: 13px;
}

.site-footer a:hover {
  color: #ffffff;
}

.ai-float {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #03162c;
  font-weight: 800;
  background: #68ddff;
  box-shadow: 0 16px 38px rgba(7, 30, 58, 0.25);
  cursor: pointer;
}

.ai-assistant {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 84px;
  width: min(360px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid rgba(106, 200, 255, 0.36);
  border-radius: 8px;
  color: #dcecff;
  background: rgba(5, 18, 34, 0.96);
  box-shadow: 0 24px 60px rgba(2, 11, 23, 0.38);
}

.ai-assistant > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-assistant button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.ai-assistant [data-ai-close] {
  width: 30px;
  height: 30px;
  color: #cbe9ff;
  background: rgba(255, 255, 255, 0.1);
}

.ai-assistant p {
  color: #a7bed8;
  font-size: 14px;
}

.ai-assistant label {
  display: grid;
  gap: 8px;
  color: #9ec7e8;
  font-size: 13px;
}

.ai-assistant input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(130, 206, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ai-assistant label + button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  color: #04172c;
  font-weight: 800;
  background: #68ddff;
}

.ai-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(104, 221, 255, 0.24);
  border-radius: 8px;
  color: #bfeeff;
  font-size: 13px;
  background: rgba(104, 221, 255, 0.1);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 14px;
    border: 1px solid rgba(136, 192, 255, 0.18);
    border-radius: 8px;
    background: rgba(4, 16, 34, 0.96);
  }

  .lang-switch {
    width: 100%;
    margin-top: 8px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero-content {
    padding-right: 20px;
  }

  .hero-metrics,
  .product-grid,
  .product-matrix,
  .intro-band,
  .split,
  .contact,
  .detail-grid,
  .scenario-grid,
  .solution-detail,
  .solution-cards,
  .jobs-list {
    grid-template-columns: 1fr;
  }

  .solution-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .careers-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .site-footer div {
    justify-self: center;
    text-align: center;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    width: 100%;
    padding: 138px 18px 54px;
  }

  .hero-metrics {
    gap: 12px;
  }

  .hero-metrics dt {
    font-size: 24px;
  }

  .product-grid article {
    min-height: auto;
    padding: 26px;
  }

  .ai-float {
    right: 16px;
    bottom: 16px;
  }

  .ai-assistant {
    right: 16px;
    bottom: 74px;
  }
}
