/**
 * training-hub.css — 企业培训中心（Odoo / Power Apps 等平台培训）
 * 版本：20261027
 * 约定：移动端不使用 nowrap 撑宽；表格横向滚动由 .tr-table 容器负责。
 */

.tr-page {
  background: #ffffff;
  color: #0f172a;
}

.tr-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 二级导航 ---------- */
.tr-subnav {
  position: sticky;
  top: 55px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.tr-subnav__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.tr-subnav__inner::-webkit-scrollbar {
  display: none;
}

.tr-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 1;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tr-subnav a:hover {
  border-color: #10b981;
  color: #047857;
  background: rgba(16, 185, 129, 0.06);
}

.tr-subnav a.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.tr-hero {
  position: relative;
  /* body 已有 80px 顶部内边距（为固定导航留位），这里只补内容留白 */
  padding: 60px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(16, 185, 129, 0.28), transparent 60%),
    radial-gradient(760px 360px at 92% 0%, rgba(99, 102, 241, 0.22), transparent 62%),
    linear-gradient(160deg, #0b1220 0%, #111c2e 52%, #0d1b26 100%);
  overflow: hidden;
}

.tr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.tr-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tr-hero h1 em {
  font-style: normal;
  color: #6ee7b7;
}

.tr-hero__lead {
  max-width: 780px;
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.85;
  color: #cbd5e1;
}

.tr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

.tr-btn--primary {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.tr-btn--primary:hover {
  background: #0ea371;
  color: #ffffff;
  transform: translateY(-1px);
}

.tr-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e2e8f0;
}

.tr-btn--ghost:hover {
  border-color: #6ee7b7;
  color: #6ee7b7;
}

.tr-btn--dark {
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.tr-btn--dark:hover {
  border-color: #10b981;
  color: #047857;
}

.tr-hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  max-width: 880px;
}

.tr-hero__metric {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.tr-hero__metric b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.tr-hero__metric span {
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- 区块 ---------- */
.tr-section {
  padding: 62px 0;
}

.tr-section--tint {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.tr-section__head {
  max-width: 780px;
  margin-bottom: 32px;
}

.tr-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 10px;
}

.tr-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.tr-section h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.tr-section p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #475569;
}

.tr-section__head p {
  margin: 0;
}

/* ---------- 卡片网格 ---------- */
.tr-grid {
  display: grid;
  gap: 18px;
}

.tr-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tr-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tr-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: all 0.24s ease;
}

.tr-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.tr-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 17px;
  margin-bottom: 14px;
}

.tr-card__icon--violet {
  background: rgba(116, 39, 116, 0.1);
  color: #742774;
}

.tr-card__icon--blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.tr-card__icon--amber {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.tr-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
}

.tr-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #52627a;
}

.tr-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tr-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.5;
}

.tr-tag--green {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.tr-card__link {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
}

.tr-card__link:hover {
  color: #047857;
  text-decoration: underline;
}

/* ---------- 列表 ---------- */
.tr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tr-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #475569;
}

.tr-list li::before {
  content: "\f00c";
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 11px;
  color: #10b981;
}

/* ---------- 四阶路径 ---------- */
.tr-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: trstep;
}

.tr-step {
  position: relative;
  padding: 20px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.tr-step::after {
  counter-increment: trstep;
  content: "0" counter(trstep);
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  font-weight: 800;
  color: rgba(16, 185, 129, 0.16);
  line-height: 1;
}

.tr-step b {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 6px;
}

.tr-step span {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #52627a;
}

/* ---------- 表格 ---------- */
.tr-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.tr-table table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tr-table thead th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.tr-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  line-height: 1.75;
  vertical-align: top;
}

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

.tr-table tbody tr:hover td {
  background: #fbfdff;
}

.tr-table td strong {
  color: #0f172a;
}

/* ---------- 时间线 ---------- */
.tr-timeline {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid #d1fae5;
}

.tr-timeline__item {
  position: relative;
  padding: 0 0 20px 8px;
}

.tr-timeline__item:last-child {
  padding-bottom: 0;
}

.tr-timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.tr-timeline__item b {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
}

.tr-timeline__item span {
  font-size: 0.86rem;
  color: #52627a;
  line-height: 1.75;
}

/* ---------- CTA ---------- */
.tr-cta {
  padding: 46px 0;
  background: linear-gradient(140deg, #0b1220 0%, #12283a 100%);
  color: #ffffff;
}

.tr-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tr-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
}

.tr-cta p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #a8b6c8;
  max-width: 640px;
}

/* ---------- 提示条 ---------- */
.tr-note {
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.07);
  font-size: 0.88rem;
  line-height: 1.8;
  color: #33505f;
}

.tr-note--amber {
  border-left-color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  color: #7c4a03;
}

/* ---------- FAQ ---------- */
.tr-faq {
  border-top: 1px solid #e5e7eb;
}

.tr-faq__item {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.tr-faq__item summary {
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
}

.tr-faq__item summary::-webkit-details-marker {
  display: none;
}

.tr-faq__item summary::after {
  content: "\f107";
  font-family: "FontAwesome";
  float: right;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.tr-faq__item[open] summary::after {
  transform: rotate(180deg);
}

.tr-faq__item p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #52627a;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .tr-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tr-hero {
    padding: 40px 0 38px;
  }
  .tr-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tr-section {
    padding: 44px 0;
  }
  .tr-grid--2,
  .tr-grid--3,
  .tr-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .tr-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .tr-subnav {
    top: 55px;
  }
  .tr-cta__inner {
    display: block;
  }
  .tr-cta__actions {
    margin-top: 18px;
  }
  .tr-hero__actions .tr-btn {
    flex: 1 1 100%;
  }
}
