/* 公共CSS文件 - 清源下载站 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 链接样式 */
a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1890ff;
}

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 容器样式 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主内容区域 */
.main-content {
    min-height: 500px;
    padding: 30px 0 0;
}

/* 公共头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo样式 */
.logo {
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 40px;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    width: 400px;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 45px 0 15px;
    border: 2px solid #1890ff;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    padding: 0 15px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #40a9ff;
}

/* 用户菜单样式 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.user-link:hover {
    color: #1890ff;
}

/* 主导航样式 */
.main-nav {
    border-top: 1px solid #f0f0f0;
    padding: 10px 0;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    display: inline-block;
    padding: 5px 0;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1890ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 当前页面导航高亮 */
.nav-link.active {
    color: #1890ff;
}

/* 公共页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    max-width: 300px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

/* 社交链接样式 */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* 底部版权信息 */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
    color: #95a5a6;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #40a9ff;
    color: #fff;
}

.btn-default {
    background-color: #fff;
    color: #666;
    border: 1px solid #d9d9d9;
}

.btn-default:hover {
    color: #1890ff;
    border-color: #1890ff;
}

.btn-danger {
    background-color: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background-color: #ff7875;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* 标题样式 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #1890ff;
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content{
        padding:  20px 0 0;
    }
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        max-width: 100%;
    }
}