/*
Theme Name: Huayan Welding
Theme URI: https://www.huayanwelding.com
Author: Huayan Welding
Author URI: https://www.huayanwelding.com
Description: Huayan Welding Equipment Co., Ltd. official website theme. Automated PTA overlay, SAW seam welding, laser cladding and robotic welding machines for valve, oil & gas and pressure vessel industries. Export to 38+ countries.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: business, manufacturing, welding, responsive, custom-menu, custom-logo, featured-images, custom-background
Text Domain: huayan-welding
*/

@import url('assets/css/style.css');

/* ===========================
   CUSTOM LOGO · 自适应样式
   源图 300×300，按页眉/页脚容器高度限制缩放
   =========================== */

/* 页眉：导航栏高 72px，logo 最大高度 48px（留上下 padding），宽度自适应保持比例 */
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-header .brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    border: none;
}
.site-header .brand .custom-logo {
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 48px;
    object-fit: contain;
    /* 透明背景 logo 和导航栏更协调 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 页眉：Logo 右侧的公司名称文本（可独立自定义，见后台"外观 → 自定义 → 站点身份"） */
.site-header .brand .brand-text-wrap {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1.15;
}
.site-header .brand .brand-site-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    color: var(--c-title);
    letter-spacing: -0.01em;
    text-decoration: none;
    line-height: 1.15;
    transition: color .2s;
}
.site-header .brand .brand-site-title:hover {
    color: var(--c-primary);
}
.site-header .brand .brand-site-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-muted);
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
}

/* 无自定义 logo 时的 fallback 样式：保持原有文字品牌外观 */
.site-header .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--c-title);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-header .brand-logo {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--c-primary), #3a7bff);
    color: #fff; display: flex; align-items: center; justify-content: center;
}

/* 页脚：品牌 Logo 放大显示（页眉保持 48px 不变） */
.footer-about .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 14px;
    font-size: 20px;
}
.footer-about .brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-about .brand .custom-logo {
    display: block;
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
}
.footer-about .brand .brand-footer-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color .2s;
}
.footer-about .brand .brand-footer-title:hover {
    color: #FFD666;
}

/* 页脚简介段落 + 认证小字 */
.footer-about .footer-about-intro {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.footer-about .footer-cert {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin: 0 auto 0 0;
}
.footer-about .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}
.footer-about .brand-link .brand-logo {
    width: 36px; height: 36px; font-size: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--c-primary), #3a7bff);
    color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ===== 页脚社交（Follow Us）自定义样式 ===== */
/* 1. 官方内联 SVG 图标（currentColor 填色，随父级 <a> 的 color 变化） */
.footer-socials a svg.social-icon-svg {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    color: inherit; /* 继承 <a> 的白色/悬停橙色 */
    fill: currentColor;
}
/* 2. 用户用图片URL 作为图标时（SVG 不会走到这里） */
.footer-socials a img.social-icon-img {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    filter: brightness(0) invert(1); /* 适配白色图标 */
}
.footer-socials a:hover img.social-icon-img {
    filter: none; /* 悬停时恢复原图（彩色） */
}

/* 二维码弹窗：真实 QR 图片 */
.qr-pop .qr-img-photo {
    width: 140px;
    height: 140px;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-pop .qr-img-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
/* 纯文本弹窗样式 */
.qr-pop-text {
    text-align: left;
    padding: 12px 14px;
    width: 200px;
}
.qr-pop-text .qr-label {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--c-primary);
}
.qr-pop-text .qr-id {
    font-size: 12px;
    color: #666;
}

/* ===== 展会轮播海报图 ===== */
/* 有海报时：三层叠加方案，确保任意比例图片完整显示 + 没有白边
   第一层（底层）：模糊放大的同一张海报，填充满 4:3 卡片，无留白
   第二层（中层，.exhibit-slide-poster）：object-size:contain 完整显示图片的真实内容，不裁切任何部位
   第三层（顶层，::after）：暗色渐变遮罩，保证 overlay 文字对比度足够
*/
.exhibit-slide-img--photo {
    position: relative;
    overflow: hidden;
    background: #0a1d3a; /* 深色兜底，防止还没加载出时闪白 */
}
/* 第一层：模糊放大背景填充（解决 contain 后的留白/黑边问题） */
.exhibit-slide-img--photo::before {
    content: "";
    position: absolute;
    inset: -10%; /* 稍微放大一点，blur 的边缘不会露出来 */
    background-image: var(--poster-url);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(30px) saturate(1.35);
    opacity: .55;
    z-index: 1;
    pointer-events: none;
}
/* 第二层：完整显示主图，任何比例（1:1 方形 / 竖版 / 长横版 LOGO）都完整保留，不裁切 */
.exhibit-slide-img--photo .exhibit-slide-poster {
    position: absolute;
    inset: 0;
    background-image: var(--poster-url);
    background-size: contain;      /* 🔑 核心：contain = 完整显示图片全部内容，等比缩放，不裁切 */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
}
/* 第三层：暗色渐变遮罩（原有的 ::before 功能移到 ::after，因为 ::before 已被模糊背景占用） */
.exhibit-slide-img--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.78) 100%);
    z-index: 3;
    pointer-events: none;
}
/* ★ 如果你不喜欢模糊填充，想要纯白/纯黑留白，把上面 ::before 的整段删掉即可，就变成纯净的 contain + 留白 */
.exhibit-slide-img {
    position: relative;
}
/* 无海报 + 无表情：简洁渐变占位，去掉 44px 大表情字体和 flex 居中 */
.exhibit-slide-img--plain {
    display: block;
    font-size: 0;
    line-height: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.04) 0 2px,
            transparent 2px 14px
        ),
        radial-gradient(
            circle at 80% 15%,
            rgba(255,255,255,.14),
            transparent 55%
        );
}
.exhibit-slide-img--plain::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%);
}

