/* ============================================
   S16 版式原型样式（A–G）
   设计系统：Navy #1B2A4A / Blue #2563EB / Gold #B8860B
   ============================================ */

/* A — 左文右图 */
.layout-a { padding: 80px 0; background: #fff; }
.layout-a-grid { display: grid; grid-template-columns: 45% 55%; gap: 48px; align-items: center; }
.layout-a-text h2 { font-size: 24px; font-weight: 700; color: #1B2A4A; margin-bottom: 16px; }
.layout-a-text .layout-lead { font-size: 16px; color: #1F2937; line-height: 1.7; margin-bottom: 12px; }
.layout-a-text .layout-body { font-size: 14px; color: #64748B; line-height: 1.7; margin-bottom: 24px; }
.layout-a-image img { width: 100%; border-radius: 12px; box-shadow: 0 4px 14px rgba(23,37,84,.08); }
.layout-a .layout-cta .btn-gold { background: #B8860B; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; }
@media (max-width: 768px) {
  .layout-a-grid { grid-template-columns: 1fr; gap: 32px; }
  .layout-a-image { order: -1; }
}

/* B — 右文左图 */
.layout-b { padding: 80px 0; background: #F5F7FA; }
.layout-b-grid { display: grid; grid-template-columns: 55% 45%; gap: 48px; align-items: center; }
.layout-b-text h2 { font-size: 24px; font-weight: 700; color: #1B2A4A; margin-bottom: 16px; }
.layout-b-text .layout-lead { font-size: 16px; color: #1F2937; line-height: 1.7; margin-bottom: 12px; }
.layout-b-text .layout-body { font-size: 14px; color: #64748B; line-height: 1.7; margin-bottom: 24px; }
.layout-b-image img { width: 100%; border-radius: 12px; box-shadow: 0 4px 14px rgba(23,37,84,.08); }
.layout-b .layout-cta .btn-primary { background: #2563EB; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; }
@media (max-width: 768px) {
  .layout-b-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* C — 通栏大图+叠加 */
.layout-c { position: relative; height: 500px; display: flex; align-items: flex-end; overflow: hidden; }
.layout-c-bg { position: absolute; inset: 0; z-index: 0; }
.layout-c-bg img { width: 100%; height: 100%; object-fit: cover; }
.layout-c-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,30,58,.86) 0%, rgba(15,30,58,.52) 55%, rgba(15,30,58,.14) 100%); }
.layout-c-content { position: relative; z-index: 1; padding: 48px 0; color: #fff; max-width: 600px; }
.layout-c-content h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.layout-c-content .layout-lead { font-size: 16px; color: rgba(255,255,255,.9); line-height: 1.7; margin-bottom: 24px; }
.layout-c .layout-cta .btn-gold { background: #B8860B; color: #fff; padding: 14px 28px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
@media (max-width: 768px) {
  .layout-c { height: 400px; }
  .layout-c-content { padding: 32px 0; text-align: center; }
  .layout-c-content h2 { font-size: 24px; }
}

/* D — 三栏卡片 */
.layout-d { padding: 80px 0; background: #fff; }
.layout-d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layout-d-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 32px 24px; text-align: center; transition: all .22s ease; }
.layout-d-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23,37,84,.14); }
.layout-d-card h3 { font-size: 18px; font-weight: 700; color: #1B2A4A; margin-bottom: 12px; }
.layout-d-card p { font-size: 14px; color: #64748B; line-height: 1.7; }
@media (max-width: 768px) {
  .layout-d-grid { grid-template-columns: 1fr; }
}

/* E — 时间线/步骤 */
.layout-e { padding: 80px 0; background: #F5F7FA; }
.layout-e-timeline { position: relative; max-width: 800px; margin: 0 auto; }
.layout-e-timeline::before { content: ''; position: absolute; left: 60px; top: 0; bottom: 0; width: 2px; background: #E2E8F0; }
.layout-e-step { display: flex; gap: 32px; margin-bottom: 40px; position: relative; }
.layout-e-step:last-child { margin-bottom: 0; }
.layout-e-dot { width: 12px; height: 12px; border-radius: 50%; background: #2563EB; flex-shrink: 0; margin-top: 8px; position: relative; z-index: 1; margin-left: 54px; }
.layout-e-content { flex: 1; padding-left: 24px; }
.layout-e-number { font-size: 20px; font-weight: 800; color: #1B2A4A; margin-bottom: 8px; }
.layout-e-content p { font-size: 14px; color: #64748B; line-height: 1.7; }
@media (max-width: 768px) {
  .layout-e-timeline::before { left: 20px; }
  .layout-e-dot { margin-left: 14px; }
  .layout-e-content { padding-left: 16px; }
}

/* F — 数据条 */
.layout-f { padding: 64px 0; background: #0F1E3A; }
.layout-f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.layout-f-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.12); }
.layout-f-item:last-child { border-right: none; }
.layout-f-number { font-size: 48px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.layout-f-label { font-size: 14px; color: #94A3B8; line-height: 1.5; }
@media (max-width: 768px) {
  .layout-f-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .layout-f-item:nth-child(2) { border-right: none; }
  .layout-f-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.12); padding-top: 32px; }
  .layout-f-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); padding-top: 32px; }
  .layout-f-number { font-size: 36px; }
}

/* G — 图文错位 */
.layout-g { padding: 80px 0; background: #fff; position: relative; overflow: hidden; }
.layout-g-grid { display: grid; grid-template-columns: 50% 50%; gap: 64px; align-items: center; }
.layout-g-image { position: relative; }
.layout-g-decoration { position: absolute; top: -20px; left: -20px; width: 60px; height: 2px; background: #B8860B; }
.layout-g-image img { width: 100%; border-radius: 12px; box-shadow: 0 14px 34px rgba(23,37,84,.14); position: relative; z-index: 1; }
.layout-g-text { padding-left: 32px; }
.layout-g-text h2 { font-size: 24px; font-weight: 700; color: #1B2A4A; margin-bottom: 16px; }
.layout-g-text .layout-lead { font-size: 16px; color: #1F2937; line-height: 1.7; margin-bottom: 12px; }
.layout-g-text .layout-body { font-size: 14px; color: #64748B; line-height: 1.7; margin-bottom: 24px; }
.layout-g .layout-cta .btn-primary { background: #2563EB; color: #fff; padding: 12px 24px; border-radius: 8px; font-weight: 600; }
@media (max-width: 768px) {
  .layout-g-grid { grid-template-columns: 1fr; gap: 32px; }
  .layout-g-text { padding-left: 0; }
}

/* ============================================
   动效降级（prefers-reduced-motion）
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .layout-d-card,
  .layout-a-image img,
  .layout-b-image img,
  .layout-c-bg img,
  .layout-g-image img {
    transition: none !important;
  }
}

/* Ghost button style */
.btn-ghost {
  background: transparent;
  color: #2563EB;
  border: 2px solid #2563EB;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: #2563EB;
  color: #fff;
}

/* Primary button style (S16 Blue) */
.btn-primary {
  background: #2563EB;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}


/* Floating action buttons */
.m16-lc {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m16-lc-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.m16-lc-btn:hover {
  transform: scale(1.05);
}
.m16-wa {
  background: #25D366;
}
.m16-form {
  background: #B8860B;
}

/* AI button */
.m16-ai {
  background: linear-gradient(135deg, #1B2A4A, #2563EB);
  font-size: 18px;
}
.m16-ai:hover {
  transform: scale(1.05);
}
/* UI-PATCH-20261111-A2A3A6 reduced-motion */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* UI-PATCH-20261111-A2A3A6 focus-visible */
:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
:focus{outline:2px solid #1d4ed8;outline-offset:2px}

/* Page grid for list pages */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.page-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}
.page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 37, 84, 0.1);
  border-color: #2563EB;
}
.page-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1B2A4A;
  margin-bottom: 8px;
}
.page-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 16px;
}
.page-card a {
  display: inline-block;
  color: #2563EB;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.page-card a:hover {
  text-decoration: underline;
}
