/* ============================================================
   企业推广单页 - 品牌样式（响应式 PC + 移动端）
   提取自设计稿，保持与设计稿一致的视觉效果
   ============================================================ */

/* === 设计令牌 === */
:root {
  /* 颜色 */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F3F3F0;
  --ink: #1A1A2E;
  --ink-2: #6B6B7B;
  --ink-3: #A0A0AD;
  --line: #E8E8E5;
  --brand: #E85D3A;
  --brand-light: #FFF0EC;
  --brand-dark: #C94A2A;
  --brand-ink: #FFFFFF;
  --state-success: #2D9D6F;
  --state-warning: #D4940A;
  --state-error: #D94452;
  --state-info: #3B7DD8;

  /* 间距（8pt 网格） */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 80px;

  /* 字体 */
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;

  /* 圆角 */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 9999px;

  /* 阴影 */
  --shadow-1: 0 1px 2px rgba(26,26,46,.04), 0 1px 1px rgba(26,26,46,.02);
  --shadow-2: 0 8px 24px -8px rgba(26,26,46,.14);
  --shadow-3: 0 24px 60px -20px rgba(26,26,46,.22);
}

/* === 基础重置 === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 64px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p { margin: 0; }

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--brand-dark); }

button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === 导航栏（PC） === */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

.nav-brand .brand-dot {
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-brand .brand-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links a:hover { color: var(--brand); }

/* === 内容区域 === */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-block { margin-top: 80px; }

.section-head { margin-bottom: 32px; }

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.section-sub {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.title-bar {
  width: 40px; height: 4px;
  border-radius: var(--r-pill);
  background: var(--brand);
  margin-bottom: 16px;
}

/* === 轮播图 === */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
}

.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0) 40%, rgba(26,26,46,.55) 100%);
}

.carousel-caption {
  position: absolute;
  left: 48px; bottom: 40px;
  color: #fff;
  max-width: 560px;
  z-index: 1;
}

.carousel-caption h3 { font-size: 28px; font-weight: 700; }
.carousel-caption p { margin-top: 8px; font-size: 15px; opacity: .9; }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  border: none;
  padding: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .2s ease;
}

.carousel-dot.active {
  width: 24px;
  background: #fff;
}

/* === 企业介绍 === */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--ink-2);
  line-height: 1.8;
}

.about-text p + p { margin-top: 16px; }

.about-advantages {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
}

.about-advantages h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}

.adv-list { list-style: none; margin: 0; padding: 0; }

.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.adv-item:last-child { border-bottom: none; }

.adv-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: var(--brand-light);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.adv-item h5 { font-size: 15px; font-weight: 600; color: var(--ink); }
.adv-item p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* === 联系表单 === */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-label .req { color: var(--state-error); margin-left: 2px; }

.form-input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.form-input::placeholder { color: var(--ink-3); }

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-input.error { border-color: var(--state-error); }

.field-error {
  font-size: 12px;
  color: var(--state-error);
  min-height: 0;
  opacity: 0;
  transition: opacity .2s ease;
}

.field-error.show { opacity: 1; }

.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 40px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
}

.radio-item input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.form-submit-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-submit {
  height: 44px;
  padding: 0 36px;
  border: none;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .1s ease;
}

.btn-submit:hover { background: var(--brand-dark); }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--state-success);
  font-weight: 500;
}

.form-success.show { display: inline-flex; }

/* === 悬浮客服 === */
.fab-service {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  box-shadow: 0 4px 16px rgba(232,93,58,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,58,0.4);
}

.fab-btn:active { transform: scale(0.92); }
.fab-btn i { width: 26px; height: 26px; }

.fab-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 280px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(26,26,46,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.fab-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.fab-panel-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.fab-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fab-close:hover { background: var(--line); }

.fab-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fab-qr-box {
  width: 140px;
  height: 140px;
  background: var(--surface-2);
  border: 1px dashed var(--ink-3);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

.fab-qr-hint {
  font-size: 13px;
  color: var(--ink-2);
}

.fab-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.fab-phone:hover { background: var(--brand); color: var(--brand-ink); }

/* === 页脚 === */
.site-footer {
  margin-top: 80px;
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-inner a { color: rgba(255,255,255,.8); }
.footer-inner a:hover { color: #fff; }

/* === 加载占位 === */
.carousel-slide.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--ink-3);
}

/* ============================================================
   响应式：移动端（≤860px）
   ============================================================ */
@media (max-width: 860px) {
  body { padding-top: 0; }

  /* 隐藏 PC 导航栏（移动端不需要顶部导航） */
  .nav-bar { display: none; }

  /* 内容区无最大宽度限制，贴边 */
  .section {
    max-width: 100%;
    padding: 0 16px;
  }

  .section-block { margin-top: 48px; }

  .section-head { margin-bottom: 16px; }

  .section-title { font-size: 22px; }

  .section-sub { font-size: 14px; }

  .title-bar { margin-bottom: 12px; }

  /* 轮播图：隐藏左右箭头与标题，仅保留指示器 */
  .carousel-slide { aspect-ratio: 16 / 9; max-height: none; }

  .carousel-btn { display: none; }

  .carousel-caption { display: none; }

  .carousel-dots { bottom: 12px; }

  .carousel-dot.active { width: 22px; }

  /* 关于我们：单列纵向卡片 */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-text p { font-size: 15px; line-height: 1.75; }

  .about-advantages { padding: 20px; }

  /* 联系表单：单列纵向 */
  .form-card { padding: 20px; }

  .form-grid { grid-template-columns: 1fr; gap: 16px; }

  .form-input { height: 44px; }

  .form-submit-row {
    margin-top: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-submit {
    width: 100%;
    height: 48px;
    justify-content: center;
    font-size: 16px;
  }

  .form-success { justify-content: center; }

  /* 悬浮客服调整 */
  .fab-service { bottom: 24px; right: 16px; }

  .fab-panel { width: 260px; bottom: 68px; }

  .fab-qr-box { width: 120px; height: 120px; }

  /* 页脚 */
  .site-footer { margin-top: 48px; padding: 24px 16px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}
