/* 正式站新闻洞察与常见问题：补回卡片列表和问答堆叠。
   全站 styles.css 仍是国内节点那份，不含这些规则，所以只挂在这两页。 */
.home-v2 {
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  background: #ffffff;
  color: #141418;
}

/* =========================================================================
   新闻与洞察：一打开就是文章卡片，八篇直接铺开，
   点一张就地展开成整页阅读；正文是从对应文章页取回来的，不在这页重复存一份。
   ========================================================================= */
/* 这一页不放标题区：打开就是卡片，标题只留给读屏和搜索引擎。 */
.home-v2 .news-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 86px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

/* 列表本体：参考编辑类资讯页的上图下文卡片，八篇一次铺开。 */
.home-v2 .news-grid-wrap {
  position: relative;
  margin-top: clamp(28px, 3.2vw, 44px);
}

.home-v2 .news-grid {
  display: grid;
  max-width: 1040px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 28px);
}

.home-v2 .news-card {
  position: relative;
  min-width: 0;
}

.home-v2 .news-card[hidden] {
  display: none;
}

/* 入场：按顺序淡入，和分类切换共用一条过渡 */
.home-v2 .news-grid.is-armed .news-card {
  opacity: 0;
  transform: translateY(14px);
}

.home-v2 .news-grid.is-armed.is-ready .news-card {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease calc(var(--i) * 55ms), transform 520ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 55ms);
}

.home-v2 .news-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid rgba(20, 20, 24, 0.12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.home-v2 .news-card-link:hover,
.home-v2 .news-card-link:focus-visible {
  border-color: rgba(20, 20, 24, 0.28);
  box-shadow: 0 16px 36px rgba(20, 20, 24, 0.08);
  transform: translateY(-3px);
}

.home-v2 .news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e7e7e3;
}

.home-v2 .news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-v2 .news-card-link:hover .news-card-media img,
.home-v2 .news-card-link:focus-visible .news-card-media img {
  transform: scale(1.035);
}

.home-v2 .news-card-topic {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.9);
  color: #263c31;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.home-v2 .news-card-content {
  display: flex;
  min-height: 230px;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.home-v2 .news-card-date {
  color: #72746f;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.home-v2 .news-card-title {
  margin-top: 12px;
  color: #141418;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
}

.home-v2 .news-card-summary {
  margin-top: 10px;
  color: #55565e;
  font-size: 12.5px;
  line-height: 1.75;
}

.home-v2 .news-card-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  color: #2c513c;
  font-size: 12px;
  font-weight: 600;
}

.home-v2 .news-card-read > span:last-child {
  font-size: 15px;
  transition: transform 260ms ease;
}

.home-v2 .news-card-link:hover .news-card-read > span:last-child,
.home-v2 .news-card-link:focus-visible .news-card-read > span:last-child {
  transform: translate(2px, -2px);
}

.home-v2 .news-empty {
  position: relative;
  z-index: 1;
  margin: 0 max(40px, calc(50vw - 580px)) 40px;
  color: #6d6a64;
}

/* ---------- 就地展开的阅读层 ---------- */
.home-v2 .news-reader {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-v2 .news-reader.is-open {
  opacity: 1;
  transform: none;
}

.home-v2 .news-reader-sheet {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px) clamp(64px, 8vw, 110px);
}

