/*
Theme Name: JeffArtGlass – Visual Refinement
Template: jeffartglass
Description: 欧美视觉精修层：间距尺度收敛、可读性行宽、字号层级、颜色合并。不修改父主题任何文件，切回父主题即完全还原。
Version: 1.0.0
Requires PHP: 8.2
Text Domain: jeffartglass
*/

/* =====================================================================
   JEFF Visual Refinement — 2026-11-16
   依据：_scan/out/report.json（Playwright 8 页面 × 3 视口实测）
   原则：8px 间距尺度；不改 DOM / 栅格列数 / 图片比例；不用 !important
   ===================================================================== */

/* ---------------------------------------------------------------
   1. 设计令牌：颜色收敛 + 间距尺度
   --------------------------------------------------------------- */
:root {
    /* 合并后色板：4 种金 → 1；8 种近白浅灰面 → 1；杂蓝归入既存变量 */
    --gold: #d7ad63;      /* 品牌金（唯一） */
    --navy: #041d30;      /* 品牌海军蓝 */
    --ink: #0a182c;       /* 近黑正文色 */
    --muted: #53606b;     /* 次级文字 */
    --line: #dce2e7;      /* 分隔线 */
    --surface: #f3f6f8;   /* 统一浅灰面 */
    --paper: #fff;

    /* 间距尺度（8px 基准）：仅作语义参考，覆盖处直接用档位值 */
    /* 8 / 16 / 24 / 32 / 40 / 48 / 64 / 80 / 96 */

    /* 正文改用现代系统无衬线栈（未新增任何 Web 字体） */
    --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-body);
}

/* 修复父主题中因行首 \n 转义而整条失效的中文站字体规则（等效还原设计意图） */
html[lang^="zh"] body {
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
    font-family: Georgia, "Songti SC", SimSun, serif
}

/* 颜色合并：近似色 → 唯一令牌 */
.preview-banner { color: var(--muted); background: var(--surface) }
.inner-page .info-grid article { background: var(--surface) }
.inner-page .content-note { background: var(--surface) }
.inner-page .inner-steps { background: var(--surface) }
.inner-page details[open] summary { background: var(--surface) }
.inner-page .article-layout > aside { background: var(--surface) }
.page-products .glass-product { background: var(--surface) }
.page-news-detail .related-news { background: var(--surface) }
.page-quality .inner-section:last-of-type .gallery .inner-image { background: var(--surface) }
/* About 页：移除脚注后收紧「公司简介」区块底部空白
   （facts 条自带 24px 下边距 + 区块 36px 内边距 ≈ 60px，压到 36px） */
.page-about .icon-strip.about-facts { margin: 12px 0 0 }
@media (max-width: 1023.98px) {
    .inner-page .icon-strip article { background: var(--surface) }
}

/* 金色装饰线统一 */
.inner-page .inner-section > .eyebrow:after { background: var(--gold) }
.inner-page .inner-section:has(>.eyebrow:empty) > h2:after { background: var(--gold) }
.page-news-detail .related-news > h3:after { background: var(--gold) }
.page-quality .quality-overview-layout h2:after { background: var(--gold) }

/* 新闻详情独用深蓝 #081145 → 品牌墨色 / 海军蓝；分页 #084363 → 海军蓝 */
.page-news-detail .article-heading h2,
.page-news-detail .article-section h3,
.page-news-detail .article-conclusion h3,
.page-news-detail .related-news > h3,
.page-news-detail .related-title,
.page-news-detail .article-neighbors button { color: var(--ink) }
.page-news-detail .article-section h3 { border-left-color: var(--navy) }
.inner-page .pagination [aria-current] { background: var(--navy) }
.page-products .glass-range .eyebrow,
.page-products .glass-craftsmanship .eyebrow { color: var(--ink) }

