/* ==========================================================================
   東昇貿易株式会社 — 官网样式
   设计取向：B2B 工业 / 半导体设备行业。冷色调、留白充分、以细线分隔代替阴影。
   零外部依赖：不加载任何 CDN 字体或图标库，视觉元素用内联 SVG。
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-2: #16395c;
  --navy-3: #1d4a75;
  --accent: #1e7fc4;
  --accent-soft: #e8f2fa;
  --teal: #0f8f8f;

  --ink: #14202e;
  --ink-2: #46586b;
  --ink-3: #7b8b9c;

  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --bg-3: #eef1f4;

  --line: #dfe4e9;
  --line-2: #c8d0d8;

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;

  --wrap: 1120px;
  --pad: 24px;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* <picture> 默认是 inline，铺不满容器，统一改成块级 */
.pic {
  display: block;
}

.pic img {
  width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-right: auto;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.brand__sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  display: block;
  padding: 8px 14px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav a:hover {
  background: var(--bg-2);
  color: var(--navy);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--accent-soft);
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.lang a {
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: var(--radius);
}

.lang a:hover {
  color: var(--navy);
  background: var(--bg-2);
  text-decoration: none;
}

.lang a[aria-current="true"] {
  color: var(--navy);
  background: var(--bg-3);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* hero 背景照片。
   照片明暗不可控，所以不靠调图片透明度来保证可读性，而是盖一层深蓝渐变：
   左侧压到 0.97（放标题和小字），右侧放到 0.34（露出晶圆）。 */
.hero--photo {
  background: #0a1f36;
}

.hero__photo {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(10, 31, 54, 0.97) 0%,
    rgba(10, 31, 54, 0.93) 38%,
    rgba(10, 31, 54, 0.62) 70%,
    rgba(10, 31, 54, 0.36) 100%
  );
}

.hero__inner {
  position: relative;
  padding: 84px 0 92px;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #b8d6ef;
  border: 1px solid rgba(184, 214, 239, 0.34);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: pre-line;
}

.hero__lead {
  margin: 0 0 36px;
  max-width: 40em;
  font-size: 15.5px;
  line-height: 2;
  color: #c9d9e8;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #1a6ea9;
}

.btn--ghost {
  background: transparent;
  color: #dce8f3;
  border-color: rgba(220, 232, 243, 0.42);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 232, 243, 0.72);
}

/* --------------------------------------------------------------- section */

.section {
  padding: 76px 0;
}

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

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section__kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__head h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.7vw, 30px);
  line-height: 1.5;
  font-weight: 700;
  color: var(--navy);
}

.section__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* -------------------------------------------------------------- strengths */

.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.strength {
  background: var(--bg);
  padding: 32px 28px 34px;
}

.strength__num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.strength h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}

.strength p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- services */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service__aside h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--navy);
}

.service__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.service__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 28px;
  align-content: start;
}

.service__items li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.service__items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* 服务页带图版走三栏（标题｜图｜明细）；首页的列表不带图，仍是两栏 */
.service--full {
  grid-template-columns: 200px 280px 1fr;
  gap: 34px;
  align-items: start;
}

.service__pic {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.service__pic img {
  aspect-ratio: 1536 / 941;
  object-fit: cover;
}

/* ----------------------------------------------------------------- field */
/* 業務領域：三张实景图。图片是 AI 生成的示意图，所以下面必须跟着 .photo-note
   说明 —— 否则访客（很可能就是设备厂的采购）会当成我们的实绩照片。 */

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.field-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-card__pic {
  background: var(--bg-3);
}

.field-card__pic img {
  aspect-ratio: 1536 / 941;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.field-card:hover .field-card__pic img {
  transform: scale(1.035);
}

.field-card__body {
  padding: 24px 26px 28px;
}

.field-card__body h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--navy);
}

.field-card__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.photo-note {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- company */

.company-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  white-space: pre-line;
}

.spec th {
  width: 132px;
  font-weight: 600;
  color: var(--ink-2);
}

.spec td {
  color: var(--ink);
}

.philosophy {
  padding: 30px 32px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.philosophy h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.philosophy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.tel-card {
  padding: 28px 30px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tel-card__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tel-card__tel {
  display: block;
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.tel-card__hours {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 2px;
  vertical-align: 1px;
}

.tag--req {
  color: #a33;
  background: #fdecec;
}

.tag--opt {
  color: var(--ink-3);
  background: var(--bg-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 127, 196, 0.12);
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form__status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.form__status[data-state="ok"] {
  color: #1a7a4a;
}

.form__status[data-state="err"] {
  color: #a33;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: #a9bdd1;
  padding: 52px 0 30px;
  font-size: 13.5px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(169, 189, 209, 0.22);
}

.site-footer__name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.site-footer__note {
  margin: 0 0 14px;
  color: #8fa6bd;
  font-size: 13px;
}

.site-footer__addr {
  margin: 0;
  line-height: 1.9;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer nav a {
  color: #a9bdd1;
}

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

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12.5px;
  color: #8fa6bd;
}

.site-footer__bottom p {
  margin: 0;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 窄屏上文字铺满整行，左右渐变就不够用了 —— 改成上下渐变整体压暗 */
  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 31, 54, 0.95) 0%,
      rgba(10, 31, 54, 0.9) 55%,
      rgba(10, 31, 54, 0.78) 100%
    );
  }

  .hero__photo img {
    object-position: 62% 50%;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  /* 单栏时图别铺满整行，否则一张图占掉一屏 */
  .service__pic {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  .section {
    padding: 56px 0;
  }

  .hero__inner {
    padding: 56px 0 64px;
  }

  .site-header__inner {
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    margin-right: 0;
    flex: 1 0 auto;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 2px;
  }

  .nav a {
    padding: 7px 11px;
    font-size: 14px;
  }

  .lang {
    padding-left: 12px;
  }

  .service__items {
    grid-template-columns: 1fr;
  }

  .philosophy,
  .strength {
    padding: 26px 22px;
  }
}

/* ------------------------------------------------------------ print / a11y */

@media print {
  .site-header,
  .hero__actions,
  .form,
  .hero__photo,
  .hero__scrim {
    display: none;
  }

  .hero {
    background: #fff;
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
