:root {
  --navy: #1b3a4b;
  --navy-deep: #122a36;
  --brass: #c4a484;
  --brass-strong: #b08968;
  --paper: #f6f1e8;
  --paper-2: #efe7d9;
  --ink: #243038;
  --muted: #5d6b73;
  --line: rgba(27, 58, 75, 0.12);
  --white: #fffcf7;
  --ok: #2f7d57;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(18, 42, 54, 0.12);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-en {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--navy);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 58, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 58, 75, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 20%, black 20%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brass-strong);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-strong);
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.18;
  font-weight: 680;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 58, 75, 0.22);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.hero-panel {
  background: var(--navy);
  color: #e9e1d4;
  border-radius: 28px;
  padding: 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

.hero-stats {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 48px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  color: #fff;
  font-weight: 650;
}

.hero-stats span {
  font-size: 13px;
  color: rgba(233, 225, 212, 0.72);
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.25;
}

.section-head p {
  color: var(--muted);
  max-width: 420px;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-visual {
  height: 160px;
  background: linear-gradient(180deg, #eadfcf, #d7c7b0);
  position: relative;
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#1b3a4b 1px, transparent 1px),
    linear-gradient(90deg, #1b3a4b 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
}

.mesh-hex {
  background-image: radial-gradient(#1b3a4b 1.4px, transparent 1.5px);
  background-size: 16px 18px;
}

.mesh-weld {
  background-size: 28px 18px;
  opacity: 0.22;
}

.mesh-fence {
  background-size: 12px 34px;
}

.mesh-steel {
  background-size: 10px 10px;
  opacity: 0.28;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 14px;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.point {
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
}

.point strong {
  display: block;
  margin-bottom: 4px;
}

.point span {
  color: var(--muted);
  font-size: 13px;
}

.scene {
  background: var(--navy);
  color: #f3eadc;
  border-radius: 28px;
  padding: 36px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(196, 164, 132, 0.28);
  border-radius: 18px;
  pointer-events: none;
}

.scene h3 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  margin-bottom: 18px;
}

.scene ul {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: 12px;
}

.scene li {
  display: flex;
  gap: 10px;
  color: rgba(243, 234, 220, 0.86);
}

.scene li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  margin-top: 8px;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.info-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.info-card h2,
.form-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.info-card > p,
.form-hint {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.info-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list span {
  font-size: 12px;
  color: var(--brass-strong);
  letter-spacing: 0.08em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(27, 58, 75, 0.08);
  background: #fff;
}

.field.error input,
.field.error textarea {
  border-color: var(--danger);
}

.field .err {
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
}

.form-card .btn {
  width: 100%;
  min-height: 50px;
}

.btn[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.success-layer {
  position: fixed;
  inset: 0;
  background: rgba(18, 42, 54, 0.46);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.success-layer.show {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow);
}

.success-layer.show .success-card {
  transform: none;
}

.check {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.check circle {
  fill: none;
  stroke: #d8efe4;
  stroke-width: 3;
}

.check path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.success-layer.show .check path {
  animation: draw 0.45s 0.15s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.success-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.success-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .product-grid,
  .form-row,
  .points {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
