:root {
    --primary-color: #1890ff;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #e8e8e8;
}

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    color: var(--text-color) !important;
    font-size: 16px;
    padding: 8px 16px !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* 搜索框样式修改 */
.search-box {
    position: relative;
    margin-left: 20px;
}

.search-box input {
    width: 200px;
    padding: 8px 12px;
    padding-right: 40px; /* 为图标留出空间 */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.search-box input:focus {
    width: 300px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 搜索图标样式 */
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.search-icon:hover {
    color: var(--primary-color);
}

/* 在现有样式的基础上添加媒体查询 */
@media (max-width: 991.98px) {
    /* 导航链接居中 */
    .navbar-nav {
        text-align: center;
    }
    
    .nav-item {
        display: block;
        text-align: center;
    }
    
    /* 搜索框居中 */
    .search-box {
        margin: 0 auto;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .search-box input {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    /* 取消搜索框hover时的宽度变化 */
    .search-box input:focus {
        width: 100%;
    }
    
    /* 调整搜索图标位置 */
    .search-icon {
        right: 12px;
    }
}

/* 页脚样式 */
.footer {
    /* background-color: #f8f9fa; */
    padding: 40px 0 20px;
    color: #666;
}

.footer-nav {
    /* display: flex; */
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.footer-nav a {
    color: #666;
    margin: 0 5px;
}

.footer-nav span {
    color: #ccc;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 30px; */
    flex-wrap: wrap;
}

.footer-slogan {
    text-align: left;
}

.footer-slogan h2 {
    font-size: 24px;
    /* color: #333; */
    margin-bottom: 5px;
}

.footer-slogan p {
    font-size: 16px;
    color: #666;
}

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

.qr-code {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qr-code-text {
    font-size: 14px;
    color: #666;
}


.footer-info {
    text-align: center;
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

.footer-info a {
    color: #a8a8a8;
}

.footer-divider {
    margin: 0 8px;
    color: #ddd;
}

/* 页脚响应式样式 */
@media (max-width: 992px) {
    .footer-middle {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-slogan {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 5px;
    }
    
    .footer-nav a {
        margin: 0 3px;
        font-size: 14px;
    }
    
    .footer-slogan h2 {
        font-size: 20px;
    }
    
    .footer-slogan p {
        font-size: 14px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .qr-code-text {
        font-size: 13px;
    }
    
    .footer-info {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0 10px;
    }
    
    .footer-nav {
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .footer-nav a {
        font-size: 12px;
        margin: 0 2px;
    }
    
    .footer-nav span {
        margin: 0 2px;
    }
    
    .footer-slogan h2 {
        font-size: 18px;
    }
    
    .footer-slogan p {
        font-size: 12px;
    }
    
    .qr-code {
        width: 80px;
        height: 80px;
    }
    
    .qr-code-text {
        font-size: 12px;
    }
    
    .footer-info {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .footer-divider {
        margin: 0 4px;
    }
} 