/* ============================================================
   QETUPA — 官网首页样式 (Cube 风格改版, 自包含)
   配色: 科技蓝 #1B66FF + 深紫渐变; 白底大留白, 圆角卡片
   结构: 变量 → 基础 → 按钮 → 导航 → Hero → 产品段/网格
         → 核心技术 → 新闻 → 关于+认证 → 联系 → 页脚 → 弹窗 → 动效 → 响应式
   ============================================================ */
@charset "utf-8";

/* ------------------------------ 变量 ------------------------------ */
:root {
    --primary: #1b66ff;
    --primary-dark: #0f4fd6;
    --primary-soft: #e8f0ff;
    --accent: #6a5cff;

    --ink: #14161f;
    --ink-2: #3c4152;
    --muted: #6b7186;

    --line: #e7e9f2;
    --bg-soft: #f5f6fa;
    --white: #ffffff;

    --hero-c1: #150f33;
    --hero-c2: #4326b8;
    --footer-bg: #12141f;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-btn: 999px;

    --shadow-sm: 0 2px 10px rgba(20, 22, 31, .06);
    --shadow-md: 0 10px 30px rgba(20, 22, 31, .10);
    --shadow-lg: 0 24px 60px rgba(20, 22, 31, .16);
    --shadow-primary: 0 10px 26px rgba(27, 102, 255, .32);

    --font: "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
    --nav-h: 72px;
}

/* ------------------------------ 基础 ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font-family: inherit; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.section-title {
    position: relative;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .5px;
}

.section-title .en {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--primary);
    opacity: .55;
    white-space: nowrap;
}

.section-desc { margin-top: 30px; color: var(--muted); font-size: 16px; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    padding: 13px 34px;
    border-radius: var(--radius-btn);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #3f8cff);
    box-shadow: var(--shadow-primary);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(27, 102, 255, .42); }

.btn--ghost {
    color: var(--primary);
    background: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(27, 102, 255, .55);
}
.btn--ghost:hover { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }

.btn--outline-light {
    color: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .16); }

.btn--ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 22, 31, .3); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--block { width: 100%; }

/* ------------------------------ 导航栏 ------------------------------ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    transition: box-shadow .25s ease, background .25s ease;
}

.navbar.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .97); }

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand__logo { display: block; height: 40px; width: auto; }

.brand__logo--white { height: 30px; }

.brand__icon img { width: 40px; height: 40px; object-fit: contain; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__zh { font-size: 19px; font-weight: 800; letter-spacing: 1px; }

.brand__en { font-size: 10.5px; font-weight: 600; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 38px; }

.nav-menu a {
    position: relative;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 6px 0;
    transition: color .2s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-50%);
    transition: width .25s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active { color: var(--ink); }

.nav-menu a:hover::after,
.nav-menu a.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-btn);
    background: var(--bg-soft);
}

.lang-switch button {
    padding: 5px 14px;
    border-radius: var(--radius-btn);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: all .2s ease;
}

.lang-switch button.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }

.nav-toggle span {
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: all .25s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 16, 24, .5);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ------------------------------ Hero ------------------------------ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(92vh, 620px);
    padding: calc(var(--nav-h) + 40px) 0 80px;
    background: linear-gradient(120deg, var(--hero-c1), var(--hero-c2));
    overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }

.hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease, transform 7s linear;
}

.hero__bg img.is-active { opacity: 1; transform: scale(1); }

/* 每张轮播图的取景微调: 窄屏裁剪时对准产品主体, 保证产品完整 */
.hero__bg img:nth-child(1) { object-position: 60% 50%; }
.hero__bg img:nth-child(2) { object-position: 55% 50%; }

/* 左侧压暗渐变, 保证文案可读 */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(13, 10, 38, .88) 0%, rgba(13, 10, 38, .55) 42%, rgba(13, 10, 38, .12) 78%),
        linear-gradient(0deg, rgba(13, 10, 38, .55), transparent 32%);
}

.hero__inner {
    position: relative;
    z-index: 2;
}

