:root {
  --bg: #ffffff;
  --ink: #171717;
  --muted: #5f666b;
  --line: #e6e6e6;
  --panel: #ffffff;
  --accent: #68c8c7;
  --accent-strong: #40aaa8;
  --accent-soft: #eefafa;
  --error: #b42318;
  --focus: #68c8c7;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.top-bar {
  min-height: 40px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1120px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  width: 150px;
  max-width: 38vw;
  height: auto;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.category-nav a {
  color: #222;
  font-size: 0.94rem;
  text-decoration: none;
}

.category-nav a:hover {
  color: var(--accent-strong);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 56px;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 127px);
  margin: 0 auto;
  padding: 56px 0;
  align-items: center;
}

.lead-section {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 560px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-text {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  margin-top: 28px;
}

.lead-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #222;
  background: #fff;
  font-size: 0.9rem;
}

.form-panel {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.field span,
.consent-row span {
  color: var(--ink);
  font-weight: 650;
}

.field strong {
  color: var(--error);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 144px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(104, 200, 199, 0.2);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--error);
  background: #fffafa;
}

.error-message {
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.86rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.55;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #103332;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover {
  background: var(--accent-strong);
  color: #fff;
}

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

.submit-button[disabled] {
  cursor: wait;
  opacity: 0.74;
}

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

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

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-status.success {
  color: var(--accent-strong);
}

.form-status.error {
  color: var(--error);
}

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

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 40px 0;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
  }

  .category-nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .lead-section {
    padding: 0;
  }

  .form-panel {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
    padding: 28px 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  .form-panel {
    padding: 20px;
  }
}
