/* ==========================================================================
   首页样式（home.css）
   --------------------------------------------------------------------------
   定位：只写首页自己的视觉。骨架、栅格、按钮、轮播、折叠、列表组一律用
        Bootstrap 原生类，外观从 xt-theme.css 的组件变量取。
   禁止：再写 display:grid 拼版面、再造 .xxx-card / .xxx-btn 这类同义控件。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 首屏：背景图 + 遮罩 + 标题 + 案例轮播
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(34rem, calc(100vh - var(--xt-header-h)), 48rem);
  overflow: hidden;
  color: #f2f0e8;
  background: #1f2b22 url("../images/home/hero.webp") center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 13, 10, 0.92), rgba(11, 17, 12, 0.55) 54%, rgba(15, 20, 15, 0.15));
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.75rem, 5vh, 3.5rem);
  padding-block: var(--xt-hero-top) var(--xt-space-block);
}
.hero-content { max-width: 46rem; }
.hero .xt-title-1 { color: #f5f6ec; }
.hero-eyebrow { color: #b9c9b3; }
.hero-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.62em;
  font-weight: 400;
  color: #cbd6c6;
}
.hero-copy {
  max-width: 41rem;
  margin-block: 1.35rem 1.85rem;
  color: #dde5d8;
}

/* 案例轮播：玻璃卡承载 Bootstrap carousel */
.hero-stories {
  padding: clamp(1rem, 1.6vw, 1.4rem) clamp(1rem, 2vw, 1.6rem) clamp(0.6rem, 1vw, 0.9rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--xt-radius);
  background: rgba(14, 21, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-story-intro .xt-label { color: #a9bca4; }
/* 左栏：标签在上、插图吃掉剩余高度，线稿底边因此与右栏正文底边自动齐平 */
.hero-story-intro {
  display: flex;
  flex-direction: column;
}
.case-logo-area {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 不自己定高度：基线 0 + 自动长高，左栏高度由右栏正文决定，
     所以线稿多高完全跟着右侧正文走，底边天然对齐 */
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0.4rem;
}
.case-logo-area img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 素材本身是「透明底 + 浅色线稿」，专为深色背景绘制，绝不做反相。
     图片已裁掉四周透明边并放大，不需要再靠辉光救线条，只留一点点提亮 */
  filter: brightness(1.06);
  opacity: 0.96;
}
.hero-case {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-case-count {
  margin: 0;
  font-size: var(--xt-fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #a9bca4;
}
.hero-case-count b { color: var(--xt-accent); font-weight: 700; }
.hero-case-brand {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}
.hero-case-title {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: #e9efe6;
}
.hero-case-desc {
  margin: 0;
  font-size: var(--xt-fs-small);
  line-height: 1.65;
  color: #cdd8c8;
}

/* 案例切换：把原生圆点指示器改成品牌文字页签 */
.hero-foot { margin-top: clamp(0.85rem, 1.4vw, 1.2rem); }
.hero-case-tabs {
  position: static;
  flex: 1 1 auto;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.hero-case-tabs [data-bs-target] {
  flex: 1 1 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.8rem 0 0.3rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: none;
  color: #c3d3be;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-indent: 0;
  opacity: 1;
  transition: color var(--xt-ease), border-color var(--xt-ease);
}
.hero-case-tabs [data-bs-target]:hover { color: #eef3e8; }
.hero-case-tabs [data-bs-target].active {
  color: var(--xt-accent);
  border-top-color: var(--xt-accent);
}

/* 前后与暂停：圆形描边按钮 */
.case-controls { flex: 0 0 auto; }
.case-btn {
  --bs-btn-color: #e6eee1;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, 0.42);
  --bs-btn-hover-color: #172016;
  --bs-btn-hover-bg: #eaf0e4;
  --bs-btn-hover-border-color: #eaf0e4;
  --bs-btn-active-color: #172016;
  --bs-btn-active-bg: #cfdcc9;
  --bs-btn-active-border-color: #cfdcc9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   2. 区块底色（骨架与留白由 xt-theme 的 .xt-section 提供）
   -------------------------------------------------------------------------- */
.questions { background: var(--xt-paper); }
.brand-wall { background: var(--xt-paper); }
.contact { background: #e9ecdf; }

/* --------------------------------------------------------------------------
   3. 你的问题
   -------------------------------------------------------------------------- */
.question-layout { margin-top: var(--xt-space-block); }
.questions-lead {
  margin-top: 1.85rem;
  color: var(--xt-muted);
}
/* 左栏比右栏矮一大截，底部压一句收束，避免整栏悬空 */
.questions-note {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--xt-line);
  color: var(--xt-muted-2);
}
.question-list .list-group-item {
  padding: 1.35rem 0;
  border: 0;
  border-top: 1px solid var(--xt-line);
  background: transparent;
}
.question-list .list-group-item:last-child { border-bottom: 1px solid var(--xt-line); }
.question-num {
  flex: 0 0 1.75rem;
  padding-top: 0.3rem;
  font-size: var(--xt-fs-label);
  color: var(--xt-muted-2);
}
.question-list .xt-title-4 { margin: 0; }
.question-list .xt-copy {
  margin: 0.45rem 0 0;
  font-size: var(--xt-fs-small);
  color: var(--xt-muted);
}
.question-arrow {
  font-weight: 400;
  color: var(--xt-muted-2);
}

/* --------------------------------------------------------------------------
   4. 我们的视角（深色区块）
   -------------------------------------------------------------------------- */
.intro-statement { padding-top: var(--xt-space-block); }
.intro-note { margin-top: 1.5rem; }
.intro-note .xt-copy { color: #c9d2c4; }
.how-heading {
  margin-block: clamp(2rem, 4vw, 2.85rem) 1.35rem;
}
.how-label { color: var(--xt-accent); }

/* 三条并列分支：各自一条顶线 + 一个节点，用伪元素画，不引入新控件 */
.principles { margin-top: calc(var(--bs-gutter-x) * 0.5 + 0.35rem); }
.principle {
  position: relative;
  height: 100%;
  padding-top: 1.15rem;
  border-top: 1px solid #6f8069;
}
.principle::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xt-accent);
}
.principle .xt-title-4 { margin: 0.85rem 0 0.55rem; color: #f2f4e9; }
.principle .xt-title-4 span { display: block; margin-top: 0.15rem; color: var(--xt-accent); }
.principle .xt-copy { font-size: var(--xt-fs-small); color: #b4c2b0; }

/* --------------------------------------------------------------------------
   5. 品牌墙
   -------------------------------------------------------------------------- */
.wall-heading { margin-bottom: var(--xt-space-block); }
.wall-title { margin-top: 1rem; }
.brand-grid { margin-top: 0.5rem; }
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--xt-line);
}
.brand-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.78;
  mix-blend-mode: multiply;
}
.brand-more {
  padding: 1.15rem 0 0.85rem;
  border-top: 1px solid var(--xt-line);
  color: var(--xt-ink-2);
  font-size: var(--xt-fs-small);
}
.brand-more:hover { color: var(--xt-brand); }
.brand-more-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--xt-ease);
}
.brand-more[aria-expanded="true"] .brand-more-icon { transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   6. 五大领域（深色区块）：整行可点，用原生 list-group
   -------------------------------------------------------------------------- */
.world-heading { margin-bottom: var(--xt-space-block); }
.world-heading .xt-copy { color: #b6c5b0; }
.world-item {
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: inherit;
  transition: background var(--xt-ease);
}
.world-list .world-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.world-item:hover { background: rgba(176, 224, 32, 0.07); }
.world-num { font-size: var(--xt-fs-label); color: #9ab094; }
.world-name .xt-title-4 { margin: 0 0 0.35rem; color: #f2f4e9; }
.world-name .xt-label { color: #a4b89e; }
.world-item .xt-copy {
  margin: 0;
  font-size: var(--xt-fs-small);
  color: #b6c5b0;
}
.world-arrow { font-weight: 400; color: var(--xt-accent); }

/* --------------------------------------------------------------------------
   7. 观点与文章（站内暂无文章，先接公众号）
   -------------------------------------------------------------------------- */
.insights { background: var(--xt-paper); }
.insights-body { margin-top: var(--xt-space-block); }
.insights-lead {
  margin: 0;
  color: var(--xt-muted);
}
/* 多位作者、多个公众号：一人一张卡，各给各的码 */
.insights-accounts { margin-top: var(--xt-space-block); }
.account-card {
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-radius);
  background: #ffffff;
  overflow: hidden;
}
.account-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.35rem 0.6rem;
}
.account-qr {
  display: block;
  width: 100%;
  max-width: 10.5rem;
  height: auto;
  background: #ffffff;
}
/* 没有码的账号先给一条可用的路：微信搜一搜。等图到了直接换成 img */
.account-qr-wrap.is-search { padding-bottom: 0.6rem; }
.account-qr-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 10.5rem;
  height: 10.5rem;
  padding: 0.75rem;
  background: var(--xt-paper);
  border-radius: var(--xt-radius);
  font-size: var(--xt-fs-small);
  line-height: 1.5;
  color: var(--xt-muted);
  text-align: center;
}
.account-qr-hint b { color: var(--xt-ink); font-weight: 600; }
.account-card .card-body { padding: 0.4rem 1.35rem 1.35rem; }
.account-name {
  margin: 0 0 0.35rem;
  font-size: var(--xt-fs-4);
  line-height: var(--xt-lh-2);
  color: var(--xt-ink);
}
.account-owner {
  margin: 0 0 0.75rem;
  font-size: var(--xt-fs-small);
  color: var(--xt-brand);
}
.account-desc {
  margin: 0;
  font-size: var(--xt-fs-small);
  line-height: var(--xt-lh-body);
  color: var(--xt-muted);
}
/* 卡片底部压一条常写方向，三张卡的底边才收得住 */
.account-tags {
  margin: 1.15rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--xt-line);
  font-size: var(--xt-fs-small);
  color: var(--xt-muted-2);
}
/* 没有码的那张卡：把还没开的号列出来，别空着 */
.account-authors {
  margin: 0 0 1rem;
  font-size: var(--xt-fs-small);
  line-height: 1.55;
  color: var(--xt-muted);
}
.account-authors li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--xt-line);
}
.account-authors li:last-child { border-bottom: 1px solid var(--xt-line); }
.account-authors span {
  display: inline-block;
  min-width: 4.5rem;
  margin-right: 0.5rem;
  color: var(--xt-ink);
}

/* --------------------------------------------------------------------------
   8. 联系我们
   -------------------------------------------------------------------------- */
.contact-options { margin-top: 1.85rem; }

/* --------------------------------------------------------------------------
   9. 小屏：只调紧凑度与堆叠，栅格交给 Bootstrap
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-case { min-height: 0; }
  /* 两栏上下堆叠后没有「右栏」可对齐，线稿改回固定高度 */
  .case-logo-area { flex: 0 0 auto; height: clamp(4.6rem, 10.6vw, 9.6rem); }
}

@media (max-width: 767.98px) {
  .hero { min-height: 0; }
  .hero-inner { gap: 1.75rem; padding-block: 2.75rem 1.5rem; }
  .hero-copy { margin-block: 1.1rem 1.4rem; }
  .hero-foot { flex-wrap: wrap; row-gap: 0.85rem; }
  .hero-case-tabs { flex: 0 0 100%; }
  .hero-case-tabs [data-bs-target] {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.7rem 0.25rem 0.3rem 0;
    overflow: hidden;
    font-size: 0.625rem;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .case-controls { margin-left: auto; }
  .case-logo-area { height: 5.2rem; }
  .world-item { padding: 1.15rem 0; }
  .brand-tile { height: 4rem; padding: 0.5rem; }
}