.home-v2 .news-reader-close {
  position: sticky;
  top: 18px;
  z-index: 2;
  margin: 18px 0 0;
  padding: 9px 16px;
  border: 1px solid rgba(20, 20, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #141418;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.home-v2 .news-reader-close:hover {
  border-color: #141418;
}

/* 展开后那条色带用卡片本来的配色，接着往下才是正文 */
.home-v2 .news-reader-hero {
  margin: 18px calc(-1 * clamp(24px, 4vw, 40px)) clamp(28px, 4vw, 44px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
}

.home-v2 .news-reader-hero h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-v2 .news-reader-topic {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.74;
}

.home-v2 .news-reader-meta {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.74;
}

.home-v2 .news-reader-content {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: clamp(32px, 5vw, 64px);
}

.home-v2 .news-reader-toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(20, 20, 24, 0.1);
  background: #f7f6f3;
}

.home-v2 .news-reader-toc[hidden] {
  display: none;
}

.home-v2 .news-reader-toc p {
  margin: 0 0 12px;
  color: #77787f;
  font-size: 12px;
  font-weight: 600;
}

.home-v2 .news-reader-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.home-v2 .news-reader-toc li,
.home-v2 .news-reader-toc a {
  color: #55565e;
  font-size: 12.5px;
  line-height: 1.55;
}

.home-v2 .news-reader-toc a:hover,
.home-v2 .news-reader-toc a:focus-visible {
  color: #141418;
}

.home-v2 .news-reader-body {
  min-width: 0;
  color: #2b2c33;
  line-height: 1.95;
}

.home-v2 .news-reader-body h2 {
  margin: clamp(32px, 4vw, 48px) 0 14px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.home-v2 .news-reader-body h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

.home-v2 .news-reader-body p,
.home-v2 .news-reader-body li {
  font-size: 15px;
}

.home-v2 .news-reader-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.home-v2 .news-reader-body th,
.home-v2 .news-reader-body td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 20, 24, 0.1);
  text-align: left;
}

.home-v2 .news-reader-loading {
  color: #8f9098;
}

.home-v2 .news-reader-fallback {
  margin-top: 20px;
}

body.news-reader-open {
  overflow: hidden;
}

/* 中文 FAQ 独立页：附件中的单列堆叠卡片，不影响首页与文章内的问答。 */
.home-v2.page-v2 main.faq-page {
  padding: clamp(68px, 9vh, 90px) 24px clamp(64px, 9vh, 110px);
}

.home-v2 .faq-page-inner {
  max-width: 820px;
  margin: 0 auto;
}

.home-v2 .faq-page-head {
  text-align: center;
}

.home-v2 .faq-page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.35;
}

.home-v2 .faq-page-head p {
  max-width: 44em;
  margin: 12px auto 0;
  color: #9a9ba3;
  font-size: 13px;
  line-height: 1.75;
}

.home-v2 .faq-page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(36px, 5vh, 56px);
}

.home-v2 .faq-page-stack details {
  padding: 6px 6px 6px 24px;
  border: 0;
  border-radius: 20px;
  background: #f4f5f7;
  transition: background 350ms ease;
}

.home-v2 .faq-page-stack details[open] {
  background: #e9edf3;
}

.home-v2 .faq-page-stack summary {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 15px 58px 15px 0;
  color: #141418;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.home-v2 .faq-page-stack summary::-webkit-details-marker {
  display: none;
}

.home-v2 .faq-page-stack summary::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #141418;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1), background 250ms ease;
}

.home-v2 .faq-page-stack details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.home-v2 .faq-page-stack details > p {
  max-width: none;
  margin: 0 0 0 -18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  color: #55565e;
  font-size: 13.5px;
  line-height: 1.9;
}

.home-v2 .faq-page-note {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 600px) {
  .home-v2.page-v2 main.faq-page {
    padding: 64px 0 72px;
  }

  .home-v2 .faq-page-stack {
    gap: 12px;
  }

  .home-v2 .faq-page-stack details {
    padding-left: 18px;
    border-radius: 16px;
  }

  .home-v2 .faq-page-stack summary {
    min-height: 62px;
    padding-right: 50px;
    font-size: 14px;
  }

  .home-v2 .faq-page-stack summary::after {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .home-v2 .faq-page-stack details > p {
    margin-left: -12px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .home-v2 .news-reader-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-v2 .news-reader-toc {
    position: static;
  }
}

@media (max-width: 1000px) {
  .home-v2 .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-v2 .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-v2 .news-card-content {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 .news-card,
  .home-v2 .news-card-link,
  .home-v2 .news-card-media img,
  .home-v2 .news-card-read > span:last-child,
  .home-v2 .news-reader {
    transition: none;
  }

  .home-v2 .faq-page-stack details,
  .home-v2 .faq-page-stack summary::after {
    transition: none;
  }

  .home-v2 .news-grid.is-armed .news-card {
    opacity: 1;
    transform: none;
  }
}
