/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 登录页面头部样式 */
header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 2rem;
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo a.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.logo a.logo-link:hover h1 {
    transform: scale(1.05);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    color: #fff3cd;
}

.logo p {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.notification-link {
    position: relative;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff3b3b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

.avatar.large {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* 注册按钮样式 */
.register-button {
    width: 80px;
    height: 36px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
}

.register-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
}

.register-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.post-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 英雄区样式 */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 轮播控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 内容分类样式 */
.content-categories {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: #f0f0f0;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

/* 内容列表样式 */
.content-list {
    margin-bottom: 2rem;
}

.content-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-details h4 {
    font-size: 1rem;
    font-weight: 600;
}

.user-details p {
    font-size: 0.8rem;
    color: #999;
}

.post-category {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.card-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: scale(1.05);
}

.card-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.action-btn:hover,
.action-btn.active {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    transform: scale(1.05);
}

.action-btn .icon {
    font-size: 1.1rem;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

.load-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

/* 图片上传样式 */
.image-upload {
    margin-top: 1rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #ff6b6b;
    background: rgba(255,107,107,0.05);
}

.upload-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #ff6b6b;
    transform: scale(1.1);
}

.upload-area input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary,
.login-btn,
.register-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-danger {
    background: #ff3b3b;
    color: white;
}

/* 登录页面样式 */
.login-container {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-form {
    padding: 2rem;
}

.login-tabs,
.form-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    color: #ff6b6b;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.code-input {
    display: flex;
    gap: 1rem;
}

.code-input input {
    flex: 1;
}

.code-btn {
    white-space: nowrap;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-btn.wechat:hover {
    border-color: #07C160;
    color: #07C160;
}

.social-btn.qq:hover {
    border-color: #12B7F5;
    color: #12B7F5;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.visitor-btn {
    margin-bottom: 1rem;
    width: 100%;
}

.register-link {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-link:hover {
    color: #ee5a6f;
    text-shadow: 0 0 10px rgba(255,107,107,0.5);
    transform: scale(1.05);
    display: inline-block;
}

/* 个人中心样式 */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-details h2 {
    margin-bottom: 0.5rem;
}

.user-details p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.profile-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.profile-tabs .tab-btn {
    flex: 1;
    text-align: center;
}

/* 互动记录标签页样式 */
.interactions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.interaction-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.interaction-tab-btn:hover,
.interaction-tab-btn.active {
    color: #ff6b6b;
}

.interaction-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.interaction-content {
    display: none;
}

.interaction-content.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #666;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* 精选内容样式 */
.selected-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.selected-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selected-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.selected-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* 排行榜样式 */
.leaderboard-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.leaderboard-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.leaderboard-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.leaderboard-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.leaderboard-tabs .tab-btn {
    flex: 1;
    text-align: center;
}

.leaderboard-list {
    padding: 1rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.leaderboard-item:hover {
    background: #f9f9f9;
}

.leaderboard-item.top {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffeeba;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    text-align: center;
    margin-right: 1rem;
}

.leaderboard-item.top:nth-child(1) .rank {
    color: #ffd700;
}

.leaderboard-item.top:nth-child(2) .rank {
    color: #c0c0c0;
}

.leaderboard-item.top:nth-child(3) .rank {
    color: #cd7f32;
}

.leaderboard-item .user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.points {
    text-align: right;
    margin-right: 1rem;
}

.points-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.points-label {
    font-size: 0.9rem;
    color: #666;
}

.badge {
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.top1 {
    background: #ffd700;
    color: #333;
}

.badge.top2 {
    background: #c0c0c0;
    color: #333;
}

.badge.top3 {
    background: #cd7f32;
    color: white;
}

.badge.active {
    background: #4CAF50;
}

.badge.contrib {
    background: #2196F3;
}

/* 消息中心样式 */
.notification-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.notification-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.notification-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.notification-tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}

.notification-tabs .tab-btn {
    flex: 1;
    text-align: center;
}

.notification-list {
    padding: 1rem;
}

.notification-item {
    display: flex;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: rgba(255,107,107,0.05);
    border-left: 3px solid #ff6b6b;
}

.notification-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    margin-right: 1rem;
}

.notification-icon.like {
    color: #ff6b6b;
}

.notification-icon.comment {
    color: #4CAF50;
}

.notification-icon.share {
    color: #2196F3;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 0.5rem;
}

.notification-content .user {
    font-weight: bold;
    color: #333;
}

.notification-content .post-title {
    font-weight: 500;
    color: #ff6b6b;
}

.comment-content {
    font-size: 0.9rem;
    color: #666;
}

.time {
    font-size: 0.8rem;
    color: #999;
}

.notification-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b6b;
    margin-left: 1rem;
}

/* 发布页面样式 */
.post-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.post-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.post-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.post-form {
    padding: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn {
    background: #f0f0f0;
    color: #333;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.post-tips {
    background: #f9f9f9;
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.post-tips h3 {
    margin-bottom: 1rem;
    color: #333;
}

.post-tips ul {
    list-style: disc;
    margin-left: 2rem;
    color: #666;
}

.post-tips li {
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        gap: 1rem;
    }
    
    .user-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .leaderboard-item .user-info {
        justify-content: center;
    }
    
    .points {
        text-align: center;
        margin-right: 0;
    }
    
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .notification-icon {
        width: auto;
        margin-right: 0;
    }
    
    .notification-status {
        display: none;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .code-input {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ee5a6f;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,107,107,0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式工具类 */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}