/* ============================================================
   Editorial Theme (model29) - 首页样式
   模块：S1 Hero / S2 Catalog / S3 Mosaic / S4 Perks
   ============================================================ */

/* ============================================================
   S1: Hero 左黑右图分屏
   ============================================================ */
.ed-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 640px;
  border-bottom: 1px solid var(--ed-line);
}
/* 左：黑底文字面板 */
.ed-hero__panel {
  background: var(--ed-ink);
  color: var(--ed-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}
.ed-hero__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ed-hero__kicker::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--ed-accent);
}
.ed-hero__title {
  font-family: var(--ed-serif) !important;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--ed-white);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.ed-hero__desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.62);
  max-width: 440px;
  margin: 0 0 34px;
}
.ed-hero__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ed-accent);
  color: var(--ed-white) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 34px;
  transition: all var(--ed-trans);
}
.ed-hero__cta i { transition: transform 0.3s var(--ed-ease); }
.ed-hero__cta:hover {
  background: var(--ed-white);
  color: var(--ed-ink) !important;
}
.ed-hero__cta:hover i { transform: translate(3px, -3px); }
/* 缩略图行 */
.ed-hero__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 44px;
}
.ed-hero__thumb {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255,255,255,0.25);
  overflow: hidden;
  display: block;
  transition: border-color var(--ed-trans);
}
.ed-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ed-ease);
}
.ed-hero__thumb:hover { border-color: var(--ed-accent); }
.ed-hero__thumb.is-active { border-color: var(--ed-accent); }
.ed-hero__thumb.is-active img { transform: scale(1.06); }
.ed-hero__thumb:hover img { transform: scale(1.1); }
/* 右：大图 */
.ed-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--ed-white);
}
.ed-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-hero__flag {
  position: absolute;
  top: 26px;
  left: 0;
  background: var(--ed-accent);
  color: var(--ed-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 9px 18px 9px 22px;
}

/* ============================================================
   S2: Catalog 章节头 + 横向卡片轨道
   ============================================================ */
.ed-catalog {
  padding: 84px 0 90px;
  background: var(--ed-paper);
}
.ed-catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-catalog__intro { max-width: 520px; }
.ed-secnum {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 14px;
}
.ed-catalog__title {
  font-family: var(--ed-serif) !important;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.ed-catalog__sub {
  font-size: 14px;
  color: var(--ed-gray);
  margin: 0;
}
.ed-catalog__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
/* 方角筛选按钮 */
.ed-catalog__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ed-cat-pill {
  border: 1px solid var(--ed-line);
  background: transparent;
  color: var(--ed-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: all var(--ed-trans);
}
.ed-cat-pill:hover { background: var(--ed-accent); border-color: var(--ed-accent); color: var(--ed-white); }
.ed-cat-pill.is-active {
  background: var(--ed-ink);
  color: var(--ed-white);
  border-color: var(--ed-ink);
}
/* 方块箭头 */
.ed-catalog__nav { display: flex; gap: 8px; }
.ed-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ed-line);
  background: transparent;
  color: var(--ed-ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ed-trans);
}
.ed-nav-btn:hover {
  background: var(--ed-ink);
  color: var(--ed-white);
}
/* 卡片轨道 */
.ed-catalog__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  cursor: grab;
  scrollbar-width: none;
}
.ed-catalog__track::-webkit-scrollbar { display: none; }
/* 卡片 */
.ed-cat-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  text-decoration: none !important;
  transition: box-shadow var(--ed-trans), transform var(--ed-trans);
}
.ed-cat-card:hover {
  box-shadow: 8px 8px 0 rgba(20,20,20,0.9);
  transform: translate(-2px, -2px);
}
.ed-cat-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ed-paper);
}
.ed-cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ed-ease);
}
.ed-cat-card:hover .ed-cat-card__media img { transform: scale(1.06); }
.ed-cat-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ed-ink);
  color: var(--ed-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 9px;
}
.ed-cat-card__price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--ed-accent);
  color: var(--ed-white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}
.ed-cat-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 18px 20px;
  border-top: 1px solid var(--ed-line);
}
.ed-cat-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-gray);
}
.ed-cat-card__name {
  font-family: var(--ed-serif) !important;
  font-size: 19px;
  font-weight: 400;
  color: var(--ed-ink);
  line-height: 1.25;
  margin: 0;
}
.ed-cat-card__desc {
  font-size: 12px;
  color: var(--ed-gray);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-cat-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-ink);
  margin-top: 6px;
  transition: color var(--ed-trans);
}
.ed-cat-card:hover .ed-cat-card__more { color: var(--ed-accent); }
.ed-cat-card__more i { transition: transform 0.3s var(--ed-ease); }
.ed-cat-card:hover .ed-cat-card__more i { transform: translateX(4px); }

/* ============================================================
   S3: Mosaic 四列拼贴 + 中列轮播
   ============================================================ */
