/* 卡速网 - 全局样式 */
/* 遵循设计规范：浅色背景、蓝色主色调、扁平化、高信息密度 */

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #F5F7FA;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮基础 */
.btn {
    display: inline-block;
    background-color: #1890FF;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #40a9ff;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #1890FF;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid #1890FF;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #1890FF;
    color: white;
}

/* 头部导航 */
.header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1890FF;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav li {
    position: relative;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 16px;
    color: #666;
    transition: color 0.3s;
}

.nav a:hover,
.nav li.active a {
    color: #1890FF;
}

.nav li.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1890FF;
    border-radius: 2px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    width: 300px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-box button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.search-box button:hover {
    color: #1890FF;
}

/* 头部右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 用户头像按钮 */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #1890FF 0%, #40a9ff 100%);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.user-avatar-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #69c0ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.user-avatar-btn.active {
    background: linear-gradient(135deg, #0958d9 0%, #1890FF 100%);
}

.header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

/* 隐藏logo文字 */
.logo-text {
    display: none;
}

/* 主内容区 */
.main {
    padding: 30px 0 60px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #1890FF;
}

/* 页脚 */
.footer {
    background-color: white;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #666;
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1890FF;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.footer-contact i {
    color: #1890FF;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 13px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .nav ul {
        gap: 15px;
    }
    .search-box {
        width: 250px;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    .nav {
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    .nav ul {
        justify-content: center;
    }
    .search-box {
        width: 100%;
        order: 2;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}