/* ---------------------------------------------------------------
   2. 首页区块节奏（紧凑化：相邻区块 ~160px → 80px）
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
    .section-block { padding-block: 40px }
    .manifesto { padding-block: 40px }
    .manifesto > p { font-size: 16px }
    .process { padding-block: 40px }
    .global-delivery { padding-block: 40px }
    .metrics { padding: 28px 0 32px }
    .consultation-inner { padding-block: 40px }
    .inner-page .consultation-inner { padding-block: 36px }
    .footer-grid { padding-block: 48px }
    .footer-bottom { padding-block: 24px 32px }
    .section-heading { margin-bottom: 24px }
}
@media (max-width: 1023.98px) {
    .section-block { padding-block: 32px }
    .manifesto { padding-block: 32px }
    .process { padding-block: 32px }
    .global-delivery { padding-block: 32px }
    .footer-grid { padding-block: 40px }
    .consultation-inner { padding-block: 32px }
    .inner-page .consultation-inner { padding-block: 32px }
}
@media (max-width: 767.98px) {
    .section-block { padding-block: 28px }
    .manifesto { padding-block: 28px }
    .process { padding-block: 28px }
    .global-delivery { padding-block: 28px }
    .metrics { padding: 24px 0 28px }
    .consultation-inner { padding-block: 28px }
    .inner-page .consultation-inner { padding-block: 28px }
    .footer-grid { padding-block: 32px }
}

/* 首页网格 gap 收敛：16 → 20（与项目/产品网格一致） */
.product-grid { gap: 20px }
.product-card h3 { margin: 16px 0 8px }

/* ---------------------------------------------------------------
   3. 内页区块节奏（紧凑化：相邻区块 120px → 72px）
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
    .inner-page .inner-section { padding: 36px 0 }
    .page-products .glass-craftsmanship { padding: 48px 0 }
    .page-products .glass-range-heading { margin: 20px 0 32px }
    .page-quality .quality-overview-layout { padding: 28px 0 36px }
    .page-quality .quality-credentials { margin-top: 24px }
    .inner-page .article-layout { padding: 20px 0 36px }
    .inner-page .pagination { margin: 24px 0 32px }
}
@media (max-width: 1023.98px) {
    .inner-page .inner-section { padding: 32px 0 }
    .page-products .glass-craftsmanship { padding: 40px 0 }
    .page-quality .quality-overview-layout { padding: 24px 0 28px }
}
@media (max-width: 767.98px) {
    .inner-page .inner-section { padding: 28px 0 }
    .page-products .glass-craftsmanship { padding: 36px 0 }
    .page-products .glass-range-heading { margin: 16px 0 24px }
    .page-quality .quality-overview-layout { padding: 20px 0 24px }
}

/* 面包屑：字号 13→14px，上下留白收紧，与正文区间距收拢到 ~44px */
.inner-page .breadcrumbs { font-size: 14px; padding: 18px 0 14px }
.inner-page .breadcrumbs + .inner-section { padding-top: 28px }
.inner-page .breadcrumbs + .article-layout { padding-top: 16px }

/* ---------------------------------------------------------------
   4. 卡片：统一内 padding 与网格 gap，放宽正文行高
   --------------------------------------------------------------- */
.inner-page .inner-grid { gap: 20px; margin-top: 24px }
.inner-page .inner-card > div { padding: 16px 20px 18px }
.inner-page .inner-card h3 { margin: 0 0 8px }
.inner-page .inner-card p { font-size: 15px; line-height: 1.5 }
.inner-page .info-grid article { padding: 24px }
.inner-page .inner-steps { padding: 32px }
.inner-page .icon-strip { margin: 24px 0 }
.inner-page .icon-strip article { padding: 12px 16px }
.inner-page .gallery { gap: 20px }
.inner-page .inner-metrics { margin-top: 32px }
.inner-page .content-note { padding: 16px 20px; margin-block: 24px }
.inner-page .project-facts { padding: 16px 0 24px }
.page-products .glass-product-grid { gap: 20px }
.page-products .glass-product > div { padding: 18px 20px 22px }
.page-products .glass-product p { line-height: 1.5 }
.project-caption { padding: 18px 20px 22px }

/* ---------------------------------------------------------------
   5. 正文可读性：行高、行宽、节奏
   --------------------------------------------------------------- */
.inner-page main p { margin-bottom: 14px; line-height: 1.55 }
.inner-page table { font-size: 15px }
.inner-page th, .inner-page td { padding: 10px 14px }

/* 文章正文：不锁死行宽（锁死会在宽容器里留下空洞），由两栏网格决定宽度；
   宽行通过 17px/1.7 的字号行高补偿可读性 */
