/* ==========================================================================
   en.css — English typography layer for SHENGHONG
   Loaded after design-system.css. Only adjusts what Latin text needs:
   font stack, letter-spacing, line-height, heading serif, nav fitting.
   No layout, colour or component changes — the Chinese design system
   remains the single source of truth.
   ========================================================================== */

:root {
  --en-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --en-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

body,
input,
textarea,
select,
button {
  font-family: var(--en-sans);
}

h1, h2, h3, h4, h5, h6,
.site-brand__name,
.gx-home__about-copy h2,
.gx-home__knowledge-head h2,
.gx-home__section-heading h2,
.gx-home__scenes-heading h2,
.gx-home__contact-content h2 {
  font-family: var(--en-serif);
}

body { letter-spacing: 0; }

h1 { letter-spacing: -0.01em; line-height: 1.12; }
h2 { letter-spacing: -0.005em; line-height: 1.2; }

[class*="eyebrow"] {
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- header: English labels are ~40% wider than Chinese ---------- */
.site-header__main-inner { gap: 18px; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { flex-wrap: nowrap; justify-content: flex-start; }
.site-nav__item { flex: 0 0 auto; }
.site-nav__item > a {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}
.site-nav__submenu-toggle { width: 16px; }
.site-brand__name { letter-spacing: .08em; font-size: 22px; }
.site-brand__tagline { font-size: 9px; letter-spacing: .1em; }
.site-header__phone { font-size: 13px; white-space: nowrap; }
.site-header__cta { padding: 0 13px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }

@media (max-width: 1500px) { .site-header__city { display: none; } }
@media (max-width: 1279px) { .site-header__phone { display: none; } }

/* ---------- copy blocks ---------- */
.gx-home__hero-content h1 { max-width: 20ch; }
.gx-home__hero-lead { max-width: 52ch; line-height: 1.75; }
.gx-home__hero-meta { letter-spacing: .04em; }
.gx-home__section-note { max-width: 34ch; }
.gx-home__section-intro { max-width: 78ch; line-height: 1.8; }

.gx-home__card-body strong { letter-spacing: .01em; }
.gx-home__card-body small { line-height: 1.6; }

.gx-home__about-copy > p {
  font-family: var(--en-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.85;
  max-width: 56ch;
}
.gx-home__about-copy dl { margin-top: 26px; }
.gx-home__about-copy dl div { display: block; margin-bottom: 14px; }
.gx-home__about-copy dt,
.gx-home__about-copy dd {
  display: block;
  font-family: var(--en-sans);
}
.gx-home__about-copy dt { letter-spacing: .1em; margin-bottom: 4px; }
.gx-home__about-copy dd { line-height: 1.65; }

.gx-home__knowledge-head figure { height: auto !important; overflow: visible !important; }
.gx-home__knowledge-head figure img { height: auto; }
.gx-home__knowledge-head > div > p { max-width: 40ch; line-height: 1.75; }

.gx-home__contact-content p { line-height: 1.8; }

/* ---------- generic page components ---------- */
.page-hero__inner h1 { max-width: 22ch; }
.page-hero__lead { max-width: 60ch; line-height: 1.75; }
.section__lead { max-width: 70ch; line-height: 1.8; }

/* ---------- mobile ---------- */
@media (max-width: 1023px) {
  .site-nav__item > a { font-size: 15px; padding: 12px 0; }
  .gx-home__hero-content h1 { max-width: none; }
}

/* ---------- 图片填充修正：避免窄图在固定框内只占顶部一条 ---------- */
.gx-home__card-image,
.about-intro figure,
.about-scene-grid__visual,
.product-card-image { overflow: hidden; }

.gx-home__card-image img,
.gx-home__case-link img,
.about-product-grid a img,
.about-intro figure img,
.about-scene-grid__visual img,
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 产品页右侧说明文字压在亮图上时加一层底 */
.product-hero-note {
  background: rgba(10, 16, 18, .55);
  padding: 16px 18px;
  border-left: 1px solid rgba(214, 178, 106, .5);
}

/* 产品列表为空时的分类入口 */
.product-category-fallback {
  margin-top: 8px;
}
.product-category-fallback h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.product-category-fallback p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 60ch;
}
.product-category-fallback ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-category-fallback a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  font-size: 14px;
}
@media (max-width: 700px) {
  .product-category-fallback ul { grid-template-columns: 1fr; }
}

/* 有产品时自动隐藏分类兜底入口 */
.product-grid:has(li) + .product-category-fallback,
.product-grid:has(li) ~ .product-category-fallback { display: none; }


/* 页脚 TAG 标签：有数据才显示，无数据自动隐藏（功能保留，随时可加） */
.site-footer__tags { display: none; }
.site-footer__tags:has(a) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  opacity: .72;
}
.site-footer__tags-label { letter-spacing: .12em; text-transform: uppercase; font-size: 10px; }
.site-footer__tags a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.site-footer__tags a:hover { border-bottom-color: currentColor; }

/* 产品画廊：原图是白底产品照，改为完整显示不裁切 */
.product-gallery figure { background: #fff; }
.product-gallery img {
  object-fit: contain !important;
  background: #fff;
}
.product-gallery figure:first-child img {
  object-fit: contain !important;
  background: #fff;
}

/* case body (migrated project records) */
.case-body{max-width:860px}
.case-body>p{margin:0 0 16px;line-height:1.75}
.case-figure-grid{margin:26px 0 0;display:block}
.case-figure{margin:0 0 18px;padding:0}
.case-figure img{display:block;width:100%;height:auto;border-radius:6px;background:#f5f5f3}
@media (min-width:900px){
 .case-body .case-figure-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
 .case-figure{margin:0}
}

/* project card rhythm */
.case-list-page .case-grid{column-gap:1.4rem;row-gap:1.4rem}
.case-grid{column-gap:1.4rem;row-gap:1.4rem}
.case-list-page .case-card__image{aspect-ratio:1/1}
.case-card__image{aspect-ratio:1/1}
@media (max-width:768px){.case-grid{column-gap:1rem;row-gap:1rem}}

/* case hero legibility over image-carried text */
.case-detail-page .case-detail-hero__shade{background:
 linear-gradient(90deg,rgba(4,8,8,.97),rgba(4,8,8,.82) 55%,rgba(4,8,8,.55)),
 linear-gradient(0deg,rgba(4,8,8,.88),rgba(4,8,8,.35) 70%)}
.case-detail-page .case-detail-hero h1{text-shadow:0 2px 18px rgba(0,0,0,.55)}
.case-detail-page .case-detail-hero__content>p{text-shadow:0 1px 12px rgba(0,0,0,.5)}

/* product detail: keep columns top-aligned and never let inline images overflow */
.product-detail-page .product-detail-layout{align-items:start}
.product-detail-page .product-summary-copy img,
.product-detail-page .product-content-grid img{max-width:100%;height:auto;display:block}
.product-detail-page .product-gallery img{object-fit:cover}

/* product list: show the full 800x800 product image instead of centre-cropping it */
.product-list-page .product-card-image{aspect-ratio:1/1;height:auto}
.product-list-page .product-card-image img{width:100%;height:100%;object-fit:cover}

/* gallery lead image: fill the frame, no side letterboxing */
.product-detail-page .product-gallery figure:first-child img{height:auto;width:100%;aspect-ratio:1/1;object-fit:cover}

/* category fallback block sits on a dark section */
.product-page .product-category-fallback h3{color:#f7f1e6}
.product-page .product-category-fallback p{color:#d8d8d2}
.product-page .product-category-fallback a{color:#e1bc76;border-bottom-color:rgba(234,222,194,.25)}
.product-page .product-category-fallback a:hover{color:#fff0ca}

/* recommendation summary block at the foot of detail pages */
.rec-summary{margin:2.6rem 0 0;padding:1.9rem 2rem;border:1px solid #e4e0d4;border-left:4px solid #c9a15c;border-radius:4px;background:#fffdf8}
.product-body .rec-summary h2,.case-detail-page .rec-summary h2{margin:0 0 .9rem;padding:0;border:0;color:#203b35;font-size:1.5rem;font-weight:500;line-height:1.4}
.rec-summary p{margin:0 0 .85rem;color:#4e5c56;font-size:.95rem;line-height:1.95}
.rec-summary p:last-child{margin-bottom:0}
.rec-summary strong{color:#203b35;font-weight:600}
.rec-summary .rec-cta{margin-top:1.1rem;padding-top:1rem;border-top:1px solid #ecebe3;color:#63706a;font-size:.87rem;line-height:1.85}
/* dark case detail pages */
.case-detail-page .rec-summary{border-color:rgba(234,222,194,.25);border-left-color:#d7ae61;background:#131f1f}
.case-detail-page .rec-summary h2{color:#fffaf1}
.case-detail-page .rec-summary p{color:#deded7}
.case-detail-page .rec-summary strong{color:#f4eddc}
.case-detail-page .rec-summary .rec-cta{border-top-color:rgba(234,222,194,.2);color:#bcbcb2}

/* recommendation summary: sub-headings, lists, Q&A */
.rec-summary h3{margin:1.35rem 0 .55rem;color:#2a4037;font-size:1.02rem;font-weight:600;letter-spacing:.01em}
.rec-summary ul{margin:0 0 .9rem;padding-left:1.15rem;list-style:disc}
.rec-summary li{margin:0 0 .42rem;color:#4e5c56;font-size:.95rem;line-height:1.8}
.rec-summary li::marker{color:#c9a15c}
.rec-summary .rec-q{margin:0 0 .8rem;color:#4e5c56;font-size:.95rem;line-height:1.85}
.case-detail-page .rec-summary h3{color:#f4eddc}
.case-detail-page .rec-summary li,.case-detail-page .rec-summary .rec-q{color:#deded7}
.case-detail-page .rec-summary li::marker{color:#d7ae61}

/* rec-summary sub-headings must beat the dark-theme h3 rule on light product pages */
.product-detail-page .product-body .rec-summary h3,
.product-body .rec-summary h3{color:#2a4037}
.product-detail-page .product-body .rec-summary .rec-cta a,
.product-body .rec-summary .rec-cta a{color:#8e6836;text-decoration:underline;text-underline-offset:2px}

/* home faq band */
.gx-home__faq{padding:3.6rem 0 4.2rem;background:#f7f4ec}
.gx-home__faq .rec-summary{margin:0 auto;max-width:860px}

.page-content-extra{padding:0 0 3.4rem}
.page-content-extra .rec-summary{max-width:900px;margin:0 auto}


/* category full-range index (crawlable internal link block) */
.category-index-all{max-width:1200px;margin:8px auto 40px;padding:28px 32px;background:#fff;border:1px solid #e6e2d8;border-radius:6px}
.category-index-all .product-eyebrow{margin:0 0 6px;font-size:12px;letter-spacing:.14em;color:#8a7a55}
.category-index-all h2{margin:0 0 16px;font-size:22px;line-height:1.35;color:#163d34}
.category-index-all ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px 24px}
.category-index-all li{font-size:14px;line-height:1.6}
.category-index-all a{color:#1f4f42;text-decoration:none;border-bottom:1px solid transparent}
.category-index-all a:hover{color:#0c332b;border-bottom-color:#cfa460}
@media(max-width:640px){.category-index-all{padding:20px 18px}.category-index-all ul{grid-template-columns:1fr}}
