/* 管理端样式 */

/* 管理首页网格 */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #eee;
    margin: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.admin-grid-item {
    background: #fff;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.admin-grid-item:active {
    background: #fafafa;
}

.admin-grid-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-grid-text {
    font-size: 14px;
    color: #444;
}

/* 搜索框 */
.admin-search {
    background: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.admin-search input {
    flex: 1;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.admin-search button {
    width: 70px;
    height: 36px;
    background: #FF7043;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* 代理商卡片 */
.agent-card {
    background: #fff;
    margin: 10px 15px;
    border-radius: 8px;
    padding: 15px;
}

.agent-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.agent-nickname {
    font-size: 16px;
    font-weight: 500;
}

.agent-info {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.agent-info .label {
    color: #999;
}

.agent-info .value {
    color: #333;
}

.agent-info .money {
    color: #FF5722;
    font-weight: bold;
}

.agent-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.agent-btn {
    padding: 6px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    color: #666;
}

/* 代理详情页 */
.agent-detail {
    background: #fff;
    margin: 15px;
    border-radius: 8px;
    padding: 20px;
}

.agent-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.agent-detail-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.agent-detail-name {
    font-size: 18px;
    font-weight: 500;
}

.agent-detail-info {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.agent-detail-info .money {
    color: #FF5722;
    font-weight: bold;
}

.agent-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.action-btn.danger {
    border-color: #FF5722;
    color: #FF5722;
}

/* 申请卡片 */
.apply-card {
    background: #fff;
    margin: 10px 15px;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ccc;
}

.apply-card.pending {
    border-left-color: #FF9800;
}

.apply-card.approved {
    border-left-color: #07c160;
}

.apply-card.rejected {
    border-left-color: #ff4d4f;
}

.apply-status {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.apply-status.pending { color: #FF9800; }
.apply-status.approved { color: #07c160; }
.apply-status.rejected { color: #ff4d4f; }

.apply-info {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.apply-info .label {
    color: #999;
}

.apply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.apply-btn {
    padding: 6px 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.apply-btn.approve {
    border-color: #07c160;
    color: #07c160;
}

.apply-btn.reject {
    border-color: #999;
    color: #999;
}

.apply-btn.delete {
    border-color: #FF5722;
    color: #FF5722;
}

/* 图片上传 */
.upload-section {
    background: #fff;
    margin: 15px;
    border-radius: 8px;
    padding: 15px;
}

.upload-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.current-image {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-image img {
    width: 100%;
    height: auto;
}

.current-image .placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 40px;
}

.upload-box {
    border: 2px dashed #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #FF7043;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

.upload-input {
    display: none;
}

/* 弹窗 */
.modal {
    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.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    max-width: 350px;
    padding: 20px;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

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

.modal-btns {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.modal-btn.cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-btn.confirm {
    background: #FF7043;
    color: #fff;
}

/* 订单菜单项 */
.order-menu-item {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.order-menu-item:active {
    background: #fafafa;
}

.order-menu-icon {
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: #555;
}

.order-menu-text {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}
