/* 个人资料页面样式 */
/* 个人资料卡片 */
.profile-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.profile-header {
    background: linear-gradient(135deg, #1A6BE6 0%, #4dabf7 100%);
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-username {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-date {
    font-size: 0.95rem;
    opacity: 0.8;
}

.profile-edit-btn {
    margin-top: 1.5rem;
    border-radius: 30px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    background-color: white;
    color: #1A6BE6;
    border: none;
    transition: all 0.3s ease;
}

.profile-edit-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 统计信息样式 - 直接放在编辑个人资料按钮下方 */
.stats-info {
    padding: 1.5rem;
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-item {
    padding: 0.75rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1A6BE6;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* 个人资料内容卡片（合并个人简介和故事） */
.profile-content-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.profile-content-card .card-header {
    background-color: #f8f9fa;
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.profile-content-card .nav-tabs {
    border-bottom: none;
}

.profile-content-card .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.profile-content-card .nav-link:hover {
    color: #1A6BE6;
    background-color: rgba(26, 107, 230, 0.05);
}

.profile-content-card .nav-link.active {
    color: white;
    background-color: #1A6BE6;
}

.profile-content-card .card-body {
    padding: 1.5rem;
}

.bio-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.story-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.story-list-item:last-child {
    border-bottom: none;
}

.story-list-item:hover {
    background-color: #f8f9fa;
}

.story-list-item a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-list-item a:hover {
    color: #1A6BE6;
}

.story-date-badge {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
}

.view-all-btn {
    margin-top: 1rem;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 767px) {
    .profile-header {
        padding: 1.5rem 0;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .profile-username {
        font-size: 1.5rem;
    }
    
    .profile-date {
        font-size: 0.9rem;
    }
    
    .profile-edit-btn {
        margin-top: 1rem;
        padding: 0.5rem 1.5rem;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .stats-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-username {
        font-size: 1.3rem;
    }
    
    .profile-date {
        font-size: 0.85rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .stats-label {
        font-size: 0.85rem;
    }
    
    .story-list-item {
        padding: 0.8rem 1rem;
    }
    
    .story-date-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Logo样式 */
.site-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* 移动端Logo适配 */
@media (max-width: 576px) {
    .site-logo {
        height: 40px;
    }
}

/* 移动端分页样式 */
@media (max-width: 576px) {
    /* 移动端下分页按钮样式调整 */
    .pagination-table td a,
    .pagination-table td span {
        padding: 6px 10px !important;
        min-width: 34px !important;
        font-size: 14px !important;
    }
}

.pagination .page-link {
    border-radius: 8px;
    padding: 8px 12px;
    color: #1A6BE6;
    border: 1px solid #dee2e6;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #1A6BE6;
    border-color: #1A6BE6;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* 移动端分页样式 */
@media (max-width: 576px) {
    .pagination {
        overflow-x: auto !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
    }
    
    .pagination .page-link {
        min-width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        padding: 0 8px !important;
        font-size: 0.9rem !important;
    }
}

/* 确保父容器不会影响分页布局 */
nav[aria-label="故事分页"] {
    text-align: center !important;
    width: 100% !important;
    margin: 20px 0 !important;
    display: block !important;
}

/* 添加一些额外的样式来确保分页水平显示 */
.pagination:before,
.pagination:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Bootstrap分页组件重写 */
.pagination {
    display: block !important;
    text-align: center !important;
    font-size: 0 !important; /* 消除inline-block元素之间的空白 */
}

.pagination > li,
.pagination > .page-item {
    display: inline-block !important;
    font-size: 1rem !important; /* 恢复字体大小 */
    vertical-align: top !important;
}

.page-link {
    position: relative !important;
    border: 1px solid #dee2e6 !important;
    margin: 0 2px !important;
    padding: 0.375rem 0.75rem !important;
    min-width: 38px !important;
    height: 38px !important;
    line-height: 24px !important;
}

/* 禁用所有可能导致垂直布局的属性 */
.pagination,
.pagination > li,
.pagination > .page-item,
.page-link {
    float: none !important;
    clear: none !important;
    flex: none !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

/* 移动端优化 */
@media (max-width: 576px) {
    .pagination {
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .page-link {
        min-width: 34px !important;
        height: 34px !important;
        line-height: 22px !important;
        padding: 0.25rem 0.5rem !important;
    }
}