:root {
  --ink: #0a0a0a;
  --steel: #4b4f4d;
  --line: #d9dbd8;
  --panel: #f4f5f3;
  --white: #ffffff;
  --blue: #6f746f;
  --blue-dark: #2c2f2d;
  --signal: #4b4f4d;
  --shadow: 0 18px 45px rgba(10, 10, 10, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

main#top {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  border-bottom: 1px solid rgba(217, 219, 216, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.045);
  backdrop-filter: blur(16px);
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px clamp(24px, 5vw, 84px) 0;
  opacity: 1;
  transition: max-height 0.24s ease, opacity 0.2s ease, padding 0.24s ease;
  max-height: 34px;
  overflow: hidden;
}

.main-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 138px;
  padding: 18px clamp(24px, 5vw, 84px) 24px;
  transition: min-height 0.24s ease, padding 0.24s ease;
}

.nav-drawer {
  display: contents;
}

.site-header.compact .top-bar {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
}

.site-header.compact .main-bar {
  min-height: 76px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px 6px;
  opacity: 1;
  transition: opacity 0.24s ease, transform 0.24s ease, padding 0.24s ease;
}

.brand:hover {
  opacity: 1;
}

.site-header.compact .brand {
  opacity: 1;
}

.brand-logo {
  display: block;
  height: auto;
}

.brand-logo-full {
  width: clamp(286px, 24vw, 326px);
  opacity: 1;
  transform: translateY(0);
  transition: width 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

.brand-logo-symbol {
  position: absolute;
  width: clamp(58px, 5.2vw, 72px);
  opacity: 0;
  transform: translateY(8px);
  transition: width 0.24s ease, opacity 0.2s ease, transform 0.24s ease;
}

.site-header.compact .brand {
  width: 86px;
  height: 58px;
  padding-top: 0;
  padding-bottom: 0;
}

.site-header.compact .brand-logo-full {
  width: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.site-header.compact .brand-logo-symbol {
  opacity: 1;
  transform: translateY(0);
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.utility-nav a {
  white-space: nowrap;
}

.utility-nav a:hover {
  color: var(--blue);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-switcher button {
  border: 1px solid rgba(143, 150, 146, 0.36);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.language-switcher button:hover,
.language-switcher button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 54px);
  color: var(--steel);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.24s ease;
}

.site-header:not(.compact) .site-nav {
  transform: translateY(-8px);
}

.site-nav-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: clamp(34px, 4.6vw, 78px);
}

.site-nav-right {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  margin-left: clamp(34px, 4.6vw, 78px);
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:not(.nav-action):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-action {
  color: inherit !important;
  padding: 12px 0 !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 5vw, 76px) 36px;
  background: linear-gradient(90deg, #f8f9f7 0%, #ffffff 50%, #f4f5f3 100%);
}

.hero::before {
  position: absolute;
  top: 50%;
  right: clamp(18px, 3vw, 56px);
  width: min(48vw, 720px);
  height: min(52vw, 680px);
  background-image: url("assets/images/products/ide-f-block-hero.jpg?v=20260609-49");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  content: "";
  opacity: 1;
  transform: translateY(-43%);
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 249, 247, 0.98) 0%, rgba(248, 249, 247, 0.9) 32%, rgba(248, 249, 247, 0) 50%, rgba(248, 249, 247, 0) 100%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.18;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--steel);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--steel);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--ink);
}

.section {
  scroll-margin-top: 92px;
  padding: clamp(54px, 7vw, 96px) clamp(20px, 5vw, 76px);
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--steel);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-item {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: var(--ink);
  color: var(--white);
}

.intro-item span {
  color: #d9dbd8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.product-card.featured {
  grid-column: span 2;
  border-color: rgba(143, 150, 146, 0.42);
  background: #f4f5f3;
}

.product-image {
  width: 100%;
  height: 158px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  border-radius: 6px;
  background: #f8f9f7;
}

.product-card.featured .product-image {
  height: 210px;
}

.product-image.photo {
  object-fit: cover;
  padding: 0;
}

.product-card p {
  margin: 0;
  color: var(--steel);
}

.product-card ul,
.seo-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--steel);
}

.capability-layout,
.lineup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.capability-panel,
.lineup-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.primary-capability,
.featured-lineup {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  align-items: center;
  background: #f4f5f3;
  border-color: rgba(143, 150, 146, 0.34);
}

.primary-capability img,
.featured-lineup img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}

.capability-panel p,
.lineup-panel p {
  margin: 0;
  color: var(--steel);
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.split-list div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-left: 3px solid var(--blue);
  background: var(--white);
}

.split-list span {
  color: var(--steel);
  font-size: 14px;
}

.compact-list,
.solution-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.solution-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.solution-list span {
  color: var(--steel);
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.catalog-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  min-height: 190px;
  padding: 22px;
  background: var(--white);
}

