/* ============================================================
   comcomAI · 联系我们 — 区块样式
   ============================================================ */

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

.section { padding: 104px 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 48px;
  margin-bottom: 46px;
}
.section-head h2,
.form-intro h2,
.company-intro h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--g-700);
}
.section-head-note {
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--n-500);
  border-left: 1px solid var(--n-200);
  padding-left: 20px;
}

/* ---------------- channels ---------------- */

.channels { background: #fff; }

.channel-list { border-top: 1px solid var(--n-200); }

.channel {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding: 30px 16px 30px 20px;
  border-bottom: 1px solid var(--n-200);
  text-decoration: none;
  transition: background-color 0.22s var(--ease);
}
.channel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--o-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--ease);
}
.channel:hover { background: var(--n-25); }
.channel:hover::before { transform: scaleY(1); }

.channel-tag {
  padding-top: 7px;
  font-size: 10px;
  color: var(--n-400);
  letter-spacing: 0.12em;
}
.channel-main h3 {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--n-900);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.channel-main p {
  margin-top: 7px;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--n-500);
  text-wrap: pretty;
}
.channel-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  font-size: 14px;
  color: var(--g-600);
  white-space: nowrap;
}
.channel:hover .channel-main h3 { color: var(--g-700); }
.channel:hover .channel-action .icon-arrow { transform: translateX(4px); }

/* ---------------- form ---------------- */

.form-section {
  background: var(--n-50);
  border-top: 1px solid var(--n-100);
  border-bottom: 1px solid var(--n-100);
}

.form-layout {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  gap: 92px;
  align-items: start;
}
.form-intro h2 { margin-bottom: 20px; }
.form-lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--n-600);
  max-width: 22em;
}

.form-tips {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--n-200);
}
.tips-title {
  font-size: 10px;
  color: var(--n-400);
  margin-bottom: 14px;
}
.form-tips li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--n-600);
}
.form-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--g-300);
}
.form-reply {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--g-700);
}
.reply-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--o-500);
  box-shadow: 0 0 0 4px var(--o-50);
}

.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 24px;
}
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--n-700);
  letter-spacing: 0.01em;
}
.req {
  margin-left: 4px;
  color: var(--o-500);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--n-900);
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}
.field input { height: 48px; }
.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.7;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--n-400); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--n-300); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--g-500);
  box-shadow: 0 0 0 3px rgba(16, 104, 71, 0.1);
}
.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.07);
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  height: 48px;
  padding-right: 40px;
  cursor: pointer;
  color: var(--n-900);
}
.select-wrap select.is-empty { color: var(--n-400); }
.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--n-500);
  pointer-events: none;
}

.field-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--n-400);
  line-height: 1.6;
}
.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
  line-height: 1.6;
}
.counter { text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--n-100);
}
.demo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--n-400);
}
.demo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--o-400);
  flex: none;
}
.btn-submit { min-width: 176px; }
.btn-submit[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

.form-privacy {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--n-400);
}
.form-privacy a {
  color: var(--g-600);
  text-decoration: none;
  border-bottom: 1px solid var(--g-200);
  padding-bottom: 1px;
}
.form-privacy a:hover { border-bottom-color: var(--g-500); }

/* success */
.form-success {
  padding: 28px 8px 8px;
  text-align: center;
  animation: success-in 0.4s var(--ease) both;
}
@keyframes success-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--g-50);
  border: 1px solid var(--g-200);
  color: var(--g-600);
}
.success-mark svg { width: 26px; height: 26px; }
.form-success h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--g-700);
  letter-spacing: 0.01em;
}
.form-success > p {
  max-width: 30em;
  margin: 12px auto 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--n-600);
}
.form-success .success-demo {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--n-100);
  font-size: 12px;
  color: var(--n-400);
}
.form-success .btn { margin-top: 26px; }

/* ---------------- QR ---------------- */

.qr-section { background: #fff; }

.qr-lead {
  max-width: 36em;
  margin: 0 auto 40px;
  text-align: center;
}
.qr-lead .eyebrow { justify-content: center; }
.qr-lead h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.35;
  color: var(--g-700);
  letter-spacing: 0.01em;
}
.qr-lead p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--n-500);
  text-wrap: pretty;
}

