/* 联系页（body.contact）专用样式；在 home.css 之上加载 */

.c-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 48px 0 8px;
}

.c-intro h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.c-intro p {
  max-width: 36em;
  margin: 10px 0 0;
  color: var(--h-muted);
}

/* 语言切换：灰色文字按钮，选中为墨色加下划线 */
.lang-switch {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--h-muted);
}

.lang-switch__btn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease-out;
}

.lang-switch__btn:hover,
.lang-switch__btn[aria-pressed="true"] {
  color: var(--h-ink);
}

.lang-switch__btn[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang-switch__sep {
  color: var(--h-faint);
}

.c-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-top: 48px;
}

.c-profile {
  width: 240px;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.c-profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-profile::after,
.c-qr::after {
  content: "";
  position: absolute;
  inset: 0;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  pointer-events: none;
}

.c-block {
  margin-top: 36px;
}

.c-block h2,
.contact-form h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--h-faint);
}

.c-email {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.c-email a {
  transition: color 0.15s ease-out;
}

.c-email a:hover {
  color: var(--h-accent);
}

.c-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.c-btn,
.c-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease-out;
}

.c-btn {
  background: var(--h-ink);
  color: #fff;
}

.c-btn:hover {
  background: var(--h-accent);
}

.c-btn--ghost {
  background: var(--h-ground-2);
  color: var(--h-ink);
}

.c-btn--ghost:hover {
  background: #e2e2dc;
}

.c-btn:active,
.c-btn--ghost:active {
  transform: scale(0.97);
}

.c-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.c-qr {
  position: relative;
  width: 160px;
  margin: 0;
}

.c-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.c-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--h-faint);
}

/* 留言表单 */
.contact-form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.contact-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--h-muted);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(26, 28, 30, 0.2);
  background: var(--h-ground-2);
  color: var(--h-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}

.contact-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-bottom-color: var(--h-accent);
  background: #e6e6e0;
}

.contact-form .c-btn {
  justify-self: start;
}

.contact-form-status {
  margin: 0;
  font-size: 14px;
}

.contact-form-status:empty {
  display: none;
}

.contact-form-status.is-error {
  color: #a3412f;
}

.contact-form-status.is-ok {
  color: var(--h-accent);
}

.c-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--h-faint);
}

.contact-honeypot,
.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;
}

@media (max-width: 860px) {
  .c-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .c-intro {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }

  .c-intro h1 {
    font-size: 32px;
  }

  .c-profile {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-btn:active,
  .c-btn--ghost:active {
    transform: none;
  }
}
