/* components.css — 按钮、卡片、区块标题、面包屑、CTA 条、标签、数据、FAQ
   ─────────────────────────────────────────────────────────────
   本文件所有色彩 / 字号 / 时长 / 缓动均取自 base.css 的设计令牌，
   不写硬编码值。悬停位移类动效统一放在 motion.css（仅指针设备生效）。
   ───────────────────────────────────────────────────────────── */

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* 主 CTA —— 全站统一，仅用于转化按钮 */
.btn--cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 2px 8px var(--cta-ring);
}

.btn--cta:hover {
  background: var(--cta-dark);
  color: #fff;
  box-shadow: 0 8px 22px var(--cta-ring);
}

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
  background: var(--brand-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: var(--fs-base);
}

.btn--lg {
  min-height: 52px;
  padding: 14px 32px;
  font-size: var(--fs-xl);
  letter-spacing: 0.01em;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* CTA 下方跳转提示
   ★ 原为 12px，属于转化链路上的关键说明，提升到 13px 并加深颜色 */
.cta-note {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.55;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 575px) {
  .btn-row .btn {
    width: 100%;
  }
}

/* ============ 区块标题 ============ */
.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  color: var(--brand-600);
  font-weight: 500;
}

.section--dark .section-head .eyebrow {
  color: var(--brand-300);
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-2);
  font-size: var(--fs-lg);
}

.section--dark .section-head p {
  color: var(--on-dark-2);
}

/* ============ 网格 ============ */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid--gap-lg {
  gap: 28px;
}

/* ============ 卡片 ============ */
.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

/* .card--hover 的悬停浮起效果定义在 motion.css（仅指针设备生效，
   触屏上不再出现"点完样式粘住"） */

.card--flat {
  background: var(--bg-soft);
  border-color: transparent;
}

.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--on-dark-2);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex: 0 0 auto;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.card--dark .card__icon {
  background: rgba(143, 178, 230, 0.16);
  color: var(--brand-300);
}

.card__title {
  font-size: var(--fs-2xl);
  margin: 0 0 10px;
  font-weight: 500;
}

.card__title a {
  color: inherit;
}

.card__title a:hover {
  color: var(--brand-600);
}

.card__desc {
  font-size: var(--fs-base);
  color: var(--text-2);
  margin-bottom: 16px;
}

.card--dark .card__desc {
  color: var(--on-dark-3);
}

.card__list {
  margin-bottom: 18px;
}

.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-base);
  color: var(--text-2);
  margin-bottom: 7px;
  line-height: 1.65;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
}

.card__foot {
  margin-top: auto;
  padding-top: 4px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--brand-600);
}

.link-arrow::after {
  content: "→";
  transition: transform var(--dur) var(--ease-out);
}

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: var(--fs-2xs);
  line-height: 1.6;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
}

.tag--line {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ 面包屑 ============ */
.breadcrumb {
  padding: 18px 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--line-strong);
}

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

.breadcrumb a:hover {
  color: var(--brand-600);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-1);
}

/* ============ CTA 条 ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  /* 斜向渐变 + 右上角光晕：深色区块不再是一块平涂的蓝 */
  background:
    radial-gradient(
      118% 150% at 86% 4%,
      rgba(91, 139, 218, 0.45) 0%,
      rgba(91, 139, 218, 0) 58%
    ),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 60%, var(--brand-500) 100%);
  border-radius: var(--radius-lg);
  padding: 38px 26px;
  color: #fff;
  display: grid;
  gap: 22px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .cta-band {
    padding: 46px 46px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(21px, 2.7vw, 28px);
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--on-dark-2);
  font-size: var(--fs-lg);
  max-width: 52ch;
}

.cta-band .cta-note {
  color: var(--on-dark-3);
}

.cta-band__actions .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-band__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}

@media (max-width: 575px) {
  .cta-band__actions .btn {
    width: 100%;
  }
}

/* ============ 数据条 ============ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  color: var(--brand-700);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section--dark .stat__num {
  color: #fff;
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.section--dark .stat__label {
  color: var(--on-dark-3);
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.6;
}

.faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-right: 1.5px solid var(--brand-600);
  border-bottom: 1.5px solid var(--brand-600);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}

.faq__q[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 10px;
}

.faq__a {
  padding: 0 0 22px;
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 78ch;
}

.faq__a[hidden] {
  display: none;
}

/* ============ 列表行（新闻 / 案例） ============ */
.post-list {
  display: grid;
  gap: 0;
}

.post-item {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .post-item {
    grid-template-columns: 120px 1fr auto;
    align-items: baseline;
    gap: 24px;
  }
}

.post-item__date {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.post-item__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  margin: 0;
}

.post-item__title a {
  color: var(--text-1);
}

.post-item__title a:hover {
  color: var(--brand-600);
}

.post-item__sum {
  font-size: var(--fs-base);
  color: var(--text-3);
  margin: 6px 0 0;
}

/* ============ 表格 ============ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  min-width: 560px;
  font-size: var(--fs-md);
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* ============ 提示框 ============ */
.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--brand-300);
  background: var(--brand-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-base);
  color: var(--text-2);
}

/* ============ 事实卡（案例信息） ============ */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 768px) {
  .fact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  padding: 18px;
  background: #fff;
}

.fact dt {
  font-size: var(--fs-2xs);
  color: var(--text-3);
  margin-bottom: 4px;
}

.fact dd {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-1);
}

/* ============ 分页（静态） ============ */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pager a,
.pager span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  color: var(--text-2);
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pager a:hover {
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.pager [aria-current="page"] {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* ═══════════════════════════════════════════
   界面截图（单图替换）
   原先用 HTML/CSS 拼的界面模拟图已截图为
   assets/img/shots/ 下的 PNG，页面里只剩一个
   <img class="shot">。上线前直接用同名真实截图
   覆盖 PNG 文件即可完成替换，无需改任何代码。
   ─────────────────────────────────────────── */
.shot {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(11, 37, 69, 0.09);
}

/* 深色区块内的截图阴影加深 */
.section--dark .shot {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* 紧贴容器边缘的截图（继承原先界面图的去边框处理） */
.showcase__body .shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* 截图下方图注 */
.ui-note {
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.ui-note--dark {
  text-align: center;
  color: var(--on-dark-3);
}
