/* 思源黑体 字体库 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap");
/* 悬浮窗口样式 */
@import url("./float-window.css");
/* 弹窗 */
@import url("./message-box.css");

@import url("./bootstrap.min.css");

/* 全局样式 */
:root {
    --primary-color: #ffb800;
    --secondary-color: #1e40af;
    --text-color: #333333;
    --white: #ffffff;
    --spacing-sm: 1.2rem;
    --spacing-lg: 2.4rem;
    --border-radius-full: 10rem;
    --shadow-sm: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05);
    --shadow-md: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
    --transition-normal: 0.3s ease;
    --font-size-base: 2rem;
}

body {
    font-family: "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.header-nav-box {
    width: 192rem;
    padding: 0 16rem;
    backdrop-filter: blur(12px) !important;
}

/* 导航样式 */
.nav-link {
    font-size: var(--font-size-base);
    transition: color var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* 响应式调整 */
/* @media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }
} */

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-0.2rem);
    box-shadow: var(--shadow-md);
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Header样式 */
header {
    background-color: var(--white);
    border-bottom: 0.1rem solid #eee;
    transition: all var(--transition-normal);
    height: 7rem;
    /* 原70px */
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

/* Logo样式 */
.logo-container img {
    height: 4rem;
    /* 原40px */
    width: auto;
}

/* 主导航样式 */
.nav-items {
    display: flex;
    gap: 3.2rem;
    /* 原32px */
}

.nav-link {
    font-size: var(--font-size-base);
    padding: 0.8rem 0;
    /* 原8px */
    transition: color var(--transition-normal);
    position: relative;
}

/* 搜索框样式 */
.search-container {
    position: relative;
}

.search-input {
    width: 27.9rem;
    height: 5.1rem;
    padding: 0 4rem 0 1.6rem;
    /* 原0 40px 0 16px */
    border-radius: var(--border-radius-full);
    background-color: #f3f4f6;
    border: none;
    font-size: var(--font-size-sm);
}

.search-button {
    position: absolute;
    right: 1.2rem;
    /* 原12px */
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    /* 原20px */
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端菜单按钮 */
.mobile-menu-button {
    width: 4rem;
    /* 原40px */
    height: 4rem;
    display: none;
    align-items: center;
    justify-content: center;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1.6rem;
    /* 原16px */
    border-top: 0.1rem solid #eee;
    box-shadow: var(--shadow-md);
}

/* 响应式调整 */
/* @media (max-width: 1024px) {
    .nav-items,
    .search-container {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu .nav-link {
        padding: 1.2rem 1.6rem; 
        display: block;
        border-radius: var(--border-radius-sm);
    }

    .mobile-menu .search-container {
        display: block;
        margin: 1.6rem 0;
    }

    .mobile-menu .search-input {
        width: 100%;
    }
} */

/* 导航项间距 */
.nav-items>a {
    padding: 0.5rem 1rem;
}

/* 搜索框圆角和阴影 */
.search-container input {
    border-radius: 20px;
    background-color: #f3f4f6;
}

/* 页脚样式 */
footer {
    min-height: 100vh;
    background-image: url("../images/footer-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
}

/* 内容层级 */
footer>.container {
    position: relative;
    z-index: 2;
}

/* Footer顶部卡片样式 */
.footer-card-container {
    padding: 0 17.5rem;
    margin-bottom: 11rem;
}

.footer-card {
    background-size: cover;
    background-position: center;
    border-radius: 4.5rem;
    padding: 5rem 13rem;
    max-width: min(156.2rem, 100%);
    max-height: min(30.7rem, 100%);
}

.footer-card-logo {
    height: 4.8rem;
    margin-right: 3.2rem;
}

.footer-card-info {
    margin-bottom: 1.6rem;
}

.footer-card-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.8rem;
}

.footer-card-label {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.footer-card-phone {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--text-color);
}

.footer-card-address {
    font-size: 1.4rem;
    color: var(--text-color);
}

.footer-qrcode-container {
    display: flex;
    align-items: center;
    gap: 3.2rem;
}

.footer-qrcode-wrapper {
    text-align: center;
}

.footer-qrcode {
    width: 9.6rem;
    height: 9.6rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-qrcode-text {
    font-size: 2rem;
    color: var(--text-color);
}

/* 产品中心页面样式 */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    background-color: #fff7e6;
    color: #ffb800;
}

/* 分页样式 */
.pagination a {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f3f4f6;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* 产品筛选样式 */
.filter-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-item:hover {
    color: #3b82f6;
}

.filter-item.active {
    color: #3b82f6;
    font-weight: 500;
}

/* 产品图片容器 */
.product-image-container {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* 产品中心页面特定样式 */
.product-filter a {
    transition: all 0.2s ease;
}

.product-filter a:hover {
    color: var(--primary-color);
}

.product-filter a.active {
    color: white;
    background-color: var(--primary-color);
}

/* 产品分类导航样式 */
.product-nav {
    background-color: #fff;
}

/* 分类链接样式 */
.product-nav a {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-nav a div {
    transition: all 0.3s ease;
}

/* 分类按钮悬浮效果 */
.product-nav a:hover div {
    background-color: #ffb800;
}

.product-nav a:hover span {
    color: white;
}

/* 激活状态 */
.product-nav a.active div {
    background-color: #ffb800;
}

.product-nav a.active span {
    color: white;
}

/* 数字样式 */
.product-nav a span:last-child {
    color: #9ca3af;
    margin-left: 4px;
}

/* 标题样式 */
.product-title {
    position: relative;
    padding-left: 1rem;
}

.product-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.25rem;
    background-color: #ffb800;
}

/* 数字标签样式 */
.category-count {
    color: #9ca3af;
    font-size: 14px;
    margin-left: 4px;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb a {
    color: #6b7280;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #374151;
}

.breadcrumb-separator {
    color: #9ca3af;
    margin: 0 8px;
}

/* Footer导航链接样式 */
.footer-nav-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5.4rem;
    color: rgba(244, 189, 0, 1);
}

.footer-nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.2rem;
    font-weight: 400;
    transition: color var(--transition-normal);
}

.footer-nav-link:hover {
    color: var(--white);
}

/* Footer版权信息样式 */
.footer-copyright {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-lighter);
}

.footer-copyright a {
    transition: color var(--transition-normal);
}

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

/* 关于安科 hover下拉 */
.mask-about-ak {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mask-about-ak:hover .about-ak {
    height: 11.2rem;
    overflow: visible;
    border-width: 0.3rem;
    opacity: 1;
}

.about-ak {
    position: absolute;
    width: 192rem;
    background-color: #fff;
    top: calc(100% - 0.3rem);
    left: -63.15rem;
    border-top: 0.3rem solid rgba(244, 189, 0, 1);
    height: 0;
    overflow: hidden;
    transition: height 0.2s;
    border-width: 0;
    padding: 0 31.3rem;
    opacity: 0;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.about-ak::after {
    content: '';
    width: 4.4rem;
    height: 8rem;
    background-color: transparent;
    position: absolute;
    top: -8rem;
    left: 59.6rem;
}

.about-ak::before {
    content: '';
    width: 60rem;
    height: 4.4rem;
    background-color: transparent;
    position: absolute;
    top: -4.4rem;
    left: 0;
}

.about-ak .nav-link {
    margin-right: 7rem;
}

.about-ak .nav-link:hover {
    font-weight: 700;
    color: rgba(244, 189, 0, 1);
}

.about-icon {
    width: 0;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-bottom: 1.5rem solid rgba(244, 189, 0, 1);
    position: absolute;
    top: -1.5rem;
    left: 65.6rem;
}