/**
 * 公共样式 - 顶部菜单和底部美化
 * 用于site目录下所有页面
 */

/* ========== 全局字体优化 ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部弹窗菜单美化 ========== */

/* 下拉菜单容器 */
.header-top-area .nav > li > ul {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
    padding: 20px !important;
    background: #fff !important;
    animation: menuSlideDown 0.35s ease !important;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品列表容器 */
.oh-nav-series-product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px;
}

/* 产品项美化 */
.oh-nav-series-product-list > li {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
}

.oh-nav-series-product-list > li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.15);
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
}

/* 产品图片容器 */
.oh-nav-series-product-list .oh-navpro-img {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.oh-nav-series-product-list > li:hover .oh-navpro-img {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* 产品图片 */
.oh-nav-series-product-list .oh-navpro-img figure img {
    transition: transform 0.4s ease;
}

.oh-nav-series-product-list > li:hover .oh-navpro-img figure img {
    transform: scale(1.08);
}

/* 产品标题 */
.oh-nav-series-product-list .pTitle {
    font-size: 13px;
    color: #333;
    padding: 10px 5px 5px;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.oh-nav-series-product-list > li:hover .pTitle {
    color: #1565c0;
}

/* 简单下拉菜单（关于我们等） */
.header-top-area .nav > li > ul li {
    transition: all 0.3s ease;
}

.header-top-area .nav > li > ul li:hover {
    background: rgba(30, 136, 229, 0.05);
    border-radius: 8px;
}

/* ========== 底部美化 ========== */
footer {
    background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 35px 0 0;
    position: relative;
    border-top: 3px solid #1e88e5;
}

footer .container-custom {
    position: relative;
    z-index: 1;
}

/* 顶部链接区域 */
footer .top-line {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(30, 136, 229, 0.15);
    margin-bottom: 20px;
}

footer .top-line a {
    color: #1565c0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

footer .top-line a:hover {
    color: #0d47a1;
}

/* 导航区域布局 */
footer .footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

footer .col-md-2 {
    flex: 0 0 calc(23% - 20px);
    max-width: calc(23% - 20px);
    margin-bottom: 20px;
}

/* 标题样式 */
footer h3 {
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    position: relative;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: #1e88e5;
    border-radius: 2px;
    transition: width 0.3s ease;
}

footer .col-md-2:hover h3::after {
    width: 35px;
}

/* 链接列表 */
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #555;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: #1e88e5;
    transform: translateX(3px);
}

/* 版权信息 */
footer .container-custom > div[style*="text-align: center"] {
    padding-top: 15px;
    border-top: 1px solid rgba(30, 136, 229, 0.1);
}

footer .container-custom > div[style*="text-align: center"] span {
    color: #888 !important;
    font-size: 12px !important;
}

/* 版权区域 */
footer .copy {
    background: rgba(30, 136, 229, 0.05);
    padding: 15px 0;
    margin-top: 0;
    border-top: 1px solid rgba(30, 136, 229, 0.1);
}

footer .copy-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .copy-text a {
    color: #666 !important;
    font-size: 12px !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

footer .copy-text a:hover {
    color: #1e88e5 !important;
}

footer .copy-text img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer .copy-text a:hover img {
    opacity: 1;
}

/* 联系方式特殊样式 */
footer #footer_0_NavigateRepeater_plNavi_2 ul li a {
    cursor: default;
    color: #666 !important;
    font-size: 13px !important;
}

footer #footer_0_NavigateRepeater_plNavi_2 ul li:hover a {
    color: #666 !important;
    transform: none;
}

/* 右侧悬浮按钮美化 */
#fixedright {
    z-index: 9999;
}

#fixedright a {
    transition: all 0.3s ease;
}

#fixedright a:hover {
    transform: translateX(-5px);
}

#fixedright .qr-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px;
}

#fixedright .qr-box p {
    color: #1565c0;
    font-weight: 600;
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    footer .col-md-2 {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 576px) {
    footer .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    footer {
        padding: 25px 15px 0;
    }
}
