:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #edf3f5;
  --text: #15262f;
  --muted: #5f6e76;
  --line: #dce4e7;
  --primary: #176b74;
  --primary-dark: #0f4f56;
  --accent: #c88a2d;
  --success: #16805a;
  --danger: #c04444;
  --shadow: 0 20px 60px rgba(22, 38, 47, 0.12);
  --radius: 8px;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(237, 243, 245, 0.86), rgba(245, 247, 248, 0.2) 340px),
    var(--bg);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 228, 231, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #243d49);
  box-shadow: 0 10px 28px rgba(23, 107, 116, 0.24);
}

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

.brand strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.3;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31454e;
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 9px 12px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 6vw, 88px) clamp(20px, 5vw, 72px) clamp(28px, 5vw, 64px);
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.05;
  font-weight: 820;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 32px;
  color: #41545d;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
}

.hero-actions,
.form-row {
  display: flex;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(23, 107, 116, 0.22);
  outline-offset: 2px;
}

.button.primary,
.submit-button {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 26px rgba(23, 107, 116, 0.24);
}

.button.primary:hover,
.submit-button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  border-color: #c7d7db;
  background: rgba(255, 255, 255, 0.72);
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce4e7;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(14, 32, 40, 0), rgba(14, 32, 40, 0.16));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: min(66vh, 620px);
  min-height: 420px;
  object-fit: cover;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 14px 40px rgba(30, 49, 58, 0.06);
}

.trust-band div {
  min-width: 0;
  padding: 22px 24px;
  background: var(--surface);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.trust-band span {
  color: var(--muted);
  line-height: 1.6;
}

.section,
.process-section,
.contact-section {
  padding: clamp(62px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

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

.section-heading.compact {
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  line-height: 1.8;
}

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

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(22, 38, 47, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(22, 38, 47, 0.1);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: var(--primary-dark);
  font-size: 24px;
  font-weight: 800;
  background: #e4eef0;
}

.product-card h3,
.process-list h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.product-card p,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.process-section {
  background: #223842;
  color: #fff;
}

.process-section .eyebrow {
  color: #97d3d3;
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  list-style: none;
  background: rgba(255, 255, 255, 0.16);
}

.process-list li {
  display: flex;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.process-list span {
  color: var(--accent);
  font-weight: 800;
}

.process-list p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 100px;
}

.notice {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff7ea;
}

.notice span {
  color: #6b5a3f;
  line-height: 1.7;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  align-items: start;
}

.field-group {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 8px;
}

label {
  color: #263b45;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad6da;
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9eb2b9;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 107, 116, 0.09);
}

.field-group.invalid input,
.field-group.invalid select,
.field-group.invalid textarea {
  border-color: var(--danger);
  background: #fffafa;
}

.error-text {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #465962;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-line input {
  flex: 0 0 18px;
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.privacy-error {
  margin-top: -14px;
}

.submit-button {
  position: relative;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}

.submit-button.is-loading .button-loader {
  display: inline-block;
}

.submit-button.is-loading {
  cursor: wait;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #15262f;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(22, 128, 90, 0.22);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #f0fbf5;
  box-shadow: 0 20px 60px rgba(22, 38, 47, 0.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

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

.toast-icon,
.success-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
}

.toast-icon {
  width: 30px;
  height: 30px;
  font-weight: 800;
}

.toast strong {
  display: block;
  margin-bottom: 4px;
  color: #0f5f42;
}

.toast p {
  margin: 0;
  color: #426356;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 24, 31, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.success-modal {
  position: relative;
  width: min(460px, 100%);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.modal-backdrop.is-visible .success-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #65757c;
  background: #eef3f5;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.success-mark {
  width: 58px;
  height: 58px;
  margin: 4px auto 18px;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(22, 128, 90, 0.22);
}

.success-modal h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.success-modal p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.modal-confirm {
  width: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    height: 48vh;
    min-height: 320px;
  }

  .trust-band,
  .product-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

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

  .brand {
    align-items: flex-start;
  }

  .brand strong {
    font-size: 15px;
  }

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

  .hero,
  .section,
  .process-section,
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-actions,
  .form-row {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-band {
    margin-right: 16px;
    margin-left: 16px;
  }

  .product-card,
  .process-list li {
    padding: 22px;
  }

  .inquiry-form {
    padding: 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .success-modal {
    padding: 30px 22px 24px;
  }
}
