/* 光阴成书 · 官网版面梳理与视觉精修 2026-11-17 */

/* 1. 彻底隐藏历史残留的空白优惠横条与重复底部预约框 */
.offer-card:empty,
.hero-coupon,
.gy-intake-invite {
  display: none !important;
}

/* 2. 首屏按钮与克制留白 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.gy-intake-hero-link--subtle {
  border-color: rgba(32, 51, 41, 0.36) !important;
  background: rgba(255, 252, 246, 0.65) !important;
}

/* 3. 首屏下方：四大核心业务导览卡（取代原重复样书罗列） */
.gy-pillars-band {
  margin-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(16px, 2.5vw, 28px);
}
.gy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.gy-pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background: #fbf8f2;
  border: 1px solid #dfd7c5;
  border-radius: 3px;
  text-decoration: none !important;
  color: #26241f;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.gy-pillar-card:hover {
  border-color: #2c4637;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(32, 51, 41, 0.07);
}
.gy-pillar-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8c6d3f;
  font-weight: 600;
  margin-bottom: 10px;
}
.gy-pillar-card h2 {
  font-family: var(--gy-serif, "Songti SC", serif);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 10px;
  color: #203329;
}
.gy-pillar-card p {
  font-size: 14px;
  line-height: 1.72;
  color: #5c574c;
  margin: 0 0 16px;
  flex: 1;
}
.gy-pillar-more {
  font-size: 13px;
  font-weight: 500;
  color: #2c4637;
  letter-spacing: 0.04em;
}

/* 4. 紧凑优雅的五对一团队网格（告别占满三屏的巨图堆砌） */
.team-section .team-group {
  max-width: 880px;
  margin: 24px auto 28px;
}
.team-section .team-roles {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 20px !important;
}
.team-section .team-role {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px !important;
  background: #fbf8f2;
  border: 1px solid #e3d9c7;
  border-radius: 3px;
}
.team-section .team-role img {
  width: 100% !important;
  height: 136px !important;
  object-fit: cover !important;
  border-radius: 2px;
}
.team-section .team-role-text h3 {
  font-size: 17px !important;
  margin: 0 0 6px !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-section .team-role-text h3 span {
  font-size: 10px !important;
  letter-spacing: 0.12em;
  opacity: 0.65;
}
.team-section .team-role-text p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* 5. 访谈成片四支作品 2×2 均衡排版与视频封面自然铺满（播放按钮置右下角避让左侧纪实字幕） */
#stories .story-grid {
  row-gap: 36px;
}
#stories .video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #23362b;
}
#stories .video-frame .video-play {
  left: auto !important;
  right: 14px !important;
  bottom: 12px !important;
  min-height: 40px !important;
  padding: 6px 14px !important;
  font-size: 13.5px !important;
}

/* 6. 套餐区下方：30万字长篇专项定制卡 + 微信小程序在线签约栏 */
.gy-bespoke-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin: 26px 0 22px;
}
.gy-bespoke-card,
.gy-miniapp-bar {
  padding: 28px 30px;
  border-radius: 3px;
  border: 1px solid #d8cfbe;
  background: #fbf8f2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gy-bespoke-card {
  background: #23362b;
  border-color: #23362b;
  color: #f7f4ec;
}
.gy-bespoke-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #c7a977;
  margin: 0 0 10px;
  font-weight: 600;
}
.gy-miniapp-bar .gy-bespoke-eyebrow {
  color: #8c6d3f;
}
.gy-bespoke-card h3,
.gy-miniapp-bar h3 {
  font-family: var(--gy-serif, "Songti SC", serif);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 10px;
}
.gy-bespoke-card h3 { color: #faf8f2; }
.gy-miniapp-bar h3 { color: #203329; }
.gy-bespoke-card p,
.gy-miniapp-bar p {
  font-size: 14.5px;
  line-height: 1.78;
  margin: 0 0 18px;
}
.gy-bespoke-card p { color: rgba(247, 244, 236, 0.86); }
.gy-miniapp-bar p { color: #5c574c; }
.gy-bespoke-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.gy-bespoke-btn {
  padding: 10px 20px;
  background: #f7f4ec;
  color: #203329;
  border: 0;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.gy-bespoke-card .gy-bespoke-link {
  color: #e5cfa6;
  font-size: 14px;
  text-underline-offset: 4px;
}
.gy-miniapp-bar .gy-bespoke-link {
  color: #23362b;
  font-weight: 600;
  font-size: 14px;
  text-underline-offset: 4px;
}

/* 7. 底部三栏官方通道对齐与二维码底边精修（消除标题断字与半截截图文字） */
.gy-advisor-brand-contact {
  max-width: 1120px !important;
  width: min(1120px, calc(100% - 40px)) !important;
  margin-inline: auto !important;
}
.gy-advisor-brand-contact .gy-advisor-qr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1080px !important;
  gap: 22px !important;
  align-items: stretch !important;
}
.gy-advisor-qr-card {
  background: #fbf8f2 !important;
  border: 1px solid #e3d9c7 !important;
  border-radius: 4px;
  padding: 26px 20px 22px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gy-advisor-qr-card-title {
  font-size: 19px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  margin: 0 0 8px !important;
}
.gy-advisor-qr-description {
  min-height: 46px;
  margin: 0 0 14px !important;
}
.gy-advisor-qr-frame {
  border: 1px solid #ebe4d6;
  border-radius: 3px;
}
.gy-advisor-qr-frame--wechat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: #ffffff;
  pointer-events: none;
}
.gy-advisor-qr-frame--official::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: #ffffff;
  pointer-events: none;
}
.gy-miniapp-emblem {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #23362b 0%, #18261e 100%);
  color: #f7f4ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  gap: 8px;
}
.gy-miniapp-kicker {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #c7a977;
}
.gy-miniapp-name {
  font-family: var(--gy-serif, "Songti SC", serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.gy-miniapp-sub {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(199, 169, 119, 0.55);
  border-radius: 999px;
  font-size: 12px;
  color: #f0dfc0;
}
.gy-miniapp-tags {
  font-size: 11.5px;
  color: rgba(247, 244, 236, 0.78);
  margin-top: 4px;
}
.gy-advisor-qr-copy {
  margin-top: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #2c4637;
  border-radius: 2px;
  background: transparent;
  color: #2c4637;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.gy-advisor-qr-copy:hover {
  background: #2c4637;
  color: #fbf8f2;
}

/* 8. 右下角高对比度温润悬浮咨询胶囊 */
.floating-consult .gy-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  background: #23362b;
  color: #faf8f2;
  border: 1px solid rgba(250, 248, 242, 0.28);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(18, 28, 22, 0.26);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.floating-consult .gy-float-pill svg {
  width: 18px;
  height: 18px;
}

/* 9. 加快滚动显隐，消除手机快速滑动时的短暂空白感 */
[data-gy-reveal="wait"] {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 980px) {
  .gy-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-section .team-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gy-bespoke-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gy-advisor-brand-contact .gy-advisor-qr-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .gy-advisor-qr-description {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .gy-pillars-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .gy-pillar-card {
    padding: 18px 18px;
  }
  .team-section .team-roles {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .team-section .team-role {
    flex-direction: row !important;
    align-items: center !important;
  }
  .team-section .team-role img {
    width: 112px !important;
    height: 84px !important;
    flex-shrink: 0;
  }
}
