/*
 * 全站大标题排版校正
 * 目标：保留原有两段式标题节奏，同时避免每一段再次被挤成多行。
 * 本文件只校正标题字号、行宽和字距，不改变页面内容与图片。
 */

@media (min-width: 1200px) {
  /* 首页轮播：两段文字各自保持一行。 */
  .hero h1,
  .hero-message h2 {
    width: min(78rem, 84vw);
    font-size: clamp(3.1rem, 4.85vw, 6rem);
    line-height: 1.01;
    letter-spacing: -.055em;
  }

  /* 产品入口与开盖即刮：减少“一个短句占两行”的情况。 */
  .product-intro-hero h1 {
    max-width: 12em;
    font-size: clamp(4rem, 5vw, 5.8rem);
    line-height: 1;
  }

  .ready-layout-v2 .product-hero h1 {
    max-width: 10em;
    font-size: clamp(3.8rem, 4.65vw, 5.4rem);
    line-height: 1.01;
  }

  /* 橡木颗粒：标题两段各占一行。 */
  .readycork-page #cork-title {
    max-width: 13em;
    font-size: clamp(3.25rem, 3.45vw, 4.1rem);
    line-height: 1.07;
    letter-spacing: -.045em;
  }

  /* 金属饰面：保留两段式判断，不再形成四行。 */
  .mettal-page .mettal-system__head h2 {
    font-size: clamp(3.25rem, 3.65vw, 4.3rem);
    line-height: 1.06;
    letter-spacing: -.055em;
  }

  /* DURITE：每个板块按自身栏宽设定，不统一压成同一字号。 */
  .durite-page #art-title {
    max-width: 40rem;
    font-size: clamp(3.2rem, 3.35vw, 4rem);
    line-height: 1.05;
  }

  .durite-page #series-title {
    font-size: clamp(3.7rem, 3.9vw, 4.65rem);
    line-height: .98;
  }

  .durite-page #intro-title {
    font-size: clamp(2.85rem, 2.85vw, 3.4rem);
    line-height: 1.08;
  }

  .durite-page #texture-title {
    font-size: clamp(2.35rem, 2.2vw, 2.65rem);
    line-height: 1.12;
  }

  .durite-page #light-title {
    font-size: clamp(2.55rem, 2.45vw, 2.95rem);
    line-height: 1.1;
  }

  .durite-page #application-title,
  .durite-page #specs-title {
    font-size: clamp(2.4rem, 2.3vw, 2.8rem);
    line-height: 1.1;
  }

  /* POLYTEC：根据各栏实际宽度分别控制。 */
  .polytec-page #poly-title {
    max-width: 9.5em;
    font-size: clamp(3.25rem, 3.25vw, 3.85rem);
    line-height: 1.06;
  }

  .polytec-page #intro-title,
  .polytec-page #process-title {
    font-size: clamp(3.1rem, 3.15vw, 3.8rem);
    line-height: 1.1;
  }

  .polytec-page #layers-title {
    font-size: clamp(2.85rem, 2.85vw, 3.4rem);
    line-height: 1.1;
  }

  .polytec-page #evidence-title {
    font-size: clamp(2.4rem, 2.35vw, 2.8rem);
    line-height: 1.12;
  }

  /* 空间问题文章的推荐方案标题。 */
  #solution-product-title {
    font-size: clamp(2.45rem, 2.75vw, 3.3rem);
    line-height: 1.12;
  }

  /* 项目案例：扩大文案栏，并把主标题稳定为两行。 */
  .case-hero {
    grid-template-columns: 1.05fr .95fr;
  }

  .case-hero h1 {
    font-size: clamp(3.8rem, 4.4vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -.055em;
  }

  .case-method h2 {
    font-size: clamp(3.25rem, 3.35vw, 4rem);
    line-height: 1.07;
    letter-spacing: -.05em;
  }

  /* 技术中心与咨询页。 */
  .tech-section-head h2 {
    font-size: clamp(3.25rem, 3.55vw, 4.25rem);
    line-height: 1.07;
    letter-spacing: -.05em;
  }

  .contact-layout h2[style] {
    font-size: clamp(3.25rem, 3.35vw, 4rem) !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 760px) {
  /* 移动端优先保证短句完整，最多形成三行。 */
  .readycork-page #cork-title {
    max-width: none;
    font-size: clamp(1.9rem, 8vw, 2.15rem);
    line-height: 1.13;
    letter-spacing: -.04em;
  }

  .mettal-page .mettal-system__head h2 {
    font-size: clamp(2.1rem, 9.2vw, 2.35rem);
    line-height: 1.12;
  }

  .durite-page #series-title,
  .durite-page #intro-title,
  .durite-page #texture-title,
  .durite-page #light-title,
  .durite-page #application-title,
  .durite-page #specs-title {
    font-size: clamp(2.05rem, 9.2vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -.04em;
  }

  .polytec-page #intro-title,
  .polytec-page #applications-title,
  .polytec-page #layers-title,
  .polytec-page #process-title,
  .polytec-page #evidence-title,
  .polytec-page #colors-title {
    font-size: clamp(2rem, 8.8vw, 2.25rem);
    line-height: 1.14;
    letter-spacing: -.04em;
  }

  .polytec-page #intro-title {
    font-size: clamp(2rem, 8.8vw, 2.25rem);
  }

  .content-section .section-head h2 {
    font-size: clamp(1.85rem, 8vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -.04em;
  }
}
