/* =========================================================
   common.css — 全站公共样式
   对应设计稿：蓝湖「桌面端」全部页面（基准宽度 1920px）
   包含：设计变量 / reset / 布局容器 / 顶部导航 / 页脚 /
         通用标题与按钮 / 弹层 / 回到顶部 / 滚动淡入淡出
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
    /* 色彩（取自设计稿标注值） */
    --color-primary: #0a1d45; /* 主色·深藏青（页头） */
    --color-primary-deep: #062b5a;
    --color-ink: #0a0665; /* 标题藏青 */
    --color-cream: #f8efe5; /* 页面底色·米白 */
    --color-cream-soft: #fdf8ef;
    --color-gold: #cfb073; /* 品牌金 */
    --color-gold-deep: #bb945b;
    --color-gold-dark: #bd8154;
    --color-brown: #8b5a2b;
    --color-olive: #739025; /* 橄榄绿面板 */
    --color-olive-soft: #949b41;
    --color-navy-panel: #00194d; /* 深藏青面板 / 按钮底色 */
    --color-text: #33383e;
    --color-muted: #a9a9a9;
    --color-border: #e8dfd0;
    --color-white: #fff;
    /* 尺寸 */
    --design-width: 1920;
    --header-height: 104px;
    --radius-sm: 2px;
    --radius-md: 20px;
    --transition: 0.25s ease;
    /* 字体栈（全站系统字体，不引入外部字体文件） */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
}

/* ---------- 2. reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 锚点滚动时自动避开吸顶导航（原生实现，无需 JS） */
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-width: 1280px;
    background-image: url("../images/common-backage.jpg");
    background-size: cover;
    /*background-attachment: fixed;*/
}

/* ---------- 3. 页面缩放（1920 设计稿等比缩放） ----------

   设计稿为固定 1920 宽的整版稿：视口窄于 1920 时整页等比缩放，

   让所有页面（含公共 header）在任意视口下的呈现比例完全一致。

   缩放区间：最大 1920（1:1 显示）；最小 1280

   （视口低于 1280 时按 1280 布局并出现横向滚动条）。

   关于横向滚动条：
   100vw 含纵向滚动条宽度（通常 15px），直接用它算缩放比会让整页
   比可视区宽出 15px，所有页面都会出现横向滚动条。因此：
     · 有 JS 时由 main.js 按"可视区实际宽度"写入 --page-zoom，
       缩放后整页正好等于可视区宽度，不裁切、也没有横向滚动条；
     · 无 JS 时退回 100vw 公式，并由下方 overflow-x 兜底隐藏横向滚动条。 */
@supports (width: calc(tan(atan2(1px, 1px)) * 1px)) {
    body {
        width: max(1920px, 100%);
        zoom: var(--page-zoom, min(1, tan(atan2(max(100vw, 1280px), 1920px))));
    }
}

/* 视口 ≥ 1280 时不出现横向滚动条；
   低于 1280 仍按 1280 布局，允许出现横向滚动条（见上方说明） */
@media (min-width: 1280px) {
    html {
        overflow-x: hidden;
    }
}

/* 整页缩放后 fixed 元素的百分比高度会按文档高度解析，弹层改由 inset 撑满视口 */
.certificates-modal {
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
ul,
ol,
dl {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    /*max-width: 100%;*/
    height: auto;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 3. 页面容器 ---------- */
/* 页面外框：1920 为设计基准，宽于 1920 居中留白 */
.page {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: clip;
}

/* 通用区块：整页自上而下用文档流排列 */
.section {
    position: relative;
    width: 100%;
}

.section img {
    width: 100%;
}

/* 区块内部画布：设计稿 1920 宽坐标系，横向尺寸一律用百分比 */
.canvas {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* 设计稿切图（无障碍隐藏的装饰图） */
.art {
    position: absolute;
    display: block;
    max-width: none;
}

/* ---------- 4. 顶部导航 ---------- */

/* ---------- 4. 顶部导航（全站统一，仅此一处实现） ----------

   坐标系：1920 设计稿（页面整体等比缩放，详见上文「页面缩放」）

   宽度约束：最大 1920（超出时内容居中，背景通栏），最小 1280 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    min-width: 1280px;
    background: var(--color-primary);
}

/* 保留类名以兼容旧样式引用（滚动阴影已改为常驻） */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1920px;
    min-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

.brand {
    display: block;
    flex: 0 0 auto;
    width: 131px; /* 131 / 1920 */
    margin-right: 20px;
}

.brand img {
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.1em; /* 40px @19px 字号 */
    height: var(--header-height);
    white-space: nowrap;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--header-height);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--header-height);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #f8f4eb;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-gold);
}

.nav-link.is-active {
    color: #efab56;
}

.nav-link.is-active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 21px;
    width: 50%;
    height: 2px;
    background: var(--color-gold);
}

