/* 发布订单页 - 会员中心风格 */

.publish-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
}

.order-publish-tip {
    padding: 12px 16px;
    margin-bottom: 24px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1890ff;
    line-height: 1.6;
}

.publish-baojia-link {
    color: #666666;
    font-weight: 600;
    cursor: pointer;
}

.publish-baojia-link:hover {
    color: #66b1ff;
}

.attach-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.attach-hint {
    font-size: 12px;
    color: #94a3b8;
}

.attach-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.attach-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
}

.attach-del {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.publish-card .form-group select {
    height: 46px;
    line-height: 1.5;
}

.money-input-wrap {
    position: relative;
}

.money-input-wrap input[type="number"] {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    height: 46px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: all .2s ease;
    font-family: inherit;
    -moz-appearance: textfield;
}

.money-input-wrap input[type="number"]:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .1);
}

.money-input-wrap input[type="number"]::-webkit-outer-spin-button,
.money-input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.money-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.deposit-tip {
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 10px 14px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 13px;
    color: #8c6d1f;
    line-height: 1.6;
}

.deposit-tip strong {
    color: #fa8c16;
}

.deposit-tip span {
    color: #94a3b8;
}

.publish-coupon-group {
    margin-top: 4px;
}

.publish-coupon-box {
    border: 1px solid #ebeef5;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fafbfc;
}

.publish-coupon-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.publish-coupon-select {
    flex: 1;
    min-width: 220px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    color: #303133;
    background: #fff;
}

.publish-coupon-more {
    font-size: 13px;
    color: #409eff;
    text-decoration: none;
    white-space: nowrap;
}

.publish-coupon-more:hover {
    color: #66b1ff;
}

.publish-coupon-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #606266;
}

.publish-coupon-summary strong {
    color: #f56c6c;
    font-weight: 600;
}

.publish-coupon-payable strong {
    color: #409eff;
}

.publish-coupon-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.publish-coupon-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #909399;
}

.publish-coupon-empty a {
    color: #409eff;
    text-decoration: none;
}

.publish-coupon-empty a:hover {
    text-decoration: underline;
}

.publish-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.assignee-field {
    position: relative;
}

.assignee-input-wrap {
    position: relative;
}

.assignee-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    height: 46px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: all .2s ease;
}

.assignee-input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, .1);
}

.assignee-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.assignee-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.assignee-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s ease;
}

.assignee-option:hover {
    background: #f0f7ff;
}

.assignee-option-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.assignee-option-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.assignee-option-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.assignee-empty {
    padding: 16px 12px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.assignee-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #d6e8ff;
    border-radius: 8px;
}

.assignee-all-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #d6e8ff;
    border-radius: 8px;
    cursor: pointer;
}

.assignee-all-icon,
.assignee-option-all-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8f4ff;
    color: #409eff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.assignee-all-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.4;
}

.assignee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.assignee-link {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #409eff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignee-link:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.assignee-clear {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
}

.assignee-clear:hover {
    color: #ff4d4f;
}

@media (max-width: 768px) {
    .assignee-dropdown {
        max-height: 220px;
    }
}
