/* ===================== 全局样式重置 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
body {
    background-color: #ffffff;
    color: #16334f;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* ===================== 通用容器 ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================== 头部样式 ===================== */
.site-header {
    background-color: #689DC1;
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.site-header .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.site-header .logo a {
    color: #ffffff;
    transition: color 0.2s ease;
}
.site-header .logo a:hover {
    color: #f0f0f0;
}
.site-header .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
}
.site-header .nav a {
    color: #ffffff;
    transition: color 0.2s ease;
}
.site-header .nav a:hover {
    color: #e0e0e0;
}

/* ===================== 主内容区 ===================== */
.site-main {
    padding: 30px 0;
}
.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* 响应式：电脑端左右分列 */
@media (min-width: 768px) {
    .main-wrapper {
        flex-direction: row;
    }
    .main-left {
        width: 75%;
    }
    .main-right {
        width: 25%;
    }
}

/* ===================== 推荐用户列表 ===================== */
.user-list {
    margin-bottom: 40px;
}
.user-list .title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #689DC1;
    margin-bottom: 25px;
}
.user-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
/* 响应式：平板2列，电脑3列 */
@media (min-width: 640px) {
    .user-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .user-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
.user-card {
    border: 1px solid #689DC1;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}
.user-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #1A446C;
}
.user-card .card-inner {
    display: flex;
    gap: 15px;
}
.user-card .avatar {
    width: 96px;
    height: 128px;
    flex-shrink: 0;
}
.user-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.user-card .info {
    flex: 1;
}
.user-card .info .name {
    font-size: 16px;
    font-weight: bold;
    color: #689DC1;
    margin-bottom: 5px;
}
.user-card .info .intro {
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.user-card .info .meta {
    font-size: 12px;
    color: #333333;
    margin-bottom: 10px;
}
.user-card .info .meta p {
    margin-bottom: 3px;
}
.user-card .info .view-btn {
    font-size: 12px;
    color: #1A446C;
    transition: text-decoration 0.2s ease;
}
.user-card .info .view-btn:hover {
    text-decoration: underline;
}
.user-list .empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: #999999;
    font-size: 14px;
}

/* ===================== 侧边栏搜索框 ===================== */
.search-widget {
    border: 1px solid #689DC1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.search-widget .title {
    font-size: 16px;
    font-weight: bold;
    color: #689DC1;
    margin-bottom: 15px;
    text-align: center;
}
.search-widget .form-item {
    margin-bottom: 12px;
}
.search-widget .form-item label {
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}
.search-widget .form-item input,
.search-widget .form-item select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 12px;
}
.search-widget .age-group {
    display: flex;
    gap: 10px;
}
.search-widget .age-group input {
    width: 50%;
}
.search-widget .submit-btn {
    width: 100%;
    padding: 8px 0;
    background-color: #008000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.search-widget .submit-btn:hover {
    background-color: #006600;
}

/* ===================== 页脚样式 ===================== */
.site-footer {
    background-color: rgba(104, 157, 193, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #666666;
}
.site-footer .links {
    margin-top: 8px;
}
.site-footer .links a {
    color: #1A446C;
    transition: text-decoration 0.2s ease;
}
.site-footer .links a:hover {
    text-decoration: underline;
}
.site-footer .links span {
    margin: 0 5px;
}