.hero__tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: var(--radius-btn);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    letter-spacing: 2px;
}

.hero__title {
    margin: 26px 0 18px;
    font-size: clamp(40px, 6.4vw, 76px);
    font-weight: 900;
    line-height: 1.16;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}

.hero__title .accent {
    background: linear-gradient(90deg, #6ea8ff, #b28bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    max-width: 560px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(15px, 1.6vw, 18px);
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dots button {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-btn);
    background: rgba(255, 255, 255, .4);
    transition: all .3s ease;
}

.hero__dots button.is-active { width: 30px; background: var(--white); }

.hero__scroll {
    position: absolute;
    right: 40px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    letter-spacing: 2px;
}

.hero__scroll .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 12px;
    position: relative;
}

.hero__scroll .mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .8);
    transform: translateX(-50%);
    animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { opacity: 1; transform: translate(-50%, 0); }
    60% { opacity: 0; transform: translate(-50%, 9px); }
}

/* ------------------------------ 产品系列 Tab 切换 ------------------------------ */
.ptabs { margin-bottom: 96px; }

.ptabs__nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.ptabs__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 200px;
    padding: 14px 36px;
    border-radius: var(--radius-btn);
    background: var(--white);
    box-shadow: inset 0 0 0 1.5px var(--line);
    transition: all .25s ease;
}

.ptabs__btn span { font-size: 17px; font-weight: 800; color: var(--ink-2); letter-spacing: .5px; }

.ptabs__btn small { font-size: 12px; color: var(--muted); letter-spacing: .5px; }

.ptabs__btn:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }

.ptabs__btn:hover span { color: var(--primary); }

.ptabs__btn.is-active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--shadow-primary);
}

.ptabs__btn.is-active span { color: var(--white); }

.ptabs__btn.is-active small { color: rgba(255, 255, 255, .85); }

.ptabs__panel { display: none; }

.ptabs__panel.is-active {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 60px;
    align-items: center;
    animation: tabIn .45s ease;
}

@keyframes tabIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.ptabs__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-soft);
}

.ptabs__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.ptabs__media:hover img { transform: scale(1.04); }

.ptabs__media .prod-card__badge { left: 18px; top: 18px; }

.ptabs__info h3 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.25; }

.ptabs__en {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ptabs__tag { margin-top: 14px; color: var(--primary); font-size: 16px; font-weight: 700; }

.ptabs__price {
    display: inline-flex;
    align-items: baseline;
    margin-top: 18px;
    padding: 8px 22px;
    border-radius: var(--radius-btn);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .5px;
}

.ptabs__price small { font-size: 13px; font-weight: 600; margin-left: 2px; }

.ptabs__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-top: 26px;
}

.ptabs__specs li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14.5px; }

.ptabs__specs .tick {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 2px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.ptabs__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.prod-card__price {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.prod-card__price small { font-size: 12px; font-weight: 600; }

/* ------------------------------ 全系产品网格 ------------------------------ */
.home-prods__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.home-prods__title h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }

.home-prods__more {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    transition: opacity .2s ease;
}

.home-prods__more:hover { opacity: .75; }

.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.prod-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.prod-card__media { position: relative; overflow: hidden; }

.prod-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .5s ease;
}

.prod-card:hover .prod-card__media img { transform: scale(1.05); }

.prod-card__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.prod-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 24, .72));
    color: rgba(255, 255, 255, .85);
    font-size: 12.5px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity .3s ease;
}

.prod-card:hover .prod-card__overlay { opacity: 1; }

.prod-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 20px;
}

.prod-card__series {
    align-self: flex-start;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.prod-card__name { font-size: 17px; font-weight: 700; line-height: 1.4; }

.prod-card__en {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

.prod-card__type {
    padding: 2px 10px;
    border-radius: var(--radius-btn);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.prod-card__view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    transition: color .2s ease, gap .2s ease;
}

.prod-card__view svg { width: 16px; height: 16px; }
.prod-card:hover .prod-card__view { color: var(--primary); gap: 10px; }

.home-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.home-pager__info { margin-right: 8px; color: var(--muted); font-size: 13.5px; }

.home-pager__btn {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    transition: all .2s ease;
}

.home-pager__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }

.home-pager__btn.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

.home-pager__btn:disabled { opacity: .4; cursor: default; }

/* ------------------------------ 核心技术 ------------------------------ */
.tech-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 44px 0;
}

