/* ==========================================================================
   高跟鞋 · 基础层与首页版式
   设计基准宽度 1440（内容栏 1360 / 左右 40）；分区高度按 03-ui/compare-log.md
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* 筛选后隐藏卡片：.article-card 自带 display:flex，需要显式覆盖 [hidden] */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── 首屏 ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: max(0px, calc((100% - var(--container)) / 2));
  width: 46%;
  max-width: 660px;
  height: 480px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 231, 220, 0.9) 0%, rgba(243, 231, 220, 0) 26%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 480px;
  padding-top: 54px;
}

.hero-copy {
  max-width: 600px;
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
  font-size: 12.5px;
}

.hero-copy h1 {
  font-size: 54px;
  letter-spacing: 0.01em;
  line-height: 1.26;
  max-width: 10.2em;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-lead:first-of-type {
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-lead + .hero-lead {
  margin-top: 16px;
}

/* 参数条：按钮 + 四项事实，奶色药丸 */
.hero-params {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.hero-params-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(239, 220, 206, 0.92);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 10px;
  box-shadow: 0 18px 40px -38px rgba(42, 33, 29, 0.7);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hero-facts {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 20px;
  border-left: 1px solid rgba(42, 33, 29, 0.14);
  min-width: 0;
}

.hero-facts__label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-facts__value {
  margin: 0;
  font-size: 12.6px;
  color: var(--ink);
  white-space: nowrap;
}

/* ── 分类区 ─────────────────────────────────────────────────────────── */
.categories {
  padding-top: 0;
}

/* ── 内页通用版式 ───────────────────────────────────────────────────── */
.page-hero {
  padding-block: 34px 26px;
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-hero h1 {
  margin-top: 14px;
  font-size: 36px;
  letter-spacing: 0.01em;
}

.page-hero__sub {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

.page-hero__lead {
  margin-top: 12px;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-hero__count {
  flex: none;
  margin: 0;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.page-hero__count strong {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.1;
  margin: 0 3px;
}

.cta-wrap {
  margin-top: 6px;
  margin-bottom: 37px;
}

.list-section {
  padding-block: 0 8px;
}

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
  flex-wrap: wrap;
}

.list-head__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.list-head__note {
  margin: 0;
  font-size: 12.4px;
  color: var(--muted);
}

.list-description {
  padding: 44px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.list-description__inner {
  max-width: 760px;
}

.list-description h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.list-description p {
  font-size: 14.2px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.list-description a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.list-cta {
  padding: 44px 0 6px;
}

/* ── 详情页 ─────────────────────────────────────────────────────────── */
.article-head {
  padding-block: 30px 26px;
  border-bottom: 1px solid var(--line);
}

.article-head__tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--wine);
  background: rgba(239, 220, 206, 0.85);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-top: 14px;
}

.article-head h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.3;
  max-width: 22em;
}

.article-head__lead {
  margin-top: 14px;
  max-width: 40em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.article-head__meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) 240px;
  justify-content: center;
  gap: 76px;
  padding: 34px 0 10px;
  align-items: start;
}

.article-body {
  max-width: none;
}

.article-body section + section {
  margin-top: 34px;
}

.article-body h2 {
  font-size: 23px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-body p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-foot {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 2px solid var(--wine);
  background: rgba(239, 220, 206, 0.45);
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.related-section {
  padding: 40px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.related-more {
  margin-top: 20px;
}

/* ── 响应式 ─────────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  .container {
    --gutter: 32px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-photo {
    height: 448px;
  }

  .hero-inner {
    min-height: 448px;
  }

  .hero-facts li {
    padding: 0 14px;
  }

  .reading-inner {
    grid-template-columns: 240px repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1080px) {
  .brand-sub,
  .header-cta {
    display: none;
  }

  .site-nav ul {
    gap: 16px;
  }

  .hero-photo {
    width: 44%;
    height: 400px;
  }

  .hero-inner {
    min-height: 400px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-params-inner {
    flex-wrap: wrap;
    border-radius: var(--radius);
    gap: 12px;
  }

  .hero-facts {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 0;
  }

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

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

  .reading-lead {
    grid-column: 1 / -1;
  }

  .table-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "table"
      "note";
    grid-template-rows: auto auto auto;
    gap: 14px;
  }

  .table-lead h2 {
    max-width: none;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .article-toc {
    position: static;
    order: -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    margin-bottom: 26px;
  }

  .article-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .cta-band {
    grid-template-columns: 280px minmax(0, 1fr) 180px;
  }

  .cta-band__media {
    width: 280px;
  }
}

@media (max-width: 860px) {
  .container {
    --gutter: 24px;
  }

  .header-inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); gap: 4px 16px; padding-block: 8px; }

  .site-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    flex: 1 1 100%;
    background: none;
    border-bottom: none;
    padding: 4px 0 2px;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 14px;
    width: 100%;
  }

  .site-nav li {
    width: auto;
  }

  .site-nav a {
    display: inline-block;
    padding: 5px 0;
    font-size: 12.5px;
    border-bottom: none;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    max-width: none;
    height: 300px;
    right: auto;
    order: -1;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 26px;
  }

  .hero-photo::after {
    background: linear-gradient(180deg, rgba(243, 231, 220, 0) 62%, var(--paper) 100%);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy {
    max-width: none;
  }

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

  .category-card {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .category-card__media {
    order: 2;
    width: 44%;
    aspect-ratio: 1 / 1;
    flex: none;
  }

  .category-card__body {
    padding: 0;
    order: 1;
  }

  .category-card__title {
    font-size: 18px;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-content: stretch;
  }

  .reading-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    min-height: 0;
    gap: 16px;
  }

  .cta-band__media {
    position: static;
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .cta-band__media::after {
    background: none;
  }

  .cta-band__text {
    grid-column: 1;
    padding: 0;
    margin-left: 0;
    text-align: left;
  }

  .cta-band__text h2 {
    font-size: 22px;
  }

  .cta-band__action {
    grid-column: 1;
    justify-self: start;
    margin-right: 0;
  }

  .page-hero__grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-hero__count {
    text-align: left;
  }

  .article-head h1 {
    font-size: 30px;
  }
}

@media (max-width: 620px) {
  .container {
    --gutter: 18px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-photo {
    height: 220px;
  }

  .hero-lead {
    font-size: 13.6px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-facts li {
    border-left: none;
    border-top: 1px solid rgba(42, 33, 29, 0.12);
    padding: 8px 0 0;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card__media {
    width: 40%;
  }

  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .reading-item {
    grid-template-columns: 64px 1fr;
  }

  .reading-item__thumb {
    width: 64px;
    height: 64px;
  }

  .table-band {
    padding: 18px 0;
  }

  .heel-table {
    font-size: 11.6px;
  }

  .heel-table th,
  .heel-table td {
    padding: 8px 6px;
  }

  .heel-table td:nth-child(2),
  .heel-table th:nth-child(2) {
    display: none;
  }

  .page-hero h1,
  .article-head h1 {
    font-size: 25px;
  }

  .site-footer {
    padding: 26px 0 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
