/* ============================================================
   子页通用样式（legal / contact / news / 内容页共用）
   复用 tokens.css + layout.css 的 header/footer，只扩展差异部分
   ============================================================ */

/* ---------- 1. 浅色 header 变体（子页默认） ---------- */
.site-header--light {
  background: #fff;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.site-header--light .site-nav__link {
  color: var(--ink);
}

.site-header--light .site-nav__link:hover,
.site-header--light .site-nav__item.is-open > .site-nav__link {
  color: var(--blue-400);
}

.site-header--light .site-nav__burger span {
  background: var(--ink);
}

.site-header--light .site-nav__login {
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.site-header--light .site-nav__login:hover {
  background: var(--ink);
  color: #fff;
}

.site-header--light .nav-dropdown {
  background: #fff;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

.site-header--light .nav-dropdown__link {
  color: var(--ink);
}

.site-header--light .nav-dropdown__link:hover {
  color: var(--blue-400);
}

/* ---------- 2. 页面标题区（对齐参考站：上下 padding 80/40，标题 48/700/72） ---------- */
.page-hero {
  background: #fff;
  padding-block: 80px 40px;
}

.page-hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 72px;
  color: var(--ink);
  letter-spacing: normal;
}

/* ---------- 3. 富文本正文（法律页 / 内容页） ---------- */
.rich-text {
  background: #fff;
  padding-block: 0 80px;
}

.rich-text__inner {
  /* 原站 .max-w-page-limit = 1440px，左右 padding 56px → 正文内容宽 1328px
     此前误写成 1313px，导致正文窄 127px、每段多折一行、整页累积偏移 */
  max-width: var(--page-max);
}

.rich-text p {
  margin: 0;
  /* 参考站每个段落上下各 14px 内边距（Tailwind py-3.5），相邻段落合计 28px 间距 */
  padding-block: 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--ink);
}

.rich-text h5 {
  margin: 0;
  /* 参考站小标题 py-4（上下各 16px） */
  padding-block: 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 45.5px;
  color: var(--ink);
}

.rich-text h5:first-child {
  padding-top: 0;
}

/* 正文里的链接 */
.rich-text a {
  color: var(--balyasny-blue);
  text-decoration: underline;
}

/* ---------- 4. 响应式 ---------- */
@media (max-width: 1023px) {
  .page-hero {
    padding-block: 56px 32px;
  }
  .page-hero__title {
    font-size: 36px;
    line-height: 54px;
  }
  .rich-text {
    padding-block: 0 72px;
  }
  .rich-text h5 {
    font-size: 20px;
    line-height: 32.5px;
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding-block: 40px 24px;
  }
  .page-hero__title {
    font-size: 28px;
    line-height: 42px;
  }
  .rich-text {
    padding-block: 0 64px;
  }
  .rich-text p {
    font-size: 16px;
    line-height: 26px;
  }
  .rich-text h5 {
    font-size: 20px;
    line-height: 32.5px;
  }
}

/* ============================================================
   5. 加高版页面标题区（含小标签，总高 296px，contact/news 使用）
   ============================================================ */
.page-hero--tall {
  padding-block: 80px;
}

.page-hero__eyebrow {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--blue-400);
  letter-spacing: normal;
}

.page-hero--tall .page-hero__title {
  font-size: 64px;
  font-weight: 600;
  line-height: 96px;
  color: var(--ink);
}

/* 深色标题区（news-and-insights 等） */
.page-hero--dark {
  background: var(--blue-900);
}

.page-hero--dark .page-hero__eyebrow {
  color: var(--blue-400);
}

.page-hero--dark .page-hero__title {
  color: #fff;
}

/* ============================================================
   6. 联系表单
   ============================================================ */
.contact-form {
  background: #fff;
  padding-block: 0 96px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 32px;
  max-width: 1313px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--ink);
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: var(--ink);
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 16px 24px;
  height: 58px;
  -webkit-appearance: none;
  appearance: none;
}

.contact-field textarea {
  height: 178px;
  resize: vertical;
  padding-block: 16px;
}

.contact-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23101010' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  padding-right: 56px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(16, 16, 16, 0.45);
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 60px;
  padding: 0 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-900);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form__submit:hover {
  background: var(--blue-400);
}

.contact-form__note {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--ink);
}

.contact-form__note a {
  color: var(--blue-400);
  text-decoration: underline;
}

/* ============================================================
   7. 新闻卡片网格
   ============================================================ */
.news-grid-section {
  background: #fff;
  padding-block: 80px 96px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  /* 原站卡片宽 421px（3 列 + gap 32 在 1328 内容宽内），此前误设 1313 导致列宽 416 */
  max-width: var(--page-max);
}

.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.news-card__media {
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 416 / 288;
  flex: none;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.025);
}

.news-card__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 45.5px;
  color: var(--ink);
}

.news-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  /* 原站箭头距标题 16px（mt-4），不是推到底部 */
  margin-top: 16px;
  border-radius: 50%;
}

.news-card__arrow svg {
  width: 36px;
  height: 36px;
  display: block;
}

.news-card__arrow circle {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
}

.news-card__arrow path {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   8. 响应式补齐
   ============================================================ */
@media (max-width: 1023px) {
  .page-hero--tall {
    padding-block: 56px;
  }
  .page-hero--tall .page-hero__title {
    font-size: 44px;
    line-height: 66px;
  }
  .contact-form__grid {
    gap: 40px 24px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* 原站 md:gap-x-8(32) + gap-y-11(44) */
    gap: 44px 32px;
  }
  .news-card__title {
    font-size: 22px;
    line-height: 36px;
  }
}

@media (max-width: 767px) {
  .page-hero--tall {
    padding-block: 40px;
  }
  .page-hero--tall .page-hero__title {
    font-size: 32px;
    line-height: 48px;
  }
  .contact-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .contact-field--full {
    grid-column: auto;
  }
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    height: 52px;
    padding: 12px 18px;
  }
  .contact-field textarea {
    height: 150px;
  }
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-card__title {
    font-size: 20px;
    line-height: 32px;
    margin-top: 16px;
  }
}


/* ---------- 子页导航当前项高亮（对应原站的蓝色下划线） ---------- */
.site-header--light .site-nav__link.is-active {
  color: var(--blue-400);
  position: relative;
}

.site-header--light .site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background: currentColor;
}

/* 法律页/富文本页的大标题（原站独立区块 h=192；文字实际起点在 section 顶部 +80） */
.page-title {
  margin: 0;
  padding-block: 80px 40px;
  font-size: 48px;
  font-weight: 700;
  line-height: 72px;
  color: var(--ink);
}

@media (max-width: 1023px) {
  .page-title {
    padding-block: 72px 24px;
    font-size: 32px;
    line-height: 48px;
  }
}

@media (max-width: 767px) {
  .page-title {
    padding-block: 64px 24px;
    font-size: 28px;
    line-height: 42px;
  }
}