.tech-item + .tech-item { border-top: 1px dashed var(--line); }

.tech-item__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.tech-item__media img { width: 100%; aspect-ratio: 9 / 6.4; object-fit: cover; transition: transform .5s ease; }

.tech-item:hover .tech-item__media img { transform: scale(1.04); }

.tech-item--reverse .tech-item__media { order: 2; }
.tech-item--reverse .tech-item__body { order: 1; text-align: right; }

.tech-item__num {
    display: block;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .35;
}

.tech-item__body h3 { margin-top: 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }

.tech-item__body .en {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .7;
}

.tech-item__body p { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ------------------------------ 新闻动态 ------------------------------ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.news-card__media { overflow: hidden; }

.news-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }

.news-card:hover .news-card__media img { transform: scale(1.05); }

.news-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }

.news-card__date {
    align-self: flex-start;
    padding: 2px 12px;
    border-radius: var(--radius-btn);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
}

.news-card__body h4 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__body p {
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__more {
    margin-top: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.news-card__more:hover { opacity: .75; }

/* ------------------------------ 关于我们 ------------------------------ */
.about {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}

.about__body h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }

.lead-en {
    display: block;
    margin: 6px 0 22px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: .6;
}

.about__body p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; text-align: justify; }

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.about__stat b {
    display: block;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about__stat > span { color: var(--muted); font-size: 14px; }

.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 品质认证 */
.cert-block { padding-top: 8px; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.section--soft .cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.cert-card__media { position: relative; overflow: hidden; }

.cert-card__media img { width: 100%; height: 100%; object-fit: cover; }

.cert-card__body { padding: 16px 18px 18px; }

.cert-card__body h4 { font-size: 15.5px; font-weight: 700; }

.cert-card__body p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ------------------------------ 联系我们 ------------------------------ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.contact-info h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }

.contact-info .en {
    display: block;
    margin: 6px 0 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    opacity: .6;
}

.contact-info > p { color: var(--muted); }

.contact-list { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }

.contact-list li { display: flex; align-items: flex-start; gap: 16px; }

.contact-list .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-list .ico svg { width: 22px; height: 22px; }

.contact-list .label { display: block; color: var(--muted); font-size: 13px; }

.contact-list .value { display: block; font-weight: 600; font-size: 15.5px; }

.contact-form {
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row { margin-bottom: 20px; }

.form-row label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }

.form-row .req { color: #ff4d5e; margin-left: 2px; }

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    background: var(--bg-soft);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s ease, background .2s ease;
}

.form-row textarea { min-height: 110px; resize: vertical; }

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.form-error { display: none; margin-top: 6px; color: #ff4d5e; font-size: 13px; }

.form-row.is-error input,
.form-row.is-error textarea { border-color: #ff4d5e; }

.form-row.is-error .form-error { display: block; }

.form-msg { display: none; margin-top: 14px; text-align: center; font-size: 14px; }

.form-msg.is-ok { display: block; color: #12b76a; }

.form-msg.is-error { display: block; color: #ff4d5e; }

/* ------------------------------ 页脚 ------------------------------ */
.footer { background: var(--footer-bg); color: rgba(255, 255, 255, .82); }

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr 1.1fr;
    gap: 40px;
    padding: 64px 0 48px;
}

.footer__brand .brand__zh { color: var(--white); }
.footer__brand .brand__en { color: rgba(255, 255, 255, .55); }

.footer__brand p { margin-top: 18px; color: rgba(255, 255, 255, .6); font-size: 14px; max-width: 320px; }

.footer-tel { display: block; margin-top: 18px; }

.footer-tel .label { display: block; color: rgba(255, 255, 255, .5); font-size: 12.5px; letter-spacing: 1px; }

.footer-tel .num {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #6ea8ff, #b28bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer__col h5 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 12px; }

.footer__col a,
.footer__col li { color: rgba(255, 255, 255, .62); font-size: 14px; transition: color .2s ease; }

.footer__col a:hover { color: var(--white); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}

.footer__bottom .sep { opacity: .4; }

.footer__bottom a:hover { color: var(--white); }

/* ------------------------------ 图片放大弹窗 ------------------------------ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(10, 11, 18, .88);
    backdrop-filter: blur(6px);
    opacity: 0;
    /* 关闭态不可见且不拦截页面点击(hidden 属性会被 display:flex 覆盖) */
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox__figure { max-width: min(1080px, 92vw); text-align: center; }

.lightbox__figure img {
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox__cap { margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }

.lightbox__close {
    position: absolute;
    right: 26px;
    top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    transition: background .2s ease;
}

.lightbox__close:hover { background: rgba(255, 255, 255, .24); }

.lightbox__close svg { width: 20px; height: 20px; }

/* ------------------------------ 滚动出现动效 ------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1024px) {
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-item { gap: 36px; }
    .about { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 767px) {
    .section { padding: 68px 0; }

    .brand__logo { height: 34px; }
    .brand__logo--white { height: 26px; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        right: 0;
        z-index: 95;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: min(78vw, 320px);
        height: calc(100vh - var(--nav-h));
        padding: 18px 8px;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow-y: auto;
    }

    .nav-menu.is-open { transform: translateX(0); }

    .nav-menu a { padding: 15px 22px; font-size: 16px; border-radius: var(--radius-sm); }

    .nav-menu a::after { display: none; }

    .nav-menu a:hover, .nav-menu a.is-active { background: var(--primary-soft); }

    .nav-toggle { display: flex; }

    /* 移动端: 文案沉底, 避让轮播图上部主体产品; 底部渐变遮罩保证可读性 */
    .hero {
        min-height: 86vh;
        align-items: flex-end;
        padding-bottom: 118px;
    }
    .hero::before {
        background:
            linear-gradient(0deg, rgba(13, 10, 38, .92) 0%, rgba(13, 10, 38, .62) 42%, rgba(13, 10, 38, .18) 72%),
            linear-gradient(90deg, rgba(13, 10, 38, .55) 0%, rgba(13, 10, 38, .2) 60%, rgba(13, 10, 38, .05) 100%);
    }
    .hero__btns { margin-top: 28px; }
    .hero__btns .btn { flex: 1; min-width: 0; }
    .hero__tag { font-size: 12.5px; padding: 7px 14px; letter-spacing: 1px; white-space: nowrap; max-width: calc(100% - 8px); overflow: hidden; text-overflow: ellipsis; }
    .hero__scroll { display: none; }

    .ptabs { margin-bottom: 64px; }
    .ptabs__nav { gap: 10px; margin-bottom: 32px; }
    .ptabs__btn { flex: 1; min-width: 0; padding: 10px 14px; }
    .ptabs__btn small { display: none; }
    .ptabs__panel.is-active { grid-template-columns: 1fr; gap: 32px; }
    .ptabs__specs { grid-template-columns: 1fr; gap: 10px; }
    .ptabs__btns .btn { flex: 1; min-width: 0; }

    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .prod-card__body { padding: 14px 14px 16px; }

    .tech-item { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
    .tech-item__media img { aspect-ratio: 4 / 3; }
    .tech-item--reverse .tech-item__media { order: 0; }
    .tech-item--reverse .tech-item__body { text-align: left; }

    .news-grid { grid-template-columns: 1fr; }

    .about__stats { gap: 10px; }

    .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

    .contact-form { padding: 26px 20px; }

    .footer__top { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
}

@media (max-width: 460px) {
    .prod-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .hero__title { letter-spacing: 0; }
    .brand__en { display: none; }
}
