body {
    
}

.login-bg {
    background-image: url(../images/login_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    background-color: #f5f5f5;
}

.login-box {
    background-color: #fff;
    padding: .5rem .3rem .6rem;
    border-radius: .1rem;
    box-shadow: 0 0 .1rem 0 rgba(0, 0, 0, 0.1);
    width: 3.4rem;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-box-title {
    margin-bottom: 0.4rem;
    text-align: center;
}
.login-box-title h2 {
    font-size: 0.3rem;
}
.links {
    display: flex;
    border-bottom: 1px solid #EEEEEE;
}

.links a {
    flex: 1;
    text-align: center;
    padding-bottom: 0.14rem;
    position: relative;
    font-size: 0.2rem;
    color: #333333;
}

.links a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 0.6rem;
    height: 0.02rem;
    background-color: transparent;
}

.links a.active::after {
    background-color: #FF3333;
}

.login-form {
    margin-top: 0.3rem;
}
.login-form .input {
    width: 100%;
    margin-bottom: 0.2rem;
    padding: .1rem .2rem;
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    font-size: 0.14rem;
}

.remember,.agreement {
    margin-bottom: 0.26rem;
    display: flex;
    font-size: 0.12rem;
    color: #999999;
}
.submit {
    width: 100%;
    padding: .12rem 0;
    color: #ffffff;
    font-size: 0.16rem;
    cursor: pointer;
    border-radius: .06rem;
    background-color: #FF3333;
}

.error-message {
    background: #fff2f2;
    border: 1px solid #ffb8b8;
    color: #ff5252;
    padding: 0.1rem;
    margin-bottom: 0.2rem;
    border-radius: 0.04rem;
    font-size: 0.14rem;
    text-align: center;
}

.user-center {
    align-items: normal;
    margin: .3rem auto .6rem;
    background-color: #fff;
    border-radius: .1rem;
    overflow: hidden;
    min-height: 8rem;
}
.user-center .left {
    width: 1.6rem;
    background-color: #F9F9F9;
}
.user-center .left a {
    border-left: .04rem solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #999999;
    padding: .28rem 0;
    border-radius: .12rem 0px 0px .12rem;
    overflow: hidden;
}
.user-center .left a {
    position: relative;
}
.user-center .left a img {
    width: 0.4rem;
    height: 0.4rem;
    margin-bottom: 0.12rem;
    transition: opacity .3s;
}
.user-center .left a img:last-of-type {
    position: absolute;
    top: 0.28rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}
.user-center .left a.active,.user-center .left a:hover {
    color: #FF3333;
    border-left: .04rem solid #FF3333;
    background-color: #ffffff;
    transition: all .3s;
}
.user-center .left a.active img:first-of-type,
.user-center .left a:hover img:first-of-type {
    opacity: 0;
}
.user-center .left a.active img:last-of-type,
.user-center .left a:hover img:last-of-type {
    opacity: 1;
}

.user-center .right {
    flex: 1;
    padding: .3rem .2rem;
}
.user-center .right h3 {
    font-size: 0.2rem;
    color: #333333;
    margin-bottom: 0.3rem;
    font-family: "阿里巴巴普惠体 2.0 65 Medium";
}
.category-tabs-box {
    margin-bottom: 0.3rem;
}
.category-tabs-box h3 {
    margin-bottom: 0 !important;
}
.user-center .right form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.user-center .right form label {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.user-center .right label span {
    width: 0.8rem;
    text-align: right;
    font-size: 0.16rem;
    color: #333333;
}
.user-center .right form img {
    width: 1rem;
    height: 1rem;
}
.user-center .right form label .avatar {
    position: relative;
}
.user-center .right form label .avatar input {
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.user-center .right form .input {
    width: 4.6rem;
    height: 0.4rem;
    padding: .1rem .2rem;
    border: 1px solid #EEEEEE;
    border-radius: .06rem;
    font-size: 0.14rem;
    color: #333333;
}
.user-center .right form .submit {
    width: 1.36rem;
    height: 0.46rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.2rem;
    margin-left: 1.2rem;
    color: #ffffff;
    text-align: center;
    font-size: 0.16rem;
    cursor: pointer;
    border-radius: .5rem;
    background-color: #FF6200;
}

/* 成功消息样式 */
.success-message {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0369a1;
    padding: 0.1rem;
    margin-bottom: 0.2rem;
    border-radius: 0.04rem;
    font-size: 0.14rem;
    text-align: center;
}

/* 作品管理页面样式 */
.category-tabs {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid #EEEEEE;
}

.category-tabs .tab {
    padding: 0.1rem 0.2rem;
    font-size: 0.14rem;
    color: #666666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.category-tabs .tab:hover,
.category-tabs .tab.active {
    color: #FF3333;
    border-bottom-color: #FF3333;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.post-item {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    border: 1px solid #EEEEEE;
    border-radius: 0.08rem;
    background-color: #ffffff;
    transition: all 0.3s;
}

.post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.2rem;
    border-radius: 0.04rem;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
    margin-right: 0.2rem;
}

.post-content h4 {
    margin: 0 0 0.1rem 0;
    font-size: 0.16rem;
    color: #333333;
}

.post-content h4 a {
    color: inherit;
    text-decoration: none;
}

.post-content h4 a:hover {
    color: #FF3333;
}

.post-excerpt {
    margin: 0 0 0.1rem 0;
    font-size: 0.14rem;
    color: #666666;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 0.2rem;
    font-size: 0.12rem;
    color: #999999;
}

.post-status {
    padding: 0.02rem 0.08rem;
    border-radius: 0.02rem;
    background-color: #f0f0f0;
}

.post-actions {
    display: flex;
    gap: 0.1rem;
}

.edit-btn,
.view-btn,
.delete-btn {
    padding: 0.06rem 0.12rem;
    font-size: 0.12rem;
    text-decoration: none;
    border-radius: 0.04rem;
    transition: all 0.3s;
}

.edit-btn {
    color: #FF6200;
    border: 1px solid #FF6200;
}

.edit-btn:hover {
    background-color: #FF6200;
    color: #ffffff;
}

.view-btn {
    color: #666666;
    border: 1px solid #666666;
}

.view-btn:hover {
    background-color: #666666;
    color: #ffffff;
}

.delete-btn {
    color: #ff4444;
    border: 1px solid #ff4444;
}

.delete-btn:hover {
    background-color: #ff4444;
    color: #ffffff;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 1rem 0;
}

.empty-icon {
    margin-bottom: 0.3rem;
}

.empty-icon img {
    width: 2rem;
    height: 2rem;
    opacity: 0.3;
}

.empty-text {
    font-size: 0.16rem;
    color: #999999;
    margin-bottom: 0.3rem;
}

.publish-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.12rem 0.24rem;
    background-color: #FF6200;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.06rem;
    font-size: 0.14rem;
    transition: all 0.3s;
}

.publish-btn:hover {
    background-color: #e55a00;
}

.btn-icon {
    width: 0.14rem;
    font-size: 0.16rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 0.3rem;
}

.pagination ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.1rem;
}

.pagination li {
    display: flex;
}

.pagination a,
.pagination span {
    padding: 0.08rem 0.12rem;
    font-size: 0.14rem;
    text-decoration: none;
    border: 1px solid #EEEEEE;
    border-radius: 0.04rem;
    color: #666666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover,
.pagination .active {
    background-color: #FF3333;
    color: #ffffff;
    border-color: #FF3333;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .prev img,
.pagination .next img {
    width: 0.12rem;
    height: 0.12rem;
}

/* 文章编辑器样式 */
.post-editor-form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.form-group label {
    font-size: 0.14rem;
    color: #333333;
    font-weight: 500;
}

.form-group .input,
.form-group .textarea {
    padding: 0.1rem 0.2rem;
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    font-size: 0.14rem;
    color: #333333;
    font-family: inherit;
}

.post-publish-form .form-group .input {
    width: 100%;
}

.form-group .textarea {
    resize: vertical;
    min-height: 3rem;
    line-height: 1.5;
}

.form-group select.input {
    cursor: pointer;
}

.post-publish-form .form-actions {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.cancel-btn {
    padding: 0.12rem 0.24rem;
    color: #666666;
    text-decoration: none;
    border: 1px solid #666666;
    border-radius: 0.06rem;
    font-size: 0.14rem;
    text-align: center;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background-color: #666666;
    color: #ffffff;
}

/* 文章发布页面样式 */
.post-publish-form {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-content {
    display: flex;
    gap: 0.3rem;
}

.content-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.content-right {
    width: 2.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.content-right input[class="input"] {
    width: 100% !important;
}

.image-upload {
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    padding: 0.1rem;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-top: 0.1rem;
}

.featured-image-upload {
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    padding: 0.1rem;
}

.featured-image-preview {
    margin-top: 0.1rem;
    text-align: center;
}

.featured-image-preview img {
    max-width: 100%;
    max-height: 2rem;
    border-radius: 0.04rem;
}

.current-video {
    font-size: 0.12rem;
    color: #666666;
    margin-top: 0.1rem;
}

.current-video a {
    color: #FF3333;
    text-decoration: none;
}

.current-video a:hover {
    text-decoration: underline;
}

#custom-fields {
    border-top: 1px solid #EEEEEE;
    padding-top: 0.2rem;
    margin-top: 0.2rem;
}

#custom-fields-teaching .form-group,
#custom-fields-product .form-group {
    margin-bottom: 0.2rem;
}

#custom-fields-teaching,
#custom-fields-product {
    margin-bottom: 0.3rem;
}

/* 搜索空状态样式 */
.search-empty {
    text-align: center;
    padding: 2rem 0;
}

.search-empty .empty-icon {
    margin-bottom: 0.3rem;
}

.search-empty .empty-icon img {
    width: 2rem;
    height: 2rem;
    opacity: 0.3;
}

.search-empty .empty-text {
    font-size: 0.18rem;
    color: #666666;
    margin-bottom: 0.1rem;
}

.search-empty .empty-tip {
    font-size: 0.14rem;
    color: #999999;
}

/* 登录提示样式 */
.login-required {
    text-align: center;
    padding: 2rem;
    font-size: 0.16rem;
    color: #FF3333;
    background-color: #fff2f2;
    border: 1px solid #ffb8b8;
    border-radius: 0.08rem;
    margin: 1rem auto;
    max-width: 4rem;
}

/* 分类选择器样式 */
.category-selector {
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    padding: 0.1rem;
}

.category-option {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.1rem;
}

.category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.08rem 0.12rem;
    cursor: pointer;
    border-radius: 0.04rem;
    transition: all 0.3s;
    font-size: 0.14rem;
    margin-left: 0.1rem;
}

.category-label:hover {
    background-color: #f5f5f5;
}

.category-label input[type="radio"] {
    margin-right: 0.08rem;
}

.toggle-icon {
    font-size: 0.12rem;
    color: #666666;
    transition: transform 0.3s;
    cursor: pointer;
    user-select: none;
}

.subcategories {
    margin-left: 0.2rem;
    margin-top: 0.05rem;
}

.subcategory-option {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.05rem;
}

.subcategory-label {
    display: flex;
    align-items: center;
    padding: 0.06rem 0.1rem;
    cursor: pointer;
    border-radius: 0.04rem;
    transition: all 0.3s;
    font-size: 0.13rem;
    color: #666666;
    margin-left: 0.1rem;
}

.subcategory-label:hover {
    background-color: #f9f9f9;
}

.subcategory-label input[type="radio"] {
    margin-right: 0.06rem;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #CCCCCC;
    border-radius: 0.08rem;
    padding: 0.3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fafafa;
}

.upload-area:hover {
    border-color: #FF3333;
    background-color: #fff5f5;
}

.upload-icon {
    font-size: 0.3rem;
    margin-bottom: 0.1rem;
}

.upload-text {
    font-size: 0.14rem;
    color: #333333;
    margin-bottom: 0.05rem;
}

.upload-hint {
    font-size: 0.12rem;
    color: #999999;
}

.video-upload .upload-area {
    border-color: #4CAF50;
}

.video-upload .upload-area:hover {
    border-color: #45a049;
    background-color: #f1f8e9;
}

/* 特色图片样式 */
.image-container {
    position: relative;
    display: inline-block;
}

.image-container img {
    max-width: 100%;
    max-height: 2rem;
    border-radius: 0.04rem;
}

.delete-image-btn {
    position: absolute;
    top: -0.05rem;
    right: -0.05rem;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 0.2rem;
    height: 0.2rem;
    font-size: 0.12rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.delete-image-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* 富文本编辑器样式 */
.rich-editor-container {
    border: 1px solid #EEEEEE;
    border-radius: 0.06rem;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    padding: 0.1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #EEEEEE;
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 0.05rem 0.08rem;
    border: 1px solid #CCCCCC;
    background-color: #ffffff;
    border-radius: 0.03rem;
    cursor: pointer;
    font-size: 0.12rem;
    transition: all 0.3s;
}

.editor-toolbar button:hover {
    background-color: #e6e6e6;
    border-color: #999999;
}

.uploading-hint {
    font-size: 0.12rem;
    color: #999999;
}

.editor-toolbar .separator {
    margin: 0 0.05rem;
    color: #CCCCCC;
    font-size: 0.12rem;
}

.editor-content {
    min-height: 3rem;
    padding: 0.1rem;
    font-size: 0.14rem;
    line-height: 1.5;
    outline: none;
    background-color: #ffffff;
}

.editor-content:focus {
    outline: none;
}

.editor-content img {
    max-width: 100%;
    height: auto;
}

/* 视频上传说明样式 */
.upload-tips {
    margin-top: 0.15rem;
    padding: 0.15rem;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.06rem;
}

.upload-tips .tips-notice {
    font-size: 0.13rem;
    font-weight: 600;
    color: #dc2626;
    background-color: #fef2f2;
    padding: 0.08rem 0.12rem;
    border-radius: 0.04rem;
    border-left: 3px solid #dc2626;
    margin-bottom: 0.12rem;
}

.upload-tips .tips-title {
    font-size: 0.14rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.1rem;
}

.upload-tips .tips-list {
    margin: 0;
    padding-left: 0.2rem;
    font-size: 0.12rem;
    color: #0c4a6e;
    line-height: 1.8;
}

.upload-tips .tips-list li {
    margin-bottom: 0.03rem;
}

/* 登录页面用户配置说明样式 - 弹窗触发按钮 */
.login-tips-trigger {
    margin-top: 0.2rem;
    text-align: center;
    cursor: pointer;
    padding: 0.08rem 0;
    font-size: 0.13rem;
    color: #666666;
    transition: color 0.3s;
    border-top: 1px solid #EEEEEE;
    padding-top: 0.15rem;
}

.login-tips-trigger:hover {
    color: #FF3333;
}

/* 弹窗样式 */
.login-tips-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.login-tips-modal.show {
    display: block;
}

.login-tips-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.login-tips-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 0.1rem;
    width: 4rem;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.login-tips-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.2rem;
    border-bottom: 1px solid #EEEEEE;
}

.login-tips-modal .modal-header h3 {
    margin: 0;
    font-size: 0.18rem;
    color: #333333;
}

.login-tips-modal .modal-close {
    font-size: 0.24rem;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.login-tips-modal .modal-close:hover {
    color: #FF3333;
}

.login-tips-modal .modal-body {
    padding: 0.2rem;
}

.login-tips-modal .modal-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.login-tips-modal .modal-body li {
    font-size: 0.14rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 0.1rem;
    padding-left: 0.15rem;
    position: relative;
}

.login-tips-modal .modal-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FF3333;
}

.login-tips-modal .modal-body li:last-child {
    margin-bottom: 0;
}

.login-tips-modal .modal-body li strong {
    color: #333333;
}