.ed-mosaic {
  padding: 0 0 90px;
  background: var(--ed-paper);
}
.ed-mosaic__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 300px);
  gap: 16px;
}
.ed-mosaic__c1 { grid-column: 1; grid-row: 1; }
.ed-mosaic__c2 { grid-column: 1; grid-row: 2; }
.ed-mosaic__c3 { grid-column: 3; grid-row: 1; }
.ed-mosaic__c4 { grid-column: 3; grid-row: 2; }
.ed-mosaic__c5 { grid-column: 4; grid-row: 1; }
.ed-mosaic__c6 { grid-column: 4; grid-row: 2; }
/* 拼贴卡：图全出血 + 底部黑条 */
.ed-mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ed-white);
  border: 1px solid var(--ed-line);
  text-decoration: none !important;
}
.ed-mcard__media {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ed-mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ed-ease);
}
.ed-mcard:hover .ed-mcard__media img { transform: scale(1.07); }
.ed-mcard__info {
  flex: 0 0 84px;
  background: var(--ed-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 16px;
}
.ed-mcard__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-accent);
}
.ed-mcard__name {
  font-family: var(--ed-serif) !important;
  font-size: 16px;
  font-weight: 400;
  color: var(--ed-white);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-mcard__price {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}
.ed-mcard:hover .ed-mcard__name { color: var(--ed-accent); }
/* 中列轮播 */
.ed-show {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  overflow: hidden;
  border: 1px solid var(--ed-line);
}
.ed-show__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ed-ease), visibility 0.6s;
}
.ed-show__slide.is-active {
  opacity: 1;
  visibility: visible;
}
/* 文字区（上） */
.ed-show__text {
  padding: 30px 28px;
}
.ed-show__pre {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 5px;
  margin-bottom: 12px;
}
.ed-show__title {
  font-family: var(--ed-serif) !important;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ed-white);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.ed-show__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ed-white);
  color: var(--ed-ink) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: all var(--ed-trans);
}
.ed-show__btn:hover {
  background: var(--ed-accent);
  color: var(--ed-white) !important;
}
/* 图片区（下） */
.ed-show__img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
/* 指示点 */
.ed-show__dots {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.ed-show__dots span {
  width: 22px;
  height: 3px;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background var(--ed-trans);
}
.ed-show__dots span.is-active { background: var(--ed-white); }

/* ============================================================
   S4: Perks 服务条
   ============================================================ */
.ed-perks {
  border-top: 1px solid var(--ed-line);
  background: var(--ed-white);
  padding: 0;
}
.ed-perks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ed-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 24px;
  border-right: 1px solid var(--ed-line-soft);
}
.ed-perk:last-child { border-right: none; }
.ed-perk > i {
  font-size: 26px;
  color: var(--ed-accent);
  line-height: 1;
}
.ed-perk__title {
  font-family: var(--ed-serif) !important;
  font-size: 16px;
  margin: 0;
}
.ed-perk__desc {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ed-gray);
  margin: 3px 0 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .ed-hero { min-height: 560px; }
  .ed-hero__panel { padding: 56px 44px; }
  .ed-mosaic__grid {
    grid-template-columns: 1fr 1.3fr 1fr;
    grid-template-rows: repeat(2, 260px);
  }
  .ed-mosaic__c5 { grid-column: 3; grid-row: 1; }
  .ed-mosaic__c6 { grid-column: 3; grid-row: 2; }
  .ed-mosaic__c3 { grid-column: 1; grid-row: 1; }
  .ed-mosaic__c4 { grid-column: 1; grid-row: 2; }
  .ed-mosaic__c1 { display: none; }
  .ed-mosaic__c2 { display: none; }
}

@media (max-width: 959px) {
  .ed-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ed-hero__panel { padding: 52px 28px; }
  .ed-hero__media { height: 420px; }
  .ed-catalog { padding: 56px 0 64px; }
  .ed-catalog__head { flex-direction: column; align-items: flex-start; }
  .ed-catalog__side { align-items: flex-start; }
  .ed-catalog__pills { justify-content: flex-start; }
  .ed-mosaic__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .ed-mosaic__c1,
  .ed-mosaic__c2,
  .ed-mosaic__c3,
  .ed-mosaic__c4,
  .ed-mosaic__c5,
  .ed-mosaic__c6 {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    height: 320px;
  }
  .ed-show {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 480px;
  }
  .ed-perks__grid { grid-template-columns: 1fr 1fr; }
  .ed-perk:nth-child(2) { border-right: none; }
  .ed-perk:nth-child(1),
  .ed-perk:nth-child(2) { border-bottom: 1px solid var(--ed-line-soft); }
}

@media (max-width: 639px) {
  .ed-hero__title { font-size: 34px; }
  .ed-hero__media { height: 320px; }
  .ed-hero__thumb { width: 68px; height: 68px; }
  .ed-cat-card { flex: 0 0 240px; }
  .ed-mosaic__grid { grid-template-columns: 1fr; }
  .ed-mcard { height: 300px; }
  .ed-show { height: 420px; }
  .ed-perks__grid { grid-template-columns: 1fr; }
  .ed-perk { border-right: none; border-bottom: 1px solid var(--ed-line-soft); }
  .ed-perk:last-child { border-bottom: none; }
}