/* 二级菜单：hover 淡入 + 下滑 */
.dropdown {
    position: absolute;
    top: 92px;
    left: 50%;
    min-width: 190px;
    padding: 10px 0;
    background: #0c2452;
    border: 1px solid rgba(207, 176, 115, 0.3);
    box-shadow: 0 18px 36px rgba(2, 10, 28, 0.35);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.dropdown a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: #e9e1d2;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
    background: rgba(207, 176, 115, 0.12);
    color: var(--color-gold);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown--wide {
    min-width: 210px;
}

/* ---------- 5. 通用标题 / 按钮 ---------- */
.section-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-ink);
}

.section-title .art {
    position: static;
    width: 100%;
    height: auto;
}

.title-rule {
    display: block;
    width: 66px;
    height: 2px;
    background: var(--color-gold);
}

/* 主体标题组（标题 + 金色分隔线 + 说明）——产品系列页共用
   页面仅需覆盖 --head-color 即可适配各自的主色 */
.head-title {
    font-size: 62.5px;
    line-height: 1.16;
    color: var(--head-color, var(--color-navy-panel));
}

.head-title span {
    display: block;
    margin-top: 8px;
    font-size: 40px;
    font-weight: 700;
}

.head-rule {
    display: block;
    width: 86px;
    height: 6px;
    margin: 22px 0 28px;
    background-color: var(--color-gold);
}

.head-desc {
    max-width: 1180px;
    font-size: 25.32px;
    line-height: 1.65;
    color: #000;
}

/* 更多箭头链接 */
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-gold-dark);
    transition: gap var(--transition), color var(--transition);
}

.more-link:hover {
    gap: 18px;
    color: var(--color-gold-deep);
}

/* 行动号召按钮：深藏青圆角 + 右侧箭头图标（全站复用） */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 208px;
    padding: 13px 26px;
    font-size: 22.99px;
    color: #fff;
    background-color: var(--color-navy-panel);
    border-radius: 24px;
    transition: background var(--transition);
}

.btn-pill img {
    width: 47px;
    height: auto;
    object-fit: contain;
}

.btn-pill:hover {
    color: #fff;
    background-color: #123478;
    text-decoration: none;
}

/* 首屏英雄区（产品系列 6 页共用）
   各页只需在自己的作用域内覆盖 --hero-top / --hero-bottom / --hero-left */
.page-hero__image {
    display: block;
    width: 100%;
}


/* ---------- 6. 页脚 ---------- */
/* 6.1 基础组件（各版式共用） */
.site-footer {
    position: relative;
    background-color: var(--color-gold);
}

.footer-photo {
    display: block;
    width: 100%;
}

/* 页脚：底图 + 导航 + 底部版权 */
.site-footer--nav {
    display: flex;
    flex-direction: column;
    min-height: 1106px;
    overflow: hidden;
    background: #fbf5ef;
}

.site-footer--nav .footer-nav-icon {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 504px;
    width: 1920px;
    height: 482px;
    pointer-events: none;
}

.site-footer--nav .footer-left {
    position: absolute;
    top: 100px;
    left: 224px;
    width: 420px;
}

.site-footer--nav .footer-logo {
    display: block;
    width: 290px;
    margin: 0 auto;
}

.site-footer--nav .footer-slogan {
    font-size: 30px;
    font-weight: bold;
    color: var(--color-gold);
    text-align: center;
    padding: 30px 0;
}

.site-footer--nav .footer-slogan span:nth-child(1) {
    color: #00194a;
}

.site-footer--nav .footer-slogan-rule-icon {
    display: block;
    width: 300px;
    margin: 0 auto;
}

.site-footer--nav .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.site-footer--nav .footer-social a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer--nav .footer-social a:hover {
    opacity: 0.8;
}

.site-footer--nav .footer-social img {
    width: 60px;
}

.site-footer--nav .footer-social span {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    margin-top: 10px;
}

