.page-home {
  --home-cut: 20px;
  --home-edge: rgba(27, 42, 74, 0.16);
  --home-edge-dark: rgba(246, 243, 236, 0.16);
}

.page-home .crown-container {
  padding-bottom: clamp(40px, 7vw, 88px);
}

/* ---------- 首屏非对称双栏 ---------- */
.page-home .home-hero {
  display: grid;
  gap: var(--gap);
  margin-top: 18px;
}

@media (min-width: 960px) {
  .page-home .home-hero {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.page-home .home-rail,
.page-home .home-feed {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-cut)) 0,
    100% var(--home-cut),
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
  border-radius: 0;
}

.page-home .home-rail {
  background: linear-gradient(152deg, #fffdfa 0%, var(--paper) 46%, var(--paper-2) 100%);
  box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--home-edge);
}

.page-home .home-feed {
  background:
    repeating-linear-gradient(118deg, rgba(201, 162, 39, 0.09) 0 1px, transparent 1px 30px),
    linear-gradient(158deg, var(--indigo-900) 0%, var(--indigo-700) 68%, #2c4069 100%);
  box-shadow: inset 0 0 0 1px var(--home-edge-dark);
  color: var(--paper);
}

.page-home .home-rail__title {
  margin: 8px 0 0;
  color: var(--indigo-900);
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-home .home-rail__lead {
  margin: 14px 0 0;
  color: rgba(18, 24, 38, 0.82);
}

.page-home .home-rail__media {
  margin: 22px 0 0;
  aspect-ratio: 4 / 3;
}

.page-home .home-rail__member {
  margin-top: 22px;
  padding: 18px 16px 20px;
  background: rgba(201, 162, 39, 0.08);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 4px rgba(246, 243, 236, 0.6);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .home-rail__member-h {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--indigo-900);
}

.page-home .home-rail__member .crown-copy {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(18, 24, 38, 0.78);
}

.page-home .home-rail__story {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--indigo-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-rail__story:hover,
.page-home .home-rail__story:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 右侧关注卡片流 ---------- */
.page-home .home-feed__title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-feed__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 243, 236, 0.76);
}

.page-home .home-feed__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-feed__stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  color: rgba(246, 243, 236, 0.68);
}

.page-home .home-feed__stats .crown-num {
  font-size: 30px;
  line-height: 1;
  color: var(--gold-lift);
}

.page-home .home-feed__wash {
  margin: 20px 0 0;
  height: clamp(92px, 17vw, 150px);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-home .home-feed__wash img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-edge-dark);
}

.page-home .home-tabs__link {
  display: inline-block;
  padding: 7px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  text-decoration: none;
  color: var(--paper);
  background: rgba(246, 243, 236, 0.09);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  transition: background var(--ease), color var(--ease);
}

.page-home .home-tabs__link:hover,
.page-home .home-tabs__link:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

.page-home .home-feed__panel {
  margin-top: 20px;
  scroll-margin-top: 140px;
}

.page-home .home-feed__group {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(246, 243, 236, 0.86);
  box-shadow: inset 0 -1px 0 var(--home-edge-dark);
}

.page-home .home-feed__panel:target > .home-feed__group {
  color: var(--gold-lift);
  box-shadow: inset 0 -2px 0 var(--gold-lift);
}

.page-home .home-cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 620px) {
  .page-home .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-home .home-card {
  position: relative;
  padding: 16px 16px 18px;
  background: rgba(246, 243, 236, 0.06);
  box-shadow: inset 0 0 0 1px var(--home-edge-dark);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background var(--ease), box-shadow var(--ease);
}

.page-home .home-card:hover,
.page-home .home-card:focus-within {
  background: rgba(246, 243, 236, 0.1);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.page-home .home-card__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.page-home .home-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .home-feed .crown-tag {
  background: rgba(246, 243, 236, 0.13);
  color: var(--gold-lift);
}

.page-home .home-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 195, 177, 0.18);
  transition: background var(--ease), box-shadow var(--ease);
}

.page-home .home-card:hover .home-card__dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 106, 43, 0.24);
}

.page-home .home-card__name {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .home-card__meta {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(246, 243, 236, 0.66);
}

.page-home .home-card__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 195, 177, 0.42);
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-card__link:hover,
.page-home .home-card__link:focus-visible {
  color: var(--gold-lift);
  border-bottom-color: var(--gold-lift);
}

/* ---------- 章节索引条 ---------- */
.page-home .home-toc {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: clamp(28px, 4.4vw, 52px);
  padding: 8px 0;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--home-edge);
  border-bottom: 1px solid var(--home-edge);
}

.page-home .home-toc .crown-toc__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-toc .crown-toc__list::-webkit-scrollbar {
  display: none;
}

.page-home .home-toc .crown-toc__link {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 12px;
  font-family: var(--font-head);
  font-size: 12px;
  text-decoration: none;
  color: var(--indigo-500);
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.page-home .home-toc .crown-toc__link:hover,
.page-home .home-toc .crown-toc__link:focus-visible,
.page-home .home-toc .crown-toc__link.is-current {
  color: var(--indigo-900);
  border-bottom-color: var(--orange);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  margin-top: clamp(40px, 6vw, 76px);
  scroll-margin-top: 120px;
}

.page-home .home-section__title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--indigo-900);
}

.page-home .home-section__intro {
  margin: 12px 0 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(18, 24, 38, 0.78);
}

.page-home .home-section__foot {
  margin: 22px 0 0;
}

