/**
 * 底部Footer移动端响应式样式
 * 针对footer.html的移动端适配优化
 */

/* 底部基础样式优化 */
footer {
    background-color: #18284a !important;
    color: white !important;
    padding: 60px 20px 30px 20px !important;
    position: relative !important;
}

/* SVG波浪装饰响应式优化 */
.footer-wave-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-90%);
    z-index: 99;
    color: #18284a;
}

.footer-wave-decoration svg {
    width: 100%;
    height: auto;
    min-height: 40px;
}

/* 底部主容器 */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 联系信息三列布局 */
.footer-contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
    flex-wrap: wrap;
    gap: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 联系信息项统一布局 - 确保图标对齐一致 */
.footer-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 统一顶部对齐 */
    min-width: 300px;
    max-width: 400px; /* 统一最大宽度 */
    position: relative;
    min-height: 180px; /* 设置最小高度确保对齐 */
}

/* 图标容器统一样式 - 确保所有图标位置一致 */
.footer-contact-icon {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0; /* 防止图标容器被压缩 */
}

/* 文字区域统一样式 */
.footer-contact-text {
    color: white !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    width: 100%; /* 统一宽度 */
    flex-grow: 1; /* 允许文字区域填充剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 地址文字特殊处理 - 保持较小字体但统一对齐 */
.footer-address-text {
    width: 100% !important; /* 改为100%而不是固定400px */
    max-width: 400px; /* 设置最大宽度限制 */
    font-size: 16px !important;
    margin: 0 auto; /* 居中显示 */
}

/* 分隔符 */
.footer-separator {
    width: 1px;
    height: 200px;
    background-color: #ffffff;
    display: none;
}

.footer-separator.show {
    display: block;
}

/* 左右竖杠 */
.footer-vertical-line-left {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 200px;
    background-color: #ffffff;
}

.footer-vertical-line-right {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 200px;
    background-color: #ffffff;
}

/* 导航菜单 */
.footer-nav-section {
    padding: 100px 0px 30px 0px;
}

/* footer导航菜单 - 靠左对齐 */
.footer-nav {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: flex-start; /* 改为靠左对齐 */
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #b8c5d1;
}

/* 底部版权和LOGO */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #b8c5d1;
    font-size: 14px;
}

.footer-copyright div {
    margin-bottom: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

/* 平板设备适配 (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-contact-section {
        gap: 60px;
        margin-bottom: 50px;
    }
    
    .footer-contact-item {
        min-width: 250px;
    }
    
    .footer-address-text {
        width: 300px;
        font-size: 15px;
    }
    
    .footer-nav {
        gap: 40px;
    }
    
    .footer-nav a {
        font-size: 16px;
    }
    
    .footer-nav-section {
        padding: 80px 0px 30px 0px;
    }
}

/* 移动设备适配 (最大768px) */
@media (max-width: 768px) {
    footer {
        padding: 40px 15px 20px 15px !important;
    }
    
    .footer-container {
        padding: 0 10px;
    }
    
    /* 隐藏SVG波浪装饰在移动端 */
    .footer-wave-decoration {
        display: none;
    }
    
    /* 联系信息改为垂直单列布局 */
    .footer-contact-section {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        align-items: stretch;
    }
    
    .footer-contact-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        position: relative;
    }
    
    /* 隐藏所有分隔符和竖杠 */
    .footer-separator,
    .footer-vertical-line-left,
    .footer-vertical-line-right {
        display: none !important;
    }
    
    .footer-contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .footer-contact-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .footer-contact-text {
        font-size: 16px;
    }
    
    .footer-address-text {
        width: 100%;
        font-size: 14px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* 导航菜单移动端优化 */
    .footer-nav-section {
        padding: 60px 0px 20px 0px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
        width: 100%;
        max-width: 200px;
    }
    
    /* 底部版权区域移动端优化 */
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
    }
    
    .footer-copyright {
        font-size: 12px;
        text-align: center;
        order: 2;
    }
    
    .footer-logo {
        order: 1;
        justify-content: center;
    }
    
    .footer-logo img {
        height: 35px;
    }
}

/* 小屏幕移动设备适配 (最大480px) */
@media (max-width: 480px) {
    footer {
        padding: 30px 10px 15px 10px !important;
    }
    
    .footer-container {
        padding: 0 5px;
    }
    
    .footer-contact-section {
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-contact-item {
        padding: 15px;
        max-width: 300px;
    }
    
    .footer-contact-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .footer-contact-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .footer-contact-text {
        font-size: 14px;
    }
    
    .footer-address-text {
        font-size: 13px;
        max-width: 250px;
    }
    
    .footer-nav-section {
        padding: 40px 0px 15px 0px;
    }
    
    .footer-nav {
        gap: 15px;
    }
    
    .footer-nav a {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .footer-bottom {
        gap: 12px;
        padding-top: 15px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
    .footer-copyright div {
        margin-bottom: 3px;
    }
    
    .footer-logo img {
        height: 30px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    footer {
        padding: 25px 15px 15px 15px !important;
    }
    
    .footer-contact-section {
        flex-direction: row;
        gap: 30px;
        margin-bottom: 30px;
        justify-content: space-around;
    }
    
    .footer-contact-item {
        flex: 1;
        max-width: 300px;
        padding: 15px 10px;
    }
    
    .footer-contact-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .footer-contact-text {
        font-size: 13px;
    }
    
    .footer-address-text {
        font-size: 12px;
        max-width: 180px;
    }
    
    .footer-nav-section {
        padding: 40px 0px 15px 0px;
    }
    
    .footer-nav {
        flex-direction: row;
        gap: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-nav a {
        font-size: 14px;
        width: auto;
    }
}

/* 超小屏幕设备优化 (最大320px) */
@media (max-width: 320px) {
    footer {
        padding: 25px 8px 12px 8px !important;
    }
    
    .footer-contact-item {
        padding: 12px;
        max-width: 280px;
    }
    
    .footer-contact-text {
        font-size: 13px;
    }
    
    .footer-address-text {
        font-size: 12px;
        max-width: 220px;
    }
    
    .footer-nav a {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
    
    .footer-logo img {
        height: 25px;
    }
}
