/* 代理商端样式 */

/* 发布导航图标特殊样式 */
.nav-icon-publish {
    color: #FF7043;
}

.nav-item.active .nav-icon-publish {
    color: #FF7043;
}

/* 标签页切换 */
.tab-nav {
    display: flex;
    padding: 10px 12px;
    gap: 10px;
    background: #fff;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #FF7043;
    color: #fff;
}

.tab-btn:not(.active) {
    background: #f5f5f5;
    color: #333;
}

/* 已发布文章区域 */
.publish-section {
    padding: 15px 12px;
}

.section-header {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

/* 分类管理 */
.category-header {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    gap: 10px;
}

.category-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.add-btn {
    margin-left: auto;
    padding: 8px 20px;
    background: #FF7043;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* 分类列表 */
.category-list {
    background: #fff;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.category-name {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-rename {
    padding: 6px 14px;
    background: #FF9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.btn-delete {
    padding: 6px 14px;
    background: #e64340;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    max-width: 320px;
    overflow: hidden;
}

.modal-header {
    padding: 18px 15px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px 15px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #FF7043;
}

.modal-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    background: #fff;
}

.modal-btn:first-child {
    border-right: 1px solid #f0f0f0;
    color: #666;
}

.modal-btn.confirm {
    color: #FF7043;
    font-weight: 500;
}

/* 发布表单 */
.publish-form {
    padding: 15px 12px;
    padding-bottom: 80px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #e64340;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #FF7043;
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    min-height: 100px;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: #FF7043;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 图片上传 */
.image-upload {
    width: 100%;
    height: 160px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: #fafafa;
}

.image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-placeholder {
    text-align: center;
    color: #999;
}

.image-upload-placeholder svg {
    margin-bottom: 8px;
}

/* 文章列表 */
.article-list {
    background: #fff;
}

.article-item {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    gap: 15px;
}

.article-price {
    color: #FF5722;
    font-weight: 500;
}

.article-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.article-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.article-status.win {
    background: #f6ffed;
    color: #52c41a;
}

.article-status.lose {
    background: #fff1f0;
    color: #f5222d;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #FF7043;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:disabled {
    background: #ccc;
}
