/* ============================================================
   惠州创壹AI企业主题 - 主样式
   ============================================================ */

/* ============================================================
   设计变量兜底（v1.9.1 补）
   ------------------------------------------------------------
   这 8 个变量被全站引用 133 处（border 48 / text-muted 31 /
   text 23 / shadow 12 / radius 8 / bg-soft 7 / text-faint 3 /
   text-soft 1，v1.9.1 实测值），真源是 style.css 的 :root。style.css 一旦因为
   某种原因没被加载（缓存插件合并样式、主题头信息被改写、CDN
   只回源了 assets/ 目录），浏览器对无值的 var() 会整条丢弃声明
   而且不报错 —— 表现是「卡片全没边框、圆角变直角、说明文字变
   纯黑」，页面上看不出错。
   所以在这份「一定会被加载」的主样式里再声明一遍同值兜底。
   ⚠️ 主题从未缺过这 8 个变量的定义（真源一直在 style.css 的 :root），
      这份副本是防御性冗余，不是补漏；不要依据它判断「线上曾经丢过变量」。
   ⚠️ 取值必须与 style.css 的 :root 逐字一致，改一处要改两处；
      tests/colors-test.php 里有一条断言在盯两边值是否漂移。
   ------------------------------------------------------------
   配色变量 --cy-primary / --cy-primary-dark / --cy-accent /
   --cy-shadow-lg 故意不在这里定义：它们由 inc/enqueue.php 的
   cy_output_color_css() 按后台配色方案内联输出，main.css 排在
   内联样式之后，写死会覆盖用户选择的配色。
   同理，派生色 --cy-tint / --cy-tint-2 / --cy-line / --cy-deep /
   --cy-glow / --cy-accent-tint / --cy-accent-deep / --cy-on-dark(-strong)
   也由该函数按主色推算输出（v2.2.24），这里同样不许定义。
   而 --cy-border-strong / --cy-border-input 与配色方案无关（静态中性灰），
   只在本文件定义，属于本文件独有的变量，不进 style.css。
   ============================================================ */
:root{
    --cy-text:#0f172a;
    --cy-text-muted:#64748b;
    --cy-text-soft:#94a3b8;
    /* ⚠️ --cy-text-faint 已废弃（v2.2.24）：与 --cy-text-muted 同为 #64748b，
       两个名字一个值是纯噪声。本行仅作与 style.css :root 同值的防御性兜底
       （colors-test 的兜底完整性断言在盯），全站已不再引用它，新代码用 --cy-text-muted。 */
    --cy-text-faint:#64748b;
    --cy-border:#e2e8f0;
    /* 组件边界（v2.2.24）：#e2e8f0 对白底只有 1.23:1，卡片描边与背景融成一片。
       结构性分隔（分隔线、卡片内部线条）继续用 --cy-border；
       组件外轮廓用 #cbd5e1；表单输入框用 #6b7280（4.83:1，远超 WCAG 非文本 3:1）。 */
    --cy-border-strong:#cbd5e1;
    --cy-border-input:#6b7280;
    --cy-bg-soft:#f8fafc;
    --cy-radius:14px;
    --cy-shadow:0 1px 3px rgba(15, 23, 42, .06);
}

/* ---------- 基础 ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.75;color:var(--cy-text);background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--cy-primary);text-decoration:none;transition:color .2s}
a:hover{color:var(--cy-primary-dark)}
h1,h2,h3,h4,h5,h6{margin:0 0 .6em;line-height:1.3;font-weight:800;color:var(--cy-text)}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.4em}
button{font-family:inherit}
.cy-container{width:100%;max-width:1180px;margin:0 auto;padding:0 20px}
.cy-skip{position:absolute;left:-9999px;top:0;padding:10px 16px;background:var(--cy-primary);color:#fff;z-index:9999}
.cy-skip:focus{left:8px;top:8px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* 键盘焦点：全站统一可见。
   浏览器默认 outline 被各种组件样式吃掉后，键盘用户会完全找不到自己在哪。
   :focus-visible 只对键盘/辅助技术生效，鼠标点击不会出现难看的框。 */
:focus-visible{outline:2px solid var(--cy-primary);outline-offset:2px}
.cy-btn:focus-visible,.cy-cfg-card:focus-visible{outline:2px solid var(--cy-primary);outline-offset:3px}

/* 动效降级：前庭功能敏感的用户在系统里开了「减少动态效果」，
   全站的 40 多处 transition 与轮播需要一起停掉，否则会引发眩晕。 */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---------- 按钮 ---------- */
.cy-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 30px;border-radius:10px;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;border:1.5px solid transparent;transition:all .22s;text-decoration:none}
.cy-btn-sm{padding:9px 20px;font-size:14px;border-radius:8px}
.cy-btn-block{width:100%}
.cy-btn-primary{background:var(--cy-primary);color:#fff;border-color:var(--cy-primary)}
.cy-btn-primary:hover{background:var(--cy-primary-dark);border-color:var(--cy-primary-dark);color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px var(--cy-glow)}
.cy-btn-ghost{background:transparent;color:var(--cy-primary);border-color:var(--cy-primary)}
.cy-btn-ghost:hover{background:var(--cy-primary);color:#fff}
.cy-btn-light{background:#fff;color:var(--cy-primary)}
.cy-btn-light:hover{background:var(--cy-tint);color:var(--cy-primary-dark)}
.cy-btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.65)}
.cy-btn-outline-light:hover{background:rgba(255,255,255,.14);color:#fff}

/* ---------- 页头 ---------- */
.cy-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--cy-border)}
/* 登录状态下 WordPress 会插一条 32px 的固定管理条（≤782px 为 46px）。
   吸顶头部若仍按 top:0 贴边，会被管理条压住——logo 和导航上半截看不见（v1.7.5 线上实拍）。 */
body.admin-bar .cy-header{top:32px}
@media screen and (max-width:782px){body.admin-bar .cy-header{top:46px}}
.cy-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.cy-header-brand{flex:0 0 auto}
.cy-brand{display:inline-flex;align-items:center;gap:12px;color:var(--cy-text)}
.cy-brand:hover{color:var(--cy-text)}
/* Logo 的高度规则必须挂在 .cy-brand 之下（选择器权重 0,2,0），不能写成裸的
 * .cy-brand-logo（0,1,0）。原因：WooCommerce 的 woocommerce-layout.css 首行有
 *   .woocommerce img,.woocommerce-page img{height:auto;max-width:100%}
 * 权重 0,1,1 —— 只比裸类名高一级，却能压死它。结果是 body 带 woocommerce-page
 * 的页面（产品归档 /product/、商品详情、购物车、结算）上，页头与页脚的 Logo
 * 会退回图片原始尺寸，把导航挤到右边并互相重叠。
 * 2026-10-30 线上实测：/product/ 的 Logo 渲染成 600x400，只有加 !important 才变回 66x44。
 * 用 .cy-brand 前缀而不是 !important：权重解决级联，!important 会让后续覆盖失效。
 */
.cy-brand .cy-brand-logo{height:44px;width:auto}
/* 品牌字标跟随主题主色（v2.9.4）：用纯色而非 primary→accent 渐变裁字 —— 渐变是
   SaaS 营销页语言、与「工业精密」调性相反；且 -webkit-text-fill-color:transparent
   在打印时公司名会消失。页脚 .cy-footer .cy-brand-text 仍用白色。 */