.qr-block {
  max-width: 680px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.qr-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--n-100);
  background: var(--n-25);
}
.qr-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-700);
  letter-spacing: 0.04em;
}
.qr-title-sep { color: var(--n-300); }
.qr-title .mono { font-size: 10px; color: var(--n-500); }
.qr-block-head > p { font-size: 12px; color: var(--n-400); }

.qr-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 32px;
}
.qr-item + .qr-item { border-left: 1px solid var(--n-100); }
.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  padding: 10px;
  border: 1px solid var(--n-100);
  background: #fff;
}
.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--g-300);
}
.qr-frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.qr-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}
.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-item figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  text-align: center;
}
.qr-name {
  font-size: 14px;
  color: var(--n-800);
  letter-spacing: 0.02em;
}
.qr-sub {
  font-size: 9px;
  color: var(--n-400);
  letter-spacing: 0.15em;
}

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

.company {
  padding-top: 96px;
  border-top: 1px solid var(--n-100);
  background: var(--n-25);
}
.company-layout {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  gap: 92px;
  align-items: start;
}
.company-intro p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--n-500);
  max-width: 24em;
}

.info-list { border-top: 1px solid var(--n-200); }
.info-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--n-200);
}
.info-row dt {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--n-400);
  text-transform: uppercase;
}
.info-row dd {
  font-size: 15px;
  line-height: 1.7;
  color: var(--n-800);
}
.info-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.info-address svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  color: var(--g-500);
}
.placeholder-value {
  color: var(--n-400);
  border-bottom: 1px dashed var(--n-300);
  padding-bottom: 1px;
}

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

.site-footer {
  background: var(--g-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-invert .brand-word { color: #fff; }
.brand-invert .brand-cn {
  color: rgba(255, 255, 255, 0.48);
  border-left-color: rgba(255, 255, 255, 0.16);
}
.footer-brand p {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 12px 44px;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom p { margin: 0; }
.footer-bottom .placeholder-value {
  color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.28);
}

/* ---------------- reveal ---------------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1120px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 356px; gap: 56px; }
  .form-layout,
  .company-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .channel { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .header-inner { gap: 16px; }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 72px 0 80px;
  }
  .office-card { max-width: 440px; }
  .hero-meta { margin-top: 44px; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head-note {
    border-left: 0;
    border-top: 1px solid var(--n-200);
    padding-left: 0;
    padding-top: 16px;
    max-width: 40em;
  }

  .form-layout,
  .company-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-intro h2 { margin-bottom: 16px; }
  .form-tips { display: none; }
  .form-lead { max-width: 34em; }
  .company-intro p { max-width: 34em; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }

  .hero-inner { padding: 52px 0 64px; }
  .hero-copy h1 { margin: 20px 0 18px; }
  .hero-lead { font-size: 16px; line-height: 1.85; }
  .hero-lead br { display: none; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 36px;
  }
  .hero-meta div:last-child { grid-column: 1 / -1; }
  .office-card { padding: 16px; }

  .section { padding: 64px 0; }
  .section-head h2,
  .form-intro h2,
  .company-intro h2 { font-size: 30px; }
  .qr-lead { margin-bottom: 28px; text-align: left; }
  .qr-lead .eyebrow { justify-content: flex-start; }
  .qr-lead h2 { font-size: 26px; }

  .channel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 16px 24px 18px;
  }
  .channel-tag { padding-top: 0; }
  .channel-main h3 { font-size: 18px; }
  .channel-action { padding-top: 4px; font-size: 13px; }

  .form-card { padding: 24px 20px; border-radius: 6px; }
  .field-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .btn-submit { width: 100%; }

  .qr-block-head { padding: 16px 18px; }
  .qr-block-head > p { display: none; }
  .qr-item { padding: 24px 12px; }
  .qr-frame { width: 100%; max-width: 168px; height: auto; aspect-ratio: 1; }
  .qr-item figcaption { margin-top: 12px; }
  .qr-name { font-size: 12px; }

  .company { padding-top: 64px; }
  .info-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .info-row dt { padding-top: 0; }

  .site-footer { padding: 44px 0 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .qr-pair { grid-template-columns: 1fr; }
  .qr-item + .qr-item { border-left: 0; border-top: 1px solid var(--n-100); }
  .qr-frame { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .will-reveal { opacity: 1; transform: none; }
}