.catalog-row.text-only {
  grid-template-columns: 1fr;
}

.catalog-row img {
  width: 150px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  align-self: center;
  border-radius: 4px;
  background: #f8f9f7;
}

.catalog-row p {
  margin: 0;
  color: var(--steel);
}

.muted {
  background: var(--panel);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.application-grid article {
  padding-top: 18px;
  border-top: 3px solid var(--blue);
}

.application-grid p {
  margin: 0;
  color: var(--steel);
}

.downloads {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
}

.download-list a,
.download-item {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.download-list a:hover {
  border-color: var(--blue);
}

.download-list strong,
.download-item strong {
  color: var(--signal);
  font-size: 13px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.about-copy p:not(.eyebrow) {
  max-width: 690px;
  color: var(--steel);
  font-size: 18px;
}

.seo-panel {
  padding: 26px;
  border-left: 4px solid var(--blue);
  background: var(--panel);
}

.contact {
  background: #0a0a0a;
  color: var(--white);
}

.contact .section-heading p:not(.eyebrow) {
  color: #d9dbd8;
}

.contact .eyebrow {
  color: #c7cac6;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.company-card {
  padding: 24px;
  border: 1px solid #4b4f4d;
  border-radius: 6px;
  background: #1b1c1b;
}

.company-card h3 {
  color: var(--white);
}

.company-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.company-card dl div {
  display: grid;
  gap: 4px;
}

.company-card dt {
  color: #c7cac6;
  font-size: 13px;
  font-weight: 800;
}

.contact .button.primary {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.company-card dd {
  margin: 0;
  color: #e6e7e4;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: #e6e7e4;
  font-weight: 700;
}

.inquiry-form .full,
.inquiry-form .form-note,
.inquiry-form .form-status {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #6f746f;
  border-radius: 4px;
  color: var(--white);
  background: #1b1c1b;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: #c7cac6;
  font-size: 13px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--white);
  color: #e6e7e4;
  font-size: 13px;
}

.form-status:empty {
  display: none;
}

.form-status a {
  color: var(--white);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 76px);
  color: var(--steel);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: clamp(158px, 18vw, 220px);
  height: auto;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
}

.footer-copy {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.footer-copy nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.subpage-hero {
  display: grid;
  gap: 16px;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 76px);
  background: linear-gradient(180deg, #f8f9f7 0%, #ffffff 100%);
}

.subpage-main {
  min-height: calc(100vh + 260px);
}

.subpage-hero h1 {
  max-width: 980px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--steel);
  font-size: 17px;
}

.not-found-hero {
  min-height: 560px;
  align-content: center;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.legal-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.legal-card h2,
.policy-content h2 {
  font-size: 24px;
}

.legal-card p {
  color: var(--steel);
}

.info-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.info-list dt {
  color: var(--blue);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--steel);
}

.policy-content {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.policy-content article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.policy-content p {
  max-width: 840px;
  color: var(--steel);
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 640px;
  }

  .hero::before {
    right: 50%;
    bottom: 12px;
    top: auto;
    width: min(92vw, 620px);
    height: min(82vw, 560px);
    opacity: 0.28;
    transform: translateX(50%);
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(248, 249, 247, 0.98) 0%, rgba(248, 249, 247, 0.95) 50%, rgba(248, 249, 247, 0.58) 100%);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-layout,
  .lineup-grid {
    grid-template-columns: 1fr;
  }

  .primary-capability,
  .featured-lineup {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  }

  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    display: block;
  }

  .top-bar {
    display: none;
  }

  .main-bar {
    grid-template-columns: 42px 1fr 42px;
    min-height: 76px;
    padding: 12px 20px;
  }

  .nav-drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-drawer.open {
    display: block;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand-logo-full {
    width: clamp(204px, 58vw, 238px);
  }

  .brand-logo-symbol {
    width: 62px;
  }

  .nav-toggle {
    grid-column: 3;
    justify-self: end;
    display: block;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: none;
  }

  .site-nav-left,
  .site-nav-right {
    justify-self: stretch;
    margin-right: 0;
    margin-left: 0;
  }

  .site-nav a:not(.nav-action)::after {
    display: none;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .nav-action {
    text-align: left;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 34px;
  }

  .intro-band,
  .product-grid,
  .capability-layout,
  .primary-capability,
  .lineup-grid,
  .featured-lineup,
  .catalog-list,
  .application-grid,
  .download-list,
  .about,
  .legal-layout,
  .contact-layout,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .product-card.featured {
    grid-column: span 1;
  }

  .split-list,
  .catalog-row {
    grid-template-columns: 1fr;
  }

  .catalog-row img {
    width: 100%;
    max-width: 260px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
