/* 全局页头和页尾样式 - 独立文件，不会被其他页面修改影响 */

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部联系栏 */
.top-contact {
    background: #1e40af;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-contact .pure-g {
    align-items: center;
}

/* 头部LOGO区域 */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    min-height: 50px;
    max-width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #1e40af;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 50px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 移动端LOGO尺寸限制 */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        max-height: 35px;
        max-width: 120px;
    }
}

.contact-info {
    text-align: right;
}

.contact-info .phone {
    font-size: 24px;
    color: #1e40af;
    font-weight: bold;
}

/* 汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #3b82f6;
}

.menu-toggle.active {
    background: #1e40af;
}

/* 导航菜单（全屏） */
.full-nav {
    background: #1e40af;
    width: 100%;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    flex: 1;
}

.main-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    transition: background 0.3s;
}

.main-menu a:hover {
    background: #3b82f6;
}

/* 页脚样式 */
.footer {
    background: #374151;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-box {
        padding: 30px;
    }
    
    /* 汉堡菜单显示设置 */
    .menu-toggle {
        display: block;
    }
    
    .full-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(-100%);
        visibility: hidden;
        z-index: 1000;
    }
    
    .full-nav.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-container {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-menu li {
        flex: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-menu li:last-child {
        border-bottom: none;
    }
    
    .main-menu a {
        text-align: center;
        padding: 20px;
        font-size: 18px;
    }
    
    .contact-info {
        text-align: left;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-box {
        padding: 20px;
    }
    
    .logo-area {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* 移动端只显示版权信息 */
@media (max-width: 768px) {
    .footer-box {
        display: none;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .copyright {
        border-top: none;
        padding-top: 0;
    }
}