/* 互动交流页面样式 */
.community-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 留言板区域 */
.message-board {
    margin-bottom: 4rem;
}

.message-board h2 {
    color: #e62129;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.post-message {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-message textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    margin-bottom: 1rem;
}

.post-btn {
    padding: 0.8rem 2rem;
    background-color: #e62129;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-btn:hover {
    background-color: #d41920;
}

.message-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.username {
    font-weight: bold;
    margin-right: 1rem;
}

.time {
    color: #666;
    font-size: 0.9rem;
}

.message-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.message-actions {
    display: flex;
    gap: 1rem;
}

.message-actions button {
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.message-actions button:hover {
    background-color: #f5f5f5;
}

/* 作品点评区域 */
.artwork-comments {
    margin-bottom: 4rem;
}

.artwork-comments h2 {
    color: #e62129;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.artwork-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.artwork-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h3 {
    margin-bottom: 0.5rem;
}

.artist {
    color: #666;
    margin-bottom: 1rem;
}

.comments {
    margin-bottom: 1rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.commenter {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.add-comment {
    display: flex;
    gap: 1rem;
}

.add-comment input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-comment button {
    padding: 0.8rem 1.5rem;
    background-color: #e62129;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 创作心得区域 */
.creation-experience {
    margin-bottom: 4rem;
}

.creation-experience h2 {
    color: #e62129;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-details h3 {
    margin-bottom: 0.5rem;
}

.experience-content {
    margin-bottom: 1.5rem;
}

.experience-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.experience-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.experience-actions {
    display: flex;
    gap: 1rem;
}

/* 用户互动区域 */
.user-interaction {
    margin-bottom: 4rem;
}

.user-interaction h2 {
    color: #e62129;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.interaction-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: #e62129;
    color: white;
    border-color: #e62129;
}

.discussion-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.discussion-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.discussion-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.discussion-info h3 {
    margin-bottom: 0.5rem;
}

.discussion-body {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.discussion-stats {
    display: flex;
    gap: 2rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .artwork-grid {
        grid-template-columns: 1fr;
    }

    .experience-images {
        grid-template-columns: 1fr;
    }

    .interaction-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }
} 