:root {
  --ink: #102033;
  --muted: #637084;
  --line: #dce4ec;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --soft-2: #e9f0f6;
  --brand: #0e3f6f;
  --brand-2: #14746f;
  --accent: #c74d32;
  --success: #18825f;
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.16);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

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

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  z-index: 200;
  background: var(--paper);
  color: var(--brand);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 228, 236, 0.78);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #334255;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.language-button {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
}

.icon-file {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon-file::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: var(--paper);
}

.icon-file.large {
  width: 34px;
  height: 42px;
  color: #a7b4c2;
}

.quote-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid white;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(14, 63, 111, 0.22);
}

.primary-button:hover {
  background: #0a335d;
  transform: translateY(-1px);
}

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

.secondary-button:hover {
  background: var(--soft);
}

.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

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

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

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.mobile-nav a {
  display: block;
  padding: 13px 0;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #102033;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 23, 37, 0.86) 0%, rgba(11, 23, 37, 0.72) 42%, rgba(11, 23, 37, 0.18) 100%),
    linear-gradient(0deg, rgba(11, 23, 37, 0.55), rgba(11, 23, 37, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 112px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: #3f8f8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #95ddd6;
}

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

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

.hero-copy {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions,
.drawer-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 72px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-proof div {
  padding: 22px 24px 0 0;
}

.hero-proof dt {
  font-size: 26px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.trust-strip {
  background: white;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid article {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}

.trust-grid article:last-child {
  border-right: 1px solid var(--line);
}

.trust-grid h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.line-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--soft-2);
  position: relative;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--brand);
}

.line-icon.factory::after {
  inset: auto 9px 9px;
  height: 7px;
  border-top: 0;
}

.line-icon.shield::before {
  border-radius: 12px 12px 16px 16px;
}

.line-icon.cube::before {
  transform: rotate(45deg);
}

.line-icon.leaf::before {
  border-radius: 16px 2px 16px 2px;
  transform: rotate(-18deg);
}

.content-section {
  padding: 96px 0;
}

.two-column,
.quality-grid,
.rfq-layout,
.faq-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.rfq-layout h2,
.faq-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.section-copy p,
.section-heading p,
.rfq-layout p {
  color: var(--muted);
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.service-matrix article {
  min-height: 210px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.service-matrix article:nth-child(2n) {
  border-right: 0;
}

.service-matrix article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.service-matrix span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 900;
}

.service-matrix h3 {
  margin-bottom: 8px;
}

.service-matrix p {
  margin: 0;
  color: var(--muted);
}

.catalog,
.quality {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 660px;
  margin-bottom: 0;
}

.search-field input {
  width: min(340px, 100%);
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  outline: none;
}

.search-field input:focus,
.rfq-form input:focus,
.rfq-form textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(20, 116, 111, 0.12);
}

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

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

.noscript-catalog article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.noscript-catalog p {
  margin: 0;
  color: var(--muted);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.product-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft-2);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-category {
  margin-bottom: 8px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
}

.spec-list {
  margin: auto 0 18px;
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.product-card button {
  width: 100%;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--success);
  border-bottom: 3px solid var(--success);
  transform: rotate(-45deg);
}

.evidence-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.evidence-panel h3 {
  margin-bottom: 22px;
}

.evidence-panel dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.evidence-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.evidence-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.evidence-panel dt {
  margin-bottom: 4px;
  font-weight: 900;
}

.evidence-panel dd {
  margin: 0;
  color: var(--muted);
}

.rfq-section {
  padding: 52px 0;
  color: white;
  background: linear-gradient(135deg, var(--brand), #0f5f63);
}

.rfq-section .eyebrow,
.rfq-section p {
  color: rgba(255, 255, 255, 0.78);
}

.rfq-layout {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.rfq-layout h2 {
  margin-bottom: 8px;
}

.rfq-layout p {
  margin-bottom: 0;
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.faq-list h3 {
  margin-bottom: 8px;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 58px 0;
  background: #0c1724;
  color: #b9c4cf;
}

.footer-grid {
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-brand {
  color: white;
  margin-bottom: 18px;
}

.site-footer h2 {
  color: white;
  font-size: 16px;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  color: #dce4ec;
}

.rfq-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.rfq-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 30, 0.54);
  backdrop-filter: blur(6px);
}

.drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(620px, 100vw);
  background: white;
  box-shadow: var(--shadow);
}

.drawer-header,
.drawer-footer {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--soft);
}

.close-button {
  font-size: 28px;
  line-height: 1;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header h2 {
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 34px;
  margin-bottom: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--ink);
  margin: 12px 0 4px;
}

.empty-state p {
  margin: 0;
}

.empty-state[hidden],
.rfq-form[hidden] {
  display: none;
}

.rfq-items {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.rfq-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.rfq-line img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.rfq-line h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.rfq-line p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-control input {
  width: 116px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.remove-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--accent);
  font-size: 20px;
}

.rfq-form {
  display: grid;
  gap: 20px;
}

.rfq-form fieldset {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rfq-form legend {
  padding: 0 8px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rfq-form label {
  display: grid;
  gap: 6px;
  color: #334255;
  font-size: 13px;
  font-weight: 800;
}

.rfq-form input,
.rfq-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  font-weight: 500;
}

.rfq-form textarea {
  resize: vertical;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.option-grid input {
  width: 16px;
  min-height: 16px;
}

.ai-brief {
  padding: 18px;
  border: 1px solid #b8d7d4;
  border-radius: var(--radius);
  background: #eef8f7;
}

.ai-brief h3 {
  margin-bottom: 8px;
}

.ai-brief p:last-child {
  margin-bottom: 0;
  color: #315b58;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #102033;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .desktop-nav,
  .header-actions .compact {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

  .two-column,
  .quality-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 96px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 42px;
  }

  .hero-proof div {
    padding: 14px 0 0;
  }

  .trust-grid,
  .product-grid,
  .service-matrix,
  .form-grid,
  .option-grid,
  .footer-grid,
  .rfq-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid article,
  .trust-grid article:last-child {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .content-section {
    padding: 68px 0;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .search-field input {
    width: 100%;
  }

  .service-matrix article,
  .service-matrix article:nth-child(2n),
  .service-matrix article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-matrix article:last-child {
    border-bottom: 0;
  }

  .rfq-line {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .rfq-line img {
    width: 64px;
    height: 58px;
  }

  .remove-button {
    grid-column: 2;
    justify-self: start;
  }

  .drawer-footer .primary-button,
  .drawer-footer .secondary-button {
    width: 100%;
  }
}