.cy-brand-text{font-size:19px;font-weight:900;letter-spacing:.5px;color:var(--cy-primary)}
.cy-nav{flex:1;min-width:0}
.cy-nav-list{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0;flex-wrap:nowrap;justify-content:flex-end}
.cy-nav-list li{position:relative}
.cy-nav-list a{display:block;padding:10px 13px;font-size:14.5px;font-weight:600;color:#334155;border-radius:8px;white-space:nowrap}
.cy-nav-list a:hover{color:var(--cy-primary);background:#f1f5f9}
.cy-nav-list .current-menu-item>a{color:var(--cy-primary);background:var(--cy-tint)}
.cy-nav-list .sub-menu{position:absolute;top:100%;left:0;min-width:200px;background:#fff;border:1px solid var(--cy-border);border-radius:10px;box-shadow:var(--cy-shadow-lg);list-style:none;margin:0;padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);transition:all .2s}
.cy-nav-list li:hover>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.cy-header-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.cy-nav-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;padding:11px;background:none;border:1px solid var(--cy-border);border-radius:8px;cursor:pointer}
.cy-nav-toggle span{display:block;height:2px;background:var(--cy-text);border-radius:2px}

/* ---------- 首屏 ---------- */
.cy-hero{position:relative;min-height:560px;display:flex;align-items:center;overflow:hidden;background:#0f172a}
.cy-hero-bg{position:absolute;inset:0}
.cy-hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.cy-hero-slide.is-active{opacity:1}
.cy-hero-slide img{width:100%;height:100%;object-fit:cover}
.cy-hero-overlay{position:absolute;inset:0;background:linear-gradient(120deg,#0f172a,rgba(15,23,42,.7));display:block}
.cy-hero-content{position:relative;z-index:2;padding:80px 20px;text-align:center}
.cy-hero-text{display:none;animation:cyFadeUp .7s ease both}
.cy-hero-text.is-active{display:block}
@keyframes cyFadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.cy-hero-title{font-size:46px;font-weight:900;color:#fff;line-height:1.22;margin:0 0 20px;text-shadow:0 2px 20px rgba(0,0,0,.3)}
.cy-hero-sub{font-size:17px;line-height:1.85;color:rgba(255,255,255,.9);max-width:760px;margin:0 auto 30px}
.cy-hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.cy-hero-dots{display:flex;gap:8px;justify-content:center;margin-top:34px}
/* 指示点视觉仍是 4px 细横线，但可点区域用 ::before 扩到约 32×44（触控目标）。
   不引入额外元素，不改视觉。 */
.cy-hero-dot{position:relative;width:32px;height:4px;border:0;border-radius:2px;background:rgba(255,255,255,.35);cursor:pointer;padding:0;transition:all .25s}
.cy-hero-dot::before{content:"";position:absolute;inset:-14px -6px}
.cy-hero-dot.is-active{background:#fff;width:48px}

/* ---------- 区块 ---------- */
.cy-section{padding:68px 0}
.cy-section-alt{background:var(--cy-bg-soft)}
.cy-section-title{font-size:30px;font-weight:900;text-align:center;margin:0 0 12px;position:relative;padding-bottom:14px}
/* 工业感「基准线」（v2.2.24）：所有区块标题下的统一识别元素，
   与卡片顶部的品牌色边同属一套视觉语言。静态绘制，零动效负担。
   左对齐区块（case / news）的起始点覆盖在下方「版式补充」一节。 */
.cy-section-title::after{content:"";position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:44px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--cy-primary),var(--cy-accent))}
.cy-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:32px}
.cy-section-head .cy-section-title{margin:0;text-align:left}
.cy-more{font-size:14.5px;font-weight:700;white-space:nowrap}
.cy-section>.cy-container>p{color:var(--cy-text-muted);text-align:center;max-width:760px;margin:0 auto 30px}

/* ---------- 资质 ---------- */
.cy-section-trust{background:#fff;padding:44px 0;border-bottom:1px solid var(--cy-border)}
.cy-section-trust .cy-section-title{font-size:17px;font-weight:700;color:var(--cy-text-muted);margin-bottom:26px}
.cy-trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:20px;align-items:center}
.cy-trust-item{display:flex;align-items:center;justify-content:center;padding:12px;filter:grayscale(1);opacity:.72;transition:all .25s}
.cy-trust-item:hover{filter:none;opacity:1}
.cy-trust-item img{max-height:52px;width:auto;object-fit:contain}

/* ---------- 产品矩阵 ---------- */
/* v1.9.1：主营业务固定 5 张卡片，grid 固定列数必然出现末行残缺（4 列时 4+1、3 列时 3+2），
   最后一张孤零零贴在左边。改成 flex 换行 + 居中，末行几张都居中排。
   注意只动 .cy-matrix-grid：案例/资讯/产品网格卡片多，末行残缺不明显，保持 grid。 */
.cy-matrix-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:34px}
/* v1.9.5：基数从 4 改成 5。
   这张卡固定 5 张（后台「主营业务」就是 5 个槽位），flex-basis 按 4 列算会换行成 4+1——
   v1.9.1 的居中只是让那 1 张别贴左边，并没有让它回到同一行。
   gap 18px × 4 个间隙 = 72px，所以减 72 再除 5。 */
.cy-matrix-item{display:block;flex:0 1 calc((100% - 72px) / 5);background:#fff;border:1px solid var(--cy-border);border-radius:var(--cy-radius);padding:26px 22px;text-align:center;transition:all .25s;box-shadow:var(--cy-shadow);color:inherit}
.cy-matrix-item:hover{border-color:var(--cy-line);box-shadow:var(--cy-shadow-lg);transform:translateY(-4px);color:inherit}
.cy-matrix-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 16px;background:var(--cy-tint);border-radius:16px}
.cy-matrix-title{font-size:16.5px;font-weight:800;margin:0 0 8px}
.cy-matrix-desc{font-size:14px;line-height:1.75;color:var(--cy-text-muted);margin:0}

/* ---------- 案例 / 资讯卡片 ---------- */
.cy-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px}
/* v2.2.x：资讯网格改 flex + 居中，让「10 条 / 3 列」这类末行孤卡居中，而不是贴左留 2/3 空白（与 .cy-matrix-grid 同一套路）。 */
.cy-news-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.cy-news-card{flex:0 1 calc((100% - 44px) / 3)}
.cy-case-card,.cy-news-card{background:#fff;border:1px solid var(--cy-border-strong);border-radius:12px;overflow:hidden;transition:all .25s;box-shadow:var(--cy-shadow);display:flex;flex-direction:column}
/* 卡片顶部品牌色亮边（v2.2.24）：工业「基准线」语言，收敛圆角到 12px（去消费 App 感）。
   hover 时四边变 --cy-line，顶边保持主色不变（见 hover 规则里的 border-top-color）。 */
.cy-product-card,.cy-case-card,.cy-news-card{border-top:2px solid var(--cy-primary)}
.cy-case-card:hover,.cy-news-card:hover{box-shadow:var(--cy-shadow-lg);transform:translateY(-4px);border-color:var(--cy-line);border-top-color:var(--cy-primary)}
.cy-case-thumb,.cy-news-thumb{display:block;aspect-ratio:4/3;overflow:hidden;background:#f1f5f9}
.cy-case-thumb img,.cy-news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cy-case-card:hover .cy-case-thumb img,.cy-news-card:hover .cy-news-thumb img{transform:scale(1.05)}
.cy-case-body,.cy-news-body{padding:20px;flex:1;display:flex;flex-direction:column}
.cy-case-client{display:inline-block;font-size:12.5px;font-weight:700;color:var(--cy-primary);background:var(--cy-tint);padding:3px 10px;border-radius:6px;margin-bottom:10px;align-self:flex-start}
.cy-case-title,.cy-news-title{font-size:17px;font-weight:800;margin:0 0 10px;line-height:1.5}
.cy-case-title a,.cy-news-title a{color:var(--cy-text)}
.cy-case-title a:hover,.cy-news-title a:hover{color:var(--cy-primary)}
.cy-case-desc,.cy-news-desc{font-size:14px;line-height:1.75;color:var(--cy-text-muted);margin:0}
.cy-news-meta{font-size:13px;color:var(--cy-text-muted);margin-bottom:8px}
.cy-time{font-size:inherit}
.cy-time-updated{margin-left:6px;padding:1px 7px;border-radius:999px;background:rgba(100,116,139,.12);color:var(--cy-text-muted);font-size:.86em;white-space:nowrap}

/* ---------- CTA ---------- */
.cy-cta{background:linear-gradient(135deg,var(--cy-deep),var(--cy-primary));padding:72px 0;text-align:center}
.cy-cta-title{font-size:32px;font-weight:900;color:#fff;margin:0 0 14px}
.cy-cta-desc{font-size:16px;color:rgba(255,255,255,.88);margin:0 0 30px}
.cy-cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---------- 页脚 ---------- */
.cy-footer{background:#0f172a;color:#94a3b8;padding:0;font-size:14.5px}
/* 页脚顶部留白挂在主体容器上（v1.7.5 线上实拍：写在 .cy-footer 上会顶出一条空档）。
   v2.1.11 起 CTA 条已删除，.cy-container 就是 .cy-footer 的第一个子元素，
   这条规则从此**无条件**生效（原来还要盖掉「有 CTA 条时」的 44px 变体）。 */
.cy-footer>.cy-container{padding-top:56px}
/* 三列：品牌 / 产品 / 公司。v2.1.11 删了第 4 列「联系方式」，
   权重从 1.6fr 1fr 1fr 1.4fr 收到 1.8fr 1fr 1fr —— 品牌列本来就最长，
   少一列后要它多吃一点横向空间，否则右侧两列会被拉得过宽。 */
.cy-footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:40px;padding-bottom:42px}
.cy-footer .cy-brand-text{color:#fff}
.cy-footer-title{font-size:15px;font-weight:800;color:#fff;margin:0 0 16px}
.cy-footer-desc{line-height:1.85;margin:14px 0 0;color:#94a3b8}
.cy-footer-tel{display:flex;flex-direction:column;gap:4px;margin:14px 0 0;font-size:14px}
.cy-footer-tel a{color:var(--cy-accent);font-weight:700}
.cy-footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.cy-footer-menu a{color:#94a3b8}
.cy-footer-menu a:hover{color:#fff}
.cy-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;font-size:13.5px;color:var(--cy-on-dark)}
.cy-footer-bottom p{margin:0}
/* 备案区走 flex，不走 inline 流。
   原因：全局 img{display:block} 会把公安备案那个 16×16 图标变成块级元素，
   图片没加载出来时浏览器还用 alt 文字把它撑到 110px 高，这一段的
   max-content 计算随之退化成一个块宽；flex 见它「能压」就压到 min-content，
   于是出现「ICP 一行、公安备案另起一行」。改成 flex 后每项各自 nowrap，
   空间不足时整体换行，最多两个备案号分两行，绝不会把单个备案号劈成两半。 */
.cy-beian{display:flex;align-items:center;gap:4px 18px;flex-wrap:wrap}
.cy-beian>a,.cy-beian>span{display:inline-flex;align-items:center;white-space:nowrap}
.cy-beian img{display:inline-block;width:16px;height:16px;margin-right:5px;vertical-align:middle;flex:none}
.cy-beian a{color:var(--cy-on-dark)}
.cy-beian a:hover{color:var(--cy-on-dark-strong)}

/* ---------- 回到顶部 ---------- */
.cy-backtop{position:fixed;right:22px;bottom:26px;width:46px;height:46px;border-radius:50%;border:0;background:var(--cy-primary);color:#fff;font-size:20px;cursor:pointer;opacity:0;visibility:hidden;transition:all .25s;box-shadow:0 6px 18px var(--cy-glow);z-index:90}
.cy-backtop.is-visible{opacity:1;visibility:visible}
.cy-backtop:hover{background:var(--cy-primary-dark);transform:translateY(-3px)}

/* ---------- 弹窗 ---------- */
.cy-modal{position:fixed;inset:0;z-index:999;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:all .25s}
.cy-modal.is-open{opacity:1;visibility:visible}
.cy-modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px)}
.cy-modal-box{position:relative;width:100%;max-width:460px;max-height:90vh;overflow-y:auto;background:#fff;border-radius:18px;padding:32px 28px;box-shadow:0 24px 60px rgba(15,23,42,.3);transform:translateY(16px);transition:transform .3s}
.cy-modal.is-open .cy-modal-box{transform:none}
.cy-modal-close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;background:#f1f5f9;border-radius:50%;font-size:20px;line-height:1;color:#64748b;cursor:pointer}
/* 视觉保持 34px，可点区域扩到 44px（触控目标），不引入额外元素 */
.cy-modal-close::before{content:"";position:absolute;inset:-5px}
.cy-modal-close:hover{background:#e2e8f0;color:var(--cy-text)}
.cy-modal-title{font-size:21px;font-weight:900;margin:0 0 6px}
.cy-modal-desc{font-size:13.5px;color:var(--cy-text-muted);margin:0 0 22px}
.cy-field{margin-bottom:16px}
.cy-field label{display:block;font-size:13.5px;font-weight:700;margin-bottom:6px;color:#334155}
.cy-req{color:#ef4444}
.cy-field input,.cy-field textarea{width:100%;padding:11px 14px;border:1.5px solid var(--cy-border-input);border-radius:9px;font-size:14.5px;font-family:inherit;transition:border-color .2s}
.cy-field input:focus,.cy-field textarea:focus{outline:none;border-color:var(--cy-primary);box-shadow:0 0 0 3px var(--cy-glow)}
.cy-lead-tip{font-size:12.5px;color:var(--cy-text-muted);text-align:center;margin:12px 0 0}
.cy-lead-msg{margin-top:12px;font-size:14px;text-align:center;min-height:20px}
.cy-lead-msg.is-ok{color:#047857}
.cy-lead-msg.is-err{color:#dc2626}

/* ---------- 页面头部 ---------- */
.cy-page-head{background:var(--cy-bg-soft);border-bottom:1px solid var(--cy-border);padding:44px 0 40px;text-align:center}
.cy-page-head-slim{padding:28px 0 24px}
.cy-page-title{font-size:34px;font-weight:900;margin:0 0 10px}
.cy-page-desc{font-size:15.5px;color:var(--cy-text-muted);max-width:760px;margin:0 auto;line-height:1.8}
.cy-crumb{margin-bottom:14px}
.cy-crumb ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;justify-content:center;font-size:13.5px;color:#94a3b8}
.cy-crumb li::after{content:"/";margin-left:8px;color:#cbd5e1}
.cy-crumb li:last-child::after{content:""}
.cy-crumb a{color:#64748b}
.cy-crumb a:hover{color:var(--cy-primary)}
/* v2.2.29：窄正文页（page.php 的 .cy-article，max-width:860px 居中列）的页头标题，
   与正文同一左边界对齐。原先标题在 1140px 宽的容器里水平居中，正文却是 860px 居中列
   （左缘 290px），标题左缘 150 / 正文左缘 290 差 140px，标题看起来「飘」在正文左边。
   把标题（连同面包屑）约束到与 .cy-article 相同的 860px 列并左对齐，
   标题文字左缘 = 正文左缘 = 290。对齐到 290 而非 150 的理由：860px 是全站为可读性定的
   正文栏宽，标题属于这条栏、应共享它的左缘；把正文拉宽到 1140 会毁掉可读性。
   实测（1440 视口）：标题文字左缘 652（块左缘 150）→ 改后标题文字左缘 = 正文左缘 = 290。 */
.cy-page-head--article .cy-crumb{max-width:860px;margin-left:auto;margin-right:auto}
.cy-page-head--article .cy-crumb ol{justify-content:flex-start}
.cy-page-head--article .cy-page-title{max-width:860px;margin-left:auto;margin-right:auto;text-align:left}

/* ---------- 列表布局 ---------- */
.cy-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;padding:48px 20px 72px}
.cy-content-layout:not(:has(.cy-content-side)){grid-template-columns:minmax(0,1fr);max-width:880px}
.cy-content-main{min-width:0}
.cy-content-side{min-width:0}

/* ---------- 文章列表 ---------- */
.cy-post-list{display:flex;flex-direction:column;gap:26px}
.cy-post-item{display:grid;grid-template-columns:280px 1fr;gap:24px;padding-bottom:26px;border-bottom:1px solid var(--cy-border)}
.cy-post-item:last-child{border-bottom:0;padding-bottom:0}
.cy-post-thumb{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#f1f5f9}
.cy-post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cy-post-thumb:hover img{transform:scale(1.05)}
.cy-post-meta{font-size:13px;color:var(--cy-text-muted);margin-bottom:8px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cy-post-meta-center{justify-content:center}
/* v2.2.29：span.cy-dot 是列表元信息（日期 / 分类 / 阅读数）之间的纯装饰分隔符。
   判断依据：① 它只是「·」一个标点，自身不携带任何信息；② 外层 .cy-post-meta /
   .cy-news-meta 是 flex 且已有 gap:10px，去掉这个点相邻两项照样清晰分隔；
   ③ 屏幕阅读器会把它念成「middle dot」，纯属噪声（模板里已补 aria-hidden="true"）。
   → 纯装饰内容 WCAG 1.4.3 不强制对比度，按「降低视觉存在感」处理，不是拉黑。
   ⚠️ 不许再用 #cbd5e1 做「文字/字形」：白底仅 1.48:1，这是它第二次被审计点名
   （首次是 --cy-border-strong 场景）。结构性线条可用 --cy-border-strong(#cbd5e1)，
   但任何字形一律用 --cy-border(#e2e8f0) 或更浅，保持装饰性、不抢正文。 */
.cy-dot{color:var(--cy-border)}
.cy-post-title{font-size:20px;font-weight:800;margin:0 0 10px;line-height:1.45}
.cy-post-title a{color:var(--cy-text)}
.cy-post-title a:hover{color:var(--cy-primary)}
.cy-post-excerpt{font-size:14.5px;line-height:1.8;color:var(--cy-text-muted);margin:0 0 12px}
.cy-post-more{font-size:14px;font-weight:700}

/* ---------- 分页 ---------- */
.cy-pager{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:40px}
.cy-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--cy-border);border-radius:9px;font-size:14px;font-weight:600;color:#475569;background:#fff}
.cy-pager .page-numbers:hover{border-color:var(--cy-primary);color:var(--cy-primary)}
.cy-pager .page-numbers.current{background:var(--cy-primary);border-color:var(--cy-primary);color:#fff}

/* ---------- 正文排版 ---------- */
.cy-article{max-width:860px;margin:0 auto}
.cy-page-body{padding:48px 20px 72px}
.cy-article-cover{border-radius:16px;overflow:hidden;margin:0 0 32px}
.cy-prose{font-size:16.5px;line-height:1.95;color:#334155}
.cy-prose h2{font-size:25px;font-weight:900;margin:2em 0 .8em;padding-left:14px;border-left:4px solid var(--cy-primary)}
/* 居中标题不挂左侧色条（v2.2.30）
   那条 4px 竖条的作用是「把标题左缘对齐到正文左缘」的视觉锚点。标题一旦居中，
   条还钉在块级盒子最左边，就变成一条孤零零挂在文字左缘几十～几百 px 外的断线。
   实测：购物车页两个居中标题「您的购物车目前是空的！」「商店新品」
   （Woo 区块模板输出，自带 has-text-align-center）左缘各有一条蓝条。
   判据取两种居中写法：区块编辑器的 .has-text-align-center，以及
   经典编辑器/短代码写在 style 里的 text-align:center（两种空格写法都覆盖）。 */
.cy-prose h2.has-text-align-center,.cy-prose h2[style*="text-align:center"],.cy-prose h2[style*="text-align: center"]{padding-left:0;border-left:0}
.cy-prose h3{font-size:19.5px;font-weight:800;margin:1.7em 0 .7em}
.cy-prose h4{font-size:17px;font-weight:800;margin:1.5em 0 .6em}
.cy-prose p{margin:0 0 1.2em}
.cy-prose ul,.cy-prose ol{margin:0 0 1.3em;padding-left:1.5em}
.cy-prose li{margin-bottom:.5em}
.cy-prose img{border-radius:12px;margin:1.6em auto}
.cy-prose a{text-decoration:underline;text-underline-offset:3px}
.cy-prose blockquote{margin:1.6em 0;padding:16px 22px;background:#f8fafc;border-left:4px solid var(--cy-accent);border-radius:0 10px 10px 0;color:#475569}
.cy-prose blockquote p:last-child{margin:0}
.cy-prose table{width:100%;border-collapse:collapse;margin:1.6em 0;font-size:15px}
.cy-prose th,.cy-prose td{border:1px solid var(--cy-border);padding:11px 14px;text-align:left}
/* 参数规格表（v2.2.24）：深底表头 + 斑马纹 + 等宽数字。
   导轨参数表动辄 20+ 行，浅灰表头会融进正文网格，看不出表头在哪；
   tabular-nums 让一列数字上下对齐，方便逐行比对精度/载荷参数。 */
.cy-prose thead th{background:#0f172a;color:#fff;font-size:13.5px;font-weight:800;letter-spacing:.5px;border-color:#0f172a;white-space:nowrap}
.cy-prose tbody th{background:var(--cy-bg-soft);font-weight:800}
.cy-prose tbody tr:nth-child(even){background:var(--cy-bg-soft)}
.cy-prose tbody tr:hover{background:var(--cy-tint)}
.cy-prose td{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.cy-prose td:first-child{font-weight:700;color:var(--cy-text)}
.cy-prose-narrow{max-width:820px;margin:0 auto}
.cy-article-cta{margin:40px 0;padding:28px;background:linear-gradient(135deg,var(--cy-tint),var(--cy-tint-2));border-radius:14px;text-align:center}
.cy-article-cta p{font-size:16px;font-weight:700;margin:0 0 16px;color:var(--cy-primary-dark)}
.cy-adjacent{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:40px 0}
.cy-adjacent-item{padding:16px 18px;border:1px solid var(--cy-border);border-radius:12px;transition:all .2s}
.cy-adjacent-item:hover{border-color:var(--cy-primary);background:#f8fafc}
.cy-adjacent-next{text-align:right}
.cy-adjacent-label{display:block;font-size:12.5px;color:var(--cy-text-muted);margin-bottom:4px}
.cy-adjacent-title{font-size:14.5px;font-weight:700;color:var(--cy-text);line-height:1.6}

/* ---------- 空状态 ---------- */
.cy-empty{text-align:center;padding:70px 20px}
.cy-empty h2{font-size:22px;margin:0 0 10px}
.cy-empty p{color:var(--cy-text-muted)}
.cy-empty-search{max-width:360px;margin:22px auto 0}
/* v1.9.2：页码越界时的出口按钮。.cy-empty 原本只配过搜索表单一种附加内容，
   按钮得自己撑开上间距，否则会紧贴上面的说明文字。 */
.cy-empty-actions{margin:24px 0 0}

/* ---------- 搜索表单 ---------- */
.cy-search-form{display:flex;gap:8px}
.cy-search-form input{flex:1;padding:11px 14px;border:1.5px solid var(--cy-border-input);border-radius:9px;font-size:14.5px}
.cy-search-form input:focus{outline:none;border-color:var(--cy-primary)}
.cy-search-form button{padding:11px 22px;background:var(--cy-primary);color:#fff;border:0;border-radius:9px;font-weight:700;cursor:pointer}
.cy-search-form button:hover{background:var(--cy-primary-dark)}

/* ---------- 产品详情 ---------- */
.cy-product-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding:56px 20px 64px}
.cy-product-badge{display:inline-block;font-size:12.5px;font-weight:700;color:var(--cy-primary);background:var(--cy-tint);padding:5px 14px;border-radius:999px;margin-bottom:16px}
.cy-product-title{font-size:38px;font-weight:900;margin:0 0 14px;line-height:1.22}
.cy-product-catchy{font-size:19px;font-weight:700;color:var(--cy-primary);margin:0 0 12px}
.cy-product-short{font-size:16px;line-height:1.85;color:var(--cy-text-muted);margin:0 0 20px}
.cy-product-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:26px}
.cy-product-tags span{font-size:13px;padding:5px 12px;background:#f1f5f9;color:#475569;border-radius:7px}
.cy-product-actions{display:flex;gap:12px;flex-wrap:wrap}
.cy-product-hero-media{border-radius:18px;overflow:hidden;box-shadow:var(--cy-shadow-lg);background:#f1f5f9;aspect-ratio:4/3}
.cy-product-cover{width:100%;height:100%;object-fit:cover}
.cy-product-video{width:100%;height:100%;aspect-ratio:4/3;background:#000}
.cy-product-video-player{width:100%;height:100%;object-fit:contain;display:block}
.cy-product-video-embed{width:100%;height:100%}
.cy-product-video-embed iframe{width:100%;height:100%;border:0;display:block}
.cy-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:30px}
.cy-feature-item{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--cy-border-strong);border-radius:12px;padding:18px 20px}
.cy-feature-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--cy-primary);margin-top:9px}
.cy-feature-item p{margin:0;font-size:15px;line-height:1.75;color:#334155}
.cy-product-injected{padding:0}

/* ---------- 产品列表 ---------- */
.cy-archive-body{padding:44px 20px 76px}
/* v1.9.1：资讯中心导语区。正文是人工维护的分类说明（约 590 字），
   视觉上要弱于列表，不能和卡片抢注意力：限宽 860px 便于长文阅读，
   字号比正文小一档，颜色用次级灰 --cy-text-muted（白底对比度 4.76:1，达 WCAG AA；
   不用 --cy-text-soft，#94a3b8 对白底只有 2.98:1，达不到 AA）。 */
.cy-news-intro{max-width:860px;margin:0 0 30px;color:var(--cy-text-muted);font-size:15px;line-height:1.85}
.cy-news-intro p{margin:0 0 12px}
.cy-news-intro ul{margin:0 0 12px;padding-left:20px}
.cy-news-intro li{margin:6px 0}
.cy-news-intro h2,.cy-news-intro h3{font-size:17px;margin:20px 0 10px;color:var(--cy-text)}
.cy-news-intro a{color:var(--cy-primary);text-decoration:none}
.cy-news-intro a:hover{text-decoration:underline}
.cy-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px;justify-content:center}
.cy-filter-item{padding:9px 20px;border:1px solid var(--cy-border);border-radius:999px;font-size:14px;font-weight:600;color:#475569;background:#fff}
.cy-filter-item:hover{border-color:var(--cy-primary);color:var(--cy-primary)}
.cy-filter-item.is-active{background:var(--cy-primary);border-color:var(--cy-primary);color:#fff}
.cy-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.cy-product-card{background:#fff;border:1px solid var(--cy-border-strong);border-radius:12px;overflow:hidden;transition:all .25s;box-shadow:var(--cy-shadow);display:flex;flex-direction:column}
.cy-product-card:hover{box-shadow:var(--cy-shadow-lg);transform:translateY(-4px);border-color:var(--cy-line);border-top-color:var(--cy-primary)}
.cy-product-card-thumb{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#f1f5f9}
.cy-product-card-img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cy-product-card:hover .cy-product-card-img{transform:scale(1.04)}
.cy-product-card-badge{position:absolute;top:12px;left:12px;background:var(--cy-primary);color:#fff;font-size:12px;font-weight:700;padding:4px 11px;border-radius:6px}
.cy-product-card-video-badge{position:absolute;top:12px;right:12px;background:rgba(15,23,42,.72);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:6px;backdrop-filter:blur(4px)}
.cy-product-card-body{padding:20px;flex:1;display:flex;flex-direction:column}
.cy-product-card-title{font-size:18px;font-weight:800;margin:0 0 9px;line-height:1.45}
.cy-product-card-title a{color:var(--cy-text)}
.cy-product-card-title a:hover{color:var(--cy-primary)}
.cy-product-card-desc{font-size:14px;line-height:1.75;color:var(--cy-text-muted);margin:0 0 12px}
.cy-product-card-feats{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:6px}
.cy-product-card-feats li{font-size:13.5px;color:#475569;padding-left:16px;position:relative;line-height:1.65}
.cy-product-card-feats li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:var(--cy-accent)}
.cy-product-card-more{margin-top:auto;font-size:14px;font-weight:700}

/* ---------- 商品卡片：价格行 + 下单入口（v2.1.7） ----------
   ⚠️ 这一节**故意**写在 main.css，没有写进 woo.css，理由不是「随手放的」：
   woo.css 的入队条件是 cy_woo_is_product_page()（inc/enqueue.php:62），
   那个函数等于 is_product() —— 只在**商品详情页**为真。
   商品列表 /product/ 是归档页，is_product() 为假，woo.css 根本不会加载。
   把卡片样式放进 woo.css 的后果是「写了、不生效、也不报错」：
   卡片照常渲染，只是价格没有字号色阶、两个按钮挤成一行 —— 而且本地看静态文件
   完全正常，只有真机才看得出来。
   （tests/product-card-buy-test.php 的 I 段钉着这条：谁把这几条规则搬进 woo.css，
   那条断言会红。） */
.cy-product-card-price{font-size:19px;font-weight:800;color:var(--cy-primary);line-height:1.35;margin:0 0 12px;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.cy-product-card-price.is-enquiry{font-size:15px;font-weight:700;color:var(--cy-text-muted)}
.cy-product-card-price del{font-size:.72em;font-weight:600;opacity:.55}
.cy-product-card-price ins{text-decoration:none}
.cy-price-from{font-size:.62em;font-weight:700;color:var(--cy-text-muted);margin-left:2px;letter-spacing:.02em}
.cy-product-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
.cy-product-card-actions .cy-btn{flex:1 1 calc(50% - 4px);min-width:0;padding:10px 12px;font-size:13.5px;border-radius:8px}
.cy-product-card-actions .cy-product-card-more{flex:1 1 100%;margin:2px 0 0;text-align:center;font-size:13.5px}
@media (max-width:640px){
    .cy-product-card-actions .cy-btn{flex-basis:100%}
}

/* ---------- WooCommerce 商品列表兜底（v2.1.4） ----------
   为什么要有这一节：2026-10-30 线上事故 —— /product/ 总归档被 WooCommerce 的裸模板
   接管，而主题 CSS 对 ul.products 一条规则都没有（grep 命中 0）。Woo 的 li.product
   是 float:left + width:22.05%，没有栅格、也没有比例约束，缩略图（-300x300）被拉成
   整行宽，屏幕上出现占满宽度的巨图。
   这节是**兜底**，不是主样式：产品列表的主样式仍是上面的 .cy-product-card 那套。
   ⚠️ 只约束尺寸与栅格，不改 Woo 的配色、按钮形态与功能类（折扣角标、加购按钮、
   评分星标等全部原样保留）。 */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;margin:0;padding:0}
.woocommerce ul.products li.product{width:auto;float:none;margin:0;box-sizing:border-box;max-width:100%}
.woocommerce ul.products li.product a img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--cy-radius);margin:0}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px;font-weight:800;line-height:1.45;margin:12px 0 9px;padding:0}
.woocommerce ul.products li.product .price{font-size:15px;font-weight:700;line-height:1.6;max-width:100%;box-sizing:border-box}
.woocommerce ul.products li.product .button{max-width:100%;box-sizing:border-box;white-space:normal;text-align:center}
@media (max-width:1024px){
    .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
    .woocommerce ul.products{grid-template-columns:minmax(0,1fr);gap:18px}
}

/* ---------- 案例详情 ---------- */
.cy-case-result{background:var(--cy-tint);border-radius:14px;padding:24px 28px;margin:0 0 30px}
.cy-case-result h2{font-size:18px;font-weight:900;color:var(--cy-primary-dark);margin:0 0 8px}
.cy-case-result p{margin:0;font-size:15.5px;line-height:1.85;color:#334155}

/* ---------- 联系信息块 ---------- */
.cy-contact-block{margin:44px 0 0;padding-top:36px;border-top:1px solid var(--cy-border)}
.cy-contact-block h2{font-size:24px;font-weight:900;margin:0 0 24px}
.cy-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.cy-contact-item{background:#f8fafc;border:1px solid var(--cy-border-strong);border-radius:12px;padding:20px}
.cy-contact-label{display:block;font-size:12.5px;font-weight:700;color:var(--cy-text-muted);margin-bottom:7px;letter-spacing:.5px}
.cy-contact-value{margin:0;font-size:15.5px;font-weight:700;color:var(--cy-text);line-height:1.7}
.cy-contact-value a{color:var(--cy-text)}
.cy-contact-value a:hover{color:var(--cy-primary)}
.cy-contact-sub{font-size:14px;font-weight:600;color:var(--cy-text-muted)}
.cy-contact-cta{margin-top:26px;text-align:center}

/* ---------- 404 ---------- */
.cy-404{text-align:center;padding:90px 20px 110px}
.cy-404-code{font-size:105px;font-weight:900;line-height:1;margin:0 0 8px;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.cy-404-title{font-size:28px;margin:0 0 12px}
.cy-404-desc{color:var(--cy-text-muted);max-width:520px;margin:0 auto 30px}
.cy-404-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:30px}
.cy-404-search{max-width:360px;margin:0 auto}
.cy-404-suggest{max-width:620px;margin:44px auto 0;text-align:left}
.cy-404-suggest-title{font-size:15px;font-weight:700;color:var(--cy-text-muted);margin:0 0 14px;letter-spacing:.04em}
.cy-404-suggest-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.cy-404-suggest-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 4px;border-bottom:1px solid var(--cy-border)}
.cy-404-suggest-list li:last-child{border-bottom:0}
.cy-404-suggest-list a{color:var(--cy-text);font-size:15px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cy-404-suggest-list a:hover{color:var(--cy-primary)}
.cy-404-suggest-date{flex:none;font-size:13px;color:var(--cy-text-muted)}

/* ---------- 侧边栏 ---------- */
.cy-widget{background:#fff;border:1px solid var(--cy-border-strong);border-radius:14px;padding:22px;margin-bottom:20px}
.cy-widget-title{font-size:16px;font-weight:800;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--cy-border)}
.cy-widget ul{list-style:none;margin:0;padding:0}
.cy-widget li{margin-bottom:10px;font-size:14.5px}

/* ---------- 后台锁定提示 ---------- */
.cy-locked{background:#fff7ed;border:1px solid #fed7aa;border-left:4px solid #f59e0b;border-radius:10px;padding:18px 22px}
.cy-locked p{margin:0 0 6px}
.cy-locked p:last-child{margin:0}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:1080px){
    /* v1.9.1：主营业务改 flex 后按宽度定张数（3 张/行，36 = 18*2） */
    .cy-matrix-item{flex-basis:calc((100% - 36px) / 3)}
    .cy-footer-grid{grid-template-columns:1fr 1fr}
    .cy-content-layout{grid-template-columns:minmax(0,1fr) 280px;gap:30px}
    .cy-product-hero{gap:32px}
}

@media (max-width:900px){
    .cy-hero{min-height:440px}
    .cy-hero-title{font-size:32px}
    .cy-hero-sub{font-size:15.5px}

    /* v1.9.1：主营业务 2 张/行（18 = 单条 gap） */
    .cy-matrix-item{flex-basis:calc((100% - 18px) / 2)}
    .cy-case-grid,.cy-product-grid{grid-template-columns:repeat(2,1fr)}
    .cy-news-card{flex-basis:calc((100% - 22px) / 2)}
    .cy-content-layout{grid-template-columns:minmax(0,1fr)}
    .cy-content-side{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
    .cy-product-hero{grid-template-columns:1fr;padding:36px 20px 48px}
    .cy-product-title{font-size:29px}
    .cy-feature-grid{grid-template-columns:1fr}
    .cy-section{padding:52px 0}
    .cy-section-title{font-size:25px}
}

/* ---------- 主导航折叠断点：1080px（第 9 轮修正） ----------
   原来挂在 900px 上，导致 901–1160px 这一段（iPad 横屏、
   1366 笔记本开侧栏、浏览器不全屏）横向菜单挤进品牌区：
   7 个菜单项需要约 610px，此时可用只有 335–500px，
   flex 末端对齐会把多出来的部分全部甩到左边，压在 Logo 和公司名上。
   实测 901px 截图可见「弘旭恒昇」与「客户案例」重叠。

   注意：这段规则统一放在文件末尾（见「第 9 轮」小节），
   因为 .cy-nav-extra / .cy-header-tel 的基础样式定义在更后面，
   媒体查询不加权，写在中间会被后面的基础规则覆盖掉。
   */


@media (max-width:640px){
    body{font-size:15.5px}
    .cy-container{padding:0 16px}
    .cy-brand .cy-brand-logo{height:36px}
    .cy-brand-text{font-size:16.5px}
    .cy-hero{min-height:400px}
    .cy-hero-title{font-size:26px}
    .cy-hero-content{padding:60px 16px}
    .cy-hero-actions .cy-btn{padding:12px 22px;font-size:14.5px}

    /* v1.9.1：主营业务已改 flex，单列单独写；案例 / 产品仍是 grid，资讯已改 flex */
    .cy-matrix-item{flex-basis:100%}
    .cy-case-grid,.cy-product-grid{grid-template-columns:1fr}
    .cy-news-card{flex-basis:100%}
    .cy-content-side{grid-template-columns:1fr}
    .cy-footer-grid{grid-template-columns:1fr;gap:30px}
    .cy-footer-bottom{flex-direction:column;text-align:center;align-items:center}
    .cy-beian{justify-content:center}

    .cy-post-item{grid-template-columns:1fr;gap:14px}
    .cy-post-thumb{aspect-ratio:16/9}
    .cy-post-title{font-size:18px}

    .cy-page-title{font-size:26px}
    .cy-adjacent{grid-template-columns:1fr}
    .cy-adjacent-next{text-align:left}
    .cy-404-code{font-size:76px}
    .cy-404-title{font-size:22px}
    .cy-cta-title{font-size:21px}
    /* v2.2.24：修复手机端标题层级倒挂 —— 区块标题 25px（≤900px 档）比
       H1（.cy-hero-split-title 24px）还大。恢复 H1(26) > 区块标题(21) > 正文(15.5)。 */
    .cy-section-title{font-size:21px}
    .cy-modal-box{padding:26px 20px}

    .cy-prose{font-size:15.8px}
    .cy-prose h2{font-size:21px}
    .cy-prose h3{font-size:18px}
}

/* ---------- 打印 ---------- */
@media print{
    .cy-header,.cy-footer,.cy-backtop,.cy-modal,.cy-hero,.cy-cta,.cy-adjacent,.cy-article-cta{display:none!important}
    .cy-prose{font-size:12pt;color:#000}
}

/* ============================================================
   版式补充（结构性元素，避免网格子项溢出）
   ============================================================ */
.cy-main{min-height:60vh}
.cy-post-body,.cy-product-hero-text,.cy-case-body,.cy-news-body,.cy-footer-col{min-width:0}
.cy-copyright{white-space:nowrap}
.cy-comments{margin-top:40px;padding-top:32px;border-top:1px solid var(--cy-border)}
.cy-comments .comment-list{list-style:none;padding:0}
.cy-comments .comment-body{padding:16px 0;border-bottom:1px solid var(--cy-border)}
.cy-cta-inner{max-width:760px}
.cy-lead-form{margin:0}
.cy-modal-head{margin-bottom:22px}

/* 空链接/无样式段落的兜底 */
.cy-section-case,.cy-section-matrix,.cy-section-news{background:#fff}
/* 案例 / 资讯区块的标题是左对齐的，副标题必须跟着左对齐。
   原先只有标题被改成 text-align:left，副标题还留着全局的居中 + margin:auto，
   结果就是「标题贴左边、说明文字居中」——同一块里两种对齐，怎么看都别扭。
   注意这里必须写成 .cy-section-xxx>.cy-container>.cy-xxx-sub（特异性 0,2,1）：
   上面通用的 .cy-section>.cy-container>p 就是 0,2,1，只写 .cy-section-xxx .cy-xxx-sub
   是 0,2,0，压不住它，text-align 仍然是 center。 */
.cy-section-case .cy-section-title,.cy-section-news .cy-section-title{text-align:left}
/* 左对齐区块的「基准线」起始点回到左边（默认是居中标题用的 left:50%） */
.cy-section-case .cy-section-title::after,.cy-section-news .cy-section-title::after{left:0;transform:none}
.cy-section-case>.cy-container>.cy-case-sub,
.cy-section-news>.cy-container>.cy-news-sub{text-align:left;margin-left:0;margin-right:0}

/* ============================================================
   front-page 新增
   ============================================================ */

/* ---------- 区块副标题 ---------- */
.cy-matrix-sub,.cy-case-sub,.cy-news-sub,.cy-roles-sub,.cy-security-sub{font-size:15.5px;color:var(--cy-text-muted);text-align:center;max-width:760px;margin:0 auto 30px;line-height:1.8}
.cy-section-security{background:#fff}

/* ---------- 通用：轮播 ---------- */
.cy-slide-stack{position:relative}
.cy-slide-stack>.cy-slide{position:absolute;top:0;left:0;width:100%;opacity:0;visibility:hidden;transition:opacity .6s ease;pointer-events:none}
.cy-slide-stack>.cy-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.cy-slide-stack.is-auto>.cy-slide.is-active{position:relative}
.cy-slide-stack.is-fixed>.cy-slide{height:100%}
.cy-slider-dots{display:flex;gap:8px;justify-content:center;margin-top:26px}
.cy-slider-dots.is-inside{position:absolute;left:0;right:0;bottom:16px;margin:0;z-index:3}
/* 与 .cy-hero-dot 同理：4px 细横线视觉不变，::before 把可点区域扩到约 32×44 */
.cy-slider-dot{position:relative;width:26px;height:4px;padding:0;border:0;border-radius:2px;background:rgba(255,255,255,.5);cursor:pointer;transition:all .25s}
.cy-slider-dot::before{content:"";position:absolute;inset:-14px -6px}
.cy-slider-dot.is-active{width:40px;background:#fff}

/* ---------- 通用：Tab 面板 ---------- */
.cy-tab-panel{display:none}
.cy-tab-panel.is-active{display:block}
.cy-tab-panel--grid.is-active{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
/* v1.9.5：这条补丁此前**从落地起就没生效过** —— 选择器特异性 0,1,0，
   而 792 行的 .cy-case-panel（0,1,0）在后面，同特异性后者胜，margin-top 一直是 -52px。
   后果是首页案例筛选面板被上提 52px，压住 .cy-filter 里的「制造业」按钮，只露上半截。
   提到 0,2,0 才压得住，且必须限定在 .cy-tab-panel 上：
   792 行那条 -52px 是给 single-case.php 的浮动卡片用的（它要压在 hero 上），不能动。 */
.cy-tab-panel.cy-case-panel{margin-top:0}

/* ---------- Hero 模板一：左右图文 ---------- */
/* Hero 模板一：左右图文。
   v2.2.24：白→浅灰的纵向渐变 + 向下渐隐的点阵纹理（一次静态背景绘制，零动效），
   取代原来「60% 之后纯白、接近没背景」的 135° 渐变 —— 首页只开 3 个模块时，
   首屏是全站唯一的「科技感」展示位。 */
.cy-hero-split{position:relative;padding:64px 0 72px;background:linear-gradient(180deg,#ffffff 0%,var(--cy-bg-soft) 100%)}
.cy-hero-split::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(rgba(15,23,42,.06) 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 72%);mask-image:linear-gradient(180deg,#000 0%,transparent 72%)}
.cy-hero-split .cy-container{position:relative;z-index:1}
.cy-hero-split-inner{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center}
.cy-hero-split-copy{min-width:0}
.cy-hero-split-title{font-size:38px;font-weight:900;line-height:1.25;color:var(--cy-text);margin:0 0 18px}
.cy-hero-split-sub{font-size:16.5px;line-height:1.85;color:var(--cy-text-muted);max-width:560px;margin:0 0 26px}
.cy-hero-split-actions{display:flex;gap:14px;flex-wrap:wrap}
.cy-hero-split-media{aspect-ratio:16/10;border-radius:18px;overflow:hidden;background:var(--cy-tint);box-shadow:0 18px 40px rgba(15,23,42,.12)}
.cy-hero-split-media img{width:100%;height:100%;object-fit:cover}

/* ---------- Logo 墙 ---------- */
.cy-trust-wall{position:relative}
/* 关闭按钮的定位改过两次，两次都是「孤零零飘着」这同一个毛病：
   最初贴 section 最右边（right:14px），section 是全宽的，1440 下落在 x≈1400。
   v1.9.x 改成按 1180 中心线公式对齐容器右边缘 —— 确实对齐了容器，
   但这一块是**居中内容 + 白底**：1440 下按钮距居中的「资质与认证」标题 400px 以上，
   四周全是空白，访客读成「渲染残渣」而不是「可点击的关闭」。
   v1.9.5：回到卡片右上角 20px —— 让它看起来属于这个区块，而不是属于页面。
   对齐容器边缘解决的是「飘在容器外」，解决不了「飘在容器内的空白里」。
   平时不透明度 .75（比原来 .55 更容易被看见），hover / 键盘聚焦时恢复到 1。 */
.cy-trust-close{position:absolute;top:20px;right:20px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--cy-border);border-radius:50%;background:#fff;color:var(--cy-text-muted);font-size:17px;line-height:1;cursor:pointer;opacity:.75;transition:all .2s}
.cy-trust-close:hover,.cy-trust-close:focus-visible{opacity:1;color:var(--cy-text);border-color:#cbd5e1;background:#f8fafc}
.cy-trust-sub{text-align:center;font-size:13px;font-weight:700;letter-spacing:2px;color:var(--cy-text-muted);margin:0 0 26px}
.cy-trust-names{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.cy-trust-name{padding:10px 22px;border-radius:8px;font-size:15px;font-weight:700;border:1px solid var(--cy-border);background:var(--cy-bg-soft);color:#334155;transition:transform .25s,box-shadow .25s,background .25s,border-color .25s,color .25s}
.cy-trust-name:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(15,23,42,.08);background:#fff;border-color:var(--cy-primary);color:var(--cy-primary)}
/* 这里原本是 8 组 nth-child 循环配色（蓝/绿/黄/粉/紫/青/橙/玫红），
   一屏四五个标签凑在一起就像调色板洒了 —— 而它们语义同级（都是资质），
   用颜色区分毫无信息量，只剩杂乱。统一成中性浅底 + 品牌色 hover，
   颜色只用来表达"可交互"，不用来表达"这是第几个"。 */

/* ---------- 产品矩阵 模板二：Tab + 图文 ---------- */
.cy-matrix2-tabs{display:flex;gap:6px;background:#f1f5f9;border-radius:12px;padding:6px;margin-bottom:34px;overflow-x:auto}
.cy-matrix2-tab{display:flex;align-items:center;gap:10px;flex:1 1 132px;min-width:132px;padding:12px 16px;border:0;border-radius:10px;background:transparent;cursor:pointer;transition:all .25s}
.cy-matrix2-tab.is-active{background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.1)}
.cy-matrix2-tab-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:var(--cy-tint-2);transition:background .25s}
.cy-matrix2-tab.is-active .cy-matrix2-tab-icon{background:var(--cy-primary)}
.cy-matrix2-tab-icon img{width:20px;height:20px;object-fit:contain;filter:brightness(0) invert(1)}
.cy-matrix2-tab-label{font-size:15px;font-weight:600;color:#64748b;white-space:nowrap}
.cy-matrix2-tab.is-active .cy-matrix2-tab-label{color:var(--cy-text);font-weight:800}
.cy-matrix2-media{background:#fff;border:1px solid var(--cy-border);border-radius:14px;padding:18px;box-shadow:var(--cy-shadow)}
.cy-matrix2-media img{width:100%;border-radius:10px;display:block}
.cy-matrix2-media-ph{aspect-ratio:4/3;background:#f1f5f9;border-radius:10px}
.cy-matrix2-title{font-size:30px;font-weight:900;color:var(--cy-primary);margin:0 0 10px}
.cy-matrix2-sub{font-size:19px;font-weight:700;color:#334155;margin:0 0 16px}
.cy-matrix2-desc{font-size:15.5px;line-height:1.9;color:var(--cy-text-muted);margin:0 0 26px}
.cy-matrix2-actions{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- 角色场景 ---------- */
.cy-roles-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.cy-roles-tabs{display:flex;gap:6px;background:#fff;border:1px solid var(--cy-border);border-radius:12px;padding:8px;margin-bottom:26px;width:fit-content;max-width:100%;overflow-x:auto}
.cy-roles-tab{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto;padding:10px 16px;border:0;border-radius:9px;background:transparent;cursor:pointer;transition:all .25s}
.cy-roles-tab.is-active{background:var(--cy-primary)}
.cy-roles-tab-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--cy-tint-2);color:var(--cy-primary);font-size:16px;font-weight:800}
.cy-roles-tab.is-active .cy-roles-tab-avatar{border:2px solid #fff}
.cy-roles-tab-name{font-size:13.5px;font-weight:600;color:#475569;white-space:nowrap}
.cy-roles-tab.is-active .cy-roles-tab-name{color:#fff}
.cy-roles-scene-title{font-size:28px;font-weight:900;margin:0 0 14px}
.cy-roles-scene-desc{font-size:15px;line-height:1.9;color:var(--cy-text-muted);margin:0 0 24px}
.cy-roles-scene-img{width:100%;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.1);display:block}
.cy-roles-media{min-width:0}
.cy-roles-scene-ph{position:relative;width:100%;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:14px;background:linear-gradient(135deg,var(--cy-tint) 0%,var(--cy-tint-2) 100%);box-shadow:0 10px 30px rgba(15,23,42,.08)}
.cy-roles-scene-ph::before{content:"";position:absolute;inset:0;background-image:radial-gradient(var(--cy-glow) 1px,transparent 1px);background-size:18px 18px;opacity:.7}
.cy-roles-scene-ph>span{position:relative;font-size:72px;font-weight:900;line-height:1;color:var(--cy-glow);letter-spacing:-3px}
/* 一个角色都没配图时（v1.9.0）：右栏整个不输出，文字区占满并居中收窄，
   避免页面右半边挂着一块 430×420 的空白。tab 同时拉满等分，像个分段控件。 */
.cy-roles-grid.is-single{grid-template-columns:minmax(0,1fr);max-width:780px;margin:0 auto}
.cy-roles-grid.is-single .cy-roles-tabs{width:100%}
.cy-roles-grid.is-single .cy-roles-tab{flex:1 1 0;min-width:0}
.cy-roles-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.cy-roles-card{background:#fff;border:1px solid var(--cy-border-strong);border-radius:var(--cy-radius);padding:24px 22px;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-roles-card:hover{transform:translateY(-4px);box-shadow:var(--cy-shadow-lg);border-color:var(--cy-line)}
.cy-roles-card-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.cy-roles-card-avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--cy-tint);color:var(--cy-primary);font-weight:800}
.cy-roles-card-name{font-size:15px;font-weight:800}
.cy-roles-card-title{font-size:17px;font-weight:800;margin:0 0 10px}
.cy-roles-card-desc{font-size:14px;line-height:1.8;color:var(--cy-text-muted);margin:0 0 16px}

/* ---------- 客户案例 模板二：行业解决方案 ---------- */
.cy-case-tabs{margin-bottom:30px}
.cy-solution-card{display:grid;grid-template-columns:220px minmax(0,1fr) 280px;background:#fff;border:1px solid var(--cy-border);border-radius:16px;overflow:hidden;box-shadow:var(--cy-shadow)}
.cy-solution-side{display:flex;flex-direction:column;gap:8px;padding:20px 16px;background:var(--cy-tint)}
.cy-solution-tab{display:flex;align-items:center;gap:10px;width:100%;padding:13px 16px;border:0;border-radius:10px;background:#fff;text-align:left;cursor:pointer;transition:all .25s}
.cy-solution-tab.is-active{background:var(--cy-primary)}
.cy-solution-tab-icon{width:22px;height:22px;flex:0 0 22px;object-fit:contain}
.cy-solution-tab-name{font-size:14.5px;font-weight:600;color:#334155}
.cy-solution-tab.is-active .cy-solution-tab-name{color:#fff}
.cy-solution-main{padding:30px 34px;min-width:0}
.cy-solution-title{font-size:22px;font-weight:900;margin:0 0 22px}
.cy-solution-feat{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.cy-solution-feat-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--cy-accent);margin-top:9px}
.cy-solution-feat-title{font-size:16px;font-weight:800;margin-bottom:6px}
.cy-solution-feat-desc{font-size:13.5px;line-height:1.8;color:var(--cy-text-muted)}
.cy-solution-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.cy-solution-aside{background:linear-gradient(135deg,var(--cy-deep),var(--cy-primary));padding:26px 20px;color:#fff}
.cy-solution-aside-title{text-align:center;font-size:14.5px;font-weight:700;margin-bottom:18px}
.cy-solution-logos{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cy-solution-logo{background:#fff;border-radius:10px;padding:14px;display:flex;align-items:center;justify-content:center}
.cy-solution-logo img{max-width:100%;max-height:46px;object-fit:contain}

/* ---------- 最新资讯 模板二：头条 + 列表 ---------- */
.cy-news2-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}
.cy-news2-headline{background:#fff;border:1px solid var(--cy-border);border-radius:var(--cy-radius);overflow:hidden;box-shadow:var(--cy-shadow)}
.cy-news2-headline-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:#f1f5f9}
.cy-news2-headline-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cy-news2-headline:hover .cy-news2-headline-thumb img{transform:scale(1.04)}
.cy-news2-headline-body{padding:18px 22px 22px}
.cy-news2-meta{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--cy-text-muted);margin-bottom:8px}
.cy-news2-list{display:flex;flex-direction:column;gap:12px}
.cy-news2-item{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--cy-border);border-radius:12px;padding:12px;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-news2-item:hover{border-color:var(--cy-line);transform:translateY(-2px)}
.cy-news2-item-thumb{flex:0 0 104px;width:104px;height:76px;border-radius:8px;overflow:hidden;background:#f1f5f9}
.cy-news2-item-thumb img{width:100%;height:100%;object-fit:cover}
.cy-news2-item-body{flex:1;min-width:0}
.cy-news2-item-title{font-size:15px;font-weight:700;margin:0 0 6px;line-height:1.5}
.cy-news2-item-title a{color:var(--cy-text)}
.cy-news2-item-title a:hover{color:var(--cy-primary)}
.cy-news2-item-desc{font-size:12.5px;color:var(--cy-text-muted);line-height:1.7;margin:0}

/* ---------- 安全 / 资质 ---------- */
.cy-security-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 40px;margin-top:34px}
.cy-security-item{width:150px;text-align:center}
.cy-security-icon{display:flex;align-items:center;justify-content:center;width:104px;height:104px;margin:0 auto 14px;padding:16px;border-radius:50%;background:#fff;box-shadow:0 2px 16px rgba(15,23,42,.08)}
.cy-security-icon img{max-width:100%;max-height:100%;object-fit:contain}
.cy-security-name{font-size:14px;color:#475569;line-height:1.7}
.cy-security-list{margin-top:34px}

/* ---------- CTA 模板二 ---------- */
.cy-cta-inner.is-split{max-width:1180px;display:grid;grid-template-columns:1.2fr auto;gap:32px;align-items:center;text-align:left}
.cy-cta-copy{min-width:0}
.cy-cta-inner.is-split .cy-cta-desc{margin-bottom:0}
.cy-cta-side{justify-content:flex-end}

/* ---------- 自定义模块 ---------- */
.cy-custom-section{padding:60px 0}
.cy-custom-inner{max-width:1180px}
.cy-custom-title{text-align:center;font-size:28px;font-weight:900;margin:0 0 28px}
.cy-custom-content{font-size:16px;line-height:1.9;color:#334155}
.cy-custom-content img{border-radius:12px}

/* ---------- front-page 新增：响应式 ---------- */
@media (max-width:1080px){
    .cy-hero-split-inner{gap:32px}
    .cy-matrix2-title{font-size:26px}
    .cy-solution-card{grid-template-columns:1fr}
    .cy-solution-side{flex-direction:row;overflow-x:auto}
    .cy-solution-tab{width:auto;flex:0 0 auto}
    .cy-solution-aside{display:none}
    .cy-roles-cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
    .cy-hero-split{padding:40px 0 48px}
    .cy-hero-split-inner{grid-template-columns:1fr;gap:28px}
    .cy-hero-split-title{font-size:29px}
    .cy-hero-split-sub{font-size:15.5px}
    .cy-tab-panel--grid.is-active{grid-template-columns:1fr;gap:24px}
    .cy-roles-grid{grid-template-columns:1fr;gap:24px}
    .cy-news2-layout{grid-template-columns:1fr}
    .cy-cta-inner.is-split{grid-template-columns:1fr;text-align:center}
    .cy-cta-side{justify-content:center}
}
@media (max-width:640px){
    /* H1 必须大于区块标题（21px，见上方响应式小节），26px 恢复层级落差 */
    .cy-hero-split-title{font-size:26px;line-height:1.3}
    .cy-hero-split-media{aspect-ratio:4/3}
    .cy-matrix2-tabs{padding:4px}
    .cy-matrix2-tab{min-width:112px;padding:10px 12px}
    .cy-matrix2-title{font-size:22px}
    .cy-roles-cards{grid-template-columns:1fr}
    /* 单列时 tab 是等分拉满的（见 .cy-roles-grid.is-single）；手机宽度下 4 个等分
       每个只剩 70 出头，「生产与供应链」这类名字会顶破按钮。
       窄屏改回按内容宽度 + 横向滚动，宁可能滑也不要挤成一团。 */
    .cy-roles-grid.is-single .cy-roles-tab{flex:0 0 auto}
    .cy-roles-grid.is-single .cy-roles-tabs{justify-content:flex-start}
    .cy-roles-scene-title{font-size:22px}
    .cy-security-item{width:120px}
    .cy-security-icon{width:84px;height:84px;padding:12px}
    .cy-news2-item-thumb{flex:0 0 84px;width:84px;height:64px}
    .cy-custom-section{padding:40px 0}
    .cy-custom-title{font-size:22px}
}

/* ===== 归档/文章模板新增 ===== */
/* 适用模板：single.php / home.php / archive.php /
   single-case.php / archive-case.php / archive-product.php */

/* ---------- 通用：筛选条与统计行 ---------- */
.cy-filter-bar{display:flex;flex-direction:column;gap:14px;padding-bottom:22px;margin-bottom:26px;border-bottom:1px solid var(--cy-border)}
.cy-filter-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cy-filter-label{flex:0 0 auto;font-size:14px;font-weight:800;color:var(--cy-text)}
.cy-filter-label::after{content:"："}
.cy-archive-topline{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;justify-content:space-between;margin-bottom:24px;font-size:14px;color:var(--cy-text-muted)}
.cy-archive-count strong{color:var(--cy-primary);font-size:16px}
.cy-archive-topline a{font-weight:700}
.cy-archive-topline-item{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}

/* ---------- 通用：列表卡片补充 ---------- */
.cy-card-grid{align-content:start}
.cy-news-thumb{position:relative}
.cy-sticky-zone{display:grid;gap:22px;margin-bottom:34px}
.cy-post-card{display:grid;grid-template-columns:44% 1fr;background:#fffbeb;border:2px solid #fcd34d;border-radius:var(--cy-radius);overflow:hidden;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-post-card:hover{box-shadow:var(--cy-shadow-lg);transform:translateY(-2px)}
.cy-post-card.is-sticky{border-color:#f59e0b}
.cy-post-card .cy-news-thumb{aspect-ratio:16/10}
.cy-post-card .cy-news-body{padding:24px 28px;justify-content:center}
.cy-post-card .cy-news-title{font-size:21px}
.cy-post-card .cy-news-desc{font-size:14.5px}
.cy-card-flag{position:absolute;top:12px;left:12px;z-index:2;background:#f59e0b;color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:6px}

/* ---------- 文章详情 ---------- */
.cy-toc{margin:0 0 30px;padding:20px 24px;background:var(--cy-bg-soft);border:1px solid var(--cy-border);border-radius:12px}
.cy-toc-title{margin:0 0 10px;font-size:15px;font-weight:800}
.cy-toc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cy-toc-item.is-sub{padding-left:16px}
.cy-toc-link{font-size:14.5px;color:var(--cy-text-muted);line-height:1.6}
.cy-toc-link:hover{color:var(--cy-primary)}
.cy-article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:34px 0 22px}
.cy-article-tag{font-size:13px;padding:5px 12px;background:var(--cy-tint);border:1px solid var(--cy-tint-2);border-radius:6px;color:var(--cy-primary)}
.cy-article-tag:hover{background:var(--cy-primary);border-color:var(--cy-primary);color:#fff}
.cy-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--cy-border);border-bottom:1px solid var(--cy-border)}
.cy-share-label{font-size:14px;font-weight:800}
.cy-share-list{display:flex;gap:8px;flex-wrap:wrap}
.cy-share-btn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 16px;border-radius:8px;font-size:13.5px;font-weight:700;color:#fff;transition:all .2s}
.cy-share-btn:hover{opacity:.86;color:#fff;transform:translateY(-1px)}
.cy-share-btn.is-weibo{background:#e6162d}
.cy-share-btn.is-qzone{background:#f7ba2a;color:#1f2937}
.cy-share-btn.is-mail{background:#475569}
.cy-adjacent-item.is-disabled{opacity:.6;cursor:default}
.cy-adjacent-item.is-disabled:hover{border-color:var(--cy-border);background:transparent}
.cy-related .cy-news-grid{gap:22px}

/* ---------- 侧边栏小部件补充 ---------- */
.cy-popular-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.cy-popular-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px 10px;align-items:start}
.cy-popular-rank{grid-row:span 2;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:var(--cy-tint);color:var(--cy-primary);font-size:12.5px;font-weight:800}
.cy-popular-title{font-size:14.5px;font-weight:600;color:var(--cy-text);line-height:1.6}
.cy-popular-title:hover{color:var(--cy-primary)}
.cy-popular-meta{font-size:12.5px;color:var(--cy-text-muted)}
.cy-widget-text{font-size:14px;line-height:1.8;color:var(--cy-text-muted);margin:0 0 16px}
.cy-widget-cta{text-align:center}

/* ---------- 案例详情 ---------- */
.cy-case-hero{position:relative;display:flex;align-items:flex-end;min-height:420px;overflow:hidden;background:#0f172a}
.cy-case-hero-bg{position:absolute;inset:0}
.cy-case-hero-bg img{width:100%;height:100%;object-fit:cover}
.cy-case-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.55) 0%,rgba(15,23,42,.86) 100%)}
.cy-case-hero-inner{position:relative;z-index:2;width:100%;padding:80px 0 92px}
.cy-case-hero .cy-crumb ol,.cy-case-hero .cy-crumb li{color:rgba(255,255,255,.72)}
.cy-case-hero .cy-crumb a{color:rgba(255,255,255,.88)}
.cy-case-hero-eyebrow{display:inline-block;margin:0 0 14px;padding:5px 14px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:13.5px;font-weight:700}
.cy-case-hero-title{color:#fff;font-size:38px;font-weight:900;line-height:1.25;margin:0 0 18px;max-width:880px}
.cy-case-hero-meta{display:flex;flex-wrap:wrap;gap:8px}
.cy-case-hero-meta .cy-case-tag{background:rgba(255,255,255,.16);color:#fff}
.cy-case-tag{display:inline-block;padding:5px 12px;border-radius:6px;font-size:13px;font-weight:700;background:var(--cy-tint);color:var(--cy-primary)}
.cy-case-tag.is-alt{background:var(--cy-accent-tint);color:var(--cy-accent-deep)}
.cy-case-tag.is-plain{background:#f1f5f9;color:var(--cy-text-muted);font-weight:600}
.cy-case-panel{position:relative;z-index:3;margin-top:-52px;margin-bottom:34px}
.cy-case-panel-inner{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#fff;border:1px solid var(--cy-border);border-radius:var(--cy-radius);padding:24px 28px;box-shadow:var(--cy-shadow-lg)}
.cy-case-panel-mark{display:flex;align-items:center;justify-content:center;flex:0 0 68px;width:68px;height:68px;border-radius:50%;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent));color:#fff;font-size:23px;font-weight:900;letter-spacing:1px}
.cy-case-panel-mark.is-logo{background:#fff;border:1px solid var(--cy-border);overflow:hidden}
.cy-case-panel-logo{display:block;width:100%;height:100%;object-fit:contain;padding:9px}
.cy-case-panel-info{flex:1;min-width:220px}
.cy-case-panel-name{font-size:22px;font-weight:900;margin:0 0 12px}
.cy-case-panel-tags{display:flex;flex-wrap:wrap;gap:6px}
.cy-case-panel-actions{flex:0 0 auto}
.cy-case-page-body{padding:0 20px 72px}
.cy-case-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 34px;padding:22px 24px;background:var(--cy-bg-soft);border:1px solid var(--cy-border);border-radius:12px}
.cy-case-fact{display:flex;flex-direction:column;gap:6px;min-width:0}
.cy-case-fact-label{font-size:12.5px;font-weight:700;color:var(--cy-text-muted);letter-spacing:.5px}
.cy-case-fact-value{font-size:16px;font-weight:700;color:var(--cy-text);line-height:1.6}
.cy-case-section{margin:0 0 36px}
.cy-case-subsystem{padding:24px;background:var(--cy-bg-soft);border:1px solid var(--cy-border);border-radius:12px}
.cy-case-subsystem-note{margin:0 0 16px;color:var(--cy-text-muted);font-size:14px;line-height:1.7}
.cy-case-subsystem-links{display:flex;flex-wrap:wrap;gap:12px}
.cy-subsystem-bar{background:var(--cy-tint);border-bottom:1px solid var(--cy-border)}
.cy-subsystem-bar-inner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;font-size:13.5px}
.cy-subsystem-bar-tag{flex:0 0 auto;padding:3px 9px;border-radius:999px;background:var(--cy-primary);color:#fff;font-size:12px;font-weight:700;letter-spacing:.3px}
.cy-subsystem-bar-text{color:var(--cy-text-muted)}
.cy-subsystem-bar-link{margin-left:auto;color:var(--cy-primary);font-weight:700;text-decoration:none}
.cy-subsystem-bar-link:hover{text-decoration:underline}
@media (max-width:640px){.cy-subsystem-bar-link{margin-left:0}}
.cy-case-section-title{font-size:24px;font-weight:900;margin:0 0 20px;padding-left:14px;border-left:4px solid var(--cy-primary)}
.cy-case-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.cy-case-metric{display:flex;flex-direction:column;gap:6px;padding:20px;background:var(--cy-tint);border-radius:12px;text-align:center}
.cy-case-metric-value{font-size:22px;font-weight:900;color:var(--cy-primary-dark);line-height:1.4;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.cy-case-metric-label{font-size:13.5px;color:var(--cy-text-muted)}
.cy-case-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:40px;align-items:start}
.cy-case-layout:not(:has(.cy-case-chapter)){grid-template-columns:minmax(0,1fr)}
.cy-case-chapter{position:sticky;top:100px}
.cy-case-chapter-title{font-size:12.5px;font-weight:800;letter-spacing:2px;color:var(--cy-text-muted);margin:0 0 14px}
.cy-case-chapter-list{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--cy-border)}
.cy-case-chapter-list li{margin-bottom:10px}
.cy-case-chapter-list li.is-sub{padding-left:12px}
.cy-case-chapter-list a{font-size:13.5px;color:var(--cy-text-muted);line-height:1.6}
.cy-case-chapter-list a:hover{color:var(--cy-primary)}
.cy-case-main{min-width:0}
.cy-case-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
/* v2.2.29：单图图集不再被拉满 1140。
   auto-fit 在只有 1 张图时会把那一条轨道撑到容器全宽（1138px），
   而 cy-card 原图只有 600×400 —— 于是被插值放大到 1138×854（横 1.9×、纵 2.1×），
   既糊又白下流量。这里以**原图宽度 600px** 为上限：多图时每条轨道本来就远小于
   600px，不受影响；单图时停在 600px，永不放大到超过原始分辨率。 */
.cy-case-gallery-item{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#f1f5f9;max-width:600px}
.cy-case-gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cy-case-gallery-item:hover img{transform:scale(1.05)}
.cy-case-cta{margin:40px 0 0}
.cy-case-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.cy-case-related .cy-case-grid{gap:22px}

/* ---------- 产品列表卡片补充 ---------- */
.cy-product-card-brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.cy-product-card-icon{width:28px;height:28px;flex:0 0 28px;border-radius:8px;object-fit:contain;background:var(--cy-tint);padding:3px}
.cy-product-card-icon.is-text{display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;color:#fff;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent))}
.cy-product-card-brand-name{font-size:13.5px;font-weight:700;color:#475569}
.cy-product-card-catchy{font-size:14.5px;font-weight:700;color:var(--cy-primary);margin:0 0 8px;line-height:1.6}
.cy-product-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.cy-product-card-tag{font-size:12.5px;padding:4px 10px;border:1px solid var(--cy-line);border-radius:999px;color:var(--cy-primary);background:#fff}
.cy-product-card-badge.is-hot{background:#dc2626}
.cy-product-card-badge.is-new{background:var(--cy-primary)}
.cy-product-card-badge.is-recommend{background:#d97706}
.cy-product-card-badge.is-flagship{background:#7c3aed}

/* ---------- 归档/文章模板新增：响应式 ---------- */
@media (max-width:1080px){
    .cy-case-layout{grid-template-columns:180px minmax(0,1fr);gap:28px}
    .cy-case-facts{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
    .cy-case-hero{min-height:340px}
    .cy-case-hero-inner{padding:64px 0 78px}
    .cy-case-hero-title{font-size:29px}
    .cy-case-layout{grid-template-columns:minmax(0,1fr)}
    .cy-case-chapter{display:none}
    .cy-post-card{grid-template-columns:1fr}
    .cy-post-card .cy-news-thumb{aspect-ratio:16/9}
    .cy-archive-topline{justify-content:flex-start}
}
@media (max-width:640px){
    .cy-case-hero{min-height:280px}
    .cy-case-hero-inner{padding:52px 0 68px}
    .cy-case-hero-title{font-size:23px}
    .cy-case-panel{margin-top:-32px;margin-bottom:24px}
    .cy-case-panel-inner{gap:14px;padding:20px}
    .cy-case-panel-mark{flex:0 0 54px;width:54px;height:54px;font-size:19px}
    .cy-case-panel-name{font-size:19px}
    .cy-case-panel-actions{width:100%}
    .cy-case-page-body{padding:0 16px 56px}
    .cy-case-facts{grid-template-columns:1fr;gap:12px;padding:18px}
    .cy-case-section-title{font-size:20px}
    .cy-case-metric-value{font-size:19px}
    .cy-toc{padding:16px 18px}
    .cy-share{gap:8px}
    .cy-filter-row{gap:8px}
    .cy-filter-label{width:100%}
    /* 触控目标：7px+13px+7px≈33px 不够，补到 ≈42px */
    .cy-filter-item{padding:11px 16px;font-size:13px}
    .cy-popular-title{font-size:14px}
}
@media print{
    .cy-share,.cy-case-chapter,.cy-case-panel-actions,.cy-toc{display:none!important}
}

/* ===== 页面模板与头尾新增 ===== */
/* 适用模板：header.php / footer.php / template-about.php / page-legal.php */

/* ---------- 页头：通知横幅 ---------- */
.cy-notice{background:linear-gradient(90deg,var(--cy-deep),var(--cy-primary));color:#fff;font-size:13.5px}
.cy-notice-inner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 20px}
.cy-notice-tag{flex:0 0 auto;padding:2px 10px;border-radius:6px;background:rgba(255,255,255,.18);font-size:12.5px;font-weight:800;letter-spacing:1px}
.cy-notice-text{line-height:1.6;min-width:0}
.cy-notice-more{margin-left:auto;color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.cy-notice-more:hover{color:#fff;opacity:.85}

/* ---------- 页头：顶部信息条 ---------- */
/* 1180 容器内可用宽度 1140px；五组信息按 13px/20px 间距实测 1164px，差 24px 就会整组折行，
   折行后第二组仍贴着左边，视觉上变成「两行都堆在左、右半幅空着」。收字号与间距让它回到一行，
   同时给 .cy-topbar-extra 兜底右对齐——万一在更窄的屏上还是要折行，也呈现「左上 / 右下」。 */
.cy-topbar{background:#0f172a;color:#94a3b8;font-size:12.5px;border-bottom:1px solid rgba(255,255,255,.08)}
.cy-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;padding:9px 20px}
.cy-topbar-info,.cy-topbar-extra{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;min-width:0}
.cy-topbar-extra{margin-left:auto;justify-content:flex-end}
.cy-topbar-item{display:inline-flex;align-items:center;gap:5px;min-width:0}
.cy-topbar-label{color:#8b9cb3;white-space:nowrap}
.cy-topbar-label::after{content:"："}
.cy-topbar-link,.cy-topbar-text{color:var(--cy-on-dark-strong);font-weight:600}
.cy-topbar-link:hover{color:var(--cy-accent)}

/* ---------- 页头：直拨电话 / 移动端补充区 ---------- */
.cy-header-actions .cy-header-tel{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:800;color:var(--cy-primary)}
.cy-header-actions .cy-header-tel:hover{color:var(--cy-primary-dark)}
.cy-header-tel-icon{font-size:16px;line-height:1}
.cy-nav-extra{display:none;margin-top:14px;padding-top:14px;border-top:1px solid var(--cy-border)}
.cy-nav-extra-title{margin:0 0 8px;font-size:13px;font-weight:800;color:var(--cy-text-muted);letter-spacing:1px}
.cy-nav-extra-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px}
.cy-nav-extra-list li{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap}
.cy-nav-extra-label{flex:0 0 auto;color:var(--cy-text-muted)}
.cy-nav-extra-label::after{content:"："}
.cy-nav-extra-text{color:#475569}

/* ---------- 页脚：CTA 条（v2.1.11 已移除） ----------
   v1.5.0 起这里是页脚上方的「有需求？欢迎随时联系我们」转化条，
   v2.1.11 按客户要求整条删除，对应的 7 条 .cy-footer-cta* 规则一并清掉。
   留这一段注释是为了让后来者知道：页脚顶部那 56px 留白不是因为漏了东西。 */

/* ---------- 页脚：社交媒体 ---------- */
.cy-footer-social{margin-top:20px}
.cy-footer-social-title{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:1px;color:var(--cy-on-dark)}
.cy-footer-social-list{list-style:none;margin:0;padding:0;display:flex;gap:12px;flex-wrap:wrap}
.cy-footer-social-item{position:relative}
.cy-footer-social-link{display:inline-flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border-radius:999px;background:rgba(255,255,255,.06);color:#cbd5e1;transition:all .25s}
.cy-footer-social-link:hover{background:var(--cy-primary);color:#fff}
.cy-footer-social-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:rgba(255,255,255,.12);overflow:hidden}
.cy-footer-social-icon img{width:18px;height:18px;object-fit:contain}
.cy-footer-social-icon svg{width:18px;height:18px;fill:currentColor}
.cy-footer-social-icon-text{font-size:13px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent))}
.cy-footer-social-name{font-size:13px;font-weight:600}
.cy-footer-social-pop{position:absolute;left:50%;bottom:calc(100% + 10px);width:128px;padding:10px;background:#fff;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.32);opacity:0;visibility:hidden;transform:translate(-50%,6px);transition:all .25s;z-index:5;text-align:center}
.cy-footer-social-item:hover .cy-footer-social-pop{opacity:1;visibility:visible;transform:translate(-50%,0)}
.cy-footer-social-pop img{width:100%;height:auto;border-radius:8px}
.cy-footer-social-pop-name{display:block;margin-top:6px;font-size:12px;font-weight:700;color:var(--cy-text)}

/* ---------- 页脚：友情链接 ---------- */
.cy-footer-friends{padding:20px 0;border-top:1px solid rgba(255,255,255,.08)}
.cy-footer-friends-title{display:block;font-size:13px;font-weight:800;color:var(--cy-on-dark);letter-spacing:1px;margin:0 0 10px}
.cy-footer-friends-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13.5px}
.cy-footer-friends-list a{color:#94a3b8}
.cy-footer-friends-list a:hover{color:#fff}

/* ---------- 关于我们：Hero ---------- */
.cy-about-hero{position:relative;display:flex;align-items:center;min-height:420px;overflow:hidden;background:#0f172a}
.cy-about-hero-bg{position:absolute;inset:0}
.cy-about-hero-bg img{width:100%;height:100%;object-fit:cover}
.cy-about-hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(15,23,42,.92),rgba(15,23,42,.66))}
.cy-about-hero-inner{position:relative;z-index:2;width:100%;padding:76px 0 84px;text-align:center}
.cy-about-hero-title{margin:0 0 16px;font-size:44px;font-weight:900;line-height:1.25;color:#fff;text-shadow:0 2px 20px rgba(0,0,0,.35)}
.cy-about-hero-sub{max-width:760px;margin:0 auto 30px;font-size:17px;line-height:1.85;color:rgba(255,255,255,.88)}
.cy-about-hero-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.cy-about-hero .cy-crumb ol,.cy-about-hero .cy-crumb li{color:rgba(255,255,255,.72)}
.cy-about-hero .cy-crumb a{color:rgba(255,255,255,.9)}
.cy-about-hero .cy-crumb a:hover{color:#fff}

/* ---------- 关于我们：公司简介 ---------- */
.cy-about-intro{padding:64px 0}
.cy-about-intro-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:44px;align-items:start}
.cy-about-intro-media{aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#f1f5f9;box-shadow:var(--cy-shadow-lg)}
.cy-about-intro-media img{width:100%;height:100%;object-fit:cover}
.cy-about-intro-copy{min-width:0}
.cy-about-section-title{text-align:left;margin-bottom:14px}
.cy-about-section-sub{margin:0 0 34px}
.cy-about-intro-body{font-size:16px;line-height:1.9}
/* ---------- 关于我们：工商信息卡片（v2.2.0，卡片组平铺替换窄列表） ---------- */
.cy-about-fact-grid{margin:24px 0 0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.cy-about-fact-card{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px 18px;background:#fff;border:1px solid var(--cy-border);border-radius:12px;box-shadow:var(--cy-shadow);transition:border-color .25s,box-shadow .25s}
.cy-about-fact-card:hover{border-color:var(--cy-primary);box-shadow:var(--cy-shadow-lg)}
.cy-about-fact-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;color:#fff;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent))}
.cy-about-fact-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cy-about-fact-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.cy-about-fact-label{font-size:12.5px;font-weight:800;color:var(--cy-text-muted);letter-spacing:.5px}
.cy-about-fact-value{font-size:14.5px;font-weight:700;color:#1e293b;line-height:1.6;word-break:break-word}

/* ---------- 关于我们：公司详情（正文全宽平铺） ---------- */
.cy-about-detail{padding:0 0 64px}
.cy-about-detail-body{max-width:920px}

/* ---------- 关于我们：发展历程 ---------- */
.cy-about-timeline-section{padding:64px 0}
.cy-about-timeline{position:relative;list-style:none;margin:0;padding:0 0 0 42px}
.cy-about-timeline::before{content:"";position:absolute;left:15px;top:10px;bottom:10px;width:2px;border-radius:1px;background:linear-gradient(180deg,var(--cy-primary) 0%,#e2e8f0 100%)}
.cy-about-timeline-item{position:relative;margin-bottom:20px}
.cy-about-timeline-item:last-child{margin-bottom:0}
.cy-about-timeline-dot{position:absolute;left:-34px;top:24px;width:12px;height:12px;border-radius:50%;background:#fff;border:3px solid var(--cy-primary);box-shadow:0 0 0 4px var(--cy-glow)}
.cy-about-timeline-card{background:#fff;border:1px solid var(--cy-border);border-radius:12px;padding:20px 24px;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-about-timeline-item:hover .cy-about-timeline-card{border-color:var(--cy-primary);box-shadow:var(--cy-shadow-lg);transform:translateX(4px)}
.cy-about-timeline-year{display:inline-block;margin-bottom:10px;padding:4px 14px;border-radius:999px;background:linear-gradient(135deg,var(--cy-primary),var(--cy-accent));color:#fff;font-size:13px;font-weight:800;letter-spacing:.5px}
.cy-about-timeline-title{font-size:17px;font-weight:800;margin:0 0 8px}
.cy-about-timeline-desc{font-size:14.5px;line-height:1.8;color:var(--cy-text-muted);margin:0}

/* ---------- 关于我们：核心优势 ---------- */
.cy-about-adv-section{padding:64px 0}
.cy-about-adv{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.cy-about-adv-item{background:#fff;border:1px solid var(--cy-border-strong);border-radius:var(--cy-radius);padding:26px 22px;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-about-adv-item:hover{transform:translateY(-4px);box-shadow:var(--cy-shadow-lg);border-color:var(--cy-line)}
.cy-about-adv-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;margin-bottom:16px;border-radius:16px;background:var(--cy-tint)}
.cy-about-adv-icon img{width:30px;height:30px;object-fit:contain}
.cy-about-adv-index{font-size:20px;font-weight:900;color:var(--cy-primary)}
.cy-about-adv-title{font-size:17px;font-weight:800;margin:0 0 8px}
.cy-about-adv-desc{font-size:14px;line-height:1.8;color:var(--cy-text-muted);margin:0}

/* ---------- 关于我们：资质荣誉 ---------- */
.cy-about-honors-section{padding:64px 0}
.cy-about-honors{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px}
.cy-about-honor{background:#fff;border:1px solid var(--cy-border);border-radius:12px;padding:20px 16px;text-align:center;box-shadow:var(--cy-shadow);transition:all .25s}
.cy-about-honor:hover{transform:translateY(-3px);box-shadow:var(--cy-shadow-lg);border-color:var(--cy-line)}
.cy-about-honor-img{display:flex;align-items:center;justify-content:center;height:56px;margin-bottom:10px}
.cy-about-honor-img img{max-width:100%;max-height:56px;object-fit:contain}
.cy-about-honor-name{font-size:13.5px;line-height:1.6;color:#475569;margin:0}

/* ---------- 关于我们：规模数据 ---------- */
.cy-about-stats-section{padding:64px 0}
.cy-about-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px}
.cy-about-stat{display:flex;flex-direction:column;gap:4px;align-items:center;padding:26px 20px;background:linear-gradient(135deg,var(--cy-tint),#f8fafc);border:1px solid var(--cy-tint-2);border-radius:14px;text-align:center}
.cy-about-stat-value{font-size:30px;font-weight:900;line-height:1.2;color:var(--cy-primary-dark);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.cy-about-stat-label{font-size:13.5px;color:var(--cy-text-muted)}

/* ---------- 关于我们：CTA ---------- */
.cy-about-cta{padding:66px 0}
.cy-about-cta-inner{margin:0 auto}

/* ---------- 法务页 ---------- */
.cy-legal-title{margin-bottom:12px}
.cy-legal-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0;font-size:13.5px;color:#64748b}
.cy-legal-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:44px;align-items:start}
.cy-legal-layout:not(:has(.cy-legal-side)){grid-template-columns:minmax(0,1fr);max-width:880px;margin:0 auto}
.cy-legal-side{position:sticky;top:100px;min-width:0}
.cy-legal-toc{padding:20px 22px;background:var(--cy-bg-soft);border:1px solid var(--cy-border);border-radius:12px}
.cy-legal-toc-title{margin:0 0 10px;font-size:15px;font-weight:800}
.cy-legal-toc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.cy-legal-toc-item.is-sub{padding-left:14px}
.cy-legal-toc-link{display:block;font-size:14.5px;line-height:1.6;color:var(--cy-text-muted)}
.cy-legal-toc-link:hover{color:var(--cy-primary)}
.cy-legal-main{min-width:0}
.cy-legal-body{margin:0}
.cy-legal-body>*:first-child{margin-top:0}
.cy-legal-empty{padding:22px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;font-size:15px;color:#92400e}
.cy-legal-foot{margin-top:36px;padding-top:24px;border-top:1px solid var(--cy-border)}
.cy-legal-note{margin:0 0 16px;font-size:13.5px;color:#64748b}
.cy-legal-actions{display:flex;gap:10px;flex-wrap:wrap}
.cy-legal-links{list-style:none;margin:20px 0 0;padding:0;display:flex;gap:8px;flex-wrap:wrap}

/* ---------- 页面模板与头尾新增：响应式 ---------- */
@media (max-width:1080px){
    .cy-about-intro-grid{gap:30px}
    .cy-about-adv{grid-template-columns:repeat(2,1fr)}
    .cy-legal-layout{grid-template-columns:200px minmax(0,1fr);gap:30px}
}
@media (max-width:900px){
    .cy-about-hero{min-height:340px}
    .cy-about-hero-inner{padding:60px 0 66px}
    .cy-about-hero-title{font-size:30px}
    .cy-about-hero-sub{font-size:15.5px}
    .cy-about-intro-grid{grid-template-columns:1fr;gap:26px}
    .cy-legal-layout{grid-template-columns:minmax(0,1fr)}
    .cy-legal-side{display:none}
    .cy-about-intro,.cy-about-timeline-section,.cy-about-adv-section,.cy-about-honors-section,.cy-about-stats-section{padding:52px 0}
}
@media (max-width:640px){
    .cy-topbar-inner{flex-direction:column;align-items:flex-start;gap:4px;padding:8px 16px}
    /* 竖排后交叉轴是水平的，父级那条 margin-left:auto 会把第二组推到右边，这里必须抵掉 */
    .cy-topbar-extra{margin-left:0;justify-content:flex-start}
    .cy-notice-inner{padding:8px 16px}
    .cy-notice-more{margin-left:0}
    .cy-about-hero{min-height:300px}
    .cy-about-hero-inner{padding:52px 0 58px}
    .cy-about-hero-title{font-size:24px}
    .cy-about-hero-actions .cy-btn{padding:12px 22px;font-size:14.5px}
    .cy-about-adv{grid-template-columns:1fr}
    .cy-about-fact-grid{grid-template-columns:1fr}
    .cy-about-timeline{padding-left:32px}
    .cy-about-timeline-dot{left:-26px;width:10px;height:10px}
    .cy-about-timeline-card{padding:16px 18px}
    .cy-about-stat-value{font-size:25px}
    .cy-legal-foot{padding-top:20px}
}
@media print{
    .cy-legal-side,.cy-legal-actions,.cy-notice,.cy-topbar{display:none!important}
}

/* ============================================================
   补齐：模板引用但未定义样式的类（第 3 轮检查发现）
   适用模板：page-legal.php / template-about.php / header.php
             footer.php / front-page.php
   ============================================================ */

/* --- 法务页容器与页头 --- */
.cy-legal-page{padding:0 0 72px}
.cy-legal-head{padding:64px 0 36px;text-align:center;border-bottom:1px solid var(--cy-border)}
.cy-legal-updated,.cy-legal-publish,.cy-legal-owner{display:inline-block}
.cy-legal-owner{font-weight:600;color:var(--cy-text)}

/* --- 关于页容器 --- */
.cy-about-page{padding:0 0 40px}

/* --- 页脚公司简介列 --- */
.cy-footer-about{min-width:0}
.cy-footer-about .cy-footer-logo{display:block;margin-bottom:16px}
.cy-footer-about .cy-footer-logo img{max-height:36px;width:auto}
.cy-footer-about .cy-footer-desc{margin:0 0 18px;font-size:14px;line-height:1.9;color:var(--cy-text-soft)}

/* --- 页头电话文字 --- */
.cy-header-tel-text{font-size:15px;font-weight:700;color:var(--cy-primary);white-space:nowrap}

/* --- 首页产品矩阵模板二：正文区 --- */
.cy-matrix2-body{min-width:0}
.cy-matrix2-body .cy-matrix2-desc{margin:0 0 18px;font-size:16px;line-height:1.9;color:var(--cy-text-muted)}
.cy-matrix2-body .cy-matrix2-actions{display:flex;gap:12px;flex-wrap:wrap}

/* --- 首页角色场景区 --- */
.cy-section-roles{position:relative}
.cy-roles-main{min-width:0;display:grid;gap:24px}

@media (max-width:900px){
    .cy-legal-head{padding:44px 0 28px}
    .cy-legal-page{padding-bottom:48px}
    .cy-header-tel-text{font-size:14px}
}
@media (max-width:640px){
    .cy-legal-head{padding:32px 0 22px}
    .cy-about-page{padding-bottom:24px}
    .cy-roles-main{gap:18px}
}

/* ============================================================
   FAQ 区块（GEO 专用，v1.2.0）
   结构固定：h2 标题 + h3 问句 + p 答案
   inc/seo.php 的 cy_extract_faq_pairs() 依赖此结构生成 FAQPage
   ============================================================ */
.cy-faq-section{padding:68px 0;background:#f5f7fb}
.cy-faq-section .cy-section-title{text-align:center;margin:0 0 8px}
.cy-faq-section .cy-container>p{color:#6b7280;text-align:center;max-width:760px;margin:0 auto 32px}
.cy-faq-list{max-width:860px;margin:32px auto 0}
.cy-faq-item{background:#fff;border:1px solid #e6eaf0;border-radius:10px;padding:20px 24px;margin-bottom:14px;transition:box-shadow .2s ease,border-color .2s ease}
.cy-faq-item:hover{box-shadow:0 6px 20px rgba(15,43,82,.06);border-color:#cfd8e3}
.cy-faq-q{font-size:17px;font-weight:700;color:#0f2b52;margin:0 0 10px;line-height:1.5}
.cy-faq-a{margin:0;color:#4b5563;font-size:15px;line-height:1.85}
@media (max-width:768px){
  .cy-faq-section{padding:44px 0}
  .cy-faq-item{padding:16px 18px}
  .cy-faq-q{font-size:16px}
  .cy-faq-a{font-size:14.5px}
}

/* ============================================================
   悬浮转化条（v1.2.0）
   桌面：右下竖排；移动端：贴底横排（避免遮挡内容）
   ============================================================ */
.cy-float-bar{position:fixed;right:22px;bottom:88px;z-index:120;display:flex;flex-direction:column;gap:10px}
.cy-float-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:56px;height:56px;border:0;border-radius:50%;background:var(--cy-primary);color:#fff;font-size:10px;line-height:1.2;cursor:pointer;box-shadow:0 6px 18px var(--cy-glow);text-decoration:none;transition:transform .18s ease,background .18s ease}
.cy-float-btn:hover{background:var(--cy-primary-dark);transform:translateY(-2px);color:#fff}
.cy-float-ico{font-size:20px;line-height:1}
.cy-float-txt{font-size:10px;opacity:.92}
.cy-float-wx{background:#07c160;box-shadow:0 6px 18px rgba(7,193,96,.32)}
.cy-float-wx:hover{background:#06ad56}
.cy-wx-pop{position:absolute;right:66px;bottom:0;background:#fff;border:1px solid #e6eaf0;border-radius:10px;padding:12px;box-shadow:0 10px 30px rgba(15,43,82,.14);text-align:center}
.cy-wx-pop img{display:block;border-radius:6px}
.cy-wx-pop p{margin:8px 0 0;font-size:12px;color:#6b7280}

/* ---------- 轻提示（全局）----------
   桌面浏览器没有电话应用接管 tel:，点「电话咨询」毫无反应，用户会以为坏了。
   现在改成复制号码，这条就是复制结果的反馈。
   不用 alert：alert 会打断用户，而且样式丑、移动端还会带标题栏。 */
.cy-toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%) translateY(10px);z-index:9999;max-width:calc(100vw - 40px);padding:11px 20px;border-radius:10px;background:#0f172a;color:#fff;font-size:14px;line-height:1.5;text-align:center;box-shadow:0 10px 30px rgba(15,23,42,.28);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.cy-toast.is-show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (max-width:768px){
  .cy-toast{bottom:88px;padding:10px 16px;font-size:13px}
}
@media (max-width:768px){
  .cy-float-bar{right:0;left:0;bottom:0;flex-direction:row;gap:0;background:#fff;border-top:1px solid #e6eaf0;box-shadow:0 -4px 16px rgba(15,43,82,.08)}
  .cy-float-btn{flex:1;width:auto;height:52px;border-radius:0;flex-direction:row;gap:6px;box-shadow:none;background:transparent;color:#0f2b52;font-size:14px}
  .cy-float-btn:hover{background:#f5f7fb;transform:none;color:var(--cy-primary)}
  .cy-float-ico{font-size:17px}
  .cy-float-txt{font-size:14px}
  .cy-float-wx{background:transparent;box-shadow:none}
  .cy-float-wx:hover{background:#f5f7fb}
  .cy-wx-pop{right:12px;bottom:60px}
  body{padding-bottom:52px}
  .cy-backtop{bottom:64px}
}

/* ============================================================
   未激活悬浮条（v1.2.3）
   固定视口底部，激活后由 PHP 条件自动隐藏
   与 .cy-float-bar / .cy-backtop 的堆叠关系由 body.cy-unactivated 控制
   ============================================================ */
.cy-unactivated-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:150;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  padding:13px 20px;
  background:#b45309;
  color:#fff;
  font-size:14px;
  line-height:1.5;
  text-align:center;
}
.cy-unactivated-bar-text{font-weight:700;letter-spacing:.2px}
.cy-unactivated-bar-link{
  flex:0 0 auto;
  padding:4px 14px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:999px;
  color:#fff;
  font-size:12.5px;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease;
}
.cy-unactivated-bar-link:hover{background:rgba(255,255,255,.16);border-color:#fff;color:#fff}

/* 未激活时，把底部固定元素整体抬高，避免被条遮住 */
body.cy-unactivated{padding-bottom:48px}
body.cy-unactivated .cy-float-bar{bottom:136px}
body.cy-unactivated .cy-backtop{bottom:76px}

@media (max-width:768px){
  .cy-unactivated-bar{padding:11px 14px;font-size:13px;gap:10px}
  .cy-unactivated-bar-text{font-size:13px;line-height:1.45}
  .cy-unactivated-bar-link{padding:3px 12px;font-size:12px}
  /* 移动端悬浮咨询条本来贴底，未激活时上移一个条的高度 */
  body.cy-unactivated{padding-bottom:96px}
  body.cy-unactivated .cy-float-bar{bottom:46px}
  body.cy-unactivated .cy-backtop{bottom:110px}
}

/* ============================================================
   FAQ 折叠交互（v1.3.0）
   点击 h3 问题折叠/展开答案；结构仍是 h3+p，不影响 FAQPage 提取
   ============================================================ */
.cy-faq-q{cursor:pointer;user-select:none;position:relative;padding-right:28px}
.cy-faq-q::after{
  content:"";
  position:absolute;
  right:2px;
  top:50%;
  width:9px;
  height:9px;
  border-right:2px solid var(--cy-text-muted);
  border-bottom:2px solid var(--cy-text-muted);
  transform:translateY(-70%) rotate(45deg);
  transition:transform .22s ease,border-color .22s ease;
}
.cy-faq-q:hover::after{border-color:var(--cy-primary)}
.cy-faq-item.is-collapsed .cy-faq-a{display:none}
.cy-faq-item.is-collapsed .cy-faq-q::after{transform:translateY(-30%) rotate(225deg)}
.cy-faq-q:focus-visible{outline:2px solid var(--cy-primary);outline-offset:2px;border-radius:4px}

/* ============================================================
   响应式溢出兜底（第 9 轮：无头 Chromium 1440 / 900 / 375 实测发现）
   ------------------------------------------------------------
   实测症状：正文里出现长代码行或固定宽度的 iframe/多列表格时，
   document.scrollWidth 会被撑到 1762px（视口 375px），整页可以左右拖拽。
   这不是「不好看」，而是移动端可用性事故：用户滑到右边看不到内容，
   返回按钮和悬浮条也会跟着乱跑。
   ============================================================ */

/* ---------- 1. 长代码块：容器内滚动，不撑破页面 ---------- */
.cy-prose pre{
    display:block;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    margin:1.6em 0;
    padding:16px 18px;
    background:#0f172a;
    color:#e2e8f0;
    border-radius:10px;
    font-size:13.5px;
    line-height:1.7;
}
/* pre 里的 code 不要再套一层灰底，也绝对不要自动换行（缩进会被吃掉） */
.cy-prose pre code{
    display:inline;
    padding:0;
    background:none;
    color:inherit;
    font-size:inherit;
    white-space:pre;
}
.cy-prose code{
    padding:2px 6px;
    background:#f1f5f9;
    border-radius:5px;
    font-size:.92em;
    word-break:break-word;
}

/* ---------- 2. 第三方嵌入：视频 / 地图 / oEmbed ---------- */
.cy-prose iframe,
.cy-prose video,
.cy-prose embed,
.cy-prose object,
.cy-prose .wp-block-embed iframe,
.cy-prose .wp-embedded-content{
    max-width:100%;
    border:0;
}
.cy-prose iframe,
.cy-prose video{height:auto}
.cy-prose figure{margin:1.6em 0;max-width:100%}
.cy-prose figcaption{font-size:13.5px;color:var(--cy-text-muted);text-align:center;margin-top:10px}

/* ---------- 3. 多列表格：桌面走真正的表格布局，窄屏才降级为表内横滚 ----------
   ⚠ 这个坑已经复发三次（v2.2.25 / v2.2.26 / v2.2.27 各打过一次局部补丁），
   v2.2.28 收回根因。**动手改这段之前请把下面四件事读完**，否则必然第四次复发。

   ① 根因 = display:block 让列收缩到内容宽度。
      <table> 一旦被设成 display:block，它就退出表格布局算法，浏览器改给它生成
      一个 shrink-to-fit 的匿名表格盒。结果是：**外框仍然跟着 width:100% 撑满
      容器，内部的列却只按内容宽度排布**——桌面端就表现为「表格右边一大片空白」。
      这条规则原先不在任何 @media 里，桌面一并生效，所以三处同时中弹。
      实测右侧空白：订单明细表 708px（订单 2029 / 1280 视口：表格宽 1090px、
      列内容最右只到 477px）、购物车表 600px、我的订单表 385px。

   ② 桌面必须是 display:table（这里写成「不声明 display」，回落到 <table> 的
      初始值 table，效果相同且不会被后面的规则误伤）。
      只有真正的表格布局才会按容器宽度自动分配列宽、把列铺满，右侧空白归零
      （同一订单实测 708px → 1px）；表头 th 也回到 table-cell，与表体列宽对齐。
      光写 width:100% 补不回来——外框本来就已经 100%，缺的是**列宽算法**。

   ③ 窄屏为什么还要留着 display:block + overflow-x:auto。
      多列表格（六列）的 min-content 宽度远超手机视口。若窄屏仍是 display:table，
      列压不到 min-content 以下，表格就会顶穿容器，进而把**整个 document 撑出
      横向滚动条**（实测容器 300px、六列表格：只写 width:100% → 表格宽 688px，
      整页跟着横滚；改成 block + overflow-x:auto → 表格宽 300px，滚动发生在
      表内，th 仍是 table-cell，表头语义与渲染都不受影响）。

   ④ 所以只有一种正确写法：全局保留真正的表格布局，把
      display:block / overflow-x:auto / -webkit-overflow-scrolling 一起关进
      @media (max-width:768px)（768 是本文件与 WooCommerce 侧共用的移动端断点）。
      把 display:block 提回全局 → 桌面空白复发；删掉窄屏这一块 → 手机整页
      横滚复发。两头都不能动，测试 tests/frontend-guards-test.php 按媒体查询
      分别钉住了这两侧。 */
.cy-prose table{
    width:100%;
    max-width:100%;
    border-collapse:collapse;
    margin:1.6em 0;
    font-size:15px;
}
@media (max-width:768px){
    .cy-prose table{
        display:block;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }
}
.cy-prose thead{background:#f8fafc}

/* ---------- 4. 超长不可断词（URL、英文长串、订单号） ---------- */
.cy-prose{overflow-wrap:anywhere}
.cy-prose h2,.cy-prose h3,.cy-prose h4{overflow-wrap:break-word}

/* ---------- 5. 页头：品牌区可收缩，窄屏不撑破 ----------
   实测 375px：品牌字标 + 咨询按钮 + 汉堡按钮合计 414px，
   超出视口 39px，右侧按钮直接被裁掉一半。 */
.cy-header-brand{flex:0 1 auto;min-width:0}
.cy-brand{min-width:0;max-width:100%}
.cy-brand-text{
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* ---------- 6. 移动端细节 ---------- */
@media (max-width:640px){
    /* 页头：收紧间距与 Logo 高度，腾出横向空间 */
    .cy-header-inner{gap:12px}
    .cy-header-actions{gap:8px}
    .cy-brand .cy-brand-logo{height:32px}
    .cy-header-actions .cy-btn{padding:9px 14px;font-size:13.5px}

    /* iOS Safari：输入框字号小于 16px 时，聚焦会自动放大整个页面，
       用户点一下搜索框，页面就"炸"开且不会自动缩回。 */
    .cy-field input,
    .cy-field textarea,
    .cy-search-form input,
    .cy-search-form button,
    .cy-comment-form input,
    .cy-comment-form textarea{font-size:16px}

    /* 版权行：公司名较长时 nowrap 会把页脚撑出屏幕 */
    .cy-copyright{white-space:normal}

    /* 触控目标：分享按钮 34px 高偏小，手机上补到 40px */
    .cy-share-btn{height:40px;padding:0 14px}
}

/* 竖屏手机：Logo 与字标同时出现必然挤爆页头，
   有 Logo 时直接隐去字标（Logo 里已经有公司名）。 */
@media (max-width:480px){
    .cy-brand--logo .cy-brand-text,
    .cy-brand--both .cy-brand-text{display:none}
}

/* ---------- 7. 图片加载前的占位，避免内容跳动（CLS） ----------
   模板里有 37 处 <img> 没有 width/height（图片来自主题设置里的 URL，
   拿不到附件元数据），其中这些容器的尺寸完全由图片决定，
   图片下载完成前高度是 0，加载瞬间把下方内容整体推开。 */
.cy-trust-item{min-height:76px}     /* 上下 padding 24px + 标识图 52px */
.cy-footer-logo{min-height:36px}

/* ---------- 8. 深色底上的键盘焦点 ----------
   --cy-primary(#2563eb) 对 #0f172a 的对比度只有 2.1:1，
   深色区块里按 Tab 几乎看不出焦点在哪。 */
.cy-hero :focus-visible,
.cy-case-hero :focus-visible,
.cy-cta :focus-visible,
.cy-footer :focus-visible{outline-color:#fff}

/* ---------- 9. 触屏不要残留 hover 位移 ----------
   手机上点过按钮后 :hover 会一直粘住，按钮保持"浮起"状态，
   卡片也保持上移，看起来像坏了。 */
@media (hover:none){
    .cy-btn:hover,
    .cy-btn-primary:hover,
    .cy-backtop:hover,
    .cy-matrix-item:hover,
    .cy-case-card:hover,
    .cy-news-card:hover,
    .cy-post-card:hover,
    .cy-about-honor:hover,
    .cy-product-card:hover,
    .cy-share-btn:hover{transform:none}
}

/* ============================================================
   主导航折叠断点：1080px（第 9 轮修正）
   ------------------------------------------------------------
   问题：折叠断点原本挂在 900px，901–1160px 这一段（iPad 横屏、
   1366 笔记本开侧栏、浏览器不全屏）横向菜单会挤进品牌区。
   7 个菜单项约需 610px，此时可用只有 335–500px，flex 末端对齐
   会把多出来的部分全甩到左边，压在 Logo 和公司名上。
   实测 901px：品牌字标与「客户案例」重叠。

   位置说明：必须放在文件末尾。媒体查询不加权，
   .cy-nav-extra / .cy-header-tel 的基础样式定义在中段，
   写在它们前面会被后面的基础规则覆盖（display 不生效）。
   ============================================================ */
@media (max-width:1080px){
    .cy-nav-toggle{display:flex}
    .cy-nav{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--cy-border);box-shadow:0 12px 24px rgba(15,23,42,.08);display:none;padding:12px 20px 20px;max-height:75vh;overflow-y:auto}
    .cy-nav.is-open{display:block}
    .cy-nav-list{flex-direction:column;align-items:stretch;gap:2px}
    .cy-nav-list a{padding:12px 10px;border-radius:8px}
    .cy-nav-list .sub-menu{position:static;box-shadow:none;border:0;padding-left:14px;opacity:1;visibility:visible;transform:none;display:none}
    .cy-nav-list li.is-open>.sub-menu{display:block}

    /* 折叠态下展示「快速联系」，并让出电话占的横向空间 */
    .cy-nav-extra{display:block}
    .cy-header-actions .cy-header-tel{display:none}
}

/* 1081–1240px：桌面导航仍显示，但必须压紧才放得下
   7 项菜单压缩后约 528px，此时可用约 560–900px */
@media (min-width:1081px) and (max-width:1240px){
    .cy-header-inner{gap:16px}
    .cy-header-actions .cy-header-tel{display:none}
    .cy-nav-list a{padding:10px 10px;font-size:14px}
}

/* 打印：代码块的黑底在纸上不会输出背景色，
   深色字会把代码印成一片空白，这里换回浅底黑字。 */
@media print{
    .cy-prose pre{background:#f1f5f9;color:#000;border:1px solid #cbd5e1}
    .cy-prose pre code{color:#000}
}

/* 全站隐藏视觉面包屑（保留 BreadcrumbList 结构化数据，SEO 不受影响） */
.cy-crumb { display: none !important; }

/* ============================================================
   桌面端 tel: 链接的可见性提示（v2.2.24）
   main.js 会把桌面端 tel: 点击改为「复制号码 + toast 提示」，
   这里用 copy 光标 + 悬停下划线提前告诉用户它的行为，避免
   「看起来是普通链接、点了却不跳转」的困惑。
   只在精确指针（鼠标）设备生效，触屏上照常拨号、不需要提示。
   ============================================================ */
@media (hover:hover) and (pointer:fine){
    a[href^="tel:"]{cursor:copy}
    a[href^="tel:"]:hover{text-decoration:underline;text-underline-offset:3px}
}

/* ============================================================
   WebP 协商容器的布局中和（v2.4.0）
   inc/webp.php 会给配了 webp 的图套一层 <picture class="cy-webp">。
   <picture> 默认是 inline 元素，会凭空多一层盒子：原本
   <div class="flex"><img></div> 里的 img 是 flex 的直接子项，
   包一层后变成 picture 的子项 —— 卡片图会整片错位。
   display:contents 让 picture 在布局上「消失」，img 仍以原父级为参照，
   等于「结构变了、布局没变」。删掉这条规则 = 静默改版，别删。
   ============================================================ */
picture.cy-webp{display:contents}
