/* ============================================================
   组件层 components.css：按钮 / 卡片 / 徽章 / 栅格 / 时间轴 /
   倒计时 / 轮播 / 标签页 / 折叠 / 数字统计 / 图标卡
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(45, 140, 240, .35); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn--outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--warm { background: linear-gradient(135deg, #ff9a2e, #ff6b35); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 53, .4); }
.btn--warm:hover { filter: brightness(1.05); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 15px 36px; font-size: 16px; }
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(45, 140, 240, .35); }
.card .card-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .card-ico .ico { width: 26px; height: 26px; color: var(--brand); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14px; margin: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.card .card-link .arrow-r { transition: transform .2s var(--ease); }
.card:hover .card-link .arrow-r { transform: translateX(4px); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  line-height: 1.5;
}
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--expo { background: linear-gradient(135deg, #ff9a2e, #ff6b35); color: #fff; }
.badge--hot { background: #fff3e8; color: #ff6b35; border: 1px solid rgba(255, 107, 53, .35); }
.badge--ok { background: #e8f9f1; color: var(--success); }
.badge--abs { position: absolute; top: 16px; right: 16px; z-index: 2; }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 数字统计 ---------- */
.stat-row {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 12px 20px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(255, 255, 255, .25);
}
.stat-item .num {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-item .num .unit { font-size: 20px; font-weight: 600; margin-left: 2px; }
.stat-item .label { color: rgba(255, 255, 255, .85); font-size: 14px; margin-top: 4px; }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px 40px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--brand);
  z-index: 1;
}
.timeline-item:nth-child(odd)::before { right: -7px; }
.timeline-item:nth-child(even)::before { left: -7px; }
.timeline-item .tl-year {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------- 倒计时 ---------- */
.countdown { display: flex; gap: 12px; align-items: flex-start; }
.countdown .cd-cell {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  min-width: 74px;
  padding: 12px 8px 10px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.countdown .cd-num {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-label { font-size: 12px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.countdown .cd-sep { font-size: 30px; color: rgba(255, 255, 255, .6); font-weight: 300; line-height: 1.6; }
.countdown.is-live .cd-cell { min-width: auto; padding: 14px 22px; }
.countdown.is-live .cd-num { font-size: 26px; }
.countdown.is-ended .cd-cell { min-width: auto; padding: 14px 22px; }
.countdown.is-ended .cd-num { font-size: 18px; line-height: 1.5; }
.countdown--light .cd-cell { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.countdown--light .cd-num { color: var(--brand); }
.countdown--light .cd-label { color: var(--ink-2); }
.countdown--light .cd-sep { color: var(--ink-3); }

/* ---------- 轮播（scroll-snap） ---------- */
.carousel { position: relative; }
.carousel .car-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel .car-track::-webkit-scrollbar { display: none; }
.carousel .car-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}
.carousel .car-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; align-items: center; }
.carousel .car-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.carousel .car-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.carousel .car-dots { display: flex; gap: 8px; }
.carousel .car-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: #cdd8e4;
  transition: all .25s;
}
.carousel .car-dot.is-on { width: 24px; background: var(--brand); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn {
  padding: 9px 24px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  transition: all .2s;
}
.tab-btn:hover { color: var(--brand); border-color: var(--brand); }
.tab-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- 折叠（原生 details） ---------- */
.accordion { max-width: 820px; margin: 0 auto; }
.accordion details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details[open] summary { color: var(--brand); }
.accordion .acc-body { padding: 0 20px 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- 图文横排 ---------- */
.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.media h2 { margin-bottom: 16px; }
.media .media-list { margin-top: 20px; }
.media .media-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--ink-2);
}
.media .media-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
}

/* ---------- 痛点/亮点小卡 ---------- */
.pt-card { text-align: center; }
.pt-card .pt-ico {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-card .pt-ico .ico { width: 30px; height: 30px; color: var(--brand); }
.pt-card h4 { margin-bottom: 8px; }
.pt-card p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel .car-item { flex: 0 0 calc((100% - 20px) / 2); }
  .media { gap: 36px; }
  .timeline-item { padding: 0 32px 36px; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .carousel .car-item { flex: 0 0 86%; }
  .media { grid-template-columns: 1fr; gap: 24px; }
  .media .media-body { order: 1; }
  .media img { order: 2; }
  .countdown { gap: 8px; }
  .countdown .cd-cell { min-width: 64px; padding: 10px 6px 8px; }
  .countdown .cd-num { font-size: 26px; }
  .countdown .cd-sep { font-size: 22px; }
  .stat-item .num { font-size: 30px; }
  .timeline::before { left: 12px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 32px 40px; }
  .timeline-item::before { left: 5px; right: auto; }
  .btn { padding: 11px 22px; font-size: 14px; }
  .card { padding: 22px; }
}
