* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dynamic-actions i{
    font-style:normal;
}


body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ebebeb;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 400;
}

.profile {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.avatar {
    width: 100%;
    max-width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
}

.profile-info{
    width: 100%;
}

.profile-info h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 0.9rem;
    color: #666;
}

.dynamic-list {
    padding: 10px;
}

.dynamic-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.dynamic-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dynamic-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #9b59b6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 10px;
}

.dynamic-author {
    font-weight: 500;
    font-size: 0.95rem;
}

.dynamic-time {
    font-size: 0.8rem;
    color: #999;
    margin-left: auto;
}

.dynamic-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

/* 动态图片样式 */
.dynamic-images {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.dynamic-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 图片容器样式 */
.image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
}

/* 图片加载器样式 */
.image-loader {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* 加载图标样式 */
.loading-icon {
    user-select: none;      /* 防止用户选择图标 */
    pointer-events: none;    /* 防止图标响应鼠标事件 */
    width: 16px;            /* 统一图标大小 */
    height: 16px;           /* 统一图标大小 */
}

.dynamic-image:hover {
    transform: scale(1.02);
}

.dynamic-actions {
    display: flex;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #f5f5f5;
}

.action-btn i {
    margin-right: 5px;
}

.comments-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.comment {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-avatar-container {
    flex-shrink: 0;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.comment-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 评论作者容器 */
/* 确保评论作者链接只占内容宽度 */
.comment-author-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-actions {
    display: flex;
    align-items: center;
}

.comment-author-container > a.comment-author,
.comment-author-container > span.comment-author {
    display: inline;
}

.comment-author {
    font-weight: 500;
    font-size: 0.85rem;
}

/* 评论时间样式 */
.comment-time {
    font-size: 0.75rem;
    color: #999;
    font-weight: normal;
}

/* 回复按钮样式 */
.reply-btn {
    font-size: 0.7rem;
    color: #666;
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.reply-btn:hover {
    background-color: #f0f0f0;
    color: #3498db;
}

/* 回复表单样式 */
.reply-form {
    margin-top: 8px;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 2px solid #3498db;
}

.reply-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 6px;
}

.reply-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.cancel-reply,
.submit-reply {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-reply {
    background-color: #f0f0f0;
    color: #666;
}

.submit-reply {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.submit-reply:hover {
    background-color: #2980b9;
}

.cancel-reply:hover {
    background-color: #e0e0e0;
}

/* 暗黑模式下的回复相关样式 */
@media (prefers-color-scheme: dark) {
    .reply-btn:hover {
        background-color: #333;
        color: #5dade2;
    }
    
    .reply-form {
        background-color: #2a2a2a;
        border-left-color: #5dade2;
    }
    
    .reply-input {
        background-color: #333;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .cancel-reply {
        background-color: #333;
        color: #ccc;
        border-color: #444;
    }
    
    .cancel-reply:hover {
        background-color: #444;
    }
    
    .submit-reply {
        background-color: #5dade2;
        border-color: #5dade2;
    }
    
    .submit-reply:hover {
        background-color: #3498db;
    }
}

/* 评论作者链接样式 */
a.comment-author {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}

a.comment-author:hover {
    text-decoration: underline;
}

/* 暗黑模式下的链接样式 */
@media (prefers-color-scheme: dark) {
    a.comment-author {
        color: #5dade2;
    }
    
    a.comment-author:hover {
        text-decoration: underline;
    }
    
    /* 暗黑模式下的评论时间样式 */
    .comment-time {
        color: #666;
    }
}

.comment-text {
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

/* 暗黑模式下的评论样式 */
@media (prefers-color-scheme: dark) {
    .comment-avatar {
        border-color: #333;
    }
    
    .comment-text {
        color: #e0e0e0;
    }
}

.comment-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.comment-user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.comment-name,
.comment-email,
.comment-url {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
}

.comment-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 8px;
}

/* 验证码样式 */
.comment-captcha-submit-container {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.comment-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-captcha-input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 100px;
}

.comment-captcha-img {
    width: 112px;
    height: 28px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-submit {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
}

.load-more {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
    cursor: pointer;
}

.load-more:hover {
    color: #3498db;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

/* 暗黑模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .container {
        background-color: #1e1e1e;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
    
    .header {
        background-color: #1a1a1a;
    }
    
    .profile {
        border-bottom: 1px solid #333;
    }
    
    .dynamic-item {
        background-color: #2a2a2a;
        border: 1px solid #333;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .dynamic-actions {
        border-top: 1px solid #333;
    }
    
    .action-btn:hover {
        background-color: #333;
    }
    
    .comments-section {
        border-top: 1px solid #333;
    }
    
    .comment-content {
        color: #e0e0e0;
    }
    
    .comment-name,
    .comment-email,
    .comment-url,
    .comment-input,
    .comment-captcha-input {
        background-color: #333;
        border: 1px solid #444;
        color: #e0e0e0;
    }
    
    .comment-captcha-img {
        border: 1px solid #444;
    }
    
    .footer {
        border-top: 1px solid #333;
        color: #666;
    }
}