.page-news-detail .article-body { max-width: none }
.page-news-detail .article-body > p,
.page-news-detail .article-section p { line-height: 1.6; margin: 0 0 16px }
.page-news-detail .article-section { margin: 20px 0 }
.page-news-detail .article-section h3 { margin: 0 0 8px }
.page-news-detail .article-heading { padding: 24px 0 16px }
.page-news-detail .article-layout { gap: 40px }
/* 桌面端：两栏铺满容器 —— 正文列吃掉剩余宽度（左边缘与面包屑/大标题对齐），
   侧栏固定 300–380px 贴右边缘，栏距 56px。任何一侧都不留空洞 */
@media (min-width: 1024px) {
    .page-news-detail .article-layout {
        max-width: none;
        margin-inline: 0;
        grid-template-columns: minmax(0, 1fr) minmax(280px, min(380px, 30%));
        column-gap: 56px
    }
    .page-news-detail .article-body > p,
    .page-news-detail .article-section p {
        font-size: 17px;
        line-height: 1.7
    }
}
.page-news-detail .related-news { padding: 24px }
.page-news-detail .related-date { font-size: 12px }
.page-news-detail .certificates figcaption { font-size: 12px }

/* 新闻列表行文本 ~110 字符 → 72ch */
.inner-page .news-row { padding: 24px 0; gap: 32px }
.inner-page .news-row > *:not(.inner-image) { max-width: 72ch }

.inner-page .article-layout section { margin-block: 32px }

/* ---------------------------------------------------------------
   6. 字号层级收敛：过小正文性文字抬升（装饰性 uppercase eyebrow 不动）
   --------------------------------------------------------------- */
.project-caption .eyebrow { font-size: 10px }
.footer-grid p, .footer-grid li { font-size: 14px }
.footer-contact small { font-size: 12px }
.footer-bottom { font-size: 13px }
.process-list p { font-size: 13px }
.process-list h3 { font-size: 11px }
.product-card > p { font-size: 15px; line-height: 1.55 }

/* ---------------------------------------------------------------
   7. 表单：触达面积、圆角、可见焦点（键盘可达）
   --------------------------------------------------------------- */
.inner-page input, .inner-page textarea {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 16px /* 明确 16px，防 iOS 聚焦自动放大 */
}
.inner-page input:focus-visible,
.inner-page textarea:focus-visible {
    outline: 2px solid #2084ff;
    outline-offset: 0
}

/* ---------------------------------------------------------------
   8. 顶部品牌区：logo 与字标放大，更大气
   --------------------------------------------------------------- */
.brand { gap: 12px; font-size: 36px }
.brand img { width: 56px; height: 56px }
.site-header .header-inner { min-height: 96px }
@media (max-width: 1023.98px) {
    .brand { font-size: 30px }
    .brand img { width: 46px; height: 46px }
    .site-header .header-inner { min-height: 80px }
}
@media (max-width: 767.98px) {
    .brand { font-size: 28px }
    .brand img { width: 42px; height: 42px }
    .site-header .header-inner { min-height: 72px }
}

/* ---------------------------------------------------------------
   9. 内页 banner 标题：完全对齐首页 hero 标题
   （Georgia 400 / letter-spacing -1.8px / clamp(38,3.5vw,52) / 1.12；
     断点亦与首页一致：≤1023 为 42px，≤767 为 36px、-1px。
     提权用 html 前缀，避免与父主题后加载的样式表互相打补丁；
     注：.inner-page / .page-* 挂在 <body> 上，故只能用 html 单层前缀）
   --------------------------------------------------------------- */
html .inner-page .inner-hero h1,
html .page-product-detail .inner-hero h1,
html .jeff-banner-product-alias main .inner-hero h1,
html .page-products .glass-hero h1 {
    font-weight: 400;
    letter-spacing: -1.8px;
    line-height: 1.12;
    font-size: clamp(38px, 3.5vw, 52px);
    text-wrap: initial
}
@media (max-width: 1023.98px) {
    html .inner-page .inner-hero h1,
    html .page-product-detail .inner-hero h1,
    html .jeff-banner-product-alias main .inner-hero h1,
    html .page-products .glass-hero h1 { font-size: 42px }
    .inner-page .inner-hero p:last-child { font-size: 18px; max-width: 520px; margin-top: 16px }
}
@media (max-width: 767.98px) {
    html .inner-page .inner-hero h1,
    html .page-product-detail .inner-hero h1,
    html .jeff-banner-product-alias main .inner-hero h1,
    html .page-products .glass-hero h1 { font-size: 36px; letter-spacing: -1px }
}

