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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e6162d;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 主要内容区域 */
main {
    padding: 30px 0 20px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #e6162d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #c21327;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e6162d;
    color: #e6162d;
}

.btn-outline:hover {
    background-color: #e6162d;
    color: #fff;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* 微博列表样式 */
.post-list {
    margin-top: 20px;
}

.post-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

.post-time {
    color: #999;
    font-size: 14px;
}

.post-content {
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-actions {
    display: flex;
    gap: 15px;
    color: #666;
}

.post-action {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-action:hover {
    color: #e6162d;
}

/* 微博详情样式 */
.post-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.post-views {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 媒体文件样式 */
.media-container {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-item {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.media-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* 文件下载样式 */
.file-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
}

.file-icon {
    font-size: 24px;
    color: #666;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 14px;
    color: #999;
}

/* 链接样式 */
.link-container {
    margin: 15px 0;
}

.link-item {
    display: block;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 10px;
    color: #1890ff;
    text-decoration: none;
}

.link-item:hover {
    text-decoration: underline;
}

/* 评论样式 */
.comments-section {
    margin-top: 30px;
}

.comments-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-user {
    font-weight: bold;
}

.comment-time {
    color: #999;
    font-size: 14px;
}

.comment-content {
    color: #333;
}

/* 发布页面样式 */
.publish-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.password-protection {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.file-upload-container {
    margin-bottom: 15px;
}

.file-upload-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .media-item {
        max-width: 100%;
    }
}