/* ===== 6 大社媒上传 PNG 图标：22×22 方形内 contain，比例各异都不变形 ===== */
.footer-socials a img.social-icon-img,
.footer-socials a img.social-icon-img--uploaded {
    width: 22px;
    height: 22px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;     /* 🔑 核心：等比缩放到 22×22 内完整显示，不裁切、不拉伸变形 */
    object-position: center center;
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    transition: transform .2s ease, filter .2s ease;
}
.footer-socials a:hover img.social-icon-img,
.footer-socials a:hover img.social-icon-img--uploaded {
    transform: scale(1.08);
    /* 如果你上传的是「彩色官方图标」，悬停时不想加橙色光晕就把下一行删掉 */
    filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.55));
}

/* ===== WA/WeChat 二维码弹窗 <img>：防止非方形图片拉伸变形，保证扫码成功 ===== */
.qr-pop .qr-img-photo {
    padding: 6px;
    background: #fff;
    border: 1px solid #ececec;
}
.qr-pop .qr-img-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* 🔑 核心：长方形二维码图（带 LOGO / 文字广告）也会完整显示在 120×120 里 */
    object-position: center center;
    display: block;
    border-radius: 3px;
}

/* 展会卡片外链接：整站卡片（海报+文字）可点击跳官网 */
.footer-exhibit-carousel .exhibit-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
}
.footer-exhibit-carousel .exhibit-link:focus-visible {
    outline: 2px solid var(--c-primary, #ea580c);
    outline-offset: 2px;
}

.exhibit-slide-overlay {
    opacity: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.5) 70%, transparent 95%);
    z-index: 4;
    transition: opacity 0.3s ease;
}
.footer-exhibit-carousel:hover .exhibit-slide-overlay {
    opacity: 1;
}
.exhibit-slide-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
}
.exhibit-slide-info {
    font-size: 11px !important;
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
}
.exhibit-slide-date {
    font-size: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.5) !important;
    padding: 4px 10px !important;
}

/* 移动端：缩小 logo 高度，避免换行撑破导航 */
@media (max-width: 640px) {
    .site-header .brand .custom-logo { max-height: 40px; }
    .site-header .brand .brand-site-title { font-size: 15px; }
    .site-header .brand .brand-site-subtitle { font-size: 10.5px; }
    .site-header .brand-link { font-size: 17px; }
    .site-header .brand-link .brand-logo { width: 32px; height: 32px; }
    .footer-about .brand .custom-logo { width: 80px !important; height: 80px !important; }
    .footer-about .brand .brand-footer-title { font-size: 17px; }
}

/* ===========================
   行业卡片图片自适应样式
   =========================== */
.ind-nav-img {
    background: linear-gradient(135deg, #1e3a5f, #0c1929);
}
.ind-nav-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.ind-nav-card:hover .ind-nav-img img {
    transform: scale(1.05);
}

.inquiry-form {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.form-group { margin-bottom: 10px; }
.inquiry-form label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin-bottom: 5px;
    letter-spacing: .02em;
}
.inquiry-form label .req { color: #ff8a1f; margin-left: 2px; }
.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: rgba(255,255,255,.45);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: var(--c-cta);
    background: rgba(255,255,255,.14);
    box-shadow: 0 0 0 3px rgba(255,125,0,.2);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.inquiry-form select {
    width: 100%;
    padding: 9px 12px 9px 12px;
    padding-right: 36px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.inquiry-form select option {
    background: var(--c-primary-d);
    color: #fff;
}
.inquiry-form textarea {
    resize: vertical;
    min-height: 70px;
}

.contact-combo {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
}
.contact-combo .contact-type {
    padding-right: 30px;
}
.form-submit {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    background: var(--c-cta);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: var(--sh-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.form-submit:hover {
    background: var(--c-cta-hover);
    transform: translateY(-2px);
}
.form-note {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    text-align: center;
    line-height: 1.45;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}
.form-note .note-icon {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 1px;
}
.form-note .note-icon-svg {
    width: 12px;
    height: 12px;
    color: rgba(255,255,255,.5);
    flex-shrink: 0;
}

.cta-title {
    font-size: 30px; line-height: 1.2; font-weight: 800;
    margin: 0 0 12px; color: #fff;
}
.cta-sub {
    font-size: 14.5px; line-height: 1.7;
    color: rgba(255,255,255,.9); margin: 0 0 20px;
}
.cta-benefits {
    display: grid; gap: 7px; max-width: 620px; margin: 0 0 20px; text-align: left;
}
.cta-benefit { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.95); font-size: 13.5px; line-height: 1.5; }
.cta-benefit .check {
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--c-cta); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
}

@media (max-width: 960px) {
    .cta-grid { grid-template-columns: 1fr; gap: 26px; }
    .cta-left .cta-title,
    .cta-left .cta-sub { text-align: center; }
    .cta-left .cta-benefits { max-width: 100%; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-combo { grid-template-columns: 1fr; }
    .inquiry-form { padding: 18px; }
    .cta-title { font-size: 24px; }
}

.contact-form-box .contact-form input.contact-form-submit {
    background: var(--c-cta) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: var(--sh-cta) !important;
}
.contact-form-box .contact-form input.contact-form-submit:hover {
    background: var(--c-cta-hover) !important;
    transform: translateY(-2px) !important;
}

/* ===========================
   原有主题微调
   =========================== */