/* ---------------------------------------------------------------
   10. 产品详情页
   --------------------------------------------------------------- */
/* Product Introduction 主图：取消 4:3 固定框与浅灰底，
   按图片自身比例铺满左栏并顶部对齐（原竖图被压在横框里，左右露灰边） */
.page-product-detail .inner-section:first-of-type .inner-split > .inner-image,
.page-product-detail #product-introduction .inner-split > .inner-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    align-self: start
}
/* 参考信息（Reference information）提示块不再展示 */
.product-reference-info { display: none }
/* 来源注记随提示块一起收紧 */
.page-product-detail .product-source-note { margin-top: 12px; font-size: 13px }

/* ---------------------------------------------------------------
   11. 产品页 banner：渐变遮罩统一覆盖到分类条，整块 banner 一体化
   （hero 内的局部遮罩停用，改由 .glass-banner 整体一层遮罩）
   --------------------------------------------------------------- */
.jeff-inner-banners main .glass-banner { position: relative; isolation: isolate }
.jeff-inner-banners main .glass-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgba(7,27,41,.8) 20%, rgba(7,27,41,.6) 30%, rgba(7,27,41,.1) 60%, rgba(7,27,41,0) 100%)
}
.jeff-inner-banners main .glass-hero > .jeff-banner-overlay { display: none }
/* hero 自带的 ::after 强渐变停用，避免与整块遮罩叠加过暗 */
.jeff-inner-banners main .glass-banner > .glass-hero[data-jeff-banner]::after { content: none }
.jeff-inner-banners main .glass-hero,
.jeff-inner-banners main .glass-categories { position: relative; z-index: 1 }

/* ---------------------------------------------------------------
   12. 页脚：真实链接（Privacy / Terms / Sitemap）样式
   --------------------------------------------------------------- */
.footer-grid li > a { display: inline-block; min-height: 27px; line-height: 1.4; padding: 0 }
.footer-grid li > a:hover { text-decoration: underline }
.footer-grid li > a:focus-visible { outline: 2px solid #2084ff; outline-offset: 3px }
.footer-bottom li > a { display: inline-block; padding: 2px 0 }
.footer-bottom li > a:hover { text-decoration: underline }

/* ---------------------------------------------------------------
   13. 产品详情页 banner：与产品分类页完全一致
   —— 同一张背景图（banner-full-hd.png）、同样的「仅大标题」结构，
      高度/内边距/字号取分类页实测计算样式，逐项对齐
   --------------------------------------------------------------- */
.page-product-detail .inner-hero {
    display: block;
    padding: 36px 0;
    min-height: 0;
    background-color: #041d30;
    background-image: var(--banner);
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat
}
.page-product-detail .inner-hero h1 {
    max-width: 540px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: #fff
}
@media (min-width: 768px) {
    .page-product-detail .inner-hero {
        display: flex;
        align-items: center;
        padding: 50px 0;
        min-height: clamp(220px, 22vw, 320px);
        height: auto;
        max-height: none;
        background-position: center
    }
    .page-product-detail .inner-hero h1 {
        max-width: 40%;
        font-size: clamp(32px, 4vw, 56px);
        letter-spacing: -1.2px
    }
}

/* ---------------------------------------------------------------
   5. 玻璃产品详情页：板块间留白收紧（仅 single-jeff_product，不影响其它页面）
   相邻板块净空 72px → 44px；面包屑区与首板块衔接更紧凑
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
    .single-jeff_product .inner-section { padding: 15px 0 }
    .single-jeff_product .breadcrumbs { padding: 14px 0 10px }
    .single-jeff_product .breadcrumbs + .inner-section { padding-top: 18px }
    .single-jeff_product .icon-strip { margin-block: 0px }
    .single-jeff_product .inner-grid { margin-top: 18px }
}
@media (max-width: 1023.98px) {
    .single-jeff_product .inner-section { padding: 15px 0 }
}
@media (max-width: 767.98px) {
    .single-jeff_product .inner-section { padding: 15px 0 }
}

/* ---------------------------------------------------------------
   6. 顶部导航：语言下拉框（EN / FR / DE）
   底色由浅蓝灰改为纯白，面板与选项同色；宽度 100px → 78px，内边距同步收紧。
   仅作用于桌面端，移动端菜单仍是深蓝底（保持原有对比度与可读性）。
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
    .nav-list .language-menu {
        width: 78px;
        min-width: 0;
        padding: 6px;
        background: #fff
    }
    .nav-list .language-menu .language-option {
        background: #fff;
        min-height: 40px;
        padding: 9px 10px
    }
    /* 悬停才给浅色反馈，静止状态保持纯白 */
    .nav-list .language-menu .language-option:hover,
    .nav-list .language-menu .language-option:focus-visible {
        background: #eef3f7
    }
}

