/* components.css — 组件视觉（PDF 采样值，v1.2 发布版） */

/* ---------- 导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 7, 14, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.brand img {
  width: 265px;
  height: 42px;
}

.primary-nav a {
  font-size: var(--fs-15);
  color: var(--text-4);
  transition: color 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current] {
  color: var(--accent);
}

.header-phone {
  font-size: var(--fs-14);
  color: var(--text-4);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

/* 折叠菜单内的稿内电话：仅移动端显示，避免 375px 下 header 溢出 */
.nav-phone {
  display: none;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-1);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-w);
  height: var(--btn-h);
  border-radius: var(--r-sm);
  font-size: var(--fs-14);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-btn);
}

.btn-primary:hover {
  background: #4A88FF;
}

.btn-ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text-1);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-nav {
  width: var(--btn-nav-w);
}

/* ---------- 通用区块 ---------- */
.eyebrow {
  font-size: var(--fs-14);
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}

.section h2 {
  font-size: var(--fs-44);
  line-height: 1.25;
  color: var(--text-1);
}

.section-lead {
  font-size: var(--fs-26);
  color: var(--text-4);
  line-height: 1.45;
  margin-top: 12px;
}

.section-desc {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  color: var(--text-2);
  margin-top: 16px;
  max-width: 760px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(46, 119, 255, 0.14), transparent 70%),
    var(--bg-page);
  padding-block: 72px 96px;
}

.hero h1 {
  font-size: var(--fs-58);
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--text-1);
}

.hero-desc {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  color: var(--text-2);
  margin-top: 24px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.trust-bar {
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  color: var(--text-2);
  margin-top: 40px;
}

.trust-bar [data-claim] {
  color: var(--text-4);
}

.hero-data {
  width: var(--data-card-w);
  height: var(--data-card-h);
  position: relative;
  border: 1px solid var(--frame-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(46, 119, 255, 0.18), inset 0 0 40px rgba(37, 68, 104, 0.35);
}

.hero-data picture,
.hero-data img {
  width: 100%;
  height: 100%;
}

.hero-data img {
  object-fit: cover;
  opacity: 0.55;
}

.data-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(180deg, rgba(4, 7, 14, 0.15) 0%, rgba(4, 7, 14, 0.88) 72%);
}

.data-title {
  font-size: var(--fs-18);
  color: var(--text-1);
  margin-bottom: 20px;
}

.data-metrics {
  display: flex;
  gap: 48px;
}

.data-metrics dt {
  font-size: var(--fs-12);
  color: var(--text-4);
}

.data-metrics dd {
  font-size: var(--fs-38);
  color: var(--accent);
  line-height: 1.2;
  margin-top: 6px;
}

/* ---------- 重点行业 ---------- */
.solutions {
  background: var(--bg-section);
}

.industry-card {
  background: var(--card-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.industry-card:hover {
  border-color: var(--frame-2);
  transform: translateY(-2px);
}

.industry-card img {
  width: 100%;
  height: var(--photo-h);
  object-fit: cover;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-tag {
  font-size: var(--fs-10);
  letter-spacing: 0.16em;
  color: var(--accent-soft);
}

.card-lead {
  font-size: var(--fs-21);
  color: var(--text-1);
  margin-top: 10px;
  line-height: 1.4;
}

.card-desc {
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  color: var(--text-2);
  margin-top: 12px;
}

.kpi-list {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.kpi-chip {
  width: var(--chip-w);
  height: var(--chip-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--chip);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  font-size: var(--fs-11);
  color: var(--accent);
  white-space: nowrap;
}

.card-cta {
  display: inline-block;
  margin-top: 20px;
  font-size: var(--fs-13);
  color: var(--accent-soft);
}

.card-cta:hover {
  color: var(--accent);
}

/* ---------- 交付方法 ---------- */
.method-step {
  min-height: 209px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
}

.step-no {
  font-size: var(--fs-26);
  color: var(--accent-soft);
  line-height: 1;
}

.method-step h3 {
  font-size: var(--fs-21);
  color: var(--text-1);
  margin-top: 16px;
  font-weight: 400;
}

.method-step p {
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  color: var(--text-2);
  margin-top: 10px;
}

.method-step .step-period {
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--fs-14);
  color: var(--accent);
}

/* ---------- 客户成果 ---------- */
.results {
  background: var(--bg-section);
}

.result-item {
  width: var(--metric-w);
  height: var(--metric-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--frame-3), var(--card-1));
  border: 1px solid var(--frame-1);
  border-radius: var(--r-md);
}

.result-value {
  font-size: var(--fs-44);
  color: var(--accent);
  line-height: 1.1;
}

.result-label {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  color: var(--text-4);
}

/* ---------- CTA ---------- */
.contact {
  background:
    radial-gradient(700px 380px at 20% 30%, rgba(46, 119, 255, 0.16), transparent 70%),
    var(--bg-page);
  border-top: 1px solid var(--stroke);
}

.eyebrow-tracked {
  letter-spacing: 0.32em;
  font-size: var(--fs-14);
  color: var(--accent);
}

.contact h2 {
  font-size: var(--fs-34);
  line-height: 1.35;
  color: var(--text-1);
}

.contact-desc {
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  color: var(--text-2);
  margin-top: 20px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- 表单 ---------- */
.lead-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--card-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
}

.field label {
  display: block;
  font-size: var(--fs-13);
  color: var(--text-4);
  margin-bottom: 6px;
}

.req {
  font-size: var(--fs-11);
  color: var(--text-3);
  margin-inline-start: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: #060D1A;
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  font-size: var(--fs-14);
  color: var(--text-1);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field [aria-invalid="true"] {
  border-color: #FF7B7B;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  min-height: 20px;
  font-size: var(--fs-13);
  color: var(--accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-footer);
  padding-block: 64px 28px;
}

.footer-brand p {
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  color: var(--text-2);
  max-width: 620px;
}

.footer-brand address {
  font-style: normal;
  font-size: var(--fs-13);
  line-height: var(--lh-13);
  color: var(--text-3);
  margin-top: 16px;
}

.social-blocks {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-blocks span {
  width: 32px;
  height: 32px;
  background: var(--card-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
}

.footer-col h3 {
  font-size: var(--fs-14);
  color: var(--text-1);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col li {
  font-size: var(--fs-13);
  line-height: 28px;
  color: var(--text-2);
}

.footer-col a {
  color: var(--text-2);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-link[data-link-state="pending"] {
  color: var(--text-3);
  cursor: default;
}

.footer-legal {
  border-top: 1px solid var(--stroke);
  margin-top: 48px;
  padding-top: 24px;
}

.legal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-12);
  line-height: 1.8;
  color: var(--text-3);
}

.legal-line a {
  color: var(--text-3);
  white-space: nowrap;
}

.legal-line a:hover,
.legal-line a:focus-visible {
  color: var(--accent);
}

/* v1.2：备案号与 pending 项之间用 CSS 间距分隔，绝不插入文本节点 */
.legal-line a + .footer-link,
.legal-line .footer-link + .footer-link {
  margin-inline-start: 24px;
}
