@charset "utf-8";
/* 基础变量定义 */
:root {
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f8f9fa;
    --card-bg: #fff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #00b894;
    --info-color: #0984e3;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
}

/* 暗色模式变量 */
body.dark-mode {
    --text-color: #f5f6fa;
    --text-muted: #b2bec3;
    --bg-color: #1e272e;
    --card-bg: #2d3436;
    --border-color: #3d484d;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* 科技感背景 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    opacity: 0.05;
}

body.dark-mode .tech-bg {
    opacity: 0.15;
}

/* 头部大图区域 */
.stats-header-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: -80px;
    z-index: 1;
}

.stats-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.stats-header-image:hover img {
    opacity: 1;
}

.stats-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.stats-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 90%;
}

.stats-meta {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.stats-meta-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.stats-meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.stats-meta-item i {
    margin-right: 10px;
}


/* 主内容容器 */
.user-stats-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

/* 用户卡片 - 全新设计 */
.user-profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 40px var(--shadow-color);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.user-profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* 用户信息头部 - 网格布局 */
.user-profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.user-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.user-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--card-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.user-avatar-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
    opacity: 0.7;
}

.user-info-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--secondary-color);
    color: white;
}

.user-website {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 15px;
    word-break: break-all;
    max-width: 100%;
}

.user-website i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.user-bio {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 数据统计卡片 - 全新设计 */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.user-stat-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.user-stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.user-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.user-stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.user-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.user-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-stat-trend {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.trend-up {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
}

.trend-down {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger-color);
}

/* 徽章区域样式 */
.user-badges-section {
    margin-bottom: 30px;
    padding: 25px;
}

.user-badges-container {
    margin: 20px 0 50px 0;
	background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 40px var(--shadow-color);
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.badge-item {
    flex: 0 0 calc(25% - 15px);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-item:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
    border-color: rgba(var(--primary-color), 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.badge-image-container {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
}

.badge-image-container img {
    width: 120px;
    height: auto;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.badge-hover-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.badge-hover-info h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 14px;
}

.badge-hover-info p {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 3px;
}

.badge-image-container:hover .badge-hover-info {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.badge-name {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.badge-date, .badge-validity {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.badge-date i, .badge-validity i {
    color: var(--primary-color);
}

.no-badges-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.no-badges-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.no-badges-message p {
    color: #aaa;
    font-size: 16px;
}

.badges-count {
    text-align: center;
    margin-top: 25px;
    padding: 12px;
    background: rgba(var(--primary-color), 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid rgba(var(--primary-color), 0.2);
}

.badges-count i {
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .badge-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .badge-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .user-badges-section {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .badge-item {
        flex: 0 0 100%;
    }
    
    .badges-row {
        gap: 15px;
    }
}

/* 用户打卡区域样式 */
.user-check-in-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px 20px 20px 20px;
    box-shadow: 0 15px 40px var(--shadow-color);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

/* 活动时间线 */
.user-activity-timeline {
    margin-top: 40px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-left: 20px;
}

.timeline-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.timeline-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.timeline-date i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.timeline-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.type-message {
    background: rgba(85, 201, 192, 0.1);
    color: var(--primary-color);
}

.type-comment {
    background: rgba(248, 111, 110, 0.1);
    color: var(--secondary-color);
}

.type-reply {
    background: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
}

.type-message-reply {
    background: rgba(85, 201, 192, 0.1);
    color: var(--primary-color);
}

.type-comment-reply {
    background: rgba(248, 111, 110, 0.1);
    color: var(--secondary-color);
}

.timeline-text {
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-text i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.timeline-text img {
    width: 20px;
    height: auto; 
	vertical-align: bottom;
	margin: 0 2px;
}

.timeline-actions {
    display: flex;
    justify-content: flex-end;
}

.timeline-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.timeline-link:hover {
    color: var(--secondary-color);
}

.timeline-link i {
    margin-left: 5px;
}

/* 回复对象样式 */
.timeline-reply-target {
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
    font-size: 0.9em;
    color: var(--text-muted);
}

/* 新增的回复样式 */
.timeline-reply {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.timeline-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-reply-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.timeline-reply-username {
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-reply-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-reply-content {
    padding-left: 42px;
    line-height: 1.6;
}

.timeline-reply-content {
    padding-left: 42px;
    line-height: 1.6;
}

.timeline-reply-content img {
    width: 20px;
    height: auto; 
	vertical-align: bottom;
	margin: 0 2px;
}

/* 游客提示 */
.guest-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-top: 80px;
}

.guest-message-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.guest-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.guest-message p {
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary-custom {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(248, 111, 110, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(248, 111, 110, 0.4);
    color: white;
}

.btn-primary-custom i {
    margin-right: 8px;
}

/* 排名信息样式 */
.rank-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rank-info i {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .stats-header {
        height: 350px;
    }
    
    .stats-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .user-profile-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    
    .user-info-main {
        align-items: center;
    }
    
    .user-website {
        justify-content: center;
    }
    
    .user-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .stats-header {
        height: 300px;
    }
    
    .stats-title {
        font-size: 2rem;
    }
    
    .user-avatar-container {
        width: 120px;
        height: 120px;
    }
    
    .user-name {
        font-size: 1.6rem;
    }
    
    .user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stat-value {
        font-size: 1.8rem;
    }
    
    .guest-message h3 {
        font-size: 1.5rem;
    }
}