.page-home {
  --home-orange-ink: #C2410C;
  background: var(--ink);
  color: var(--cream);
}

.page-home section[id] {
  scroll-margin-top: 88px;
}

/* ---------- 通用区块标题 ---------- */
.page-home .home-head {
  max-width: 760px;
  margin-bottom: clamp(22px, 3.4vw, 38px);
}

.page-home .home-head h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.page-home .home-head__note {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .sub-head {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
}

/* ---------- 首屏分屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(26px, 4vw, 48px) 0 clamp(46px, 6.5vw, 92px);
  background:
    radial-gradient(circle at 84% 14%, rgba(34, 211, 238, 0.14), transparent 46%),
    radial-gradient(circle at 4% 90%, rgba(249, 115, 22, 0.1), transparent 42%);
}

.page-home .hero__inner {
  display: grid;
  gap: clamp(30px, 4.5vw, 56px);
}

@media (min-width: 920px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
  }
}

.page-home .hero__copy .breadcrumb {
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.page-home .hero__title {
  margin: 10px 0 clamp(14px, 2vw, 22px);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.page-home .hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.85;
  color: rgba(247, 241, 230, 0.78);
}

.page-home .hero__copy .btn {
  margin-top: clamp(24px, 3.4vw, 36px);
}

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-home .hero__meta li {
  position: relative;
  padding-left: 14px;
}

.page-home .hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .hero__visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.page-home .hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(11, 21, 36, 0.94), rgba(11, 21, 36, 0));
}

/* ---------- 入口矩阵 ---------- */
.page-home .entry-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

@media (min-width: 1000px) {
  .page-home .entry-layout {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

.page-home .entry-figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .entry-figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1000px) {
  .page-home .entry-figure {
    position: sticky;
    top: 92px;
  }
}

.page-home .entry-grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .entry-card:nth-child(even) {
    margin-top: 20px;
  }
}

.page-home .entry-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.page-home .entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -30px rgba(34, 211, 238, 0.7);
}

.page-home .entry-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.page-home .entry-card__no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .entry-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
}

.page-home .entry-card__note {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .entry-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .entry-card__list a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .entry-card__list a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* ---------- 标签切换通用 ---------- */
.page-home .tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .tabs__btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gray);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .tabs__btn:hover {
  color: var(--cream);
  border-color: var(--line-strong);
}

.page-home .tabs__btn[aria-selected="true"],
.page-home .tabs__btn.is-active {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home [data-tab-panel] {
  margin-top: clamp(18px, 2.6vw, 26px);
}

/* ---------- 更新记录 ---------- */
.page-home .updates-figure {
  margin: 0 0 clamp(22px, 3vw, 34px);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .updates-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .updates-panel {
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--brown);
}

.page-home .updates-panel .tabs__btn {
  color: rgba(36, 28, 21, 0.62);
  border-color: rgba(36, 28, 21, 0.18);
}

.page-home .updates-panel .tabs__btn:hover {
  color: var(--brown);
  border-color: var(--home-orange-ink);
}

.page-home .updates-panel .tabs__btn[aria-selected="true"],
.page-home .updates-panel .tabs__btn.is-active {
  color: #ffffff;
  background: var(--home-orange-ink);
  border-color: var(--home-orange-ink);
}

.page-home .timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), rgba(249, 115, 22, 0.14));
}

.page-home .timeline__item {
  position: relative;
  padding-left: 30px;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--orange);
}

.page-home .timeline__meta {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--home-orange-ink);
}

.page-home .timeline__title {
  margin: 5px 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--brown);
}

.page-home .timeline__desc {
  margin: 0;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: rgba(36, 28, 21, 0.78);
}

/* ---------- 适配清单 ---------- */
.page-home .adapt-figure {
  margin: 0 0 clamp(20px, 3vw, 30px);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .adapt-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
}

.page-home table.data {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home table.data th {
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}

.page-home table.data td {
  padding: 14px 16px;
  color: rgba(247, 241, 230, 0.86);
  border-bottom: 1px solid rgba(143, 163, 184, 0.12);
}

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

.page-home table.data tbody tr:hover {
  background: rgba(34, 211, 238, 0.05);
}

.page-home .st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.page-home .st--ok {
  color: var(--green);
}

.page-home .st--warn {
  color: var(--amber);
}

.page-home .st--idle {
  color: var(--gray);
}

/* ---------- 文档与案例 ---------- */
.page-home .doc-cols {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
  .page-home .doc-cols {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.page-home .doc-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .doc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .doc-list__id {
  min-width: 168px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray);
}

.page-home .doc-list a {
  font-size: 0.95rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .doc-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .cat-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .cat-cloud a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-size: 0.86rem;
  color: rgba(247, 241, 230, 0.86);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.page-home .cat-cloud a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .case-lede {
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .case-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.page-home .case-card {
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .case-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.page-home .case-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.page-home .case-card__name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}

.page-home .case-card__num {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .case-card__desc {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- PC 端对照入口条 ---------- */
.page-home .compare-bar {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(24px, 3.6vw, 42px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--ink-2) 0%, var(--ink-3) 58%, #1B3452 100%);
  overflow: hidden;
}

.page-home .compare-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

@media (min-width: 780px) {
  .page-home .compare-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.page-home .compare-bar h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--cream);
}

.page-home .compare-bar p {
  margin: 0;
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--gray);
}

.page-home .compare-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .compare-bar__link:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.page-home .compare-bar__link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- 窄屏收口 ---------- */
@media (max-width: 640px) {
  .page-home .hero__caption {
    font-size: 11px;
  }
  .page-home .doc-list__id {
    min-width: 0;
  }
  .page-home .case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .case-card,
  .page-home .tabs__btn,
  .page-home .compare-bar__link {
    transition: none;
  }
  .page-home .entry-card:hover,
  .page-home .case-card:hover {
    transform: none;
  }
}