/* ---------- 01 维护记录 ---------- */
.page-home .home-log {
  margin-top: 22px;
  border-top: 1px solid var(--home-edge);
}

.page-home .home-log__item {
  border-bottom: 1px solid var(--home-edge);
}

.page-home .home-log__summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--indigo-900);
  transition: color var(--ease);
}

.page-home .home-log__summary::-webkit-details-marker {
  display: none;
}

.page-home .home-log__summary:hover,
.page-home .home-log__summary:focus-visible {
  color: var(--orange);
}

.page-home .home-log__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-deep);
}

.page-home .home-log__when {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--indigo-500);
}

.page-home .home-log__body {
  padding: 0 2px 18px 46px;
}

.page-home .home-log__body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(18, 24, 38, 0.76);
}

@media (min-width: 760px) {
  .page-home .home-log__summary {
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    font-size: 16px;
  }

  .page-home .home-log__when {
    grid-column: auto;
  }

  .page-home .home-log__body {
    padding-left: 58px;
  }
}

/* ---------- 02 深色快捷入口 ---------- */
.page-home .home-section--dark {
  padding: clamp(22px, 3.6vw, 46px);
  background:
    repeating-linear-gradient(115deg, rgba(201, 162, 39, 0.1) 0 1px, transparent 1px 26px),
    linear-gradient(140deg, var(--indigo-900) 0%, var(--indigo-700) 100%);
  color: var(--paper);
  clip-path: polygon(
    0 0,
    calc(100% - 30px) 0,
    100% 30px,
    100% 100%,
    30px 100%,
    0 calc(100% - 30px)
  );
}

.page-home .home-section--dark .home-section__title {
  color: var(--paper);
}

.page-home .home-section--dark .home-section__intro {
  color: rgba(246, 243, 236, 0.78);
}

.page-home .home-matchup {
  display: grid;
  gap: 26px;
}

@media (min-width: 860px) {
  .page-home .home-matchup {
    grid-template-columns: 7fr 4fr;
    align-items: start;
  }
}

.page-home .home-matchup__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-matchup__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(246, 243, 236, 0.82);
}

.page-home .home-matchup__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-matchup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-matchup__figures {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--home-edge-dark);
}

@media (min-width: 860px) {
  .page-home .home-matchup__figures {
    padding-top: 0;
    padding-left: 24px;
    border-top: 0;
    border-left: 1px solid var(--home-edge-dark);
  }
}

.page-home .home-matchup__figures p {
  margin: 0;
}

.page-home .home-matchup__figures .crown-num {
  display: block;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  color: var(--gold-lift);
}

.page-home .home-matchup__fig-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 243, 236, 0.66);
}

/* ---------- 03 案例磁贴 ---------- */
.page-home .home-cases {
  display: grid;
  gap: var(--gap);
  margin-top: 24px;
}

@media (min-width: 860px) {
  .page-home .home-cases {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.page-home .home-cases__media {
  margin: 0;
  aspect-ratio: 3 / 2;
}

.page-home .home-cases__tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-tile {
  display: block;
  height: 100%;
  padding: 16px 16px 18px;
  text-decoration: none;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px var(--home-edge);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background var(--ease), box-shadow var(--ease);
}

.page-home .home-tile:hover,
.page-home .home-tile:focus-visible {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px var(--orange);
}

.page-home .home-tile__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: var(--indigo-900);
}

.page-home .home-tile__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--indigo-500);
}

/* ---------- 04 会员权益 ---------- */
.page-home .home-member {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 860px) {
  .page-home .home-member {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }
}

.page-home .home-member__media {
  margin: 0;
  aspect-ratio: 4 / 5;
}

@media (min-width: 860px) {
  .page-home .home-member__media {
    position: sticky;
    top: 120px;
  }
}

.page-home .home-member__tiers {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-member__tiers li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  background: linear-gradient(100deg, var(--paper-2) 0%, rgba(231, 225, 213, 0) 92%);
  border-left: 3px solid var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(18, 24, 38, 0.82);
}

.page-home .home-member__tier-cn {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--indigo-900);
}

.page-home .home-member__foot {
  margin: 22px 0 0;
}

/* ---------- 05 首次访问路径 ---------- */
.page-home .home-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 780px) {
  .page-home .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-home .home-steps li {
  position: relative;
  padding: 22px 18px 20px;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px var(--home-edge);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.page-home .home-steps__num {
  display: block;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-home .home-steps__name {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
  color: var(--indigo-900);
}

.page-home .home-steps__text {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(18, 24, 38, 0.76);
}

.page-home .home-start__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--home-edge);
}

.page-home .home-start__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(18, 24, 38, 0.72);
}

.page-home .home-start__note a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 106, 43, 0.45);
  transition: border-color var(--ease);
}

.page-home .home-start__note a:hover,
.page-home .home-start__note a:focus-visible {
  border-bottom-color: var(--orange);
}

/* ---------- 图像容器 ---------- */
.page-home .crown-media {
  display: block;
  overflow: hidden;
  background: var(--indigo-900);
}

.page-home .crown-media__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .crown-media__label {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(246, 243, 236, 0.72);
  background: var(--indigo-900);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-tile,
  .page-home .home-tabs__link,
  .page-home .home-card__dot,
  .page-home .home-card__link,
  .page-home .home-rail__story,
  .page-home .home-toc .crown-toc__link,
  .page-home .home-log__summary {
    transition: none;
  }
}
