/* 导航栏样式 */
.header {
    background: #C03D2D;
    box-shadow: 0 2px 10px rgba(192, 61, 45, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: auto;
    height: 60px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* 导航栏样式增强 */
.nav-list a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

/* hover状态 */
.nav-list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* active状态 - 当前页面 */
.nav-list a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* focus状态 - 键盘导航 */
.nav-list a:focus {
    /* outline: 2px solid rgba(255, 255, 255, 0.5); */
    outline-offset: 2px;
}

.nav-list a:hover {
    color: #ffebea;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* 页脚样式 */
.footer {
    background: #C03D2D;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

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

.footer-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 20px;
    font-weight: bold;
}

.footer-info {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-info p {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.footer-info p::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

.footer-info p:nth-child(1)::before {
    background-image: url('../img/icon-phone.png');
}

.footer-info p:nth-child(2)::before {
    background-image: url('../img/icon-email.png');
}

.footer-info p:nth-child(3)::before {
    background-image: url('../img/icon-local.png');
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}
.footer-bottom a {
    color: white;
    text-decoration: none;
}

/* 响应式设计 - 头部和底部 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        padding: 10px 15px;
        position: relative;
    }
    
    .nav {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #C03D2D;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    
    .nav.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    
    .nav.active .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav.active .nav-list li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav.active .nav-list li:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .nav.active .nav-list li:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .nav.active .nav-list li:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    .nav.active .nav-list li:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        color: white;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    
    .nav-list a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-menu-btn span {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 40px;
        margin-bottom: 25px;
    }
    
    .footer-info {
        padding-left: 25px;
        gap: 12px;
    }
    
    .footer-info p {
        font-size: 15px;
    }
    
    .footer-logo img {
        height: 70px;
    }
    
    .footer-logo p {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-logo {
        order: 1;
        width: 100%;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-logo p {
        font-size: 16px;
    }
    
    .footer-info {
        order: 2;
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info p {
        justify-content: flex-start;
        font-size: 13px;
        flex-direction: row;
        gap: 8px;
        text-align: left;
        align-items: center;
        margin: 5px 0;
    }
    
    .footer-info p::before {
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}