/* 
   Site CSS for EP25 
   Last updated: 2025-08-04 14:06
   Footer styling: Light gray theme with enhanced layout
*/

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-top: 75px; /*fixed top 57px, 60px normal, 71 with logo*/
    margin-bottom: 0; /* 移除底部边距，让footer正常跟随内容 */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-image: url('../img/bg-art-diamon.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

.card-bg {
    background-image: url('../img/bg-worldmap.png');
}

/* 轮播组件样式 */
.carousel {
    position: relative;
}

h5 {
    background: linear-gradient(to right, #006699 35%, #ff6600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(to right, #006699 35%, #ff6600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn:hover {
    /*use for a tag with class btn*/
    background: linear-gradient(to right, #0070C0 30%, #ff6600 100%);
}

.nav-item:hover {
    /*use for navigation button*/
    background: linear-gradient(to right, #0070C0 30%, #ff6600 100%);
    color:#fff;
    border-radius: 20px;
}

.nav-link:hover {
    color: #fff;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #fff;
}

a.link-muted {
   text-decoration:none;
}

.mx-10 {
    margin-left: 10%;
    margin-right: 10%;
}

@media (max-width: 767.98px) {
    .mx-10 {
        margin-left: 0;
        margin-right: 0;
    }
}

/* 额外的背景样式选项 */
/* 如果想要纯色背景，可以将 body 的 background 替换为以下选项之一：

选项1 - 简洁优雅的灰白色：
body { background: #f8f9fa; }

选项2 - 专业商务蓝：
body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

选项3 - 暖色调渐变：
body { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

选项4 - 现代科技感：
body { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

选项5 - 企业级深色主题：
body { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }
*/

/* Footer 样式 - 修改为正常文档流定位 */
footer.footer {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    padding: 40px 0 20px 0 !important;
    border-top: 1px solid #dee2e6 !important;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important; /* 添加阴影效果 */
}

/* 确保footer内容正确显示 */
.footer * {
    color: inherit !important;
}

.footer h6 {
    color: #343a40 !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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

.footer ul li a {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.3s ease !important;
}

.footer ul li a:hover {
    color: #007bff !important;
    text-decoration: none !important;
}

.footer .footer-contact-info {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    line-height: 1.6 !important;
}

.footer .footer-contact-info p {
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
}

.footer .footer-contact-info strong {
    color: #495057 !important;
    min-width: 80px !important;
    margin-right: 8px !important;
}

.footer .footer-bottom {
    border-top: 1px solid #dee2e6 !important;
    padding-top: 20px !important;
    margin-top: 30px !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
}

.footer .footer-bottom a {
    color: #6c757d !important;
    text-decoration: none !important;
}

.footer .footer-bottom a:hover {
    color: #007bff !important;
}

@media (max-width: 767.98px) {
    .mx-10 {
        margin-left: 0;
        margin-right: 0;
    }
    
    footer.footer {
        min-height: 220px !important;
        margin-top: 30px !important;
        padding: 30px 0 15px 0 !important;
    }
    
    .footer .footer-section {
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    
    .footer .footer-contact-info p {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer .footer-contact-info strong {
        min-width: auto !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
    }
}