/* 头部样式 */
.site-header {
    background: linear-gradient(to right, var(--primary-white), #fff5f5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    flex: 1;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.phone-number, .work-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-size: 0.9rem;
}

.phone-number i, .work-time i {
    font-size: 1.1rem;
}

.phone-number a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.phone-number a:hover {
    color: var(--secondary-red);
}

/* 主导航 */
.main-nav {
    background: var(--primary-red);
    position: relative;
}

.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary-white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    margin-right: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* 移动端菜单样式 - 统一版本 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        background-color: white;
        color: var(--primary-red);
        border: 2px solid var(--primary-red);
        border-radius: 5px;
        cursor: pointer;
        padding: 8px 12px;
        z-index: 1001;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn:hover {
        background-color: var(--primary-red);
        color: white;
        transform: scale(1.05);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        z-index: 1000;
        transition: all 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 20px;
        color: white !important;
        font-size: 1.2rem;
        font-weight: 500;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background-color: rgba(194, 12, 12, 0.3);
        color: white !important;
        padding-left: 30px;
    }

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

    .nav-menu .nav-link i {
        margin-right: 10px;
        font-size: 1.1rem;
    }

    /* 当菜单打开时，隐藏滚动条 */
    body.menu-open {
        overflow: hidden;
    }

    /* 菜单关闭按钮样式 */
    .mobile-menu-btn i.fa-times {
        font-size: 1.3rem;
    }
}

/* 移动端头部布局调整 */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 10px 20px;
        position: relative;
        z-index: 998;
    }

    .contact-info {
        text-align: center;
        gap: 8px;
    }

    .phone-number, .work-time {
        justify-content: center;
        font-size: 0.9rem;
    }

    .logo-container {
        margin-bottom: 5px;
    }

    .logo img {
        height: 60px;
    }

    .main-nav .container {
        padding: 0;
        min-height: 60px;
        position: relative;
    }
}

/* 底部样式 */
.site-footer {
    background: linear-gradient(to right, var(--dark-gray), #222);
    color: var(--primary-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.contact-info-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.contact-info-footer i {
    color: var(--primary-red);
    width: 20px;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    max-width: 120px;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-red);
    padding: 0.5rem;
    background: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-info {
        text-align: center;
    }

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

    .nav-menu {
        position: fixed;
        top: 160px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--primary-red);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 添加到底部样式区域 */

/* 公司信息样式 */
.company-info h4 {
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.company-info p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

/* 底部链接样式 */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-red);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* 联系信息样式 */
.contact-info-footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: #ccc;
    line-height: 1.4;
}

.contact-info-footer .contact-item i {
    color: var(--primary-red);
    width: 20px;
    margin-top: 2px;
    font-size: 1rem;
}

.contact-info-footer strong {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.contact-info-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-info-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-footer a:hover {
    color: var(--primary-red);
}

/* 底部版权样式 */
.footer-bottom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    flex: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

.separator {
    margin: 0 0.8rem;
    color: #666;
}

.copyright a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.technology-support {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.technology-support p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
}

.technology-support a {
    color: #999;
    text-decoration: none;
}

.technology-support a:hover {
    color: var(--primary-red);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .separator {
        display: inline-block;
        margin: 0 0.3rem;
    }

    .copyright p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }

    .contact-info-footer .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-info-footer .contact-item i {
        margin-bottom: 0.5rem;
    }
}

/* 滚动时固定头部样式 */
.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 图片懒加载过渡效果 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