/* ---------------------------------------------------------------
   7. 页脚上方 Discuss Your Project（CTA 区块）底色
   90deg 单层柔和渐变：左端较亮的蓝 → 多档均匀过渡（中段保持蓝调、不发黑）
   → 46% 起渐隐 → 右端完全透明让右侧背景照片透出。
   底部不再叠垂直压暗层，避免 CTA 底边比页脚更黑、交界处出现亮边。
   两层背景（渐变 + 照片），size/position 显式声明以防父主题两值规则错位。
   各页面沿用各自的底色与配图：通用页 #0b2b40、产品详情页 #063451、首页 #041d30。
   --------------------------------------------------------------- */
.consultation {
    background-color: #041d30;
    margin-bottom: -1px;
    background-image:
        linear-gradient(90deg,
            #16466b 0%, #133f61 15%, #103a59 28%, #0d344f 42%, #0b2f46 46%,
            rgba(9, 41, 60, .86) 55%, rgba(8, 37, 55, .66) 63%,
            rgba(6, 32, 49, .46) 71%, rgba(5, 28, 43, .28) 79%,
            rgba(4, 25, 38, .14) 86%, rgba(4, 23, 35, .06) 93%,
            rgba(4, 22, 33, 0) 100%),
        url('../jeffartglass/assets/images/home/consultation-home.webp');
    background-size: 100% 100%, 60% 100%;
    background-position: 50% 50%, 100% 50%;
    background-repeat: no-repeat
}

.inner-page .consultation {
    background-color: #0b2b40;
    background-image:
        linear-gradient(90deg,
            #17486e 0%, #144063 15%, #113a59 28%, #0e3552 42%, #0b3048 46%,
            rgba(10, 44, 64, .86) 55%, rgba(9, 41, 60, .66) 63%,
            rgba(8, 38, 56, .46) 71%, rgba(7, 35, 52, .28) 79%,
            rgba(6, 33, 48, .14) 86%, rgba(5, 32, 46, .06) 93%,
            rgba(5, 31, 44, 0) 100%),
        url('../jeffartglass/assets/images/home/consultation-home.webp');
    background-size: 100% 100%, 60% 100%;
    background-position: 50% 50%, 100% 50%;
    background-repeat: no-repeat
}

.page-product-detail .consultation {
    background-image:
        linear-gradient(90deg,
            #0f4a72 0%, #0c436a 15%, #0a3d62 28%, #08375a 42%, #073653 46%,
            rgba(6, 50, 77, .86) 55%, rgba(6, 47, 73, .66) 63%,
            rgba(5, 44, 68, .46) 71%, rgba(5, 41, 63, .28) 79%,
            rgba(4, 38, 59, .14) 86%, rgba(4, 37, 56, .06) 93%,
            rgba(4, 36, 54, 0) 100%),
        var(--cta);
    background-size: 100% 100%, 60% 100%;
    background-position: 50% 50%, 100% 50%;
    background-repeat: no-repeat
}

/* 平板与手机：照片层全宽 cover（对应 inner.css / product-detail.css 的小屏规则） */
@media (max-width: 1023.98px) {
    .inner-page .consultation,
    .page-product-detail .consultation {
        background-size: 100% 100%, cover
    }
}
