/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* 用户头像 */
.avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    font-weight: 500;
}

.btn-primary {
    background-color: #4285F4;
    border-color: #4285F4;
}

.btn-primary:hover {
    background-color: #3367D6;
    border-color: #3367D6;
}

/* 登录模态框样式 */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
}

/* 导航栏样式 */
header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .profile-img, .profile-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .profile-placeholder {
        font-size: 32px;
    }
}

/* 导航栏样式 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    color: #ffffff;
}

/* 渐变文本 */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 图片容器样式 */
.image-wrapper {
    position: relative;
    flex: 0 1 23%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 加载动画 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #007BFF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 倒计时文本 */
.countdown-text {
    color: #007BFF;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
} 