/* 页脚导航：左侧品牌区与右侧栏目同行 */
.site-footer--nav .footer-nav {
    display: flex;
    align-items: flex-start;
    /*justify-content: flex-end;*/
    padding: 60px 0;
    padding-left: 30%;
}

.site-footer--nav .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 40px 0 20px;
    border: 0;
    border-left: 1px solid var(--color-border);
    height: 320px;
}

.footer-nav .footer-col:first-child {
    border-left: none !important;
}

.site-footer--nav .footer-col h3 {
    margin: 0 0 18px;
    font-size: 30px;
    color: var(--color-primary);
    font-weight: 500;
}

.site-footer--nav .footer-col h3::after {
    content: "";
    display: block;
    width: 43px;
    height: 2px;
    margin-top: 13px;
    background: var(--color-gold);
}

.site-footer--nav .footer-col a {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 40px;
    color: #141414;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer--nav .footer-col:not(.footer-col--contact) a::before {
   /* content: "·";*/
    margin-right: 2px;
    color: #9a7a45;
}

.site-footer--nav .footer-col a:hover {
    color: var(--color-gold-dark);
    transform: translateX(3px);
}

.site-footer--nav .contact-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 340px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer--nav .contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    font-size: 18px;
    line-height: 30px;
    color: #141414;
    margin-bottom: 10px;
}

.site-footer--nav .contact-list li img {
    width: 32px;
}

/* 注：页脚多栏目 */
.footer-bottom {
    height: 121px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 170px; /* 右 172 / 左 103 */
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 17px;
}

.footer-legal {
    display: flex;
    font-size: 17px;
}

.footer-legal a + a::before {
    content: "|";
    margin: 0 40px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal a:hover {
    color: var(--color-gold);
}

/* ---------- 8. 回到顶部 ---------- */
.back-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 900;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(4, 12, 28, 0.28);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
    background var(--transition);
}

/* 无 JS 环境下保持可见，滚动到顶部后由浏览器原生锚点返回 */
.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--color-gold-deep);
}

.back-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 页面内锚点占位（不占布局高度） */

/* ---------- 9. 滚动淡入淡出 ----------

   已改由 AOS 实现（assets/libs/aos.css + assets/js/main.js），

   页面元素通过 data-aos / data-aos-delay 属性声明动画，无需额外类名。 */

/* 可见性兜底：aos.css 会把 [data-aos^=fade] 设为 opacity:0，
   依赖 JS 成功初始化 AOS（元素被加上 .aos-init）才会播放动画。
   若脚本未加载 / 初始化失败 / 被拦截，大模块将永久透明，
   因此：未进入 .aos-init 状态的元素一律保持可见，
   AOS 初始化成功后（.aos-init）再交由 AOS 控制显隐。 */
[data-aos^="fade"]:not(.aos-init) {
    opacity: 1;
    transform: none;
}

/* ---------- 10. 图片缺失兜底 ----------

   设计稿中的区块标题、标签为图片素材；素材缺失时浏览器不渲染任何内容，
   区块标题会整块消失（页面上"看不到"）。
   main.js 检测到图片加载失败后，会用 alt 文本生成 .img-alt 文字块，
   下面给出与原图等效的呈现样式。 */
img.is-missing {
    display: none;
}

.img-alt {
    display: inline-block;
    line-height: 1;
    font-weight: 700;
    color: inherit;
    vertical-align: middle;
}

h1.is-alt-title,
h2.is-alt-title,
h3.is-alt-title,
h4.is-alt-title {
    line-height: 1.15;
}

.anchor-target {
    display: block;
    height: 0;
    overflow: hidden;
}

/** 分页器 */
.pager-section .pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.pager-section .pager a {
    padding: 4px 10px;
    color: #FFFFFF;
    background-color: #CCCCCC;
}

.pager-section .pager span,
.pager-section .pager a:hover {
    padding: 4px 10px;
    background-color: #3b7de9;
    color: #FFFFFF;
}

/* ---------- 分页（设计稿 4540–4600） ---------- */
.news-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    /* 设计稿按钮组 160–572，相对居中左移 9 */
    padding: 10px 9px 10px 0;
}

.news-pager__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 31px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
}

/* 上一页：灰底白字 */
.news-pager__btn--prev {
    background: #bababa;
}

/* 下一页：白底深字 + 描边 */
.news-pager__btn--next {
    border: 1px solid #8a8a8a;
    background: #ffffff;
    color: #1a1a1a;
}

.toggle-hidden {
    display: none !important;
}