/* 社区页面专用样式 */

/* 用户操作区域 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 用户菜单样式已移至 styles.css 统一管理 */

/* 用户信息样式已移至 styles.css 统一管理，避免样式覆盖问题 */
/* 删除了 .user-avatar, .user-info, .user-name 样式，确保与其他页面完全一致 */

.user-rank {
    color: #4ecdc4;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 下拉菜单样式已移至 styles.css 统一管理，使用 .user-dropdown 类名 */

/* 社区英雄区域 */
.community-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 70%, #533483 100%);
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.community-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(76, 236, 196, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    background: linear-gradient(45deg, #ffd700, #4ecdc4, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 社区统计 */
.community-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 社区主要内容 */
.community-main {
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    padding: 40px 0;
}

.community-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 社区导航 */
.community-nav {
    grid-column: 1 / -1;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    color: #b0b0c8;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    color: #1a1a2e;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* 社区内容区域 */
.community-content {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    min-height: 800px;
}

.community-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.community-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.section-header h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 0;
}

/* 帖子列表 */
.post-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.filter-btn.active {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-color: transparent;
    color: #1a1a2e;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.post-title {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #b0b0c8;
}

.post-author {
    color: #4ecdc4;
    font-weight: 500;
}

.post-time {
    opacity: 0.7;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #b0b0c8;
}

.post-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.post-tag {
    background: rgba(76, 236, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    border: 1px solid rgba(76, 236, 196, 0.3);
}

/* 学习内容 */
.learning-content {
    display: grid;
    gap: 30px;
}

.study-groups {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.study-groups h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.group-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.group-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.group-name {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 5px;
}

.group-desc {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.group-members {
    color: #b0b0c8;
    font-size: 0.8rem;
}

/* 挑战卡片 */
.challenge-card {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.1), rgba(76, 236, 196, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.challenge-title {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.challenge-desc {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.challenge-reward {
    color: #4ecdc4;
    font-weight: 600;
}

/* 排行榜 */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.rank-info {
    flex: 1;
}

.rank-name {
    color: #ffd700;
    font-weight: 600;
}

.rank-points {
    color: #4ecdc4;
    font-size: 0.9rem;
}

/* 侧边栏 */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.sidebar-widget h3 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.online-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}

.online-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
}

.online-name {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    margin-left: auto;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.activity-item {
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.activity-text {
    color: #e0e0e0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.activity-time {
    color: #b0b0c8;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 3px;
}

.rules-content ul {
    list-style: none;
    padding: 0;
}

.rules-content li {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 5px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

.modal-content.large {
    max-width: 700px;
}

/* 模态框动画增强 */
.modal {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
}

/* 模态框内容动画 */
.modal-content {
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffd700;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
    color: #e0e0e0;
    margin: 0;
}

.modal-footer a {
    color: #4ecdc4;
    text-decoration: none;
}

.modal-footer a:hover {
    color: #ffd700;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffd700;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-hint {
    display: block;
    color: #b0b0c8;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    cursor: pointer;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: #ffd700;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* 按钮样式 - 与主页保持一致 */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(123, 31, 162, 0.8);
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: rgba(123, 31, 162, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.4);
}

.icon {
    font-size: 1rem;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .community-container {
        grid-template-columns: 1fr;
    }
    
    .community-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-filters {
        justify-content: center;
    }
    
    .community-sidebar {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.3); }
    50% { box-shadow: 0 0 20px rgba(78, 205, 196, 0.6), 0 0 30px rgba(78, 205, 196, 0.3); }
    100% { box-shadow: 0 0 5px rgba(78, 205, 196, 0.3); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
    40%, 43% { transform: translate3d(0, -8px, 0); }
    70% { transform: translate3d(0, -4px, 0); }
    90% { transform: translate3d(0, -2px, 0); }
}

/* 应用动画到元素 */
.story-discussion-item {
    animation: fadeInUp 0.6s ease-out;
}

.story-discussion-item:nth-child(1) { animation-delay: 0.1s; }
.story-discussion-item:nth-child(2) { animation-delay: 0.2s; }
.story-discussion-item:nth-child(3) { animation-delay: 0.3s; }
.story-discussion-item:nth-child(4) { animation-delay: 0.4s; }
.story-discussion-item:nth-child(5) { animation-delay: 0.5s; }

.topic-card {
    animation: fadeInUp 0.6s ease-out;
}

.topic-card:nth-child(1) { animation-delay: 0.1s; }
.topic-card:nth-child(2) { animation-delay: 0.2s; }
.topic-card:nth-child(3) { animation-delay: 0.3s; }
.topic-card:nth-child(4) { animation-delay: 0.4s; }

.inspiration-card {
    animation: fadeInUp 0.6s ease-out;
}

.inspiration-card:nth-child(1) { animation-delay: 0.1s; }
.inspiration-card:nth-child(2) { animation-delay: 0.2s; }
.inspiration-card:nth-child(3) { animation-delay: 0.3s; }

.category-btn.active {
    animation: pulse 2s infinite;
}

.author-avatar {
    animation: glow 3s ease-in-out infinite;
}

.spoiler-badge {
    animation: bounce 2s infinite;
}

/* 用户资料样式 */
.user-profile {
    max-width: 500px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #1a1a2e;
}

.profile-info h3 {
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.profile-info .user-rank {
    color: #4ecdc4;
    font-size: 1rem;
    font-weight: 500;
    margin: 5px 0;
}

.profile-info .join-date {
    color: #b0b0c8;
    font-size: 0.9rem;
    margin: 5px 0;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stats .stat-item {
    text-align: center;
}

.profile-stats .stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.profile-stats .stat-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 增强的按钮样式 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* 消息通知样式 */
.notification {
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.notification-success {
    border-left-color: #00b894;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-info {
    border-left-color: #3498db;
}

/* 帖子交互增强 */
.post-item {
    position: relative;
    overflow: hidden;
}

/* ================== 星球活动样式优化 ================== */

/* 活动网格布局 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 活动卡片样式 */
.event-item {
    position: relative;
    height: 100%;
}

.event-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.7));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 活动头部 */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffd700;
    line-height: 1.4;
    margin-bottom: 0;
    flex: 1;
    margin-right: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.status-ongoing {
    background: linear-gradient(45deg, #00b894, #00a085);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
    animation: pulse 2s infinite;
}

.status-past {
    background: linear-gradient(45deg, #636e72, #2d3436);
    color: #ddd;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 活动描述 */
.event-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* 活动详情 */
.event-details {
    flex: 1;
    position: relative;
    z-index: 1;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 500;
    font-size: 0.85rem;
    opacity: 0.9;
}

.meta-value {
    color: #4ecdc4;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 活动进度条 */
.event-progress {
    margin-bottom: 20px;
}

.progress-label {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #4ecdc4);
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 活动标签 */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.event-tag {
    padding: 4px 10px;
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-tag:hover {
    background: rgba(78, 205, 196, 0.25);
    transform: translateY(-1px);
}

/* 活动奖励 */
.event-rewards {
    margin-bottom: 15px;
}

.rewards-label {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.rewards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reward-item {
    padding: 3px 8px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.1));
    color: #ffd700;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 500;
}

/* 活动亮点 */
.event-highlights {
    margin-bottom: 15px;
}

.highlights-label {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.highlights-text {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(255, 107, 107, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
}

/* 获胜者列表 */
.event-winners {
    margin-bottom: 15px;
}

.winners-label {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.winner-name {
    padding: 4px 10px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    color: #ffd700;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
    font-weight: 500;
    position: relative;
}

.winner-name::before {
    content: '👑';
    margin-right: 4px;
    font-size: 0.7rem;
}

/* 活动操作按钮 */
.event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.event-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.event-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.event-actions .btn:active::before {
    width: 300px;
    height: 300px;
}

/* ================== 资源分享样式优化 ================== */

/* 资源分类标签 */
.resource-categories {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.category-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 资源网格 */
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

/* 资源卡片 */
.resource-item {
    position: relative;
    height: 100%;
}

.resource-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.7));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(76, 205, 196, 0.03) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 205, 196, 0.4);
    box-shadow: 0 15px 40px rgba(76, 205, 196, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 资源头部 */
.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.resource-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.resource-type {
    padding: 4px 12px;
    background: rgba(76, 205, 196, 0.2);
    color: #4ecdc4;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(76, 205, 196, 0.3);
}

/* 资源标题和描述 */
.resource-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ecdc4;
    line-height: 1.4;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.resource-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* 资源预览 */
.resource-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #4ecdc4;
    position: relative;
    z-index: 1;
}

.resource-preview strong {
    color: #4ecdc4;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.resource-preview p {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* 资源特性 */
.resource-features {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.features-label {
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-item {
    padding: 3px 8px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 500;
}

/* 资源元信息 */
.resource-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.resource-meta-item {
    text-align: center;
}

.meta-value {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.meta-label {
    color: #b0b0c8;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* 评分星级 */
.resource-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.rating-value {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 资源操作 */
.resource-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.resource-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .events-grid,
    .resources-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .category-tabs {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .event-actions,
    .resource-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .resource-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    transition: left 0.6s;
}

.post-item:hover::before {
    left: 100%;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成就徽章样式 */
.achievement-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a2e;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 2px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3);
}

/* 实时状态指示器 */
.status-indicator {
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid #1a1a2e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* 私信系统样式 */
.message-center {
    width: 100%;
    max-width: 600px;
}

.message-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #b0b0c8;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.tab-btn:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

.message-tab-content {
    display: none;
}

.message-tab-content.active {
    display: block;
}

.message-list {
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-header .sender {
    color: #ffd700;
    font-weight: 600;
}

.message-header .time {
    color: #b0b0c8;
    font-size: 0.8rem;
}

.message-preview {
    color: #e0e0e0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 回到顶部按钮 */
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* 消息按钮 */
.message-btn {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* 增强的交互效果 */
.group-card:hover,
.post-item:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

/* 加载状态 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0c8;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* AI翻译面板样式 */
.ai-translation-panel {
    background: rgba(26, 35, 126, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.ai-panel-header h4 {
    color: var(--star-gold);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-indicator {
    color: #4caf50;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--crystal-cyan);
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.ai-translation-form .form-group {
    margin-bottom: 1.5rem;
}

.ai-translation-form label {
    display: block;
    color: var(--star-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
}

.input-container textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--star-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.input-container textarea::placeholder {
    color: var(--text-secondary);
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8rem;
    color: var(--crystal-cyan);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.translation-options {
    margin-bottom: 1.5rem;
}

.option-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.translation-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.translation-direction:hover {
    color: var(--star-gold);
}

.translation-direction input[type="radio"] {
    accent-color: var(--star-gold);
}

.ai-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ai-controls .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.balance-amount {
    color: var(--star-gold);
    font-weight: 600;
    font-size: 1rem;
}

.ai-result {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(76, 236, 196, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(76, 236, 196, 0.2);
}

.result-header h5 {
    color: var(--crystal-cyan);
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-badge {
    background: linear-gradient(45deg, var(--crystal-cyan), var(--star-gold));
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-content {
    background: rgba(76, 236, 196, 0.05);
    border-left: 3px solid var(--crystal-cyan);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.disclaimer {
    color: #ff9800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-actions {
    display: flex;
    gap: 0.8rem;
}

.result-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* 翻译挑战样式 */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.1);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.challenge-header h4 {
    color: var(--star-gold);
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.basic {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.difficulty-badge.intermediate {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.difficulty-badge.advanced {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.challenge-content {
    margin-bottom: 1.5rem;
}

.source-text {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--crystal-cyan);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.challenge-prompt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.challenge-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participants {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* 优秀翻译展示样式 */
.showcase-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.translation-pair {
    margin-bottom: 1rem;
}

.original-text,
.translation-text {
    margin-bottom: 0.8rem;
}

.original-text label,
.translation-text label {
    color: var(--star-gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    display: block;
}

.original-text p,
.translation-text p {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info .author {
    color: var(--crystal-cyan);
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
}

.votes {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ================== 波纹效果动画 ================== */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 按钮波纹效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* 优化按钮文字层级 */
.btn > * {
    position: relative;
    z-index: 2;
}

/* ================ 故事研讨样式 ================ */

/* 故事内容容器 */
.story-content {
    display: grid;
    gap: 2rem;
    max-width: 100%;
}

/* 故事导航 */
.story-navigation {
    margin-bottom: 2.5rem;
}

.story-navigation h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* 讨论分类导航 */
.discussion-categories {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.category-btn .icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-btn:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.category-btn.active .icon {
    transform: scale(1.2);
}

.chapter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chapter-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.chapter-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.chapter-tab.active {
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 600;
}

/* 热门话题 */
.hot-topics {
    margin-bottom: 2.5rem;
}

.hot-topics h3 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffd700, #4ecdc4);
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.topic-card:hover::before {
    transform: scaleX(1);
}

.topic-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(255, 215, 0, 0.1);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.topic-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    flex: 1;
    font-weight: 600;
}

.topic-type {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-type.character {
    background: linear-gradient(45deg, #ff6b6b, #e74c3c);
    color: #fff;
}

.topic-type.plot {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
}

.topic-type.world {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: #fff;
}

.topic-type.theory {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
}

.topic-type.creative {
    background: linear-gradient(45deg, #ffd700, #f39c12);
    color: #1a1a2e;
}

.topic-excerpt {
    color: #b0b0c8;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.topic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.topic-stats .replies,
.topic-stats .likes {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.topic-stats .time {
    color: #aaa;
    font-style: italic;
}

/* 角色关系图 */
.character-relationships {
    margin-bottom: 2rem;
}

.character-relationships h3 {
    color: #9b59b6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.relationship-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.character-node {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.character-node.main {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a1a2e;
}

.character-node.ally {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #fff;
}

.character-node.enemy {
    background: linear-gradient(135deg, #ff6b6b, #e74c3c);
    color: #fff;
}

.character-node.uncertain {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: #fff;
}

.character-node.guide {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

.character-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.character-avatar {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.character-node span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.character-node small {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* 故事时间线 */
.story-timeline {
    margin-bottom: 2rem;
}

.story-timeline h3 {
    color: #3498db;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffd700, #4ecdc4, #ff6b6b);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #ffd700, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    flex: 1;
}

.timeline-content h4 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.timeline-content p {
    color: #b0b0c8;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.timeline-chapter {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* 故事讨论列表 */
.story-discussions {
    margin-bottom: 3rem;
}

.story-discussions h3 {
    color: #e67e22;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.discussions-list {
    display: grid;
    gap: 1.5rem;
}

.story-discussion-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.story-discussion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #e67e22, #f39c12);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.story-discussion-item:hover::before {
    transform: scaleY(1);
}

.story-discussion-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 8px 15px rgba(230, 126, 34, 0.1);
}

.story-discussion-item.spoiler-warning {
    border-color: rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0.02) 100%);
}

.spoiler-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #e74c3c);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.discussion-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.author-info {
    flex: 1;
}

.author-name {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.discussion-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.discussion-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.discussion-time {
    color: #aaa;
}

.discussion-type {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.discussion-category {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.discussion-content {
    margin-bottom: 1.5rem;
}

.discussion-title {
    margin: 0 0 1rem 0;
}

.discussion-title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.discussion-title a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.discussion-excerpt {
    color: #b0b0c8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.discussion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.discussion-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item .icon {
    font-size: 1rem;
}

.discussion-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-tag {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.story-tag:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: scale(1.05);
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.load-more .btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
}

/* 空状态 */
.no-discussions {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.no-content-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-discussions h4 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.no-discussions p {
    color: #b0b0c8;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.no-discussions .btn {
    background: linear-gradient(45deg, #ffd700, #f39c12);
    color: #1a1a2e;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-discussions .btn:hover {
    background: linear-gradient(45deg, #f39c12, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

/* 创作灵感 */
.creative-inspiration {
    margin-bottom: 3rem;
}

.creative-inspiration h3 {
    color: #f39c12;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
}

.inspiration-categories {
    display: grid;
    gap: 2.5rem;
}

.inspiration-section {
    position: relative;
}

.inspiration-section h4 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.inspiration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.inspiration-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.inspiration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.inspiration-card:hover::before {
    opacity: 1;
}

.inspiration-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(78, 205, 196, 0.2);
}

.inspiration-card h5 {
    position: relative;
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

.inspiration-card p {
    position: relative;
    color: #b0b0c8;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
    z-index: 1;
}

.inspiration-card .btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.inspiration-card .btn:hover {
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

/* 不同类型的灵感卡片颜色 */
.inspiration-card.character {
    border-image: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(231, 76, 60, 0.3)) 1;
}

.inspiration-card.character:hover {
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(255, 107, 107, 0.2);
}

.inspiration-card.world {
    border-image: linear-gradient(135deg, rgba(155, 89, 182, 0.3), rgba(142, 68, 173, 0.3)) 1;
}

.inspiration-card.world:hover {
    border-color: rgba(155, 89, 182, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(155, 89, 182, 0.2);
}

.inspiration-card.plot {
    border-image: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(41, 128, 185, 0.3)) 1;
}

.inspiration-card.plot:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(52, 152, 219, 0.2);
}

.inspiration-card.creative {
    border-image: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(243, 156, 18, 0.3)) 1;
}

.inspiration-card.creative:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(255, 215, 0, 0.2);
}

.inspiration-card.theory {
    border-image: linear-gradient(135deg, rgba(230, 126, 34, 0.3), rgba(211, 84, 0, 0.3)) 1;
}

.inspiration-card.theory:hover {
    border-color: rgba(230, 126, 34, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(230, 126, 34, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .community-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-sidebar {
        order: -1;
    }
    
    .nav-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    /* 故事研讨响应式优化 */
    .discussion-categories {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }
    
    .category-btn {
        justify-content: center;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .topics-grid,
    .inspiration-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .topic-card,
    .inspiration-card {
        padding: 1.5rem;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .topic-type {
        align-self: flex-start;
    }
    
    .topic-stats {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .story-discussion-item {
        padding: 1.5rem;
    }
    
    .discussion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .discussion-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .discussion-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .discussion-tags {
        width: 100%;
    }
    
    .inspiration-section h4 {
        font-size: 1.1rem;
        text-align: center;
        justify-content: center;
    }
    
    .inspiration-card h5 {
        font-size: 1rem;
    }
    
    .inspiration-card .btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    .relationship-diagram {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .community-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .spoiler-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .story-navigation h3,
    .hot-topics h3,
    .creative-inspiration h3,
    .story-discussions h3 {
        font-size: 1.2rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .topic-card,
    .inspiration-card,
    .story-discussion-item {
        padding: 1.2rem;
    }
    
    .discussion-title a {
        font-size: 1.1rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 0.8rem;
    }
    
    .no-discussions {
        padding: 2rem 1rem;
    }
    
    .load-more .btn {
        width: 100%;
        padding: 1rem;
    }
}