/* 全局 box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 全局背景暗色、字体浅色 */
body {
    background-color: #111;
    color: #eee;
}

/* 外层内容居中、黑色背景 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #111;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    min-height: 100vh;
}

/* 帖子内容外框 */
.custom-post-view {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 40px;
    background-color: #1a1a1a;
    color: #eee;
    border-radius: 8px;
}



/* 外层容器居中并调整宽度 */
.custom-post-view {
    width: 100%;                  /* 宽度占满父级容器 */
    max-width: 1200px;            /* 最大宽度为 1200px，保证不超过该宽度 */
    margin: 0 auto;               /* 自动左右 margin 实现居中 */
    padding: 20px;                /* 添加内边距，避免内容靠边 */
    display: block;               /* 显式设置为 block 元素，防止被其他 display 设置覆盖 */
}

/* 标题 */
.custom-post-view h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

/* 内容区 */
.content-section {
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #ddd;
}

/* 帖子正文卡片 */
.post-content {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ddd;
}

/* 信息区 */
.info-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #222;
    color: #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.post-info-list {
    list-style: none;
    padding: 0;
}

.post-info-list li {
    margin-bottom: 10px;
    color: #aaa;
}

.post-info-list strong {
    font-weight: bold;
    color: #eee;
}

/* 用户信息 */
.user-info {
    margin-top: 20px;
}

.user-info a {
    color: #ff6666;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

.user-info .user-avatar {
    border-radius: 50%;
    margin-left: 10px;
}

/* 标签 / 分类 */
.tags-info, .categories-info {
    margin-top: 20px;
}

.tags-info a, .categories-info a {
    color: #ff6666;
    text-decoration: none;
}

.tags-info a:hover, .categories-info a:hover {
    text-decoration: underline;
}

/* 上一篇 / 下一篇 */
.next-post, .previous-post {
    margin-top: 20px;
    font-weight: bold;
    color: #ccc;
}

/* 举报表单 */
.flagging-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ddd;
}

.flagging-message-section {
    margin-bottom: 20px;
}

.flagging-buttons input[type="submit"] {
    background-color: #e33;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.flagging-buttons input[type="submit"]:hover {
    background-color: #c22;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .custom-post-view {
        padding: 15px;
    }

    .custom-post-view h1 {
        font-size: 2rem;
    }

    .content-section, .info-section, .flagging-section {
        padding: 15px;
    }

    .post-info-list li {
        font-size: 1rem;
    }

    .flagging-buttons input[type="submit"] {
        width: 100%;
    }
}


/* 帖子发布 */
/* 整体表单宽度加宽，居中 */
/* 让整个内容容器居中对齐 */
/* 内容容器居中 */
/* 内容容器居中 */
.content, .connt, .main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 50px;
    box-sizing: border-box;
}


.post-form-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


/* 表单整体风格（PC / 平板） */
.post-form {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 50px;
    background: #111;
    border-radius: 8px;
}

/* 表单间距 */
.post-form .form-row {
    margin-bottom: 12px;
}

/* 标题字体 */
.post-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #ddd;
}

.post-form .form-title {
    text-align: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

/* 输入框统一风格 */
.post-form input[type="text"],
.post-form textarea,
.post-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background: #222;
    color: #eee;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

/* 文本框默认高度 */
.post-form textarea {
    height: 200px;
}

/* 多选关联视频区域 */
.post-form .checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    background: #222;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
}
.post-form .checkbox-list li {
    padding: 5px 0;
    color: #bbb;
}

/* 错误提示 */
.post-form .field-error {
    color: #e66;
    font-size: 13px;
}

/* 提交按钮 */
.post-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #e33;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* ------------------------ */
/* 手机、窄屏专属优化 */
/* ------------------------ */
@media (max-width: 768px) {
    .post-form {
        width: 95%;
        padding: 10px;
        border-radius: 0;
    }
    .post-form input[type="text"],
    .post-form textarea,
    .post-form select {
        padding: 10px;
        font-size: 14px;
    }
    .post-form button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
    .post-form textarea {
        height: 150px;
    }
    .post-form .checkbox-list {
        max-heig





.comments-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.comments-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.block-new-comment {
    margin-bottom: 20px;
}

.block-new-comment .row {
    margin-bottom: 15px;
}

.block-new-comment input[type="text"],
.block-new-comment textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    resize: vertical;
}

.block-new-comment textarea {
    min-height: 80px;
}

.block-new-comment .buttons input[type="submit"] {
    background-color: #4b70f8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.block-new-comment .buttons input[type="submit"]:hover {
    background-color: #3b5ce0;
}

.success,
.generic-error,
.notice {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.success {
    background-color: #e6f9ec;
    border: 1px solid #b7f0cd;
    color: #2f8b5e;
}

.generic-error {
    background-color: #ffe6e6;
    border: 1px solid #ffb7b7;
    color: #d93025;
}

.notice {
    background-color: #fff9e6;
    border: 1px solid #ffe9b7;
    color: #9c7700;
}


.list-comments .item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.list-comments .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.list-comments .avatar .no-avatar {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 12px;
    color: #999;
}

.list-comments .item label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.list-comments .item label a {
    color: #4b70f8;
    text-decoration: none;
}

.list-comments .item label a:hover {
    text-decoration: underline;
}

.list-comments .item p {
    margin: 5px 0 0 0;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
}

.comment-options {
    margin-left: auto;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.comment-rating {
    font-weight: 600;
}

.comment-rating.positive {
    color: #2f8b5e;
}

.comment-rating.negative {
    color: #d93025;
}

.comment-like,
.comment-dislike {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}

.comment-like:hover,
.comment-dislike:hover {
    color: #4b70f8;
}
